@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

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


    body {
      font-family: 'Arial', sans-serif;
      text-align: center;
      color: rgba(255, 241, 241, 0.918);
      height: 100vh;
      overflow: hidden;
      position: relative;
      background: #000;
    }


/* === LANDING PAGE === */

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}
.landing-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    cursor: pointer;
   /* background: linear-gradient(135deg, #92400e, #ea580c, #dc2626);*/
}

/*.animated-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #92400e, #ea580c, #dc2626);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}*/



@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.steam-effects {
    position: absolute;
    inset: 0;
}

.steam {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: steamRise 4s ease-in-out infinite;
}

.steam-1 { top: 25%; left: 25%; animation-delay: 0s; }
.steam-2 { top: 33%; right: 33%; animation-delay: 1s; }
.steam-3 { bottom: 25%; left: 33%; animation-delay: 2s; }

@keyframes steamRise {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.1; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 0.3; }
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.171);
    z-index: 1;
}

.main-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.title-container {
    margin-bottom: 4rem;
    animation: slideInUp 2s ease-out;
}

.main-title {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.word {
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6rem);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: wordAppear 1.5s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.word-1 {
    background: linear-gradient(45deg, #fbbf24, #fde047, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.2s;
}

.word-2 {
    background: linear-gradient(45deg, #fb923c, #ef4444, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.5s;
}

.word-3 {
    background: linear-gradient(45deg, #fde047, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.8s;
}

@keyframes wordAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle-container {
    margin-top: 2rem;
    animation: fadeIn 2s ease-out 1s both;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.divider {
    width: 8rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    margin: 0 auto;
    animation: pulse 2s ease-in-out infinite;
}

.interaction-indicator {
    animation: fadeIn 2s ease-out 1.5s both;
}

.coffee-cup-container {
    position: relative;
    margin-bottom: 2rem;
}

.coffee-cup {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto;
    animation: bounce 2s ease-in-out infinite;
}

.cup-steam {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.vapor {
    position: absolute;
    width: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    animation: vaporRise 2s ease-in-out infinite;
}

.vapor-1 { height: 2rem; left: -8px; animation-delay: 0s; }
.vapor-2 { height: 1.5rem; left: 0px; animation-delay: 0.3s; }
.vapor-3 { height: 1rem; left: 8px; animation-delay: 0.6s; }

@keyframes vaporRise {
    0% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); }
}

.instruction-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: dotBounce 1.5s ease-in-out infinite;
}

.dot-2 { animation-delay: 0.2s; }
.dot-3 { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(1); }
    40% { transform: scale(1.2); }
}




.floating-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #fbbf24, #fb923c);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 4s ease-in-out infinite;
}

.particle-1 { top: 10%; left: 15%; animation-delay: 0s; }
.particle-2 { top: 25%; right: 20%; animation-delay: 0.3s; }
.particle-3 { top: 40%; left: 25%; animation-delay: 0.6s; }
.particle-4 { top: 55%; right: 30%; animation-delay: 0.9s; }
.particle-5 { top: 70%; left: 35%; animation-delay: 1.2s; }
.particle-6 { top: 85%; right: 25%; animation-delay: 1.5s; }
.particle-7 { top: 15%; left: 70%; animation-delay: 1.8s; }
.particle-8 { top: 35%; right: 15%; animation-delay: 2.1s; }
.particle-9 { top: 50%; left: 80%; animation-delay: 2.4s; }
.particle-10 { top: 65%; right: 35%; animation-delay: 2.7s; }
.particle-11 { top: 80%; left: 15%; animation-delay: 3s; }
.particle-12 { top: 30%; left: 50%; animation-delay: 3.3s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
    50% { transform: translateY(-30px) scale(1.1); opacity: 0.8; }
}


 /* Pantalla de selección */

 /* === Control de pantallas === */
.pantalla-seleccion,
.pantalla-confirmacion,
.pantalla-pago,
.pantalla-publicidad,
.pantalla-dividida,
.pantalla-final {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.pantalla-visible {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}
  .pantalla-seleccion {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
     font-family: 'Arial', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
  }

  /* Animaciones */
        @keyframes slideInFromTop {
            from { opacity: 0; transform: translateY(-50px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes slideInFromLeft {
            from { opacity: 0; transform: translateX(-50px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        @keyframes slideInFromRight {
            from { opacity: 0; transform: translateX(50px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }
        
        @keyframes bounce {
            0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
            40%, 43% { transform: translate3d(0,-8px,0); }
            70% { transform: translate3d(0,-4px,0); }
            90% { transform: translate3d(0,-2px,0); }
        }
        

  /* Logo */
  .logo-img {
    max-width: 150px;
    height: auto;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
  }
  

  /* Título con el mismo estilo que la landing page */
        .titulo-principal {
            font-size: clamp(2.5rem, 6vw, 4rem);
            font-weight: 900;
            text-align: center;
            margin-bottom: 3rem;
            background: linear-gradient(45deg, #8B4513, #D2691E, #CD853F);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            animation: slideInFromTop 1.5s ease-out, pulse 3s ease-in-out infinite;
        }


        /* Instrucciones */
        .instruccion {
            text-align: center;
            color: #8B4513;
            font-size: 1rem;
            font-weight: 500;
            margin-top: 2rem;
            padding: 1rem 2rem;
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(5px);
            border-radius: 2rem;
            border: 1px solid rgba(139, 69, 19, 0.2);
            max-width: 600px;
            animation: fadeIn 2s ease-out 1s both;
        }
        
        /* Elementos decorativos */
        .decorative-elements {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 1;
        }
        
        .decorative-coffee {
            position: absolute;
            font-size: 2rem;
            color: rgba(139, 69, 19, 0.2);
            animation: pulse 4s ease-in-out infinite;
        }
        
        .decorative-coffee:nth-child(1) {
            top: 10%;
            left: 10%;
            transform: rotate(15deg);
        }
        
        .decorative-coffee:nth-child(2) {
            top: 15%;
            right: 15%;
            transform: rotate(-20deg);
            animation-delay: 1s;
        }
        
        .decorative-coffee:nth-child(3) {
            bottom: 15%;
            left: 15%;
            transform: rotate(25deg);
            animation-delay: 2s;
        }
        
        .decorative-coffee:nth-child(4) {
            bottom: 10%;
            right: 10%;
            transform: rotate(-15deg);
            animation-delay: 3s;
        }


        /* Estilos para la órbita 3D - MEJORADOS */
    .orbita-container {
      width: 100%;
      height: 60vh;
      display: flex;
      justify-content: center;
      align-items: center;
      perspective: 1200px;
      margin: 2rem auto 2ch;
      cursor: grab;
      position: relative;
      overflow: visible;
      transition: all 0.3s ease;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }

    .orbita-container:active {
      cursor: grabbing;
    }

    

    .orbita-3d {
      position: relative;
      transform-style: preserve-3d;
      transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
      will-change: transform;
      display: flex;
      justify-content: center;
      align-items: center;
      backface-visibility: hidden;
    }

    .orbita-3d.arrastrando {
      transition: none !important;
    }

    .producto-orbita {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      will-change: transform, opacity, filter;
      opacity: 0.6;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      filter: blur(1px);
      z-index: 1;
      backface-visibility: visible;
      transform-style: preserve-3d;
      
    }

    .producto-orbita.activo {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1.2);
      filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.9)) blur(0);
     /* z-index: 10;
      transition: all 0.4s ease;*/
    }

    .producto-orbita.activo .producto-imagen {
      border: 4px solid #D4AF37;
      box-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
      animation: pulse 2s infinite;
      transform: scale(1.05);
      transition: transform 0.3s ease-out;
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.7); }
      50% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.9); }
      100% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.7); }
    }

    .producto-imagen {
      border-radius: 50%;
      overflow: hidden;
      margin-bottom: 0.8rem;
      border: 4px solid rgba(212, 175, 55, 0.4);
      background: linear-gradient(135deg, #3A2512, #5C3C1C);
      box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.5);
      transition: all 0.4s ease;
    }

    .producto-imagen img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .producto-orbita:hover .producto-imagen img {
      transform: scale(1.08);
    }

    .producto-nombre {
      font-family: 'Montserrat', 'Arial', sans-serif;
      font-size: 1.1rem;
      color: #f8ecc9;
      text-align: center;
      font-weight: 600;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
      max-width: 140px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      padding: 0.3rem 0.8rem;
      background: rgba(45, 27, 9, 0.7);
      border-radius: 15px;
      transition: all 0.3s ease;
    }

    .producto-orbita.activo .producto-nombre {
      color: #FFD700;
      background: rgba(74, 49, 28, 0.9);
      transform: translateY(5px);
    }

    .producto-orbita:not(.activo) {
      filter: blur(3px) brightness(0.6);
      /*transition: all 0.4s ease;*/
    }

    /* Indicadores */
    .orbita-indicadores {
      display: flex;
      justify-content: center;
      gap: 0.6rem;
      margin-top: 1.5rem;
      padding: 0.5rem;
      background: rgba(45, 27, 9, 0.5);
      border-radius: 20px;
    }

    .indicador {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(212, 175, 55, 0.3);
      cursor: pointer;
      transition: all 0.3s ease;
      border: 1px solid rgba(212, 175, 55, 0.2);
    }

    .indicador.activo {
      background: #D4AF37;
      transform: scale(1.4);
      box-shadow: 0 0 12px rgba(212, 175, 55, 0.9);
    }

    .indicador:hover {
      background: rgba(212, 175, 55, 0.6);
      transform: scale(1.2);
    }

    /* Mejoras responsivas para la órbita */
    @media (max-width: 1440px) {
      .orbita-container {
        height: 60vh;
        perspective: 1800px;
      }
    }

    @media (max-width: 1024px) {
      .orbita-container {
        height: 60vh;
        perspective: 1500px;
      }
    }

    @media (max-width: 768px) {
      .orbita-container {
        height: 60vh;
        perspective: 700px;
        margin: 0.5rem auto 1.5rem;
      }
      
      .producto-nombre {
        font-size: 0.9rem;
        max-width: 120px;
      }
    }

    @media (max-width: 480px) {
      .orbita-container {
        height: 60vh;
        perspective: 600px;
        margin: 0.5rem auto 1rem;
      }
      
      .producto-nombre {
        font-size: 0.8rem;
        max-width: 100px;
        padding: 0.2rem 0.5rem;
      }
      
      .orbita-indicadores {
        margin-top: 1rem;
      }
      
      .indicador {
        width: 8px;
        height: 8px;
      }
    }

    /* Para dispositivos muy pequeños */
    @media (max-width: 320px) {
      .orbita-container {
        height: 55vh;
        perspective: 500px;
      }
      
      .producto-nombre {
        font-size: 0.7rem;
        max-width: 80px;
      }
    }

    /* Ajustar instrucción para móviles */
    @media (max-width: 768px) {
      .instruccion {
        font-size: 10px;
        padding: 0 1rem;
      }
    }

    /* Animación de carga suave */
    @keyframes orbitAppear {
      from {
        opacity: 0;
        transform: scale(0.8) rotateY(30deg);
      }
      to {
        opacity: 1;
        transform: scale(1) rotateY(0);
      }
    }

    .orbita-3d {
      animation: orbitAppear 0.8s ease-out;
    }

    /* Mejoras de rendimiento para transformaciones 3D */
    .orbita-3d {
      transform-style: preserve-3d;
      backface-visibility: hidden;
    }

    .producto-orbita {
      will-change: transform, opacity;
      backface-visibility: hidden;
    }


/* === Pantalla de confirmación === */
.pantalla-seleccion {
    background: linear-gradient(135deg, #f5f5dc, #deb887, #deb887);
}
.pantalla-confirmacion {
    background: linear-gradient(135deg, #f5f5dc, #deb887, #deb887);
}

/* === Pantalla de pago === */
.pantalla-pago {
    background: linear-gradient(135deg, #f5f5dc, #deb887, #deb887);
}

/* === Pantalla de publicidad === */
.pantalla-publicidad {
    background: linear-gradient(135deg, #f5f5dc, #deb887, #deb887);
}

/* === Pantalla dividida === */
.pantalla-dividida {
    display: flex;
    background: #000;
}

.pantalla-dividida .video-container {
    width: 70%;
    height: 100%;
    position: relative;
}

.pantalla-dividida .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pantalla-dividida .mensaje-container {
    width: 30%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.pantalla-dividida .mensaje-container h2 {
    color: #ffcc00;
    margin-bottom: 1rem;
}

.pantalla-dividida .mensaje-container p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

/* === Pantalla final === */
.pantalla-final {
    background: linear-gradient(135deg, #f0fff0, #ccffcc, #99ff99);
}

/* === Estilo para botones === */
.btn-confirmar, .btn-cancelar {
    padding: 1rem 2rem;
    margin: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirmar {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    color: white;
}

.btn-confirmar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-cancelar {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
}

.btn-cancelar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* === Estilo para producto en confirmación === */
.producto-confirmacion {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
    max-width: 500px;
}

.producto-confirmacion img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.producto-confirmacion h2 {
    margin: 1rem 0;
    font-size: 2rem;
}

.producto-confirmacion p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

/* === Iconos en pantalla de pago === */
.pantalla-pago .iconos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

/* === Estilo para el precio en pantalla de pago === */
.pantalla-pago #precio-pago {
    font-size: 3rem;
    font-weight: 700;
    color: #1d4ed8;
    margin: 1rem 0;
}
/* === ANIMATIONS === */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-30px); }
    70% { transform: translateY(-15px); }
    90% { transform: translateY(-4px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


/* === Estilos para el logo en pantallas específicas === */
.pantalla-confirmacion .logo-img,
.pantalla-pago .logo-img,
.pantalla-publicidad .logo-img,
.pantalla-final .logo-img {
    position: absolute;
    top: 1rem;
    left: 1rem;
    max-width: 120px;
    height: auto;
    z-index: 100;
    animation: fadeIn 1s ease-out;
}

/* Responsive para pantallas más pequeñas */
@media (max-width: 768px) {
    .pantalla-confirmacion .logo-img,
    .pantalla-pago .logo-img,
    .pantalla-publicidad .logo-img,
    .pantalla-final .logo-img {
        max-width: 100px;
        top: 0.8rem;
        left: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pantalla-confirmacion .logo-img,
    .pantalla-pago .logo-img,
    .pantalla-publicidad .logo-img,
    .pantalla-final .logo-img {
        max-width: 80px;
        top: 0.5rem;
        left: 0.5rem;
    }
}

/* Ajustar el contenido principal para no quedar detrás del logo */
.pantalla-confirmacion > *:not(.logo-img),
.pantalla-pago > *:not(.logo-img),
.pantalla-publicidad > *:not(.logo-img),
.pantalla-final > *:not(.logo-img) {
    position: relative;
    z-index: 10;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .spacer {
        display: none;
    }
    
    .coffee-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .selected-coffee {
        flex-direction: column;
        text-align: center;
    }
    
    .selected-info {
        text-align: center;
    }
    
    .word {
        font-size: clamp(2rem, 12vw, 4rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .coffee-grid {
        grid-template-columns: 1fr;
    }
}
