/* =========================================================================
   SISTEMA DE ESTILOS PREMIUM - CONGRESO IA GEOCIENCIAS (TEMA CLARO #FEFEFE)
   ========================================================================= */
:root {
    --bg-main: #FEFEFE; /* principal background (white) */
    --bg-surface: #ffffff;
    --bg-surface-hover: #f8fafc;
    --border-color: rgba(95, 95, 93, 0.12); /* grey #5f5f5d */
    
    /* Official Color Palette */
    --c-green: #66a130;
    --c-orange: #df601d;
    --c-blue: #015a92;
    --c-grey: #5f5f5d;
    --c-brown: #612409;
    --c-yellow: #f9aa15;

    /* Semantic Mappings */
    --primary: var(--c-blue);
    --primary-glow: rgba(1, 90, 146, 0.12);
    --accent: var(--c-orange);
    --accent-glow: rgba(223, 96, 29, 0.12);
    
    /* Text colors (high accessibility contrast) */
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #334155; /* Slate 700 */
    --text-muted: var(--c-grey); /* Grey 500 */
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 4px 12px rgba(95, 95, 93, 0.05);
    --shadow-md: 0 10px 25px rgba(95, 95, 93, 0.08);
    --shadow-lg: 0 20px 40px rgba(95, 95, 93, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Background Soft Glow Orbs */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
}

#orb1 {
    width: 500px;
    height: 500px;
    background: var(--c-blue);
    top: -150px;
    right: -100px;
}

#orb2 {
    width: 600px;
    height: 600px;
    background: var(--c-orange);
    bottom: -200px;
    left: -150px;
}

/* Institutional Bar */
.inst-bar {
    background: #00223b;
    border-bottom: 3px solid var(--c-yellow);
    padding: 0.8rem 0;
    font-size: 0.85rem;
}

.inst-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inst-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.inst-logo img {
    height: 32px;
}

.inst-text strong {
    display: block;
    font-size: 0.85rem;
    color: #ffffff;
}

.inst-text span {
    display: block;
    font-size: 0.75rem;
    color: #cbd5e1;
}

.inst-right {
    color: #ffffff;
    font-weight: 600;
}

/* Sticky Header & Navbar */
.navbar {
    background: rgba(254, 254, 254, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    padding: 1.2rem 0;
}

.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    background: rgba(254, 254, 254, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    height: 40px;
}

.logo-title strong {
    display: block;
    font-size: 1.15rem;
    color: var(--c-blue);
    font-weight: 800;
}

.logo-title small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    font-weight: 600;
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-menu a i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--c-blue);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background: var(--c-blue);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 6rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(102, 161, 48, 0.1);
    color: var(--c-green);
    border: 1px solid rgba(102, 161, 48, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 900;
    color: var(--c-brown);
    margin-bottom: 1.2rem;
}

.hero-motto {
    font-size: 1.3rem;
    color: var(--c-orange);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.info-card i {
    font-size: 1.8rem;
    color: var(--c-blue);
}

.info-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.info-card span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}

.btn-large {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--c-blue);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: #01436e;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(1, 90, 146, 0.25);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--c-blue);
    border: 2px solid var(--c-blue);
}

.btn-secondary:hover {
    background: rgba(1, 90, 146, 0.05);
    transform: translateY(-2px);
}

/* Visual Card & Countdown */
.ai-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.ai-image {
    height: 450px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ffffff;
}

.ai-info {
    padding: 2rem;
    background: #ffffff;
    text-align: center;
}

.strunz {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--c-orange);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1.2rem;
}

/* Countdown Clock */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.countdown-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    min-width: 70px;
    text-align: center;
}

.countdown-item span {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--c-brown);
}

.countdown-item small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

/* Stats Section */
.stats-section {
    background: #f1f5f9;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.stat-item i {
    font-size: 2.4rem;
    color: var(--c-blue);
    background: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.stat-item h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--c-brown);
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Section Title */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4.5rem;
}

.section-title h2 {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--c-brown);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Timeline Layout */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    width: 4px;
    height: 100%;
    background: var(--border-color);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -41px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 4px solid var(--c-blue);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:nth-child(2)::before {
    border-color: var(--c-orange);
}

