/* =====================================================
   Instituto Dalisa - Web publica
   Paleta: derivada del logo (azul corporativo + naranja seguridad + tierra)
   ===================================================== */

:root {
    --c-primary: #1F4E79;
    --c-primary-dark: #163758;
    --c-primary-light: #2E6BA4;
    --c-accent: #F5A623;
    --c-accent-dark: #D88E15;
    --c-earth: #8B5A2B;
    --c-ink: #1A1A1A;
    --c-muted: #5C6770;
    --c-muted-light: #8E97A0;
    --c-bg-light: #F5F7FA;
    --c-bg-white: #FFFFFF;
    --c-border: #E5E9EF;

    --shadow-sm: 0 2px 8px rgba(31, 78, 121, 0.06);
    --shadow-md: 0 6px 24px rgba(31, 78, 121, 0.1);
    --shadow-lg: 0 12px 40px rgba(31, 78, 121, 0.15);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --container-max: 1200px;
    --section-py: 96px;

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =================== Reset =================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-ink);
    background: var(--c-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* =================== Utilities =================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: var(--section-py) 0; }
.section-light { background: var(--c-bg-light); }
.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}
.section-lead {
    font-size: 18px;
    color: var(--c-muted);
    max-width: 720px;
    margin-bottom: 56px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-lead { margin-left: auto; margin-right: auto; margin-bottom: 0; }

/* =================== Buttons =================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--c-accent); color: #fff; box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35); }
.btn-primary:hover { background: var(--c-accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245, 166, 35, 0.45); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-ghost { color: var(--c-primary); }
.btn-ghost:hover { color: var(--c-accent); }

/* =================== Header =================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-border);
    transition: all var(--transition);
}
.site-header.is-transparent {
    background: transparent;
    border-bottom-color: transparent;
}
.site-header.is-transparent .header-nav a { color: #fff; }
.site-header.is-transparent .header-contact { color: rgba(255,255,255,0.85); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--c-primary);
    font-size: 17px;
    letter-spacing: -0.01em;
}
.header-logo img { width: 44px; height: 44px; }
.header-logo .logo-tagline {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}
.header-nav a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: var(--c-ink);
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
}
.header-nav a:hover { color: var(--c-accent); }

.header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-primary);
}
.header-contact svg { width: 18px; height: 18px; }

.hamburger {
    display: none;
    width: 28px;
    height: 28px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--c-primary);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================== Hero =================== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    padding-top: 80px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, rgba(31, 78, 121, 0.92) 0%, rgba(15, 41, 64, 0.85) 100%),
        url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}
.hero-content { max-width: 760px; }
.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.35);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}
.hero-title .accent { color: var(--c-accent); }
.hero-lead {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    max-width: 600px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 600px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-num {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: var(--c-accent);
    line-height: 1;
}
.hero-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin-top: 6px;
}

/* =================== Showcase carrusel =================== */
.showcase { padding-top: 64px; padding-bottom: 64px; }
.showcase .section-header { margin-bottom: 40px; }

/* wrap = [flecha izq] [carrusel] [flecha der] */
.showcase-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}
.showcase-carousel {
    flex: 1 1 auto;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #fff;
    isolation: isolate;
    min-width: 0; /* permite que flex shrink el carrusel correctamente */
}
.showcase-slides {
    position: relative;
    height: 440px; /* altura fija para que el carrusel no cambie de tamano entre slides */
}
.showcase-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}
.showcase-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease, visibility 0s linear 0s;
    z-index: 1;
}
.showcase-img {
    position: relative;
    overflow: hidden;
    background: var(--c-bg-light);
}
.showcase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.showcase-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    background: var(--c-accent);
    color: #fff;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.45);
    z-index: 2;
}
.showcase-content {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}
.showcase-content .section-eyebrow {
    background: none;
    border: none;
    padding: 0;
    color: var(--c-accent);
    margin-bottom: 12px;
}
.showcase-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.showcase-lead {
    font-size: 16px;
    color: var(--c-muted);
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 460px;
}
.showcase-content .btn { align-self: flex-start; }

