/* =========================================
   RESET BÁSICO
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   BODY: EL LIENZO PSICODÉLICO
========================================= */
body {
    /* Centrado absoluto */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    
    /* Fondo loco */
    background: repeating-radial-gradient(
        circle at 50% 50%,
        #ff00ff,
        #00ffff 10%,
        #ffff00 20%,
        #ff00ff 30%
    );
    background-size: 200% 200%;
    
    /* Animación infinita del fondo */
    animation: tripBackground 8s linear infinite, wobble 5s ease-in-out infinite alternate;
}

/* =========================================
   CONTENEDOR PRINCIPAL RESPONSIVE
========================================= */
.trip-container {
    /* Ancho adaptable para móviles */
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    margin: 1rem;
    
    /* Efecto "Glassmorphism" deformado */
    background: rgba(0, 0, 0, 0.4);
    border: 5px solid #fff;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    box-shadow: 
        0 0 50px rgba(255, 0, 255, 0.8), 
        inset 0 0 30px rgba(0, 255, 255, 0.8);
    backdrop-filter: blur(5px) contrast(150%);
    
    /* Animación del contenedor */
    animation: morphShape 4s ease-in-out infinite alternate, float 6s infinite ease-in-out;
}

/* =========================================
   TEXTOS Y TITULOS
========================================= */
h1 {
    font-size: clamp(2rem, 8vw, 4rem); /* Escala según la pantalla */
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
    animation: textTrip 1.5s infinite linear;
    mix-blend-mode: overlay;
}

p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: #fff;
    font-weight: bold;
    line-height: 1.5;
    text-shadow: 2px 2px 4px #000;
    margin-bottom: 2rem;
}

/* =========================================
   BOTONES E INTERACCIONES
========================================= */
button {
    padding: 1rem 2rem;
    font-size: clamp(1rem, 5vw, 1.5rem);
    font-weight: 900;
    color: #fff;
    background: #000;
    border: 3px dashed #0ff;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px #0ff;
    transition: all 0.1s;
    animation: pulseButton 2s infinite alternate;
}

button:hover {
    background: #fff;
    color: #000;
    border-style: solid;
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 0 40px #f0f, 0 0 80px #ff0;
}

button:active {
    transform: scale(0.8) rotate(-10deg);
}

/* =========================================
   KEYFRAMES (LA MAGIA)
========================================= */

/* Rota los colores del fondo drásticamente */
@keyframes tripBackground {
    0% { background-position: 0 0; filter: hue-rotate(0deg); }
    100% { background-position: 100vw 100vh; filter: hue-rotate(360deg); }
}

/* Distorsión del contenedor */
@keyframes morphShape {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
}

/* Movimiento de flotación del contenedor */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(-2deg); }
}

/* Sombras de texto epilépticas */
@keyframes textTrip {
    0% { text-shadow: 4px 4px 0px #f0f, -4px -4px 0px #0ff; }
    33% { text-shadow: -4px 4px 0px #0ff, 4px -4px 0px #ff0; }
    66% { text-shadow: 4px -4px 0px #ff0, -4px 4px 0px #f0f; }
    100% { text-shadow: 4px 4px 0px #f0f, -4px -4px 0px #0ff; }
}

/* Pulso del botón */
@keyframes pulseButton {
    0% { filter: hue-rotate(0deg); transform: scale(1); }
    100% { filter: hue-rotate(90deg); transform: scale(1.05); }
}

/* Tambaleo general de la página entera */
@keyframes wobble {
    0% { transform: perspective(500px) rotateX(2deg) rotateY(-2deg); }
    100% { transform: perspective(500px) rotateX(-2deg) rotateY(2deg); }
}

img, video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Optimizaciones para dispositivos móviles */
@media (max-width: 600px) {
  body {
    padding: 1.5rem 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
}