:root {
    --bg-dark: #0a0515;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f8f6fc;
    --text-muted: #a496c9;
    --primary: #9d4edd;
    --primary-glow: rgba(157, 78, 221, 0.5);
    --secondary: #00f5d4;
    --secondary-glow: rgba(0, 245, 212, 0.3);
    --accent: #ff007f;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Soft ambient lighting in the background is now handled by animated blobs */
}

h1, h2, h3, .top-banner, .btn-primary, .cta-note {
    font-family: 'Outfit', sans-serif;
}

.top-banner {
    background: linear-gradient(90deg, #240046 0%, #3c096c 50%, #240046 100%);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px 50px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1.2s ease-out;
}

.main-title {
    font-size: 2.2rem; /* Default for mobile/small screens */
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    text-wrap: balance;
}

@media (min-width: 768px) {
    .main-title {
        font-size: 3.5rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #c77dff 0%, #9d4edd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto;
}

.video-section {
    position: relative;
    margin-bottom: 60px;
    animation: fadeIn 1.5s ease-out;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.glow-effect {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow), rgba(255,0,127,0.2));
    filter: blur(50px);
    z-index: 1;
    border-radius: 30px;
    opacity: 0.8;
}

.cta-section {
    text-align: center;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 50px 30px;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    
    /* Animation settings */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 2s; /* Delayed appearance */
}

/* Subtle border glow on CTA card */
.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cta-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
    color: white;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #7209b7 100%);
    color: white;
    text-decoration: none;
    padding: 20px 50px;
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(157, 78, 221, 0.7);
    background: linear-gradient(135deg, #a55eea 0%, #7209b7 100%);
}

.btn-primary:hover::after {
    opacity: 1;
    transform: scale(1);
    transition: transform 0.6s ease-out;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 35px;
}

.cta-logo {
    width: 180px; /* Tamaño ajustado para caber al lado del botón */
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
    transition: opacity 0.3s ease;
}

.cta-logo:hover {
    opacity: 1;
}

/* Animations defined */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive fixes */
@media (max-width: 600px) {
    .container {
        padding: 5px 15px 30px;
    }
    
    .main-title {
        font-size: 2rem; /* Perfect size for iPhone/Android texts */
    }

    .cta-title {
        font-size: 1.35rem; /* Un pelín más chico en mobile */
        margin-bottom: 25px;
    }

    .btn-primary {
        width: 100%;
        padding: 16px 20px;
        font-size: 1.1rem;
    }
    
    .cta-section {
        padding: 40px 15px;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 25px;
    }
}

/* ------------------------------------------- */
/* Original Microbiome Logo and Backgrounds    */
/* ------------------------------------------- */
.navbar {
    padding: 30px 30px 10px;
    width: 100%;
    display: flex;
    justify-content: center; /* Logo centrado */
    align-items: center;
    z-index: 100;
}

.nav-logo img {
    height: 120px; /* ¡Aumentado GIGANTE! */
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .navbar {
        padding: 20px 15px 5px;
    }
    .nav-logo img {
        height: 75px; /* Gigante pero seguro para no romper mobile */
    }
}

.bg-microbes-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-microbe {
    position: absolute;
    user-select: none;
    opacity: 0.15;
    animation: drift 30s infinite alternate ease-in-out;
}

.microbe-1 {
    top: -50px;
    right: -100px;
    width: 550px;
}

.microbe-2 {
    bottom: 5%;
    left: -120px;
    width: 450px;
    opacity: 0.1;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(40px, -60px) rotate(15deg) scale(1.05); }
    100% { transform: translate(-20px, 40px) rotate(-10deg) scale(0.95); }
}

/* ------------------------------------------- */
/* Countdown Timer Styles                      */
/* ------------------------------------------- */
.countdown-bar {
    background: rgba(20, 10, 35, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(157, 78, 221, 0.4);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 100;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    width: 100%;
}

.countdown-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.4);
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 8px;
    padding: 6px 14px;
    min-width: 65px;
    box-shadow: inset 0 0 15px rgba(157, 78, 221, 0.1);
}

.time-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.time-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    font-weight: 500;
}

.time-separator {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 15px rgba(157, 78, 221, 0.8); }
    50% { opacity: 0.4; text-shadow: none; }
}

@media (max-width: 600px) {
    .countdown-bar {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    .countdown-text {
        font-size: 1rem;
    }
    .time-block {
        min-width: 55px;
        padding: 6px 10px;
    }
    .time-value {
        font-size: 1.3rem;
    }
}
