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

/* --- Shared --- */
.section-padding { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.section-tag {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: 'Libre Bodoni', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy);
    line-height: 1.2;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    line-height: 1.8;
}

/* --- Event Section --- */
#evento { background: linear-gradient(180deg, #092744 0%, #1a4a5e 5%, #7aa8ae 18%, #c5dbdb 40%, #e8f3f2 65%, #ffffff 100%); }

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.event-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.event-card:hover::before { transform: scaleX(1); }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(45, 128, 116, 0.2); }
.event-card .icon { font-size: 2.5rem; margin-bottom: 0.8rem; display: block; }
.event-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--navy); }
.event-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* --- About Section --- */
#acerca { background: rgba(45, 128, 116, 0.04); position: relative; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 2rem; }
.about-text p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; }

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}

.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }

/* --- Two Tracks --- */
#salas { background: var(--white); }

.tracks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.track-card {
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.track-card.medicos {
    background: linear-gradient(135deg, var(--navy), #0d3855);
    color: var(--white);
}

.track-card.cosmiatras {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--white);
}

.track-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.track-card p { opacity: 0.85; font-size: 0.95rem; line-height: 1.7; }
.track-card .track-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.track-card .track-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.15);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
    letter-spacing: 1px;
}

/* --- Hotel / Location --- */
#lugar { background: var(--bg-light); }

.hotel-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.hotel-details h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.hotel-features { list-style: none; margin-top: 1rem; }
.hotel-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    color: var(--text-muted);
}
.hotel-features li strong { color: var(--navy); }

.hotel-map {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.hotel-map iframe {
    width: 100%;
    height: 280px;
    border: none;
    border-radius: var(--radius-sm);
}

/* --- Gallery --- */
#galeria { background: var(--white); }

.photo-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 0.6rem;
    margin-top: 2rem;
}

.photo-wall .photo-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.photo-wall .photo-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 0.6s ease; }
.photo-wall .photo-item:hover { overflow: visible; }
.photo-wall .photo-item:hover { box-shadow: var(--shadow-hover); z-index: 2; }
.photo-wall .photo-item:nth-child(1) { grid-row: span 2; grid-column: span 2; }
.photo-wall .photo-item:nth-child(6) { grid-column: span 2; }
.photo-wall .photo-item:nth-child(9) { grid-column: span 2; grid-row: span 2; }

.photo-wall-rest {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.photo-wall-rest .photo-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.photo-wall-rest .photo-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 0.6s ease; }
.photo-wall-rest .photo-item:hover { overflow: visible; }

.gallery-toggle { text-align: center; margin-top: 1.5rem; }

.btn-ghost {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--teal);
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-ghost:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }

/* Gallery stat chips */
.gallery-stat-chip {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid rgba(45, 128, 116, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--navy);
}

/* --- CTA Section --- */
#registro {
    padding: 5rem 2rem;
    background: var(--white);
    text-align: center;
}

#registro::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--teal-light), var(--gold-light));
}

#registro .cta-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, var(--bg-light), var(--white));
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

#registro .cta-box h2 {
    font-family: 'Libre Bodoni', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
    color: var(--navy);
}

#registro .cta-box p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1rem; }

.whatsapp-numbers {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.whatsapp-number {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(37,211,102,0.1);
    border: 1px solid rgba(37,211,102,0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #1da851;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.whatsapp-number:hover { background: var(--whatsapp); color: var(--white); }

/* --- CTA override buttons --- */
#registro .btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    box-shadow: 0 4px 25px rgba(45, 128, 116, 0.35);
}

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

#registro .btn-outline {
    color: var(--gold);
    border-color: var(--gold);
}

#registro .btn-outline:hover {
    background: var(--teal);
    color: var(--white) !important;
}

/* --- Footer --- */
footer {
    background: var(--navy);
    color: rgba(255,255,255,0.4);
    padding: 3rem 2rem;
    text-align: center;
}

