/* Maestría en Ciencia de Datos: componentes visuales del subsitio.
   Solo lo cargan las páginas de maestria-ciencia-datos/. No se usa en la home de LICDIA.
   Identidad: bordó #800020 / #5A0016, Source Serif 4 para títulos grandes y Source Sans 3 para el resto. */

:root {
    --mcd-bordo: #800020;
    --mcd-bordo-osc: #5A0016;
    --mcd-bordo-claro: #FBEAEC;
    --mcd-borde: #f0e3e5;
}

/* ---------- 0. Tipografía ----------
   Referencia: micrositios de posgrado de Stanford (Source Sans 3 / Source Serif 4) y CMU (Open Sans / Source Serif).
   Source Serif 4 solo en títulos grandes: encabezado, títulos de sección y franjas. Source Sans 3 en todo lo demás.
   Las reglas llevan "html body" y !important para ganarle a las hojas base y a los <style> propios de cada página. */
:root {
    --mcd-sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    --mcd-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}
html body { font-family: var(--mcd-sans); }
html body :is(p, li, a, span, div, td, th, label, input, select, textarea, button, small, strong, em, b, blockquote, figcaption, dt, dd, h1, h2, h3, h4, h5, h6):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab) {
    font-family: var(--mcd-sans) !important;
}
html body :is(h1.masthead-heading, div.masthead-heading, h2.section-heading, h2.card-t, #cta-inscripcion h2, .mcd-banda-texto strong, .cta-inscribite h3, .mcd-cifra-num, .mcd-curso-num) {
    font-family: var(--mcd-serif) !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
html body header .masthead-heading {
    font-size: clamp(2rem, 4vw, 3.1rem) !important;
    line-height: 1.15 !important;
    margin-bottom: .9rem !important;
}
html body header .masthead-subheading { font-size: 1.1rem !important; font-style: normal !important; }
html body .page-section h2.section-heading { font-size: clamp(1.6rem, 2.6vw, 2.05rem) !important; line-height: 1.2 !important; }
html body h2.card-t { font-size: clamp(1.6rem, 2.6vw, 2.05rem) !important; }
html body .page-section h3.section-subheading {
    font-style: normal !important; font-size: 1.08rem !important; font-weight: 400 !important;
}
/* Títulos chicos de tarjetas, línea de tiempo y cifras: sans, peso firme */
html body :is(.bc-card h4, .mcd-curso-nombre, .docente-nombre, .mcd-tl-cab, .mcd-tl-titulo, .mcd-cifra-num, .stack-badge-name, .proyecto-title) {
    font-weight: 700 !important; letter-spacing: 0 !important;
}
/* Menú en una línea, sin mayúsculas */
html body #mainNav .navbar-nav { text-transform: none !important; }
html body #mainNav .nav-link {
    font-weight: 600 !important; font-size: .95rem !important; letter-spacing: .01em !important;
}
@media (min-width: 992px) {
    html body #mainNav .nav-link { white-space: nowrap; padding-left: .55rem !important; padding-right: .55rem !important; }
}
/* Ítem activo y hover del menú en bordó (la plantilla los dejaba en violeta) */
html body #mainNav .navbar-nav .nav-item .nav-link.active,
html body #mainNav .navbar-nav .nav-item .nav-link:hover { color: var(--mcd-bordo) !important; }
/* Botones sin mayúsculas forzadas */
html body .btn, html body .btn-cta, html body .btn.text-uppercase {
    text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important;
}

/* ---------- Encabezado más bajo: título y ficha visibles sin desplazarse ---------- */
html body header.backgroundhead.fondoMcd,
html body header.backgroundAr.fondoMcd {
    height: auto !important; min-height: 0 !important;
    margin-top: 0 !important;
    padding-top: 10.25rem !important; padding-bottom: 4rem !important;
}
@media (max-width: 991.98px) {
    html body header.backgroundhead.fondoMcd,
    html body header.backgroundAr.fondoMcd { padding-top: 8rem !important; padding-bottom: 2.75rem !important; }
}

