/*
 * ═══════════════════════════════════════════════════════════════════════════
 * UNIVERSIDAD JOSÉ VASCONCELOS · AJUSTES DEL SITIO (1.2.3)
 * ═══════════════════════════════════════════════════════════════════════════
 *
 * El CSS principal viene compilado (public/build). Lo que se añadió después
 * vive aquí para no recompilar: la portada del inicio en celular, la caja de
 * «Programa de Excelencia», los mapas de Admisiones y las páginas /contacto y
 * /campo. Usa los colores de la marca:
 *   verde #294b2b · verde oscuro #192d1a · verde claro #467f46
 *   amarillo #f7a407 · papel #f7f7f3 · tinta #172119
 */

:root {
    --ujv-green: #294b2b;
    --ujv-green-dark: #192d1a;
    --ujv-green-light: #467f46;
    --ujv-yellow: #f7a407;
    --ujv-paper: #f7f7f3;
    --ujv-ink: #172119;
    --ujv-shadow: 0 1rem 2.5rem rgb(25 45 26 / 0.09);
}

/* ── Inicio · portada en celular ──────────────────────────────────────────
 * Igual que siempre (texto a la izquierda, persona a la derecha), pero el
 * párrafo tiene un ancho máximo para no pasar sobre la persona, y la persona
 * se acomoda para que su dedo apunte al título. */
@media (max-width: 639.98px) {
    .ujv-hero .ujv-hero__copy p {
        max-width: 12.5rem;
    }

    /* La punta del dedo está en el borde izquierdo de la imagen, al 33 % de su
       alto: con este lugar apunta al título, justo debajo de «avanzar.», sin
       tapar ninguna letra (medido con la silueta de la imagen). */
    .ujv-hero .ujv-hero__person {
        height: 27rem;
        top: 3.375rem;
        bottom: auto;
        left: 11.375rem;
        right: auto;
    }
}

/* Tableta chica: el mismo límite al párrafo para que no pase sobre la persona. */
@media (min-width: 640px) and (max-width: 767.98px) {
    .ujv-hero .ujv-hero__copy p {
        max-width: 16rem;
    }
}

/* ── Inicio · rejilla amarilla: las cajas crecen con su texto ──────────── */
.ujv-features {
    grid-auto-rows: minmax(11rem, auto);
}

.ujv-features > article {
    padding-block: 1.75rem;
}

@media (min-width: 640px) {
    .ujv-features { grid-auto-rows: minmax(13rem, auto); }
}

@media (min-width: 1024px) {
    .ujv-features { grid-auto-rows: minmax(12rem, auto); }
}

/* ── Admisiones · planteles con enlace a Google Maps ───────────────────── */
.ujv-maplink {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--ujv-green);
    text-decoration: underline;
    text-decoration-color: var(--ujv-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.ujv-maplink::before {
    content: "";
    width: 0.8rem;
    height: 0.8rem;
    flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ujv-maplink:hover {
    color: var(--ujv-green-dark);
}

/* ── Piezas comunes ─────────────────────────────────────────────────────── */
.ujv-eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ujv-yellow);
}

.ujv-eyebrow--green { color: var(--ujv-green-light); }

.ujv-h2 {
    margin-top: 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ujv-green-dark);
}

.ujv-muted {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgb(0 0 0 / 0.6);
}

.ujv-btn {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1.5px solid var(--ujv-green);
    border-radius: 0.75rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ujv-green);
    transition: background-color .2s, color .2s;
}

.ujv-btn:hover { background: var(--ujv-green); color: #fff; }
.ujv-btn--primary { background: var(--ujv-green); color: #fff; }
.ujv-btn--primary:hover { background: var(--ujv-green-dark); border-color: var(--ujv-green-dark); }

/* ── /contacto · portada ────────────────────────────────────────────────── */
.ujv-contact-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ujv-green-dark);
    color: #fff;
}

.ujv-contact-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.ujv-contact-hero__inner {
    padding-block: clamp(3rem, 8vw, 5.5rem) clamp(5.5rem, 11vw, 8rem);
}