/* Controles del showcase (a los costados del card, fuera del area de informacion) */
.showcase-arrow {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--c-border);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.showcase-arrow:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
}
.showcase-arrow svg { width: 22px; height: 22px; }

.showcase-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.showcase-dot {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: var(--c-border);
    transition: background var(--transition), width var(--transition);
}
.showcase-dot:hover { background: var(--c-muted-light); }
.showcase-dot.is-active {
    background: var(--c-accent);
    width: 44px;
}

/* =================== Course blocks (dentro de #cursos) =================== */
.course-block {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    margin-bottom: 48px;
}
.course-block:last-of-type { margin-bottom: 0; }

.course-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}
.course-grid-reverse { grid-template-columns: 1.1fr 1fr; }

.course-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.course-media {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}
.course-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mini-carrusel dentro de course-media (Operadores) */
.course-media-carousel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.course-media-slides {
    position: absolute;
    inset: 0;
}
.course-media-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}
.course-media-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease, visibility 0s linear 0s;
    z-index: 1;
}
.course-media-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.course-media-dot {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: var(--c-border);
    transition: background var(--transition), width var(--transition);
}
.course-media-dot:hover { background: var(--c-muted-light); }
.course-media-dot.is-active {
    background: var(--c-accent);
    width: 40px;
}
.course-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 14px;
    background: var(--c-accent);
    color: #fff;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

.course-content { max-width: 640px; }
.course-lead {
    font-size: 17px;
    color: var(--c-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}
.course-lead strong { color: var(--c-primary); font-weight: 700; }

.course-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
.course-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.course-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(31, 78, 121, 0.08);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.course-feature-icon svg { width: 20px; height: 20px; }
.course-feature h3,
.course-feature h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-ink);
    margin-bottom: 4px;
    line-height: 1.3;
}
.course-feature p {
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.55;
    margin: 0;
}

.course-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin-bottom: 32px;
}
.course-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--c-bg-light);
    border: 1px solid var(--c-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-primary);
    justify-self: start;
}
.course-chip svg { width: 14px; height: 14px; flex-shrink: 0; }

.course-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.course-actions .btn-ghost { padding-left: 4px; padding-right: 4px; }

/* Mosaico de imagenes (Sujecion) */
.course-mosaic {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    height: 440px;
}
.course-mosaic-main {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.course-mosaic-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.course-mosaic-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}
.course-mosaic-side > div,
.course-mosaic-side img {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Otros servicios dentro de Nuestros Cursos */
.course-others {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--c-border);
}
.course-others-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-primary);
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

/* Nav badge "Nuevo" */
.nav-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--c-accent);
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 100px;
    line-height: 1.4;
}

/* Dropdown del nav (Cursos) */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: var(--c-ink);
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: color var(--transition);
    font-family: inherit;
}
.nav-dropdown-toggle:hover { color: var(--c-accent); }
.nav-dropdown-toggle svg {
    transition: transform var(--transition);
}
.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.is-open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}
.site-header.is-transparent .nav-dropdown-toggle { color: #fff; }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 260px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0s linear 0.2s, transform 0.2s;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s, visibility 0s linear 0s, transform 0.2s;
}
.nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-ink) !important;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
.nav-dropdown-menu a:hover {
    background: var(--c-bg-light);
    color: var(--c-primary) !important;
}

/* Footer pill "Nuevo" */
.footer-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    background: var(--c-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 100px;
}

/* Service link dentro de descripcion */
.service-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--c-primary);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
}
.service-link:hover { color: var(--c-accent); }

