/* ==========================================================================
   Comunidad Organizada - Core Design System & Stylesheet
   Estética Bonaerense & Editorial Premium | Esteban Echeverría
   ========================================================================== */

/* Modern CSS Reset & Fonts */
:root {
    /* Paleta Institucional Bonaerense */
    --primary-h: 210;
    --primary-s: 100%;
    --primary-l: 27%;
    --primary: #003F87;           /* Azul Peronista Profundo */
    --primary-hover: #002d63;     /* Azul más oscuro */
    --primary-light: #e8f2fc;     /* Celeste cristalino */
    --primary-glow: rgba(0, 63, 135, 0.25);

    --secondary-h: 202;
    --secondary-s: 100%;
    --secondary-l: 43%;
    --secondary: #009DDB;         /* Celeste Bonaerense */
    --secondary-hover: #0084ba;
    --secondary-light: #e6f6fe;

    --accent-gold: #F5C518;       /* Dorado Táctico */
    --accent-gold-hover: #d4a800;

    --bg-dark: #001633;           /* Azul Noche Abisal */
    --bg-darker: #000c1e;         /* Fondo Noche Profundo */
    --bg-light: #f6fafe;          /* Fondo suave con tinte de frescura */

    --card-light: #ffffff;
    --card-border: rgba(0, 63, 135, 0.08);

    --text-dark: #07172f;         /* Texto Azul Noche */
    --text-muted: #3b5278;        /* Azul grisáceo legible */
    --text-light: #ffffff;

    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --font-display: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    --font-sans: 'Inter', sans-serif;

    /* Sombras multicapa de alta definición */
    --shadow-subtle: 0 4px 12px -2px rgba(0, 63, 135, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 16px 36px -10px rgba(0, 63, 135, 0.09), 0 2px 8px -2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 28px 56px -14px rgba(0, 63, 135, 0.18), 0 6px 16px -2px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 12px 30px rgba(0, 157, 219, 0.35);

    /* Glassmorphism & Inner Glow */
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --inner-glow: inset 0 1px 0 0 rgba(255, 255, 255, 0.85);
}

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

svg {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Header & Navigation Bar
   ========================================================================== */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 63, 135, 0.08);
    transition: var(--transition-smooth);
}

.header-nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px -10px rgba(0, 63, 135, 0.12);
    border-bottom-color: rgba(0, 157, 219, 0.15);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

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

.nav-logo-img {
    height: 56px;
    width: auto;
    max-width: 220px;
    display: block !important;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 63, 135, 0.15));
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14.5px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 4px;
    font-family: var(--font-display);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white !important;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 63, 135, 0.25), var(--inner-glow);
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.6s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 63, 135, 0.38);
}

.nav-btn-cta {
    background: linear-gradient(135deg, #009DDB 0%, #003F87 100%);
    box-shadow: 0 6px 18px rgba(0, 157, 219, 0.4);
    animation: pulse-nav 3s ease-in-out infinite;
}

.nav-btn-cta:hover {
    box-shadow: 0 10px 28px rgba(0, 157, 219, 0.55);
    transform: translateY(-2px) scale(1.03);
}

@keyframes pulse-nav {
    0%, 100% { box-shadow: 0 6px 18px rgba(0, 157, 219, 0.35); }
    50% { box-shadow: 0 6px 26px rgba(0, 157, 219, 0.65); }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
}

/* ==========================================================================
   Hero Slider / Carousel
   ========================================================================== */
.hero-section {
    position: relative;
    height: 92vh;
    min-height: 580px;
    max-height: 820px;
    margin-top: 0;
    overflow: hidden;
}

.carousel-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.active .slide-img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, 
        rgba(0, 22, 51, 0.92) 0%, 
        rgba(0, 45, 99, 0.78) 45%, 
        rgba(0, 22, 51, 0.4) 100%);
    z-index: 3;
}

.slide-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    color: var(--text-light);
    z-index: 4;
    position: relative;
    transform: translateY(30px);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 157, 219, 0.25);
    border: 1px solid rgba(0, 157, 219, 0.4);
    backdrop-filter: blur(10px);
    color: #7dd3fc;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slide-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 22px;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 820px;
}