.ujv-contact-hero__title {
    margin-top: 0.75rem;
    max-width: 14ch;
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.ujv-contact-hero__title span { color: var(--ujv-yellow); }

.ujv-contact-hero__lead {
    margin-top: 1.25rem;
    max-width: 38rem;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.65;
    color: rgb(255 255 255 / 0.82);
}

.ujv-chips {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ujv-chip {
    display: inline-flex;
    min-height: 2.9rem;
    align-items: center;
    gap: 0.55rem;
    border: 1.5px solid rgb(255 255 255 / 0.55);
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(4px);
    transition: background-color .2s, border-color .2s;
}

.ujv-chip img { width: 1.15rem; height: 1.15rem; object-fit: contain; }
.ujv-chip:hover { background: rgb(255 255 255 / 0.12); border-color: #fff; }
.ujv-chip--solid { background: #1f9d55; border-color: #1f9d55; }
.ujv-chip--solid:hover { background: #17864a; border-color: #17864a; }

/* ── /contacto · formulario y tarjetas ─────────────────────────────────── */
.ujv-contact-main {
    background: var(--ujv-paper);
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.ujv-contact-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: clamp(-4.5rem, -8vw, -3.5rem);
    position: relative;
}

@media (min-width: 1024px) {
    .ujv-contact-grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
        align-items: start;
        gap: 1.5rem;
    }
}

.ujv-contact-form {
    border-radius: 1.5rem;
    background: #fff;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    box-shadow: 0 1.5rem 3.5rem rgb(25 45 26 / 0.14);
}

.ujv-contact-form__widget { margin-top: 1.25rem; }
.ujv-contact-form__widget > section { box-shadow: none; border-radius: 1rem; }

.ujv-contact-aside {
    display: grid;
    gap: 1rem;
}

.ujv-card {
    display: block;
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.4rem 1.5rem;
    box-shadow: var(--ujv-shadow);
}

.ujv-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ujv-green-dark);
}

.ujv-card__link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 700;
    color: var(--ujv-green);
    word-break: break-all;
    text-decoration: underline;
    text-decoration-color: var(--ujv-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.ujv-card--green { background: var(--ujv-green); color: rgb(255 255 255 / 0.85); }
.ujv-card--green .ujv-card__title { color: #fff; }
.ujv-card--green p { margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.55; }

.ujv-card--yellow { background: var(--ujv-yellow); color: var(--ujv-green-dark); transition: transform .2s; }
.ujv-card--yellow p { margin-top: 0.4rem; font-size: 0.92rem; font-weight: 600; }
.ujv-card--yellow:hover { transform: translateY(-2px); }

.ujv-social {
    margin-top: 1rem;
    display: grid;
    gap: 0.6rem;
}

.ujv-social__item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 0.9rem;
    background: rgb(255 255 255 / 0.1);
    padding: 0.7rem 0.9rem;
    transition: background-color .2s;
}

.ujv-social__item:hover { background: rgb(255 255 255 / 0.18); }
.ujv-social__item img { width: 1.6rem; height: 1.6rem; object-fit: contain; }
.ujv-social__item span { display: grid; font-size: 0.85rem; color: rgb(255 255 255 / 0.75); }
.ujv-social__item strong { font-size: 0.95rem; color: #fff; }

/* ── /contacto · planteles con mapa ────────────────────────────────────── */
.ujv-campuses {
    background: #fff;
    padding-block: clamp(3.5rem, 8vw, 6rem);
}

.ujv-campuses__head { text-align: center; }

.ujv-campus-grid {
    margin-top: 2.25rem;
    display: grid;
    gap: 1.25rem;
}

/* 1.2.4 — Celular: carrusel que se desliza con el dedo (y rota solo, ver la vista). */
@media (max-width: 767.98px) {
    .ujv-campus-grid {
        position: relative;
        display: flex;
        gap: 0.9rem;
        margin-inline: calc(var(--spacing-page, 1rem) * -1);
        padding: 0.5rem var(--spacing-page, 1rem) 1.25rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--spacing-page, 1rem);
        scrollbar-width: none;
    }

    .ujv-campus-grid::-webkit-scrollbar { display: none; }

    .ujv-campus-grid > .ujv-campus {
        flex: 0 0 86%;
        scroll-snap-align: center;
    }
}

.ujv-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.ujv-dots button {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: rgb(41 75 43 / 0.25);
    transition: width .25s, background-color .25s;
}

.ujv-dots button[aria-current] {
    width: 1.75rem;
    background: var(--ujv-green);
}

@media (min-width: 768px) {
    .ujv-dots { display: none; }
    .ujv-campus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .ujv-campus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ujv-campus {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgb(0 0 0 / 0.07);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: var(--ujv-shadow);
}

.ujv-campus__map {
    position: relative;
    aspect-ratio: 16 / 11;
    background: #e8ece6;
}

.ujv-campus__map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ujv-campus__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.4rem 1.5rem 1.6rem;
    border-top: 4px solid var(--ujv-yellow);
}

.ujv-campus__name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ujv-green-dark);
}

.ujv-campus__address {
    margin-top: 0.5rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgb(0 0 0 / 0.65);
}

.ujv-campus__hours {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ujv-green-light);
}