/* =================== Sobre Nosotros =================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: center;
}
.about-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    width: 100%;
    max-width: 420px;
    justify-self: end;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-content p {
    color: var(--c-muted);
    margin-bottom: 16px;
    line-height: 1.75;
}

/* =================== Servicios =================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.service-card {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 0;
    background: var(--c-accent);
    transition: height var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.service-card:hover::before { height: 100%; }
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(31, 78, 121, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--c-primary);
    transition: all var(--transition);
}
.service-card:hover .service-icon {
    background: var(--c-accent);
    color: #fff;
}
.service-icon svg { width: 28px; height: 28px; }
.service-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-ink);
    margin-bottom: 10px;
    line-height: 1.3;
}
.service-desc {
    font-size: 15px;
    color: var(--c-muted);
    line-height: 1.6;
}

/* =================== Galeria =================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--c-bg-light);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(31, 78, 121, 0.7));
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

/* =================== Mision / Vision =================== */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.mv-card {
    padding: 48px 40px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}
.mv-card.mision { background: var(--c-primary); color: #fff; }
.mv-card.vision { background: #fff; border: 1px solid var(--c-border); }
.mv-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.mv-card.mision .mv-icon { background: rgba(245, 166, 35, 0.2); color: var(--c-accent); }
.mv-card.vision .mv-icon { background: rgba(31, 78, 121, 0.08); color: var(--c-primary); }
.mv-icon svg { width: 28px; height: 28px; }
.mv-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}
.mv-card.mision .mv-title { color: #fff; }
.mv-card.vision .mv-title { color: var(--c-primary); }
.mv-card p { line-height: 1.75; font-size: 16px; }
.mv-card.mision p { color: rgba(255,255,255,0.85); }
.mv-card.vision p { color: var(--c-muted); }

/* =================== Fortaleza =================== */
.fortaleza {
    position: relative;
    padding: 120px 0;
    color: #fff;
    overflow: hidden;
}
.fortaleza::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, rgba(31, 78, 121, 0.88), rgba(15, 41, 64, 0.85)),
        url('../img/fortaleza.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}
.fortaleza-content { max-width: 800px; margin: 0 auto; text-align: center; }
.fortaleza-content .section-eyebrow { color: var(--c-accent); }
.fortaleza-content .section-title { color: #fff; }
.fortaleza-content p { font-size: 19px; color: rgba(255,255,255,0.9); line-height: 1.75; }

/* =================== Aliados =================== */
.partners {
    text-align: center;
}
.partners-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 64px;
}
.partners-item {
    height: 60px;
    display: flex;
    align-items: center;
    opacity: 0.6;
    filter: grayscale(0.6);
    transition: all var(--transition);
}
.partners-item:hover { opacity: 1; filter: grayscale(0); }
.partners-item img { max-height: 100%; }

/* =================== Contacto =================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: stretch;
}
.contact-info { padding: 8px 0; }
.contact-info .section-title { margin-bottom: 24px; }
.contact-info p { color: var(--c-muted); margin-bottom: 32px; line-height: 1.7; }
.contact-list { margin-bottom: 32px; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--c-ink);
}
.contact-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(31, 78, 121, 0.08);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-item-icon svg { width: 18px; height: 18px; }
.contact-item-label {
    font-size: 12px;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 2px;
}
.contact-item-value { font-weight: 600; color: var(--c-ink); }
.contact-item-value:hover { color: var(--c-accent); }
.contact-map {
    margin-top: 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 16 / 9;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
    padding: 48px 40px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.contact-form h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 8px;
}
.contact-form-lead {
    color: var(--c-muted);
    margin-bottom: 32px;
    font-size: 15px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-ink);
    margin-bottom: 8px;
}
.form-group label .req { color: var(--c-accent); }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 15px;
    color: var(--c-ink);
    background: #fff;
    transition: all var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group textarea.is-prefilled {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.18);
    transition: all 0.4s ease;
}
.form-submit { width: 100%; justify-content: center; padding: 14px; }
.form-msg {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: none;
}
.form-msg.is-success { display: block; background: #DEFCE5; color: #14532D; }
.form-msg.is-error { display: block; background: #FEE2E2; color: #7F1D1D; }

/* =================== Footer =================== */
.site-footer {
    background: var(--c-primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 16px; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand-text strong { color: #fff; font-size: 17px; display: block; margin-bottom: 6px; }
.footer-brand-text p { font-size: 14px; line-height: 1.6; }

.footer-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.footer-list li { margin-bottom: 10px; font-size: 14px; }
.footer-list a:hover { color: var(--c-accent); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: #fff; }

/* =================== Floating WhatsApp =================== */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 50;
    transition: transform var(--transition);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* =================== Scroll-up =================== */
.go-up {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 49;
}
.go-up.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.go-up:hover { background: var(--c-accent); }
.go-up svg { width: 18px; height: 18px; }

/* =================== Lightbox =================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 41, 64, 0.92);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-content {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-close svg { width: 20px; height: 20px; }

/* =================== Reveal animation =================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =================== Responsive =================== */
@media (max-width: 1100px) {
    .header-nav { gap: 18px; font-size: 13px; }
    .header-nav a, .nav-dropdown-toggle { font-size: 13px; }
}

@media (max-width: 1024px) {
    :root { --section-py: 72px; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    .course-grid,
    .course-grid-reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .course-block { padding: 32px; }
    .course-media { aspect-ratio: 16 / 10; max-width: 100%; }
    .course-mosaic { height: 360px; }
    .course-features-grid { grid-template-columns: 1fr 1fr; }

    /* Showcase: imagen arriba, contenido abajo */
    .showcase-wrap { gap: 12px; }
    .showcase-arrow { width: 44px; height: 44px; }
    .showcase-arrow svg { width: 20px; height: 20px; }
    .showcase-slide { grid-template-columns: 1fr; grid-template-rows: 240px 1fr; }
    .showcase-content { padding: 32px 28px; }
    .showcase-slides { height: 580px; }
}

@media (max-width: 768px) {
    :root { --section-py: 56px; }
    .container { padding: 0 20px; }

    .hamburger { display: flex; }
    .header-nav,
    .header-contact { display: none; }
    .site-header.is-mobile-open .header-nav {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 24px;
        border-bottom: 1px solid var(--c-border);
        box-shadow: var(--shadow-md);
    }
    .site-header.is-mobile-open .header-nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--c-border);
        color: var(--c-ink);
    }
    .site-header.is-mobile-open .header-nav a:last-child { border-bottom: 0; }

    .hero { min-height: 80vh; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }

    .showcase-arrow { width: 40px; height: 40px; }
    .showcase-arrow svg { width: 18px; height: 18px; }
    .showcase-slides { height: 540px; }
    .showcase-content { padding: 26px 22px; }

    .course-features-grid { grid-template-columns: 1fr; gap: 16px; }
    .course-chips { grid-template-columns: 1fr; }
    .course-mosaic { height: 280px; gap: 8px; }
    .course-mosaic-side { gap: 8px; }
    .course-actions { flex-direction: column; align-items: stretch; }
    .course-actions .btn { justify-content: center; }
    .course-block { padding: 28px 20px; margin-bottom: 32px; }

    /* Dropdown en mobile: lista inline, sin posicionamiento absoluto */
    .nav-dropdown-toggle {
        display: block !important;
        width: 100%;
        text-align: left;
        padding: 12px 0;
        border-bottom: 1px solid var(--c-border);
        color: var(--c-ink) !important;
    }
    .site-header.is-transparent .nav-dropdown-toggle { color: var(--c-ink) !important; }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        min-width: 0;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        background: transparent;
        opacity: 1;
        visibility: visible;
        display: none;
        transition: none;
    }
    .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
    .nav-dropdown.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); }
    .nav-dropdown-menu a {
        padding: 10px 0 !important;
        border-bottom: 1px solid var(--c-border);
    }
    .nav-dropdown-menu a:last-child { border-bottom: none; }

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

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .contact-form { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .partners-row { gap: 32px; }
    .showcase-arrow { display: none; }
    .course-mosaic { height: 240px; }
}
