:root {
    --navy: #162f4d;
    /* barra + secciones oscuras */
    --navy-2: #41556e;
    /* textos secundarios */
    --teal: #00b8b3;
    /* cards */
    --bg: #f0f1ec;
    /* fondo claro */
    --white: #ffffff;
    --text: #13263c;
    --muted: #7f8d9d;
    --gold: #c5a15a;
    --shadow: 0 8px 24px rgba(0, 0, 0, .08);
    --radius: 20px;
    --wrap: 1080px;

    /* Tipografías */
    --font-body: "Myriad Pro", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    --font-title: "Myriad Pro", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

@font-face {
    font-family: "Myriad Pro";
    src: url("/assets/fonts/MyriadPro-Regular.woff") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Myriad Pro";
    src: url("/assets/fonts/MyriadPro-It.woff") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Myriad Pro";
    src: url("/assets/fonts/MyriadPro-Semibold.woff") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Myriad Pro";
    src: url("/assets/fonts/MyriadPro-Bold.woff") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: var(--font-body);
}

h1,
h2,
h3,
.page-title,
.community-section__title {
    font-family: var(--font-title);
    letter-spacing: .2px;
    /* opcional, suele quedar lindo */
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    color: var(--text);
    background: var(--white);
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    width: min(var(--wrap), calc(100% - 48px));
    margin: 0 auto;
}

/* Topbar */
.topbar {
    background: var(--navy);
    color: var(--white);
    height: 80px;
    display: flex;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0 !important;
    position: relative;

}

.nav {
    display: flex;
    gap: 44px;
    align-items: center;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    opacity: 1;
    transition: 0.3s;
}

.nav a:hover {
    opacity: 0.7;
}

.nav a.is-active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.burger {
    display: none;
    position: absolute;
    left: 18px;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    padding: 0;
}

/* HERO */
.hero {
    padding: 34px 0 14px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 36px;
    align-items: start;
    padding-bottom: 0px !important;
    padding-top: 0px !important;
}

.brand-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.brand-card {
    border: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.hero__title {
    font-size: 54px;
    line-height: 1.05;
    margin: 20px 0 0px;
    font-weight: 800;
    color: var(--navy);
    font-family: 'Myriad Pro', sans-serif;
}

.hero__lead {
    font-size: 32px;
    max-width: 660px;
    color: var(--navy);
    margin-top: 10px;
    opacity: 0.7;
}

.pretitle {
    color: var(--teal);
    font-size: 24px;
    margin-bottom: 0px;
}

.en{
    margin-top: 0px;
}

@media (max-width: 720px){
    .en{
        margin-top: 36px;
    }

    .brand-cards{
        max-width: 280px;
        width: 100%;
    }

    .brand-card{
        min-height: 20px;
    }
}

/* STATS */
.stats {
    padding: 18px 0 38px;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-left: 0px;
    margin-right: 0px;
    padding-top: 0px !important;
}

.stat {
    background: var(--gold);
    color: var(--white);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow);
    transition: 0.5s;
}

.stat:hover {
    transform: scale(1.05);
}

.stat a {
    color: var(--white);
    text-decoration: none
}

.stat__num {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.stat__title {
    font-weight: 800;
    margin-bottom: 10px;
}

.stat__desc {
    font-size: 14px;
    line-height: 1.35;
    opacity: .95;
    max-width: 280px;
}

.stats h2 {
    font-size: 54px;
    font-weight: 900;
    margin-bottom: 10px;
}

/* DARK SECTION */
.dark {
    background: var(--navy);
    color: var(--white);
    padding: 48px 0;
}

.dark h2 {
    margin: 0 0 24px;
    font-size: 54px;
    font-weight: 900;
    letter-spacing: .2px;
}

.dark p {
    margin: 0;
    max-width: 900px;
    color: rgba(255, 255, 255, .92);
    line-height: 1.45;
    font-size: 24px;
}

.dark .small {
    margin-top: 16px;
    font-size: 18px;
    color: rgba(255, 255, 255, .85);
}

/* EJES */
.section {
    padding: 46px 0;
    background: var(--white);
}

.section h3 {
    text-align: center;
    margin: 0 0 26px;
    font-size: 30px;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: .3px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 50px;
}

.card {
    background: #f3f3ef;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 165px;
}

.card__body {
    padding: 42px 30px;
    flex: 1;
    color: var(--navy);
    font-weight: 400;
    line-height: 1.2;
    font-size: 28px;
}

.card__cta {
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    padding: 10px 14px;
    font-size: 20px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.card__cta:hover {
    background: var(--teal);
}

/* CONTACTO */
.contact {
    background: var(--bg);
    padding: 44px 0 56px;
}

.contact h3 {
    text-align: left;
    margin: 0 0 28px;
    font-size: 54px;
    font-weight: 900;
    color: var(--navy);
}

.form {
    width: min(820px, 100%);
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 36px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field label {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
    border: 0;
    border-bottom: 2px solid #b6bcc2;
    padding: 10px 6px;
    background: transparent;
    font-size: 19px;
    outline: none;
    font-family: 'Myriad Pro', sans-serif;
    color: var(--navy);
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field--full {
    grid-column: 1 / -1;
}

.form__actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn {
    border: 0;
    background: var(--gold);
    color: var(--white);
    padding: 12px 54px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 24px;
    transition: 0.4s;
    border-radius: 10px;
    text-decoration: none;
}

.btn:hover {
    background: var(--navy);
}

/* FOOTER */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .92);
    padding: 26px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.footer__block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__label {
    font-size: 12px;
    line-height: 1.2;
    opacity: .9;
}

.footer__icons {
    display: flex;
    gap: 10px;
}

.footer__icons img {
    width: 22px;
    height: 22px;
    opacity: .9;
}

.footer__icons a:hover img {
    opacity: 1;
}

.footer__divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, .22);
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stats__grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {

    .burger {
        display: block;
        z-index: 1002;
        font-size: 22px;
        font-weight: 400;
        line-height: 1;
            /* text-decoration: underline; */
    }

    .topbar {
        height: 60px;
        position: relative;
        z-index: 1000;
    }


    .topbar__inner {
        justify-content: flex-start;
    }

    .nav {
        display: none;
        position: absolute;
        top: 60px !important;
        left: 0;
        right: 0;
        background: var(--white) !important;
        padding: 14px 24px 18px;
        flex-direction: column;
        gap: 14px;
        box-shadow: var(--shadow);
        width: 100%;
        max-width: 100%;
        z-index: 1001;
    }

    nav a {
        color: var(--navy) !important;
    }

    .nav.is-open {
        display: flex;
        color: var(--navy) !important;
    }

    .form {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    h2 {
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .hero__lead {
        margin-bottom: 10px;
    }

    .wrap {
        width: 100%;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .stats__grid {
        padding: 0px !important;
        padding-top: 20px !important;
    }

    .stat__desc {
        width: 100%;
        max-width: 100%;
    }

    .program-body {
        padding: 20px !important;
        padding-top: 32px !important;
    }

    .pos-card {
        padding-top: 30px !important;
    }

    .footer__icons img {
        max-width: 22px;
    }

    .page-title {
        padding: 16px 0px !important;
    }

    .footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.footer__divider{
    display: none;
}
}

/* ==========================================================
   Formularios: honeypot + captcha
   ========================================================== */

.hp-field{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Centrar el widget del captcha si queda raro */
.cf-turnstile{
  display: inline-block;
}

/* ==========================================================
   Modal (Solicitar información - Trayectorias)
   ========================================================== */

body.modal-open{
  overflow: hidden;
}

.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open{
  display: block;
}

.modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.modal__panel{
  position: relative;
  width: min(820px, calc(100% - 32px));
  margin: 32px auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(0,0,0,0.28);
  overflow: hidden;
  animation: modalIn 180ms ease;
}

.modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
}

.modal__title{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
}

.modal__close{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: rgba(0,0,0,0.65);
  padding: 6px 8px;
  border-radius: 10px;
}

.modal__close:hover{
  background: rgba(0,0,0,0.06);
}

/* En el modal usamos el mismo layout del formulario (como en Home).
   Solo sumamos padding para que respire. */
.modal .form{
  padding: 18px;
  width: 100%;
  margin: 0 auto;
}

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

@media (prefers-reduced-motion: reduce){
  .modal__panel{ animation: none; }
}

@media (max-width: 720px){
  .modal__panel{ margin: 18px auto; }
}

/************/

.page-title {
    margin: 0 0 22px;
    font-size: 44px;
    font-weight: 900;
    letter-spacing: .2px;
    color: var(--navy);
    padding: 30px 0px;
}

/* Search bar */
.searchbar {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.searchbar__input {
    flex: 1;
    position: relative;
}

.searchbar__input input {
    width: 100%;
    border: 0;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 16px 20px;
    font-size: 16px;
    outline: none;
}

.searchbar__results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 20;
}

.search-item {
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.search-item:hover {
    background: #f6f7f9;
}

.search-item__title {
    font-weight: 700;
    color: var(--navy);
}

.search-item__meta {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.searchbar__filter {
    position: relative;
}

.pill-btn {
    border: 0;
    background: #f3f4f6;
    padding: 16px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 15px;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pill-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow);
    min-width: 260px;
    overflow: hidden;
    z-index: 20;
}

.pill-menu button {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 12px 14px;
    cursor: pointer;
    color: var(--navy);
    font-family: 'Myriad Pro', sans-serif;
}

.pill-menu button:hover {
    background: #f6f7f9;
}

/* Card principal */
.impact-card {
    background: #f5f6f7;
    border-radius: 26px;
    padding: 0px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 18px;
    box-shadow: var(--shadow);
}

/* Info panel */
.info-panel {
    background: white;
    border-radius: 20px;
    padding: 18px;
    /* box-shadow: var(--shadow); */
    position: relative;
}

.info-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.info-panel__label {
    color: var(--muted);
    font-size: 14px;
}

.icon-btn {
    border: 0;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: var(--muted);
}

.info-panel__title {
    margin: 6px 0 14px;
    font-size: 22px;
    margin-bottom: 20px;
    line-height: 1.05;
    color: var(--navy);
    font-weight: 500;
}

.meta {
    margin: 0 0 14px;
}

.meta__row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    padding: 6px 0;
}

.meta dt {
    color: var(--navy);
    font-weight: 700;
}

.meta dd {
    margin: 0;
    color: var(--navy-2);
}

.meta a {
    color: #2c7be5;
    text-decoration: none;
}

.meta a:hover {
    text-decoration: underline;
}

.full-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #2c7be5;
    text-decoration: none;
    font-weight: 700;
    margin-top: 4px;
}

.full-link:hover {
    text-decoration: underline;
}

.divider {
    border: 0;
    border-top: 1px solid #e6e8eb;
    margin: 16px 0;
}

.similar__label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.similar__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.similar-item {
    background: #f7f8fa;
    border-radius: 14px;
    padding: 12px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
}

.similar-item:hover {
    filter: brightness(1.02);
}

.similar-item__title {
    font-weight: 600;
    color: var(--navy);
    font-size: 12px;
}

.similar-item__author {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.similar-item__year {
    color: var(--muted);
    font-size: 13px;
}

/* Graph */
.graph-area {
    background: white;
    border-radius: 20px;
    /* box-shadow: var(--shadow); */
    overflow: hidden;
}

.graph-wrap {
    width: 100%;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.graph {
    width: 100%;
    height: 100%;
}

/* responsive */
@media (max-width: 980px) {
    .searchbar {
        flex-direction: column;
        align-items: stretch;
    }

    .impact-card {
        grid-template-columns: 1fr;
    }

    .graph-wrap {
        height: 440px;
    }
}

/********************/

.program-block {
    border: 1px solid #e3e6ea;
    background: #f5f5f5;
    /* border-radius: 20px; */
}

.program-head {
    background: var(--teal);
    color: #fff;
    font-weight: 700;
    padding: 16px;
    letter-spacing: .3px;
    font-family: 'Myriad Pro', sans-serif;
    font-size: 36px;
    /* border-radius: 20px 20px 0px 0px; */
}

.program-body {
    padding: 50px;
    padding-top: 32px;
}

.program-lead {
    color: var(--navy-2);
    line-height: 1.45;
    /* max-width: 900px; */
    margin: 0 0 16px;
}

.pos-card {
    background: transparent;
    padding: 14px 0;
    border-top: 1px solid #e3e6ea;
}

.pos-card h2 {
    font-size: 28px;
}

.pos-card h3 {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
    text-align: left;
}

.pos-card p {
    margin: 16px 0;
    color: var(--navy-2);
    line-height: 1.4;
}

/* Posgrados: cursos como acordeón (anidados) */
.pos-card.pos-course {
    border-top: 1px solid #e3e6ea;
}

.pos-card.pos-course > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    /* Sin cambios visuales al click/focus */
    background: transparent;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.pos-card.pos-course > summary::-webkit-details-marker {
    display: none;
}

.pos-card.pos-course > summary h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}

.pos-card.pos-course > summary::after {
    /* Mismo chevron que los ejes generales */
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 auto;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 220ms ease;
    opacity: 0.75;
}

.pos-card.pos-course[open] > summary::after {
    transform: rotate(-135deg);
}

.pos-course__content {
    padding-top: 10px;
}

/* Sin outline ni cambios de color/fondo en cursos */
.pos-card.pos-course > summary:focus-visible {
    outline: none;
}


.btn--small {
    margin-bottom: 12px;
    margin-top: 6px;
    padding: 12px 16px;
    font-size: 16px;
    background: var(--navy);
    border-radius: 10px;
    transition: 0.3s;
}

.btn--small:hover {
    background-color: var(--gold);
}

.btn--small--gold {
    margin-bottom: 12px;
    margin-top: 6px;
    padding: 12px 16px;
    font-size: 16px;
    background: var(--gold);
    border-radius: 10px;
    transition: 0.3s;
}

.btn--small--gold:hover {
    background-color: var(--navy);
}

.program-body p {
    font-size: 18px;
}

.program-body p strong {
    font-size: 20px;
}

/********/

.community {
    padding-top: 34px;
}

.community-section {
    margin-top: 26px;
}

.community-section__title {
    margin: 56px 0 32px 0;
    color: var(--navy);
    font-size: 36px;
    font-weight: 900;
    letter-spacing: .3px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

.person-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 26px;
    box-shadow: var(--shadow);
    border: 1px solid #eef1f4;
}

.person-card__name {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 24px;
    font-weight: 900;
    font-family: 'Myriad Pro', sans-serif;
}

.person-card__description{
    font-size: 20px;
}

.person-card__bio p {
    margin: 10px 0;
    color: var(--navy-2);
    line-height: 1.5;
    font-size: 18px;
}

.person-card__bio a{
    color: var(--teal);
    text-decoration: none;
    transition: 0.3s;
}

.person-card__bio a:hover{
    color: var(--navy-2);
}

.person-card__note {
    font-size: 12px !important;
    color: var(--muted) !important;
}

.person-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 26px;
    align-items: start;
}

.person-photo {
    width: 140px;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #eef1f4;
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.person-content .person-card__name {
    margin-top: 2px;
    /* para alinear mejor con la foto */
}

@media (max-width: 980px) {
    .people-grid {
        grid-template-columns: 1fr;
    }
}

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

    .person-photo {
        width: 100%;
        height: 160px;
    }
}

/* Panel cerrado => el mapa ocupa todo */
.impact-card.is-info-closed {
    grid-template-columns: 1fr !important;
}

.impact-card.is-info-closed .info-panel {
    display: none !important;
}

/* Dejar que los nodos “se salgan” del contenedor
.impact-card,
.graph-area,
.graph-wrap {
    overflow: visible !important;
} */

/* Pan táctil + cursor “manito” */
.graph-wrap {
    touch-action: none;
    cursor: grab;
}

.graph-wrap.is-grabbing {
    cursor: grabbing;
}

.wrap {
    padding: 30px 0px 80px;
}

/* ===== Search results: reset button look + clases correctas ===== */
.searchbar__results .search-item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 12px 14px;
    cursor: pointer;
    display: block;
    font: inherit;
}

.searchbar__results .search-item:hover {
    background: #f6f7f9;
}

.searchbar__results .search-item__title {
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.searchbar__results .search-item__meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.2;
}

/* Si por alguna razón quedaran las clases viejas, también las cubrimos */
.searchbar__results .search-title {
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.searchbar__results .search-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.2;
}

/* =============================================================== */

/* ==========================
   Acordeón Investigación
   ========================== */

.research-accordion {
    width: 100%;
    margin: 0 0 34px;
    display: grid;
    gap: 12px;
}

/* Cada ítem */
.research-accordion .acc-item {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

/* Título (summary) */
.research-accordion .acc-title {
    list-style: none;
    /* evita bullets raros */
    cursor: pointer;
    user-select: none;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    padding: 18px 18px;
    font-weight: 700;
    font-size: clamp(18px, 2.1vw, 24px);
    line-height: 1.25;

    transition: background-color 180ms ease, color 180ms ease;
}

/* Quita el triangulito nativo en algunos navegadores */
.research-accordion summary::-webkit-details-marker {
    display: none;
}

/* Chevron */
.research-accordion .acc-title::after {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 auto;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 220ms ease;
    opacity: 0.75;
}

/* Hover/focus del título */
.research-accordion .acc-title:hover {
    opacity: 0.6;
    transition: 0.3s;
}

.research-accordion .acc-title:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.25);
    outline-offset: 2px;
    border-radius: 12px;
}

/* Rotación del chevron cuando está abierto */
.research-accordion .acc-item[open] .acc-title::after {
    transform: rotate(-135deg);
}

/* Contenido: animación suave (opacity + translate + max-height) */
.research-accordion .acc-content {
    padding: 0 18px;
    /* el padding vertical se anima abajo */
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.82);

    /* estado "cerrado" */
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    overflow: hidden;

    transition:
        max-height 280ms ease,
        opacity 220ms ease,
        transform 220ms ease,
        padding 220ms ease;
}

/* Cuando se abre: le damos aire + mostramos */
.research-accordion .acc-item[open] .acc-content {
    padding: 0 18px 18px;
    max-height: 600px;
    /* suficiente para 2 párrafos; ajustá si crece */
    opacity: 1;
    transform: translateY(0);
}

/* Espaciado de párrafos dentro */
.research-accordion .acc-content p {
    margin: 10px 0 0;
}

.research-accordion .acc-content p:first-child {
    margin-top: 10px;
}

/* Modo sensible (menos motion) */
@media (prefers-reduced-motion: reduce) {

    .research-accordion .acc-title,
    .research-accordion .acc-title::after,
    .research-accordion .acc-content {
        transition: none !important;
    }
}

button {
    font-family: 'Myriad Pro', sans-serif;
}

/* --- Fin styles globales. Estilos de Proyectos viven en /css/proyectos.css --- */


/* ==========================
   Language switch (ES / EN)
   ========================== */
.lang-switch{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
}

.lang-link{
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 14px;
  opacity: .9;
  transition: opacity 160ms ease, transform 160ms ease;
}

.lang-link:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.lang-link.is-active{
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lang-sep{
  color: rgba(255,255,255,0.75);
  font-weight: 700;
}

@media (max-width: 720px){
  .lang-switch{
    right: 14px;
  }
}


.footer__contact{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top: 14px;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.35;
}

.footer__contact-title{
  font-weight: 800;
  letter-spacing: .2px;
}

.footer__contact a{
  color: rgba(255,255,255,.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__contact a:hover{ opacity: 1; }


/* Cambia el “flash” celeste al tocar */
* {
  -webkit-tap-highlight-color: rgba(197, 161, 90, 0.50); /* elegí el color */
}

.research-accordion--tall .acc-item[open] .acc-content {
    max-height: 12000px;
}

/* SOLO para el acordeón de Posgrados */
.posgrados-accordion .acc-summary,
.posgrados-accordion summary {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.2;
}

.posgrados-accordion summary h3,
.posgrados-accordion summary h4 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

/* “Active” (open) SOLO en Posgrados */
.posgrados-accordion .acc-item[open] > .acc-summary,
.posgrados-accordion details[open] > summary {
  background: var(--teal);
  color: #fff;
  border-radius: 10px;
}

/*
  IMPORTANTE:
  En Posgrados hay acordeones anidados (cursos dentro de ejes).
  Los cursos NO deben heredar el estilo “active” (teal + texto blanco).
*/
.posgrados-accordion details.pos-course > summary {
  color: var(--navy);
}

.posgrados-accordion details.pos-course[open] > summary {
  background: transparent !important;
  color: var(--navy) !important;
  border-radius: 0 !important;
}

.posgrados-accordion .acc-item[open] > .acc-summary svg,
.posgrados-accordion details[open] > summary svg {
  fill: currentColor;
  stroke: currentColor;
}
/* ==========================================================
   Modal de Contacto (Navbar)
   ========================================================== */

.contact-modal__lines{
  display:flex;
  flex-direction:column;
  gap:6px;
  color: rgba(0,0,0,0.78);
  font-size: 15px;
  line-height: 1.45;
}

.contact-modal__title{
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--navy);
}

.contact-modal__lines a{
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-modal__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 16px;
}

@media (max-width: 560px){
  .contact-modal__actions .btn{
    width: 100%;
    text-align: center;
  }
}