/* ---------- 1. Franja de cifras ---------- */
.mcd-cifras {
    background: linear-gradient(180deg, #fff 0%, var(--mcd-bordo-claro) 100%);
    border-bottom: 1px solid var(--mcd-borde);
    padding: 2.25rem 0 2.5rem;
}
.mcd-cifra {
    text-align: center;
    padding: .5rem .25rem;
}
.mcd-cifra-icono {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: #fff; color: var(--mcd-bordo);
    font-size: 1.35rem;
    box-shadow: 0 6px 18px rgba(128, 0, 32, .14);
    margin-bottom: .6rem;
}
.mcd-cifra-num {
    display: block;
    font-weight: 700;
    font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1;
    color: var(--mcd-bordo);
}
.mcd-cifra-lbl {
    display: block; margin-top: .35rem;
    font-weight: 700;
    font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--mcd-bordo-osc);
}

/* ---------- 2. Plan de estudios en tarjetas ---------- */
.mcd-curso {
    display: flex; gap: 1rem; align-items: flex-start;
    background: #fff; border: 1px solid var(--mcd-borde); border-radius: 14px;
    padding: 1.15rem 1.2rem;
    position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mcd-curso::before {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--mcd-bordo) 0%, var(--mcd-bordo-osc) 100%);
}
.mcd-curso:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(128, 0, 32, .16);
    border-color: var(--mcd-bordo-claro);
}
.mcd-curso-icono {
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 14px;
    background: var(--mcd-bordo-claro); color: var(--mcd-bordo);
    font-size: 1.45rem;
    transition: background .25s ease, color .25s ease;
}
.mcd-curso:hover .mcd-curso-icono { background: var(--mcd-bordo); color: #fff; }
.mcd-curso-cuerpo { min-width: 0; }
.mcd-curso-sup {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    margin-bottom: .25rem;
}
.mcd-curso-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 26px; height: 26px; padding: 0 .4rem; border-radius: 999px;
    background: var(--mcd-bordo); color: #fff;
    font-size: .78rem; font-weight: 800;
}
.mcd-curso-hs {
    display: inline-block; padding: .12rem .55rem; border-radius: 999px;
    background: var(--mcd-bordo-claro); color: var(--mcd-bordo-osc);
    font-size: .74rem; font-weight: 700;
}
.mcd-curso-nombre {
    font-weight: 700;
    font-size: 1rem; line-height: 1.3; color: var(--mcd-bordo-osc);
    margin: .1rem 0 .35rem;
}
.mcd-curso-desc { font-size: .88rem; color: #4a4a4a; line-height: 1.5; margin: 0; }
.mcd-curso--opt { border-style: dashed; border-color: #d9b8be; background: #fffafb; }

/* ---------- 3. Línea de tiempo de la cohorte ---------- */
.mcd-tl-card {
    background: #fff; border: 1px solid var(--mcd-borde); border-radius: 16px;
    box-shadow: 0 10px 30px rgba(90, 0, 22, .08);
    padding: 1.4rem 1.25rem 1.2rem;
}
.mcd-tl-cab {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem;
    font-weight: 700; color: var(--mcd-bordo-osc);
    font-size: 1.05rem; margin-bottom: 1.25rem; text-align: center;
}
.mcd-tl {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    position: relative;
}
.mcd-tl::before {
    content: ''; position: absolute; top: 23px; left: 10%; right: 10%; height: 3px;
    background: linear-gradient(90deg, var(--mcd-bordo-claro), var(--mcd-bordo), var(--mcd-bordo-claro));
    border-radius: 3px;
}
.mcd-tl-item { position: relative; text-align: center; padding: 0 .35rem; }
.mcd-tl-punto {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--mcd-bordo); color: #fff; font-size: 1.1rem;
    border: 4px solid #fff; box-shadow: 0 0 0 2px var(--mcd-bordo-claro), 0 6px 16px rgba(128, 0, 32, .25);
    transition: transform .25s ease;
}
.mcd-tl-item:hover .mcd-tl-punto { transform: scale(1.08); }
.mcd-tl-titulo {
    display: block; margin-top: .6rem;
    font-weight: 700; font-size: .92rem; color: var(--mcd-bordo-osc);
}
.mcd-tl-fecha { display: block; font-size: .8rem; color: #6c757d; margin-top: .15rem; }
.mcd-tl-pie { text-align: center; margin: 1.1rem 0 0; font-size: .9rem; }
#cronograma .mcd-tl-card { margin-bottom: 1.75rem; }
.mcd-tl-pie a { color: var(--mcd-bordo); font-weight: 600; }

@media (max-width: 767.98px) {
    .mcd-tl { grid-template-columns: 1fr; row-gap: .9rem; }
    .mcd-tl::before { top: 10px; bottom: 10px; left: 23px; right: auto; width: 3px; height: auto;
        background: linear-gradient(180deg, var(--mcd-bordo-claro), var(--mcd-bordo), var(--mcd-bordo-claro)); }
    .mcd-tl-item {
        display: grid; grid-template-columns: 48px 1fr; column-gap: .85rem;
        align-items: center; text-align: left; padding: 0;
    }
    .mcd-tl-punto { grid-row: span 2; }
    .mcd-tl-titulo { margin-top: 0; align-self: end; }
    .mcd-tl-fecha { margin-top: 0; align-self: start; }
}

/* ---------- 4a. Banda con foto a todo el ancho ---------- */
.mcd-banda-foto {
    position: relative; overflow: hidden;
    min-height: 300px; display: flex; align-items: center;
    padding: 4.5rem 0; color: #fff;
}
.mcd-fondo, .mcd-fondo img {
    position: absolute; inset: 0; width: 100%; height: 100%;
}
.mcd-fondo img { object-fit: cover; object-position: center 40%; }
.mcd-banda-foto .mcd-velo {
    position: absolute; inset: 0;
    background: linear-gradient(110deg, rgba(128, 0, 32, .92) 0%, rgba(90, 0, 22, .78) 55%, rgba(90, 0, 22, .55) 100%);
}
.mcd-banda-contenido { position: relative; z-index: 1; }
.mcd-banda-texto {
    font-weight: 400;
    font-size: clamp(1.25rem, 3vw, 2rem); line-height: 1.35;
    max-width: 820px; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.mcd-banda-texto strong {
    display: block; font-weight: 600;
    font-size: clamp(1.9rem, 5vw, 3.1rem); letter-spacing: .01em; margin-bottom: .6rem; line-height: 1.15;
}

/* ---------- 4b. Modalidad de cursada sobre foto ---------- */
.mcd-modalidad-foto { position: relative; overflow: hidden; background: #1a0008; }
.mcd-modalidad-foto .mcd-velo {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(18, 0, 6, .74) 0%, rgba(50, 0, 18, .62) 100%);
}
.mcd-modalidad-foto > .container { position: relative; z-index: 1; }
.mcd-modalidad-foto .section-heading { color: #fff; }
.mcd-modalidad-foto .section-subheading { color: rgba(255, 255, 255, .82) !important; }
.mcd-modalidad-foto hr { border-color: rgba(255, 255, 255, .45); opacity: 1; }
.mcd-modalidad-foto .bc-card { background: #fff; box-shadow: 0 12px 34px rgba(0, 0, 0, .28); }
.mcd-modalidad-foto .mcd-tl-card { margin-top: 2rem; box-shadow: 0 12px 34px rgba(0, 0, 0, .28); }

/* ---------- 5. Cuerpo docente: tres columnas y fotos más grandes ---------- */
#team .docente-card { padding: 1.9rem 1.25rem 1.6rem; }
#team .docente-card img { width: 176px; height: 176px; }
#team .docente-card .docente-nombre { font-size: 1.06rem; }

/* ---------- 6. Banda de logos de acreditación ---------- */
.mcd-logos {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
    gap: 1rem; margin: 2.25rem 0 .5rem;
}
.mcd-logo {
    flex: 1 1 220px; max-width: 300px; min-height: 130px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .6rem; padding: 1.2rem 1rem;
    background: #fff; border: 1px solid var(--mcd-borde); border-radius: 14px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.mcd-logo:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(128, 0, 32, .12); }
.mcd-logo img { height: 88px; width: auto; max-width: 100%; object-fit: contain; }
.mcd-logo--ancho img { height: 60px; }

/* ---------- 7. Fotos ilustrativas (Unsplash) con zoom lento ---------- */
.mcd-foto {
    position: relative; overflow: hidden; margin: 0;
    border-radius: 16px; box-shadow: 0 16px 40px rgba(90, 0, 22, .16);
}
.mcd-foto img { display: block; width: 100%; height: auto; }
.mcd-foto::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(128, 0, 32, 0) 55%, rgba(90, 0, 22, .28) 100%);
}
.mcd-foto-franja { height: clamp(190px, 28vw, 330px); margin: .5rem 0 2rem; }
.mcd-foto-franja img { height: 100%; object-fit: cover; }
.mcd-foto img, .mcd-banda-foto .mcd-fondo img { animation: mcd-zoom-lento 22s ease-in-out infinite alternate; }
@keyframes mcd-zoom-lento { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ---------- Íconos de Font Awesome en SVG dentro de las tarjetas ---------- */
body .bc-icon-wrap svg { color: var(--mcd-bordo); font-size: 1.6rem; transition: color .25s ease; }
body .bc-card:hover .bc-icon-wrap svg { color: #fff; }

/* ---------- 8. Horario de los encuentros ---------- */
.mcd-hora {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--mcd-bordo); color: #fff;
    font-weight: 700; font-size: .8rem; letter-spacing: .02em;
    padding: .28rem .75rem; border-radius: 999px; margin-bottom: .65rem;
}

@media (prefers-reduced-motion: reduce) {
    .mcd-foto img, .mcd-banda-foto .mcd-fondo img { animation: none; }
    .mcd-curso, .mcd-logo, .mcd-tl-punto { transition: none; }
    .mcd-curso:hover, .mcd-logo:hover { transform: none; }
}

/* ---------- 9. Sin íconos decorativos: recursos tipográficos ----------
   Los íconos en círculos y los emojis se reemplazan por números en serif, filetes bordó y puntos simples. */
.mcd-cifras { padding: 2.5rem 0 2.6rem; }
.mcd-cifra { padding: .35rem .5rem; }
.mcd-cifra-num { font-size: clamp(2.3rem, 4.4vw, 3.1rem) !important; line-height: 1 !important; }
.mcd-cifra-lbl { margin-top: .5rem; }
@media (min-width: 992px) {
    .mcd-cifras .row > .col + .col .mcd-cifra { border-left: 1px solid #e6c9cf; }
}
/* Cursos: el número reemplaza al ícono */
.mcd-curso { padding: 1.2rem 1.3rem 1.2rem 1.45rem; }
.mcd-curso-sup { gap: .7rem; margin-bottom: .1rem; align-items: baseline; }
.mcd-curso-num {
    background: none !important; color: var(--mcd-bordo) !important;
    min-width: 0 !important; height: auto !important; padding: 0 !important; border-radius: 0 !important;
    font-size: 1.85rem !important; line-height: 1 !important;
}
.mcd-curso--opt .mcd-curso-sup { margin-bottom: .25rem; }
/* Línea de tiempo: puntos simples */
.mcd-tl::before { top: 8px; }
.mcd-tl-punto {
    width: 18px; height: 18px; font-size: 0;
    border: 3px solid #fff; box-shadow: 0 0 0 2px var(--mcd-bordo);
}
.mcd-tl-titulo { margin-top: .75rem; }
@media (max-width: 767.98px) {
    .mcd-tl::before { top: 8px; bottom: 8px; left: 8px; }
    .mcd-tl-item { grid-template-columns: 18px 1fr; }
    .mcd-tl-titulo { margin-top: 0; }
}
/* Filete bordó sobre los títulos de tarjetas, en lugar del círculo con ícono */
html body .bc-card h4::before,
html body .destinatario-card .destinatario-title::before,
html body #informacion .border h4::before {
    content: ''; display: block; width: 34px; height: 3px; border-radius: 2px;
    background: var(--mcd-bordo); margin: 0 auto .85rem;
}
html body #informacion .border h4::before { margin-left: 0; }
html body .destinatario-card .destinatario-title { display: block !important; }
html body .bc-card { padding-top: 1.75rem; }

/* ---------- 10. Foto de Presentación desenfocada ----------
   Como la franja, la foto queda como textura: desenfoque y velo bordó para quitarle detalle y protagonismo. */
html body #informacion .mcd-foto img {
    filter: blur(3px) saturate(.8);
    transform: scale(1.06);
    animation: none;
}
html body #informacion .mcd-foto::after {
    background: linear-gradient(110deg, rgba(128, 0, 32, .5) 0%, rgba(90, 0, 22, .3) 100%);
}
/* Presentación: un solo párrafo, un punto más grande, con aire antes de las tres tarjetas */
html body #informacion .mcd-presentacion { font-size: 1.18rem; line-height: 1.65; margin-bottom: 0; }
html body #informacion .row.g-3 { margin-top: 2rem; }
/* Botón flotante de solicitud: la regla general de enlaces de mcd-style2 (bordó !important) lo dejaba
   con texto bordó sobre fondo bordó */
html body #floatingCTA, html body #floatingCTA:hover, html body #floatingCTA:focus { color: #fff !important; }