.slide-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: #e2e8f0;
    margin-bottom: 38px;
    max-width: 640px;
    font-weight: 400;
    line-height: 1.65;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 15px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15.5px;
    transition: var(--transition-bounce);
    box-shadow: 0 8px 24px rgba(0, 157, 219, 0.45), var(--inner-glow);
    position: relative;
    overflow: hidden;
}

.slide-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(0, 157, 219, 0.6);
}

/* Slider Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.carousel-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 157, 219, 0.55);
}

.carousel-btn-prev { left: 32px; }
.carousel-btn-next { right: 32px; }

.carousel-indicators {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(0, 22, 51, 0.4);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.indicator {
    width: 12px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.indicator.active {
    background: var(--secondary);
    width: 38px;
    box-shadow: 0 0 12px rgba(0, 157, 219, 0.8);
}

/* ==========================================================================
   Section Layouts & Headers
   ========================================================================== */
.section {
    padding: 100px 28px;
    max-width: 1240px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
}

.section-tag {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 14px;
    display: inline-block;
    background: rgba(0, 63, 135, 0.08);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 63, 135, 0.12);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 42px);
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16.5px;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   Quiénes Somos / Features Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.about-card {
    background: var(--card-light);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 36px 30px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 157, 219, 0.2);
}

.about-card:hover::before {
    opacity: 1;
}

.about-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #dbeafe 100%);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 4px 12px rgba(0, 63, 135, 0.08);
}

.about-card-title {
    font-size: 21px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.about-card-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* ==========================================================================
   Noticias (News Grid)
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.news-card {
    background: var(--card-light);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 157, 219, 0.25);
}

.news-img-wrapper {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-img {
    transform: scale(1.07);
}

.news-date-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 22, 51, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.news-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.38;
    transition: var(--transition-smooth);
}

.news-card:hover .news-title {
    color: var(--primary);
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 24px;
    line-height: 1.65;
    flex-grow: 1;
}

.news-more-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    background: var(--primary-light);
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    transition: var(--transition-bounce);
}

.news-card:hover .news-more-btn {
    background: var(--primary);
    color: white;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 63, 135, 0.25);
}

/* ==========================================================================
   Cursos (Courses Grid)
   ========================================================================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
    gap: 32px;
}

.course-card {
    background: var(--card-light);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 0;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.course-card.has-image .course-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--primary-light);
    flex-shrink: 0;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .course-img {
    transform: scale(1.07);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 157, 219, 0.28);
}

.course-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.course-icon-box {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #dbeafe 100%);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 63, 135, 0.08);
    overflow: hidden;
}

.course-icon-box svg {
    width: 26px;
    height: 26px;
    min-width: 26px;
    flex-shrink: 0;
}

.course-card-title {
    font-size: 20px;
    color: var(--text-dark);
    line-height: 1.35;
}

.course-desc {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.course-meta {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 63, 135, 0.07);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.course-meta-item svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    color: var(--secondary);
    flex-shrink: 0;
}

.course-enroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 13px 20px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 14px rgba(0, 63, 135, 0.2), var(--inner-glow);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.course-enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 63, 135, 0.35);
}

/* ==========================================================================
   Plan FinEs Section
   ========================================================================== */
.fines-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-top: 1px solid rgba(0, 157, 219, 0.12);
    border-bottom: 1px solid rgba(0, 157, 219, 0.12);
}

.fines-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 768px) {
    .fines-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .fines-section {
        padding: 56px 16px !important;
    }
}

/* ==========================================================================
   Form Controls & Sumate / Contact Section
   ========================================================================== */
.form-card {
    background: var(--card-light);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 44px;
    box-shadow: var(--shadow-premium);
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 157, 219, 0.18);
}

.form-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 6px 20px rgba(0, 63, 135, 0.3), var(--inner-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 63, 135, 0.45);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 16, 38, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #ffffff;
    border-radius: 28px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 64px -16px rgba(0, 16, 38, 0.4);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 22, 51, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    z-index: 10;
    backdrop-filter: blur(6px);
}