footer .container { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
footer .footer-logo img { height: 40px; filter: brightness(0) invert(1); opacity: 0.35; }
footer .footer-info { font-size: 0.85rem; line-height: 1.8; }
footer .footer-info strong { color: rgba(255,255,255,0.55); }
footer .footer-social { display: flex; gap: 1.2rem; margin-top: 0.3rem; }
footer .footer-social a { color: rgba(255,255,255,0.35); text-decoration: none; font-size: 0.8rem; transition: var(--transition); }
footer .footer-social a:hover { color: var(--teal-light); }
footer .footer-divider { width: 60px; height: 1px; background: rgba(255,255,255,0.1); margin: 0.3rem 0; }

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(10, 43, 78, 0.95);
    padding: 2rem;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(16px);
}

.modal.open { display: flex; }

.modal img {
    max-width: 92vw;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 80px rgba(10, 43, 78, 0.6);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 100001;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.6;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover { opacity: 1; color: var(--teal-light); transform: rotate(90deg); }

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100001;
    color: rgba(255,255,255,0.4);
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 1rem;
    transition: var(--transition);
}

.modal-nav:hover { color: var(--teal-light); }
.modal-prev { left: 32px; }
.modal-next { right: 32px; }

.modal-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}


/* ===== GALLERY BLUR ON HOVER ===== */
.photo-wall:has(.photo-item:hover) .photo-item:not(:hover) {
    filter: blur(2px) brightness(0.85);
    opacity: 0.75;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.photo-wall:has(.photo-item:hover) .photo-item:hover {
    filter: none;
    opacity: 1;
    z-index: 20;
}
/* ===== BODY FADE-IN ===== */
@keyframes fadeInBody {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ===== WHATSAPP FLOATING ===== */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    z-index: 9999;
    transition: transform 0.3s;
    text-decoration: none;
}
.wa-float:hover {
    transform: scale(1.08);
}

/* ===== TRANSICIÓN HERO → EVENTO ===== */
#evento {
    position: relative;
    background: transparent;
}

#evento .container {
    position: relative;
    z-index: 1;
}

/* ===== CHECKLIST QUÉ INCLUYE ===== */
.include-checklist {
    max-width: 640px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(45, 128, 116, 0.04);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
}
.check-item:hover {
    background: rgba(45, 128, 116, 0.09);
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(45, 128, 116, 0.06);
}
.check-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(45, 128, 116, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--teal);
    font-size: 1.15rem;
    transition: all 0.3s;
}
.check-item {
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.check-item.from-left {
    transform: translateX(-40px);
}
.check-item.from-right {
    transform: translateX(40px);
}
.check-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.check-item:hover .check-icon {
    background: var(--teal);
    color: var(--white);
    transform: scale(1.05);
}
.check-text h4 {
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 0.2rem;
    font-weight: 600;
}
.check-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 768px) {
    .include-checklist { max-width: 100%; }
    .check-item { padding: 0.8rem 1rem; }
}

/* ===== NAV STICKY ===== */
.nav-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 2rem;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.nav-sticky.scrolled {
    background: rgba(10, 43, 78, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}
.nav-logo {
    font-family: 'Libre Bodoni', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    opacity: 0.9;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--teal-light); }
.nav-links .nav-cta {
    background: var(--teal);
    color: var(--white);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--teal-dark); color: var(--white); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.3s;
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-sticky { padding: 0 1rem; }
}

/* ===== SPEAKERS GRID ===== */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ===== COUNTER ANIMATION ===== */
.stat-number {
    font-variant-numeric: tabular-nums;
}


/* ===== DOS SALAS CARDS SEPARATION ===== */
.track-card {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.track-card.cosmiatras {
    transform: translateX(60px);
}
.track-card.visible {
    opacity: 1;
    transform: translateX(0);
}


/* ===== GALLERY STAGGERED REVEAL ===== */
.photo-item {
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.photo-item.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ===== ACERCA COUNTERS ===== */
.about-stats .stat-number {
    opacity: 1;
    transform: translateY(0);
}
