:root {
    --bg-soft: #f7f1e8;
    --bg-warm: #fffaf5;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #fffdf9;
    --text-main: #2e302d;
    --text-muted: #5d6158;
    --accent: #FF8214;
    --accent-deep: #e66f00;
    --accent-soft: #f5d5ae;
    --line-soft: rgba(76, 55, 31, 0.12);
    --shadow-soft: 0 18px 48px rgba(88, 56, 19, 0.12);
}

/* Base general de la pagina y atmosfera visual. */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(255, 130, 20, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(218, 186, 120, 0.18), transparent 25%),
        linear-gradient(180deg, #f4efe6 0%, #fbf7f0 45%, #f5ede1 100%);
}

a {
    text-decoration: none;
}

.page-shell {
    min-height: 100vh;
}

/* Navbar principal con fondo translucido y borde sutil. */
.campus-navbar {
    background: rgba(255, 248, 239, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(87, 61, 26, 0.08);
}

.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: var(--text-main);
}

.brand-logo {
    width: auto;
    height: 96px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.btn-ingresar,
.btn-hero-primary,
.btn-hero-secondary {
    border-radius: 999px;
    padding: 0.95rem 1.65rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-ingresar,
.btn-hero-primary {
    color: #fff;
    background: linear-gradient(135deg, #ff8214 0%, #ea6d00 100%);
    border: 1px solid rgba(167, 77, 0, 0.18);
    box-shadow: 0 14px 28px rgba(199, 109, 28, 0.28);
}

.btn-ingresar:hover,
.btn-hero-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ff8d25 0%, #e26400 100%);
    box-shadow: 0 18px 30px rgba(199, 109, 28, 0.34);
}

.btn-hero-secondary {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(87, 61, 26, 0.14);
    text-shadow: none;
    box-shadow: 0 10px 22px rgba(39, 30, 16, 0.08);
}

.btn-hero-secondary:hover {
    color: var(--text-main);
    background: #fff;
    transform: translateY(-2px);
}

/* Cabecera principal con bloque editorial y panel informativo. */
.hero-section {
    position: relative;
    padding: 4.5rem 0 2.5rem;
}

.hero-copy {
    max-width: 100%;
}

.section-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(223, 141, 54, 0.14);
    color: var(--accent-deep);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.5rem, 4vw, 4.9rem);
    line-height: 0.98;
}

.hero-lead {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.hero-copy p {
    color: var(--text-muted);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.hero-panel {
    position: relative;
    padding: 1rem;
}

.hero-panel-card {
    border: 1px solid var(--line-soft);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.accent-card {
    padding: 2rem;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(248, 221, 188, 0.75)),
        var(--surface);
}

.panel-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.accent-card h2 {
    margin-bottom: 0.8rem;
    font-size: 1.7rem;
    font-weight: 800;
}

.hero-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    min-height: 155px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-deep);
}

.stat-card span {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Encabezado de seccion y espaciado del bloque de cursos. */
.courses-section {
    padding: 2.5rem 0 5rem;
}

.section-heading {
    max-width: 44rem;
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 3vw, 3.2rem);
}

.section-heading p {
    color: var(--text-muted);
    line-height: 1.75;
}

/* Tarjetas de cursos con titulo fijo y mejor legibilidad visual. */
.course-card {
    position: relative;
    overflow: hidden;
    min-height: 350px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(18, 14, 10, 0.04) 0%, rgba(18, 14, 10, 0.28) 100%),
        var(--course-image) center/cover no-repeat;
    box-shadow: 0 18px 40px rgba(88, 56, 19, 0.14);
    isolation: isolate;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.course-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 25%, rgba(14, 10, 6, 0.7) 100%);
    opacity: 1;
    transition: opacity 0.35s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(88, 56, 19, 0.2);
}

.course-card:hover::after {
    opacity: 1;
}

.course-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: 1.4rem;
    color: #fff;
    transform: translateY(0);
}

.course-tag {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    background: rgba(18, 14, 10, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(2px);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.25;
}

.course-card h3 {
    margin: 0 0 0.7rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.course-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

/* Footer con espacio para tres logos institucionales. */
.site-footer {
    padding: 2.5rem 0;
    background: linear-gradient(180deg, #e69442 0%, #d37c27 100%);
    color: #fffdf8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: center;
}

.footer-chip {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.footer-copy,
.footer-copyright {
    margin: 0;
    max-width: 100%;
    color: rgba(255, 250, 243, 0.88);
}

.footer-copyright {
    text-align: center;
    font-size: 0.95rem;
}

.footer-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.footer-logo {
    width: 100%;
    max-height: 96px;
    object-fit: contain;
    display: block;
}

/* Ajustes responsivos para tablet y movil. */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 3rem;
    }

    .brand-logo {
        height: 80px;
    }

    .footer-logos {
        gap: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .hero-copy h1 {
        font-size: 2.6rem;
    }

    .hero-panel-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        min-height: 300px;
    }

    .course-card-overlay {
        transform: translateY(0);
    }

    .footer-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}