.modal-close-btn:hover {
    background: var(--primary);
    transform: scale(1.1) rotate(90deg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 28px 36px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 157, 219, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-brand-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: white;
    margin-bottom: 14px;
}

.footer-brand-desc {
    color: #94a3b8;
    font-size: 14.5px;
    line-height: 1.65;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14.5px;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
    color: #64748b;
    position: relative;
    z-index: 2;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        height: 75vh;
        min-height: 480px;
    }

    .slide-title {
        font-size: 38px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 60px 20px;
    }

    .hero-section {
        height: 65vh;
        min-height: 440px;
    }

    .carousel-btn {
        width: 42px;
        height: 42px;
    }

    .carousel-btn-prev { left: 12px; }
    .carousel-btn-next { right: 12px; }
}

/* ==========================================================================
   News badge de categoría (posición corregida)
   ========================================================================== */
.news-cat-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 63, 135, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    white-space: nowrap;
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

/* ==========================================================================
   Quiénes Somos / About Section
   ========================================================================== */
.section-about {
    padding: 100px 28px;
    max-width: 100%;
    background: #fff;
    margin: 0;
}

.about-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-text-col .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-lead {
    font-size: 16.5px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 36px;
}

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--bg-light);
    border: 1px solid rgba(0, 63, 135, 0.06);
    transition: var(--transition-smooth);
}

.pillar-item:hover {
    background: var(--primary-light);
    border-color: rgba(0, 157, 219, 0.2);
    transform: translateX(4px);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 63, 135, 0.25);
}

.pillar-icon svg {
    width: 22px;
    height: 22px;
}

.pillar-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.pillar-item p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* About Image Column */
.about-img-col { position: relative; }

.about-img-wrapper {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-img-wrapper:hover .about-img { transform: scale(1.04); }

.about-img-badge {
    position: absolute;
    bottom: 28px;
    left: 28px;
    background: rgba(0, 22, 51, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.about-badge-num {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #7dd3fc 0%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-badge-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
    display: block;
}

@media (max-width: 900px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-img { height: 340px; }
}

/* ==========================================================================
   Galería de Fotos
   ========================================================================== */
.section-gallery {
    padding: 80px 28px;
    max-width: 100%;
    margin: 0;
    background: var(--bg-dark);
}

.gallery-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.gallery-inner .section-header .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #7dd3fc;
    border-color: rgba(255, 255, 255, 0.15);
}

.gallery-inner .section-title { color: #fff; }
.gallery-inner .section-desc { color: #94a3b8; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: #0d2040;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.72);
}

.gallery-zoom-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-zoom-icon { opacity: 1; }

/* ==========================================================================
   Sumate Section
   ========================================================================== */
.section-sumate {
    padding: 100px 0;
    max-width: 100%;
    margin: 0;
    background: linear-gradient(135deg, #003F87 0%, #001633 55%, #002d63 100%);
    position: relative;
    overflow: hidden;
}

.section-sumate::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 157, 219, 0.22) 0%, transparent 65%);
    pointer-events: none;
}

.sumate-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.sumate-text .section-tag {
    background: rgba(0, 157, 219, 0.2);
    color: #7dd3fc;
    border-color: rgba(0, 157, 219, 0.35);
}

.sumate-text .section-title {
    color: #fff;
    text-align: left;
    font-size: clamp(28px, 3.5vw, 40px);
}

.sumate-text .section-desc {
    color: #94a3b8;
    text-align: left;
    margin: 16px 0 0;
}

.sumate-form-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.sumate-form-title {
    font-family: var(--font-display);
    font-size: 20px;
    color: #fff;
    margin-bottom: 24px;
    font-weight: 700;
}

.sumate-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    font-family: var(--font-sans);
    font-size: 15px;
    color: #fff;
    transition: var(--transition-smooth);
    margin-bottom: 14px;
}

.sumate-input::placeholder { color: rgba(255, 255, 255, 0.45); }