.timeline-item:nth-child(3)::before {
    border-color: var(--c-green);
}

.timeline-date {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: -130px;
    top: 0;
    width: 70px;
    text-align: right;
}

.timeline-date .day {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--c-brown);
    line-height: 1;
}

.timeline-date .month {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.timeline-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(95, 95, 93, 0.25);
}

.timeline-tag {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.tag-blue { background: rgba(1, 90, 146, 0.1); color: var(--c-blue); }
.tag-orange { background: rgba(223, 96, 29, 0.1); color: var(--c-orange); }
.tag-green { background: rgba(102, 161, 48, 0.1); color: var(--c-green); }

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--c-blue);
    font-weight: 800;
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Activity rows inside timeline */
.activity-list {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.activity-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.activity-row:last-child {
    margin-bottom: 0;
}

.activity-time {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--c-orange);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.activity-row strong {
    font-size: 0.95rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
}

.activity-row p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Courses Section */
.services-section {
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.course-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 2.2rem 1.8rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-blue);
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.course-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
}

.course-badge {
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-blue { background: rgba(1, 90, 146, 0.08); color: var(--c-blue); }
.badge-green { background: rgba(102, 161, 48, 0.08); color: var(--c-green); }
.badge-orange { background: rgba(223, 96, 29, 0.08); color: var(--c-orange); }
.course-green { font-size: 0.7rem; font-weight: 700; color: var(--c-green); }

.course-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    color: var(--c-brown);
}

.course-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Committee Section */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.member-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.member-card:hover {
    box-shadow: var(--shadow-md);
}

.member-card.highlight-card {
    border-top: 4px solid var(--c-yellow);
    text-align: center;
}

.member-icon {
    font-size: 2rem;
    color: var(--c-yellow);
    margin-bottom: 0.8rem;
}

.member-card h3 {
    font-size: 1.2rem;
    color: var(--c-brown);
    margin-bottom: 0.3rem;
}

.member-role {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--c-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.member-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.member-list {
    list-style: none;
    padding-left: 0;
    font-size: 0.92rem;
}

.member-list li {
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-list li i {
    color: var(--c-grey);
    font-size: 0.85rem;
}

/* Call to Action Section */
.cta-section {
    padding: 6rem 0;
}

.cta-box {
    background: linear-gradient(135deg, #00223b, #01436e);
    border-radius: var(--radius-lg);
    padding: 4.5rem 3rem;
    text-align: center;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--c-yellow);
}

.cta-box h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-box p {
    font-size: 1.1rem;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-social p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 0.8rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.4rem;
    transition: var(--transition);
    opacity: 0.8;
}

.social-icons a:hover {
    color: var(--c-yellow);
    opacity: 1;
    transform: translateY(-2px);
}

/* Footer - Light Slate styling */
.footer {
    background: #f1f5f9;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer h3 {
    font-size: 1.35rem;
    color: var(--c-blue);
    font-weight: 900;
}

.footer-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 380px;
}

.footer h4 {
    margin-bottom: 1.4rem;
    color: var(--c-brown);
    font-size: 1.05rem;
    font-weight: 700;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.7rem;
}

.footer ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
    font-weight: 600;
}

.footer ul li a:hover {
    color: var(--c-blue);
}

.footer-contact-col p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-col p i {
    color: var(--c-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 3rem;
        padding-bottom: 4rem;
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-date {
        position: relative;
        left: 0;
        width: 100%;
        text-align: left;
        margin-bottom: 0.8rem;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }
    
    .timeline-date .day {
        font-size: 1.8rem;
    }
    
    .timeline::before {
        left: 5px;
    }
    
    .timeline-item::before {
        left: -20px;
        top: 38px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .ai-image {
        height: 320px;
    }
    
    /* Mobile Toggle Menu active states */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        padding: 3rem 1.5rem;
        gap: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 105;
        border-top: 1px solid var(--border-color);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
    }
    
    .nav-cta {
        width: 100%;
        max-width: 250px;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .cta-box {
        padding: 3rem 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
