* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, rgb(25, 31, 51) 0%, rgb(15, 21, 41) 50%, rgb(5, 11, 31) 100%);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 50%;
    position: relative;
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        min-height: 100vh;
    }
    
    .container {
        width: 100%;
        height: 100vh;
        padding: 20px 0;
    }
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.container-knight::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 177, 153, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.1) 0%, transparent 50%);
}

.container-hornet::before {
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 0, 85, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(240, 71, 128, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(255, 115, 115, 0.1) 0%, transparent 50%);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

/* Knight particles - blue/white */
.particles-knight::before,
.particles-knight::after {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    animation: float 6s ease-in-out infinite;
    box-shadow: 
        0 0 6px rgba(255, 255, 255, 0.6),
        0 0 12px rgba(255, 255, 255, 0.4),
        0 0 18px rgba(120, 119, 198, 0.4);
}

.particles-knight::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particles-knight::after {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

/* Hornet particles - red/pink */
.particles-hornet::before,
.particles-hornet::after {
    width: 4px;
    height: 4px;
    background: rgba(255, 115, 115, 0.8);
    animation: float 6s ease-in-out infinite;
    box-shadow: 
        0 0 6px rgba(255, 115, 115, 0.6),
        0 0 12px rgba(255, 0, 85, 0.4),
        0 0 18px rgba(240, 71, 128, 0.4);
}

.particles-hornet::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particles-hornet::after {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 1;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.5;
    }
}
p{
  margin:3em;
  color:white;
   font-family: Arial, Helvetica, sans-serif;
}
.card {
    width: 300px;
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
    perspective: 2500px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 3;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Aseguramos que la tarjeta de Hornet tenga exactamente las mismas dimensiones */
.card-hornet {
    height: 400px;
    width: 300px;
}

.card::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
    filter: blur(10px);
}

.card-knight::before {
    background: linear-gradient(45deg, 
        rgba(120, 119, 198, 0.4), 
        rgba(255, 177, 153, 0.4), 
        rgba(120, 119, 198, 0.4));
}

.card-hornet::before {
    background: linear-gradient(45deg, 
        rgba(255, 0, 85, 0.4), 
        rgba(240, 71, 128, 0.4), 
        rgba(255, 115, 115, 0.4));
}

.card:hover::before {
    opacity: 1;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        filter: blur(10px) brightness(1);
        transform: scale(1);
    }
    100% {
        filter: blur(15px) brightness(1.2);
        transform: scale(1.02);
    }
}

.wallpaper, .wallpaper-hornet {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 
        rgba(0, 0, 0, 0.25) 0px 14px 28px, 
        rgba(0, 0, 0, 0.20) 0px 10px 10px;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    animation: imageLoad 1s ease-in-out forwards;
}

@keyframes imageLoad {
    0% {
        opacity: 0;
        filter: blur(10px) brightness(0.8);
    }
    100% {
        opacity: 1;
        filter: blur(0) brightness(1);
    }
}

.wallpaper::after, .wallpaper-hornet::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(75, 85, 155, 0.3) 0%, 
        transparent 50%, 
        rgba(155, 115, 75, 0.2) 100%);
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
}

/* Estilo específico para el fondo gris de Hornet al pasar el cursor */
.wrapper-hornet .wallpaper::after, .wrapper-hornet .wallpaper-hornet::after {
    background: linear-gradient(135deg, 
        rgba(50, 50, 50, 0.7) 0%, 
        rgba(70, 70, 70, 0.5) 50%, 
        rgba(50, 50, 50, 0.7) 100%);
}