.ujv-campus__actions {
    margin-top: auto;
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── /campo · registro rápido desde el QR ──────────────────────────────── */
.ujv-field {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background: var(--ujv-green-dark);
    padding: clamp(1.5rem, 5vw, 4.5rem) 0 clamp(2rem, 6vw, 5rem);
}

.ujv-field__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.ujv-field__wrap {
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
    display: grid;
    gap: 1.25rem;
}

/* En computadora el texto va arriba, a la altura del inicio del formulario, y
   se queda a la vista mientras se llena (el formulario es largo). */
@media (min-width: 1024px) {
    .ujv-field__wrap {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: start;
        gap: 3.5rem;
    }

    .ujv-field__intro {
        position: sticky;
        top: 2rem;
        padding-top: 2.5rem;
    }
}

.ujv-field__intro { color: #fff; }

.ujv-field__title {
    margin-top: 0.5rem;
    font-size: clamp(2.1rem, 8vw, 4rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.ujv-field__title span { display: block; color: var(--ujv-yellow); }

.ujv-field__lead {
    margin-top: 0.9rem;
    max-width: 30rem;
    font-size: clamp(0.95rem, 2.4vw, 1.1rem);
    line-height: 1.6;
    color: rgb(255 255 255 / 0.82);
}

.ujv-steps {
    margin-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.ujv-steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.1);
    padding: 0.35rem 0.8rem 0.35rem 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.ujv-steps span {
    display: grid;
    width: 1.5rem;
    height: 1.5rem;
    place-items: center;
    border-radius: 999px;
    background: var(--ujv-yellow);
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--ujv-green-dark);
}

.ujv-field__form {
    border-radius: 1.5rem;
    background: #fff;
    padding: clamp(0.75rem, 3vw, 1.75rem);
    box-shadow: 0 1.5rem 3.5rem rgb(0 0 0 / 0.25);
}

.ujv-field__form > section { box-shadow: none; border-radius: 1rem; }

.ujv-field__privacy {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgb(0 0 0 / 0.5);
}

.ujv-field-campuses {
    background: var(--ujv-paper);
    padding-block: 2rem 2.5rem;
}

.ujv-field-campuses__title {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ujv-green-dark);
}

.ujv-field-campuses__list {
    margin-top: 1rem;
    display: grid;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
}

@media (min-width: 640px) {
    .ujv-field-campuses__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ujv-field-campuses__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-radius: 1rem;
    background: #fff;
    padding: 0.9rem 1.1rem;
    box-shadow: var(--ujv-shadow);
    color: var(--ujv-green-dark);
}

.ujv-field-campuses__list span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ujv-green-light);
}