.sumate-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(0, 157, 219, 0.22);
}

.sumate-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, #0064a8 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 6px 24px rgba(0, 157, 219, 0.45), var(--inner-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.sumate-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 157, 219, 0.6);
}

@media (max-width: 900px) {
    .sumate-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   Contacto Section
   ========================================================================== */
.section-contacto {
    padding: 100px 0;
    max-width: 100%;
    margin: 0;
    background: #fff;
}

.contacto-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contacto-info-card {
    background: var(--bg-light);
    border: 1px solid rgba(0, 63, 135, 0.08);
    border-radius: 24px;
    padding: 36px;
    position: sticky;
    top: 100px;
}

.contacto-info-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.contacto-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 63, 135, 0.06);
}

.contacto-detail-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contacto-icon-box {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto-detail-label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.contacto-detail-value {
    font-size: 15.5px;
    color: var(--text-dark);
    font-weight: 500;
}

.contacto-form-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 44px;
    box-shadow: var(--shadow-premium);
}

.contacto-form-title {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.contacto-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    margin-bottom: 16px;
}

.contacto-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 157, 219, 0.18);
}

.contacto-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 6px 20px rgba(0, 63, 135, 0.25), var(--inner-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contacto-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 63, 135, 0.42);
}

@media (max-width: 900px) {
    .contacto-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .contacto-info-card { position: static; }
}

/* ==========================================================================
   WhatsApp Float Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 900;
    text-decoration: none;
    transition: var(--transition-bounce);
}

.whatsapp-float:hover {
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   Utility helpers
   ========================================================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll padding for sticky nav */
[id] { scroll-margin-top: 90px; }

/* Admin alerts */
.admin-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.admin-alert-error { background: #fff0f0; border: 1px solid #fca5a5; color: #991b1b; }
.admin-alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }

/* ==========================================================================
   Global SVG size resets — evita que SVG sin style explícito ocupe todo el espacio
   ========================================================================== */
svg { max-width: 100%; }

/* Pillar icons (Quiénes Somos) */
.pillar-icon svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    flex-shrink: 0;
}

/* About section icon */
.about-icon svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

/* Contacto icon box */
.contacto-icon-box svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
}

/* Timeline meta items */
.timeline-meta-item svg {
    width: 15px;
    height: 15px;
    min-width: 15px;
    flex-shrink: 0;
}

/* Gallery zoom icon */
.gallery-zoom {
    width: 28px !important;
    height: 28px !important;
}

/* ==========================================================================
   Timeline / Actividades Section
   ========================================================================== */
.timeline {
    position: relative;
    padding-left: 32px;
    max-width: 860px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 20px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.timeline-card {
    background: var(--card-light);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    box-shadow: var(--shadow-premium);
    border-color: rgba(0, 157, 219, 0.2);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.4;
    flex: 1;
}

.timeline-category {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(0, 63, 135, 0.15);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 3px;
}

.timeline-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.timeline-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.timeline-meta-item svg {
    width: 15px;
    height: 15px;
    min-width: 15px;
    color: var(--secondary);
    flex-shrink: 0;
}

/* ==========================================================================
   Sumate Section — clases que usa el blade
   ========================================================================== */
.sumate-text-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sumate-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7dd3fc;
    background: rgba(0, 157, 219, 0.2);
    border: 1px solid rgba(0, 157, 219, 0.35);
    padding: 5px 14px;
    border-radius: 20px;
}

.sumate-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    color: #fff;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.sumate-desc {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.7;
}

.sumate-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.sumate-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
}

.sumate-benefits li svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    color: var(--accent-gold);
    margin-top: 2px;
}

.sumate-form-col {
    /* columna del formulario */
}

.sumate-form-card h3 {
    color: #ffffff !important;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 6px;
}

.sumate-form-card p {
    color: #94a3b8 !important;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 22px;
}

.sumate-form-card label {
    color: #f1f5f9 !important;
    font-weight: 700;
}

/* Form group custom (sumate & contacto) */
.form-group-custom {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.form-group-custom label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.88);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-control-custom {
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 15px;
    transition: var(--transition-smooth);
}

