/* ========================================================================
   Universidad Internacional - Moderno (Gen Z)
   ======================================================================== */
:root {
    --uni-red: #EF3340;
    --uni-red-dark: #B91C1C;
    --uni-red-light: #FEE2E2;
    --uni-text: #1f2937;
    --uni-text-soft: #4b5563;
    --uni-bg: #fafafa;
    --uni-card: #fff;
    --uni-shadow-sm: 0 2px 8px rgba(0,0,0,.04);
    --uni-shadow: 0 4px 16px rgba(0,0,0,.06);
    --uni-shadow-lg: 0 12px 32px rgba(0,0,0,.1);
    --uni-radius: 12px;
}

body { background: var(--uni-bg); color: var(--uni-text); -webkit-font-smoothing: antialiased; }

/* HERO */
.hero--video { position: relative; min-height: 90vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 80px 0; color: #fff; }
.hero--video .hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero--video .hero__bg video { width: 100%; height: 100%; object-fit: cover; }
.hero--video .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero--video .hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(185,28,28,.85), rgba(0,0,0,.6)); }
.hero--video .hero__inner { position: relative; z-index: 1; text-align: center; max-width: 800px; }
.hero--video .hero__badge { display: inline-block; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); padding: 8px 18px; border-radius: 30px; font-size: .85rem; margin-bottom: 18px; border: 1px solid rgba(255,255,255,.25); }
.hero--video .hero__title { font-family: 'Times New Roman', serif; font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; margin: 0 0 14px 0; line-height: 1.05; color: #fff; letter-spacing: -.02em; }
.hero--video .hero__subtitle { font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px auto; opacity: .95; line-height: 1.6; }
.hero--video .hero__cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero--video .btn--white { background: #fff; color: var(--uni-red-dark); padding: 14px 30px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: all .2s; box-shadow: 0 4px 14px rgba(0,0,0,.18); display: inline-block; }
.hero--video .btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.hero--video .btn--outline-white { background: transparent; color: #fff; border: 2px solid #fff; padding: 12px 28px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: all .2s; display: inline-block; }
.hero--video .btn--outline-white:hover { background: rgba(255,255,255,.15); }
.hero__scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; }
.hero__scroll-hint span { display: block; width: 4px; height: 8px; background: #fff; border-radius: 2px; margin: 6px auto; animation: scroll-down 1.6s infinite; }
@keyframes scroll-down { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* STATS BAR */
.stats-bar { background: linear-gradient(135deg, var(--uni-red-dark), var(--uni-red)); color: #fff; padding: 56px 0; }
.stats-bar__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat { text-align: center; }
.stat__num { font-family: 'Times New Roman', serif; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; margin-bottom: 8px; }
.stat__label { font-size: .95rem; opacity: .9; }
.stats-bar__note { text-align: center; margin-top: 26px; opacity: .7; font-size: .85rem; }

/* SECTION TITLE */
.section { padding: 72px 0; }
.section--alt { background: #fff; }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 44px auto; }
.section-title .eyebrow { display: inline-block; color: var(--uni-red); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 10px; }
.section-title h2 { font-family: 'Times New Roman', serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--uni-text); margin: 0 0 12px 0; font-weight: 700; line-height: 1.15; }
.section-title p { color: var(--uni-text-soft); font-size: 1.05rem; line-height: 1.6; }

/* DIFFERENTIATORS */
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.diff-card { background: var(--uni-card); padding: 28px; border-radius: var(--uni-radius); box-shadow: var(--uni-shadow-sm); transition: all .3s; border: 1px solid #f3f4f6; }
.diff-card:hover { transform: translateY(-4px); box-shadow: var(--uni-shadow-lg); border-color: var(--uni-red-light); }
.diff-card__icon { font-size: 2.4rem; margin-bottom: 14px; line-height: 1; }
.diff-card__icon-svg { margin-bottom: 14px; line-height: 1; display: block; }
.diff-card__icon-svg svg { width: 48px; height: 48px; }
.carrera-card__icon-svg { margin-bottom: 10px; display: block; }
.carrera-card__icon-svg svg { width: 36px; height: 36px; }
.meta-pill--alt { background: #e0e7ff; color: #3730a3; }
.convenios-empty { background: #fff; border: 2px dashed #e5e7eb; border-radius: 12px; padding: 40px 20px; text-align: center; color: var(--uni-text-soft); }
.convenios-empty p { margin: 0 0 8px 0; font-size: 1rem; }
.diff-card h3 { color: var(--uni-text); font-size: 1.15rem; margin: 0 0 8px 0; font-weight: 700; }
.diff-card p { color: var(--uni-text-soft); font-size: .95rem; line-height: 1.55; margin: 0; }

/* CARRERAS */
.carreras-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.carreras-tab { background: #fff; border: 2px solid #e5e7eb; color: var(--uni-text-soft); padding: 10px 22px; border-radius: 30px; font-weight: 600; cursor: pointer; transition: all .2s; }
.carreras-tab:hover { border-color: var(--uni-red); color: var(--uni-red); }
.carreras-tab.is-active { background: var(--uni-red); color: #fff; border-color: var(--uni-red); }
.carreras-grid { gap: 22px; }
.carrera-card { background: #fff; border-radius: var(--uni-radius); padding: 26px; box-shadow: var(--uni-shadow-sm); transition: all .3s; border: 1px solid #f3f4f6; display: flex; flex-direction: column; }
.carrera-card:hover { transform: translateY(-4px); box-shadow: var(--uni-shadow-lg); border-color: var(--uni-red-light); }
.carrera-card[data-tipo].is-hidden { display: none; }
.carrera-card__icon { font-size: 2.2rem; margin-bottom: 10px; line-height: 1; }
.carrera-card h3 { color: var(--uni-red-dark); font-size: 1.18rem; margin: 0 0 10px 0; font-weight: 700; }
.carrera-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.meta-pill { background: var(--uni-red-light); color: var(--uni-red-dark); padding: 3px 10px; border-radius: 12px; font-size: .75rem; font-weight: 600; }
.carrera-card p { color: var(--uni-text-soft); font-size: .92rem; line-height: 1.5; margin: 0 0 14px 0; flex-grow: 1; }
.carrera-card__stats { background: #f9fafb; border-radius: 8px; padding: 12px; font-size: .85rem; margin-bottom: 14px; }
.carrera-card__stats div { margin-bottom: 4px; color: var(--uni-text); }
.carrera-card__stats div:last-child { margin-bottom: 0; }
.btn--sm { padding: 8px 18px; font-size: .85rem; border-radius: 8px; font-weight: 600; text-decoration: none; display: inline-block; transition: all .2s; }
.btn--red { background: var(--uni-red); color: #fff; }
.btn--red:hover { background: var(--uni-red-dark); }
.btn--outline { background: transparent; color: var(--uni-red); border: 2px solid var(--uni-red); }
.btn--outline:hover { background: var(--uni-red); color: #fff; }

/* TEST VOCACIONAL */
.section--test { background: linear-gradient(135deg, #fff, var(--uni-red-light)); }
.test-card { background: #fff; border-radius: 16px; box-shadow: var(--uni-shadow-lg); padding: 36px; max-width: 720px; margin: 0 auto; }
.test-progress { background: #f3f4f6; height: 6px; border-radius: 3px; margin-bottom: 28px; overflow: hidden; }
.test-progress__bar { background: var(--uni-red); height: 100%; width: 0; transition: width .4s; }
.test-step { display: none; }
.test-step.is-active { display: block; animation: fadeSlide .35s ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.test-step h3 { font-size: 1.4rem; margin: 0 0 24px 0; color: var(--uni-text); font-weight: 700; }
.test-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.test-opts button { background: #f9fafb; border: 2px solid #e5e7eb; color: var(--uni-text); padding: 16px 18px; border-radius: 10px; font-size: .95rem; font-weight: 500; cursor: pointer; transition: all .2s; text-align: left; }
.test-opts button:hover { border-color: var(--uni-red); background: var(--uni-red-light); transform: translateY(-2px); }
.test-result { display: none; text-align: center; padding: 12px 0; }
.test-result.is-active { display: block; animation: fadeSlide .35s ease; }
.test-result h3 { color: var(--uni-text-soft); font-size: 1.1rem; margin-bottom: 14px; }
.test-result__pick { font-family: 'Times New Roman', serif; font-size: 2.2rem; color: var(--uni-red); font-weight: 700; margin-bottom: 12px; }
.test-result p { color: var(--uni-text-soft); margin-bottom: 22px; }
.test-restart { background: transparent; border: none; color: var(--uni-text-soft); cursor: pointer; margin-top: 14px; text-decoration: underline; }

/* CONVENIOS */
.convenios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.convenio-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 22px 14px; text-align: center; font-weight: 600; color: var(--uni-text-soft); font-size: .9rem; transition: all .2s; }
.convenio-card:hover { border-color: var(--uni-red); color: var(--uni-red); transform: translateY(-2px); }

/* COSTOS */
.section--costos { background: #fff; }
.costos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 48px; }
.costo-card { background: #fafafa; border-radius: var(--uni-radius); padding: 28px; text-align: center; border: 2px solid transparent; }
.costo-card--main { background: linear-gradient(135deg, var(--uni-red-dark), var(--uni-red)); color: #fff; transform: scale(1.05); border-color: var(--uni-red); }
.costo-card__num { font-family: 'Times New Roman', serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 6px; }
.costo-card__label { font-weight: 600; margin-bottom: 8px; }
.costo-card p { font-size: .88rem; opacity: .85; }

/* ROI CALC */
.roi-calc { background: #fafafa; border-radius: 16px; padding: 36px; max-width: 880px; margin: 0 auto; border: 1px solid #f3f4f6; }
.roi-calc h3 { color: var(--uni-text); font-size: 1.5rem; font-weight: 700; margin: 0 0 6px 0; }
.roi-calc__form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin: 22px 0; }
.roi-calc__form label { display: block; font-size: .85rem; font-weight: 600; color: var(--uni-text-soft); }
.roi-calc__form input, .roi-calc__form select { width: 100%; padding: 10px 12px; border: 1.5px solid #e5e7eb; border-radius: 8px; margin-top: 6px; }
.roi-calc__form input[type="range"] { padding: 0; }
.roi-calc__result { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.roi-calc__num { font-family: 'Times New Roman', serif; font-size: 1.8rem; font-weight: 700; color: var(--uni-red); }
.roi-calc__label { color: var(--uni-text-soft); font-size: .85rem; }

/* TESTIMONIOS */
.testimonios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testimonio { background: #fff; border-radius: var(--uni-radius); padding: 30px; box-shadow: var(--uni-shadow-sm); transition: all .3s; }
.testimonio:hover { transform: translateY(-4px); box-shadow: var(--uni-shadow); }
.testimonio__avatar { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; color: var(--uni-red-dark); margin-bottom: 14px; }
.testimonio__quote { font-style: italic; color: var(--uni-text); line-height: 1.6; margin-bottom: 18px; font-size: .98rem; }
.testimonio__person strong { display: block; color: var(--uni-red-dark); font-size: 1rem; }
.testimonio__person span { color: var(--uni-text-soft); font-size: .85rem; }

/* VIDA */
.vida-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 220px 220px; gap: 12px; }
.vida-card { border-radius: var(--uni-radius); position: relative; overflow: hidden; transition: transform .3s; cursor: pointer; }
.vida-card span { position: absolute; bottom: 18px; left: 18px; color: #fff; font-weight: 700; font-size: 1.1rem; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.vida-card--lg { grid-column: span 2; grid-row: span 2; }
.vida-card--md { grid-column: span 2; }
.vida-card:hover { transform: scale(1.02); }
@media (max-width: 768px) { .vida-grid { grid-template-columns: 1fr 1fr; } .vida-card--lg, .vida-card--md { grid-column: span 2; grid-row: span 1; } }

/* EVENTOS */
.evento-card { background: #fff; padding: 26px; border-radius: var(--uni-radius); box-shadow: var(--uni-shadow-sm); border-top: 4px solid var(--uni-red); transition: all .3s; }
.evento-card:hover { transform: translateY(-4px); box-shadow: var(--uni-shadow); }
.evento-card__date { color: var(--uni-red); font-size: .9rem; margin-bottom: 12px; }
.evento-card h3 { color: var(--uni-text); font-size: 1.1rem; font-weight: 700; margin: 0 0 8px 0; }
.evento-card p { color: var(--uni-text-soft); font-size: .92rem; line-height: 1.5; margin-bottom: 14px; }

/* CTA FINAL */
.section--cta-final { background: linear-gradient(135deg, var(--uni-red-dark), var(--uni-red)); color: #fff; text-align: center; padding: 80px 0; }
.section--cta-final h2 { font-family: 'Times New Roman', serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 14px 0; color: #fff; font-weight: 700; }
.section--cta-final p { font-size: 1.1rem; opacity: .95; margin-bottom: 28px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-final__btns { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* WHATSAPP FLOAT */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37,211,102,.4); z-index: 9999; transition: transform .2s; text-decoration: none; }
.wa-float:hover { transform: scale(1.1); color: #fff; }

/* SCROLL ANIMATIONS — visible por defecto, animan solo si JS marca .anim-ready */
[data-uni-animate] { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.anim-ready [data-uni-animate]:not(.is-visible) { opacity: 0; transform: translateY(24px); }
.anim-ready [data-uni-animate].is-visible { opacity: 1; transform: none; }

/* SUBTLE / UTILS */
.subtle { color: var(--uni-text-soft); font-size: .85rem; }
.text-center { text-align: center; }
.mt-3 { margin-top: 32px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero--video { min-height: 70vh; padding: 60px 20px; }
    .stats-bar { padding: 40px 0; }
    .section { padding: 50px 0; }
    .roi-calc__form, .roi-calc__result { grid-template-columns: 1fr; }
    .test-card { padding: 22px; }
}
