/* ========================================
   HERO — CIMED 2026
   Navy primary · Teal accents · Gold details
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Fondo principal: gradiente navy oscuro */
.hero-bg-layer {
    position: absolute;
    inset: -20%;
    background: linear-gradient(180deg, #0A2B4E 0%, #0A2B4E 70%, #092744 100%);
}

/* Isotipo decorativo — loto/DNA CIMED (fondo transparente) */
.hero-isotipo {
    position: absolute;
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
    width: min(70vw, 700px);
    height: auto;
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    filter: brightness(1.3) saturate(0.9);
}

/* Glow decorativo con teal */
.hero-bg-layer::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(45, 128, 116, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 8s ease-in-out infinite;
}

/* Glow decorativo secundario con gold */
.hero-bg-layer::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(193, 162, 122, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 12s ease-in-out infinite reverse;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Floating particles (teal tint) */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px; height: 6px;
    background: var(--teal-light);
    border-radius: 50%;
    opacity: 0.12;
    animation: floatParticle 25s infinite;
}

.particle:nth-child(1) { top: 15%; left: 10%; width: 4px; height: 4px; animation-delay: 0s; }
.particle:nth-child(2) { top: 25%; left: 70%; width: 8px; height: 8px; animation-delay: 4s; opacity: 0.08; }
.particle:nth-child(3) { top: 55%; left: 25%; width: 5px; height: 5px; animation-delay: 7s; }
.particle:nth-child(4) { top: 75%; left: 80%; width: 3px; height: 3px; animation-delay: 10s; }
.particle:nth-child(5) { top: 40%; left: 50%; width: 6px; height: 6px; animation-delay: 13s; }
.particle:nth-child(6) { top: 10%; left: 85%; width: 4px; height: 4px; animation-delay: 16s; }
.particle:nth-child(7) { top: 85%; left: 15%; width: 5px; height: 5px; animation-delay: 19s; }
.particle:nth-child(8) { top: 50%; left: 90%; width: 3px; height: 3px; animation-delay: 22s; }
.particle:nth-child(9) { top: 20%; left: 40%; width: 4px; height: 4px; animation-delay: 2s; }
.particle:nth-child(10) { top: 70%; left: 55%; width: 5px; height: 5px; animation-delay: 9s; opacity: 0.09; }
.particle:nth-child(11) { top: 35%; left: 8%; width: 3px; height: 3px; animation-delay: 14s; }
.particle:nth-child(12) { top: 65%; left: 92%; width: 6px; height: 6px; animation-delay: 20s; opacity: 0.07; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.12; }
    25% { transform: translateY(-30px) translateX(15px) scale(1.3); opacity: 0.25; }
    50% { transform: translateY(-60px) translateX(-10px) scale(0.8); opacity: 0.15; }
    75% { transform: translateY(-20px) translateX(20px) scale(1.1); opacity: 0.2; }
}

/* Hero Content */
.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 950px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

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

.hero-logo { margin-bottom: 0.8rem; }
.hero-logo-new { margin-bottom: 0.5rem; }

.hero-logo img {
    height: 95px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: var(--transition);
}

.hero-logo img + img { height: 38px; }
.hero-logo img + img { opacity: 0.7; }

.hero-logo:hover img { transform: scale(1.05); opacity: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(45, 128, 116, 0.15);
    border: 1px solid rgba(45, 128, 116, 0.3);
    color: var(--teal-light);
    padding: 0.65rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.95;
    margin-bottom: 0.8rem;
}

.hero-title .highlight {
    font-family: 'Libre Bodoni', serif;
    font-size: clamp(3.2rem, 7vw, 6rem);
    font-weight: 800;
    color: var(--teal);
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-title-mid {
    font-family: 'Libre Bodoni', serif;
    font-size: clamp(1.6rem, 3.5vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

.hero-title-main {
    font-family: 'Libre Bodoni', serif;
    font-size: clamp(1.8rem, 4vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gold-light);
    font-weight: 500;
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-date-line {
    color: var(--gold-light);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.hero-date-line span { display: inline-block; margin: 0 0.5rem; }

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.countdown-item {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 1rem 1.8rem;
    min-width: 100px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    opacity: 0.5;
}

.countdown-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    border-color: var(--teal);
}

.countdown-number {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    display: block;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.45);
    margin-top: 0.4rem;
    display: block;
}

/* Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--white);
    box-shadow: 0 4px 25px rgba(45, 128, 116, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(45, 128, 116, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    border-color: var(--teal-light);
    background: rgba(45, 128, 116, 0.1);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 4px 25px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(37,211,102,0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    animation: bounceScroll 2.5s infinite;
    z-index: 2;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--teal-light);
    border-radius: 3px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes bounceScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes shimmerDate {
    0% { opacity: 0.7; }
    50% { opacity: 1; text-shadow: 0 0 8px var(--gold), 0 0 20px rgba(193,162,122,0.3); }
    100% { opacity: 0.7; }
}
footer .particle {
    background: var(--gold-light);
    opacity: 0.08;
}
footer .particle:nth-child(2),
footer .particle:nth-child(6) {
    opacity: 0.05;
}