.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 4px rgba(0, 157, 219, 0.25);
}

.btn-sumate-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, #0064a8 100%);
    color: white;
    padding: 16px 28px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 6px 24px rgba(0, 157, 219, 0.45), var(--inner-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.btn-sumate-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 157, 219, 0.6);
}

/* ==========================================================================
   Contacto Section Styles — matching welcome.blade.php
   ========================================================================== */
#contacto {
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    padding: 100px 28px;
}

.contact-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.contact-info-panel {
    background: linear-gradient(145deg, var(--bg-dark) 0%, var(--primary) 100%);
    border-radius: 28px;
    padding: 40px;
    color: #fff;
    box-shadow: var(--shadow-premium);
    position: sticky;
    top: 100px;
}

.contact-info-header h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.contact-info-header p {
    font-size: 14.5px;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 28px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    transition: var(--transition-smooth);
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 157, 219, 0.4);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(0, 157, 219, 0.2);
    color: #7dd3fc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
}

.contact-info-details .label {
    display: block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7dd3fc;
    margin-bottom: 3px;
}

.contact-info-details .value {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-display);
    text-decoration: none;
    transition: var(--transition-bounce);
}

.contact-social-link:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 157, 219, 0.4);
}

.contact-form-panel {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 44px;
    box-shadow: var(--shadow-premium);
}

.contact-form-panel .form-group-custom label {
    color: var(--text-dark);
}

.contact-form-panel .form-control-custom {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: var(--text-dark);
}

.contact-form-panel .form-control-custom::placeholder {
    color: #94a3b8;
}

.contact-form-panel .form-control-custom:focus {
    background: #ffffff;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(0, 157, 219, 0.18);
}

.btn-contact-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 6px 24px rgba(0, 63, 135, 0.25), var(--inner-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-contact-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 63, 135, 0.45);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-info-panel {
        position: static;
    }
}

/* ==========================================================================
   Galería masonry
   ========================================================================== */
.gallery-masonry {
    columns: 3;
    column-gap: 14px;
}

.gallery-masonry .gallery-item {
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-masonry .gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.gallery-masonry .gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.72);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 16, 38, 0.7) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    gap: 8px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-display);
    text-align: center;
}

.gallery-zoom {
    color: rgba(255, 255, 255, 0.8);
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .gallery-masonry { columns: 2; }
}
@media (max-width: 480px) {
    .gallery-masonry { columns: 1; }
}

/* ==========================================================================
   MOBILE RESPONSIVE — Correcciones completas para evitar overflow horizontal
   ========================================================================== */