.wrapper {
    width: 100%;
    position: absolute;
    z-index: -1;
    border-radius: 10px;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 
        rgba(0, 0, 0, 0.25) 0px 14px 28px, 
        rgba(0, 0, 0, 0.20) 0px 10px 10px,
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wrapper-knight {
    background: linear-gradient(145deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(20, 25, 45, 0.8) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
}

.wrapper-hornet {
    background: linear-gradient(145deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(45, 20, 35, 0.8) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
    width: 100%;
    height: 100%; /* Asegurando que ocupe todo el alto de la tarjeta */
}

/* Estilo específico para el contenedor de Hornet para estirar la imagen */
.wrapper-hornet .wallpaper {
    height: 400px; /* Altura fija igual a la tarjeta */
    width: 100%; /* Ancho completo */
    object-position: center;
    object-fit: fill; /* Estirar la imagen para que llene todo el contenedor */
    position: absolute; /* Posicionamiento absoluto para asegurar que ocupe todo el espacio */
    top: 0;
    left: 0;
}

.wallpaper-hornet {
    height: 550px; /* Altura fija igual a la tarjeta */
    width: 100%; /* Ancho completo */
    object-position: center;
    object-fit: fill; /* Estirar la imagen para que llene todo el contenedor */
    position: absolute; /* Posicionamiento absoluto para asegurar que ocupe todo el espacio */
    top: -80px;
    left: 0;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.3);
}

.wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.wrapper-knight::before {
    background: linear-gradient(45deg, 
        rgba(120, 119, 198, 0.1), 
        transparent 50%, 
        rgba(255, 177, 153, 0.1));
}

.wrapper-hornet::before {
    background: linear-gradient(45deg, 
        rgba(255, 0, 85, 0.1), 
        transparent 50%, 
        rgba(240, 71, 128, 0.1));
}

.card-knight:hover .wrapper {
    transform: perspective(1200px) translateY(12%) rotateX(65deg) translateZ(50px);
    box-shadow: 
        2px 45px 45px -8px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(120, 119, 198, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-hornet:hover .wrapper {
    transform: perspective(1200px) translateY(12%) rotateX(65deg) translateZ(50px);
    box-shadow: 
        2px 45px 45px -8px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(255, 0, 85, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card:hover .wrapper::before {
    opacity: 1;
}

.card:hover .wallpaper::after, .card:hover .wallpaper-hornet::after {
    opacity: 1;
}

/* Mantener colores pero usar exactamente la misma estructura */

.logo {
    width: 60%;
    position: absolute;
    bottom: -40px;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.card-knight:hover .logo {
    transform: translate3d(0, 35px, 120px) rotateX(65deg);
    width: 100%;
    filter: 
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.6))
        drop-shadow(0 0 40px rgba(120, 119, 198, 0.4));
}

.card-hornet:hover .logo {
    transform: translate3d(0, 35px, 120px) rotateX(65deg);
    width: 100%;
    filter: 
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.6))
        drop-shadow(0 0 40px rgba(255, 0, 85, 0.4));
}

.card-knight:hover .wallpaper {
    opacity: 0.3;
    transform: scale(1.05);
}

.card-hornet:hover .wallpaper, .card-hornet:hover .wallpaper-hornet {
    opacity: 0.5; /* Un poco menos transparente para que se vea el fondo gris */
    transform: scale(1.05);
    object-fit: fill; /* Mantener el estiramiento incluso durante el hover */
    background-color: rgba(50, 50, 50, 0.3); /* Fondo gris adicional */
}

.person {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: absolute;
    right: 10px;
    z-index: 10;
    filter: 
        drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    object-fit: contain;
    object-position: center;
}

.card-knight:hover .person {
    opacity: 1;
    transform: translate3d(0, -20%, 750px) rotateY(-5deg);
    filter: 
        drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.9))
        drop-shadow(0 0 30px rgba(255, 255, 255, 0.4))
        drop-shadow(0 0 60px rgba(120, 119, 198, 0.3));
    animation: heroFloat 3s ease-in-out infinite alternate;
}

.card-hornet:hover .person {
    opacity: 1;
    transform: translate3d(0, -20%, 750px) rotateY(-5deg);
    filter: 
        drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.9))
        drop-shadow(0 0 30px rgba(255, 255, 255, 0.4))
        drop-shadow(0 0 60px rgba(255, 0, 85, 0.3));
    animation: heroFloat 3s ease-in-out infinite alternate;
}

@keyframes heroFloat {
    0% {
        transform: translate3d(0, -20%, 750px) rotateY(-5deg) translateY(0px);
    }
    100% {
        transform: translate3d(0, -20%, 750px) rotateY(-5deg) translateY(-8px);
    }
}