/* RESET Y ESTILOS BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFD166;
    --dark: #2B2D42;
    --light: #F8F9FA;
    --whatsapp: #25D366;
    --whatsapp-hover: #128C7E;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* EFECTOS FLOTANTES */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* CONTENEDOR PRINCIPAL */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 15px 120px; /* Aumentado el padding inferior para móviles */
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Ajuste para pantallas más grandes */
@media (min-width: 768px) {
    .container {
        padding-bottom: 150px; /* Más espacio en pantallas grandes */
    }
}

/* ENCABEZADO */
header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    padding: 15px 0;
}

.badge {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 10px 0;
    line-height: 1.2;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.highlight {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-top: 10px;
}

/* IMAGEN HERO */
.hero-image {
    position: relative;
    margin: 1.5rem 0 1rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 1.5rem;
}

/* Botón flotante de WhatsApp */
.whatsapp-below-image {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
    padding: 0 15px;
}

.whatsapp-below-image > * {
    pointer-events: auto;
}

.whatsapp-below-image .whatsapp-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 300px;
    width: 100%;
    padding: 16px 24px;
    border-radius: 50px;
    background: #25D366;
    color: white;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    font-size: 1.1rem;
    border: none;
    outline: none;
    cursor: pointer;
}

.whatsapp-below-image .whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18, 140, 126, 0.5);
}

.whatsapp-below-image .whatsapp-button i {
    margin-right: 8px;
    font-size: 1.3em;
}

.hero-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover .main-image {
    transform: scale(1.05);
}

.floating-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.floating-tag i {
    color: var(--primary);
}

/* CONTADOR */
.countdown-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 15px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.countdown-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    max-width: 350px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

#countdown-timer span:first-child {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 5px;
}

.time-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    font-weight: 600;
}

.time-separator {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 2px;
    line-height: 1;
    transform: translateY(-5px);
}

/* BENEFICIOS */
.benefits-container {
    margin: 35px 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.benefit-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.benefit-icon {
    background: linear-gradient(45deg, var(--primary), #FF8E53);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.benefit-text {
    font-size: 1rem;
    line-height: 1.5;
    padding-top: 3px;
}

/* BOTÓN WHATSAPP */
.cta-container {
    position: relative;
    margin-top: 40px;
    text-align: center;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(45deg, var(--whatsapp), #5cf487);
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 20px 25px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.whatsapp-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--whatsapp-hover), #4bc87a);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.whatsapp-button:hover::before {
    opacity: 1;
}

.whatsapp-button:active {
    transform: translateY(2px) !important;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3) !important;
}

.whatsapp-button i {
    font-size: 1.4rem;
}

.disclaimer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 15px 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.disclaimer i {
    color: var(--accent);
}

/* PRUEBA SOCIAL */
.social-proof {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.avatars {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.avatars img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid var(--dark);
    margin-left: -12px;
    transition: transform 0.3s ease;
}

.avatars img:first-child {
    margin-left: 0;
}

.avatars img:hover {
    transform: translateY(-5px);
    z-index: 2;
}

.social-text {
    text-align: center;
}

.stars {
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.social-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* BOTÓN FLOTANTE WHATSAPP */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    animation: pulse 2s infinite;
}

.floating-whatsapp a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    color: white;
    border-radius: 50%;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.floating-whatsapp a:hover {
    transform: scale(1.1) rotate(10deg);
    background: var(--whatsapp-hover);
}

/* ELEMENTOS FLOTANTES */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-1, .floating-2, .floating-3, .floating-4 {
    position: absolute;
    font-size: 24px;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.floating-1 { top: 10%; left: 10%; animation-delay: 0s; }
.floating-2 { top: 70%; left: 80%; animation-delay: -5s; animation-duration: 20s; }
.floating-3 { top: 40%; left: 30%; animation-delay: -10s; animation-duration: 25s; }
.floating-4 { top: 80%; left: 50%; animation-delay: -15s; animation-duration: 30s; }

/* ANIMACIONES */
@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* EFECTO NEÓN */
.neon-text {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--accent), 0 0 30px var(--accent);
    animation: neon 1.5s ease-in-out infinite alternate;
}

@keyframes neon {
    from { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--accent), 0 0 30px var(--accent); }
    to { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--accent), 0 0 40px var(--accent); }
}

/* EFECTO DE MAQUINA DE ESCRIBIR */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--accent);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 2px;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent); }
}

/* EFECTO DE ONDA */
.wave {
    animation: wave 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    html { font-size: 15px; }
    
    h1 { font-size: 1.8rem; }
    
    .container {
        padding: 15px 12px 80px;
    }
    
    .whatsapp-button {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .benefit-item {
        padding: 15px;
    }
    
    .benefit-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .floating-whatsapp a {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    
    h1 { font-size: 1.6rem; }
    
    .badge {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .time-block {
        min-width: 50px;
    }
    
    #countdown-timer span:first-child {
        font-size: 1.6rem;
    }
    
    .time-label {
        font-size: 0.6rem;
    }
    
    .time-separator {
        font-size: 1.4rem;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-whatsapp a {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* ANIMACIONES DE SCROLL */
[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
    transform: translateY(20px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* EFECTO DE VIDRIO ESCOSTADO */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* EFECTO DE GRADIENTE ANIMADO */
.gradient-text {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 8s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