/* Evitar overflow global en cualquier elemento */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 768px) {

    /* ---- Sección general ---- */
    .section {
        padding: 56px 16px;
    }

    /* ---- Grids que fuerzan ancho mínimo ---- */
    .news-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* courses-grid es controlado por el toggle mobile — NO tocar display aquí */
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* ---- Footer container ---- */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* ---- Quiénes Somos (About) ---- */
    .section-about {
        padding: 60px 16px;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-img {
        height: 280px;
    }

    /* ---- Sumate section ---- */
    .sumate-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px;
    }

    .sumate-form-card {
        padding: 24px 20px;
    }

    .section-sumate {
        padding: 60px 0;
    }

    /* ---- Contacto section ---- */
    .contacto-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 16px;
    }

    .contacto-form-card {
        padding: 24px 20px;
    }

    .contacto-info-card {
        position: static;
        padding: 24px 20px;
    }

    .section-contacto {
        padding: 60px 0;
    }

    #contacto {
        padding: 60px 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .contact-info-panel {
        position: static !important;
        padding: 24px 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .contact-form-panel {
        padding: 24px 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #contacto {
        padding: 56px 16px;
        overflow-x: hidden;
    }

    /* ---- Hero ---- */
    .hero-section {
        height: 70vh;
        min-height: 420px;
    }

    .slide-content {
        padding: 0 20px;
    }

    .slide-title {
        font-size: clamp(26px, 7vw, 36px);
    }

    .slide-subtitle {
        font-size: 15px;
    }

    .slide-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
    }

    .carousel-btn-prev { left: 10px; }
    .carousel-btn-next { right: 10px; }

    /* ---- Form card ---- */
    .form-card {
        padding: 24px 20px;
    }

    /* ---- Modal ---- */
    .modal-card {
        margin: 0 12px;
        border-radius: 20px;
        max-height: 85vh;
    }

    /* ---- Footer ---- */
    .footer {
        padding: 56px 16px 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* ---- Galería ---- */
    .section-gallery {
        padding: 56px 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* ---- Actividades timeline ---- */
    .timeline {
        padding-left: 24px;
    }

    .timeline-dot {
        left: -32px;
    }

    .timeline-card {
        padding: 20px 18px;
    }

    /* ---- Section about (Quiénes Somos) image column ---- */
    .about-img-col {
        order: -1;
    }

    /* ---- Section FinEs (inline style grid) ---- */
    .fines-section .section > div[style*="grid"] {
        display: block !important;
    }

    /* ---- Curregir elementos con position:absolute decorativos ---- */
    .section-sumate::before {
        display: none;
    }
}

@media (max-width: 480px) {

    .section {
        padding: 48px 14px;
    }

    .section-title {
        font-size: clamp(24px, 6vw, 32px);
    }

    /* Nav */
    .nav-container {
        padding: 10px 16px;
    }

    .nav-logo-img {
        height: 44px;
    }

    /* Hero muy pequeño */
    .hero-section {
        height: 60vh;
        min-height: 380px;
    }

    .slide-title {
        font-size: clamp(22px, 8vw, 30px);
    }

    /* Cards con padding excesivo */
    .sumate-form-card,
    .contacto-form-card,
    .contact-form-panel,
    .form-card {
        padding: 20px 16px;
    }

    /* News grid 1 columna */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Galería 1 columna en mobile pequeño */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Indicadores del carousel más pequeños */
    .carousel-indicators {
        padding: 6px 12px;
        gap: 6px;
        bottom: 18px;
    }

    .indicator {
        width: 8px;
        height: 6px;
    }

    .indicator.active {
        width: 26px;
    }

    /* Footer */
    .footer {
        padding: 44px 14px 24px;
    }

    /* WhatsApp float más pequeño */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 18px;
        right: 16px;
    }

    /* Quiénes Somos badge flotante */
    .about-img-badge {
        bottom: 16px;
        left: 16px;
        padding: 12px 16px;
    }

    .about-badge-num {
        font-size: 24px;
    }

    .about-badge-label {
        font-size: 11px;
    }

    /* Formulario row en 1 columna */
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Boton Desplegable de Cursos (Mobile)
   ========================================================================== */
.courses-toggle-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 0;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 63, 135, 0.25);
    transition: var(--transition-smooth);
}

.courses-toggle-mobile:hover,
.courses-toggle-mobile.active {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-hover) 100%);
    box-shadow: 0 8px 24px rgba(0, 63, 135, 0.4);
}

@media (max-width: 768px) {
    .courses-toggle-mobile {
        display: inline-flex;
    }

    /* En mobile, la grilla de cursos empieza oculta */
    #coursesGrid {
        display: none !important;
    }

    #coursesGrid.mobile-expanded {
        display: grid !important;
        grid-template-columns: 1fr;
        opacity: 1;
        margin-top: 24px;
        animation: fadeInGrid 0.35s ease;
    }

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

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* Fix responsive text wrap para panel de contacto */
.contact-info-details {
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.contact-info-details .value {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   Toast de Notificaciones Flotante (Fix debajo del footer)
   ========================================================================== */
.alert-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: var(--text-dark);
    padding: 14px 22px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 16, 38, 0.2);
    border: 1px solid rgba(0, 63, 135, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: calc(100vw - 40px);
}

.alert-toast.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.alert-toast-error {
    border-color: rgba(239, 68, 68, 0.3);
    background: #fff5f5;
}

.alert-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-toast-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

