/* ==========================================================================
   I.E.P. MARANATHA - MODERN PREMIUM DESIGN SYSTEM
   ========================================================================== */

:root {
  --primary-navy: #0c2f5f;
  --primary-navy-dark: #071e3d;
  --primary-navy-light: #16427d;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-light: #fef3c7;
  --sky-blue: #0284c7;
  --sky-blue-light: #e0f2fe;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(12, 47, 95, 0.85);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 2px 4px rgba(12, 47, 95, 0.05);
  --shadow-md: 0 8px 24px rgba(12, 47, 95, 0.08);
  --shadow-lg: 0 16px 32px rgba(12, 47, 95, 0.12);
  --shadow-hover: 0 20px 40px rgba(12, 47, 95, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Acceso seguro */
.site-offset { padding-top: 80px; }
.public-alert {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-left: 4px solid;
    border-radius: 10px;
    font-weight: 600;
}
.public-alert--success { border-color: #10b981; background: #ecfdf5; color: #065f46; }
.public-alert--info { border-color: #39A9DB; background: #E8F6FC; color: #163F6B; }
.public-alert--error { border-color: #ef4444; background: #fef2f2; color: #991b1b; }
.auth-shell {
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding: clamp(2rem, 6vw, 5rem) 1rem;
    background:
        radial-gradient(circle at 14% 16%, rgba(57, 169, 219, .22), transparent 30%),
        linear-gradient(135deg, #0B1F3A 0 45%, #F6F8FB 45% 100%);
}
.auth-layout {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(390px, .72fr);
    gap: clamp(3rem, 8vw, 7rem);
    align-items: center;
}
.auth-story { color: white; }
.auth-kicker {
    margin: 0 0 .7rem;
    color: #39A9DB;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.auth-story h1 {
    max-width: 620px;
    margin: 0;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    line-height: 1.03;
    letter-spacing: -.045em;
}
.auth-story > p {
    max-width: 580px;
    margin: 1.4rem 0 0;
    color: #C3D5E6;
    font-size: 1.02rem;
    line-height: 1.75;
}
.auth-benefits {
    display: grid;
    gap: .8rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}
.auth-benefits li {
    display: flex;
    align-items: center;
    gap: .9rem;
    color: #E4EEF7;
    font-size: .86rem;
    font-weight: 600;
}
.auth-benefits i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    color: #7AC8EB;
}
.auth-card {
    padding: clamp(2rem, 5vw, 3rem);
    border: 1px solid rgba(11, 31, 58, .09);
    border-radius: 24px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 32px 80px rgba(3, 16, 31, .24);
}
.auth-brand img {
    width: 66px;
    height: 66px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(11, 31, 58, .16);
}
.auth-card > .auth-kicker { margin-top: 1.5rem; }
.auth-card h1,
.auth-card h2 {
    margin: 0;
    color: #0B1F3A;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    letter-spacing: -.03em;
}
.auth-copy {
    margin: .7rem 0 1.7rem;
    color: #526174;
    font-size: .88rem;
    line-height: 1.65;
}
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: 1.2rem;
    padding: .85rem 1rem;
    border: 1px solid #FECACA;
    border-radius: 11px;
    background: #FEF2F2;
    color: #B91C1C;
    font-size: .78rem;
    font-weight: 600;
}
.auth-alert--success {
    border-color: #A7F3D0;
    background: #ECFDF5;
    color: #047857;
}
.auth-form { display: grid; gap: .65rem; }
.auth-form label {
    margin-top: .35rem;
    color: #1E293B;
    font-size: .72rem;
    font-weight: 800;
}
.auth-input { position: relative; }
.auth-input > i {
    position: absolute;
    top: 50%;
    left: .95rem;
    color: #8B99AA;
    transform: translateY(-50%);
}
.auth-input input,
.auth-form > input {
    width: 100%;
    min-height: 50px;
    padding: .8rem 1rem .8rem 2.8rem;
    border: 1px solid #CCD6E1;
    border-radius: 12px;
    background: #FBFCFE;
    color: #1E293B;
    transition: .16s ease;
}
.auth-form > input { padding-left: 1rem; text-align: center; font-size: 1.4rem; letter-spacing: .24em; }
.auth-input input:focus,
.auth-form > input:focus {
    border-color: #39A9DB;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(57, 169, 219, .16);
}
.auth-form small { color: #526174; font-size: .7rem; }
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: .4rem 0 !important;
    color: #526174 !important;
    font-weight: 600 !important;
}
.auth-checkbox input { width: 17px; height: 17px; accent-color: #163F6B; }
.auth-submit {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: .5rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #0B1F3A, #163F6B);
    color: white;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(11, 31, 58, .18);
    transition: .16s ease;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(11, 31, 58, .24); }
.auth-help {
    margin: 1.3rem 0 0;
    color: #6B7A8C;
    font-size: .7rem;
    line-height: 1.6;
    text-align: center;
}
.auth-link-button {
    width: 100%;
    margin-top: 1rem;
    border: 0;
    background: transparent;
    color: #163F6B;
    font-size: .74rem;
    font-weight: 700;
    cursor: pointer;
}
.auth-link-button:disabled {
    color: #8B99AA;
    cursor: not-allowed;
}
.auth-resend {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
    text-align: center;
}
.auth-resend p {
    margin: 0;
    color: #526174;
    font-size: .72rem;
}
.auth-resend .auth-link-button {
    margin-top: .25rem;
}
@media (max-width: 850px) {
    .auth-shell { background: linear-gradient(180deg, #0B1F3A 0 35%, #F6F8FB 35% 100%); }
    .auth-layout { grid-template-columns: 1fr; gap: 2.2rem; max-width: 560px; }
    .auth-story h1 { font-size: clamp(2rem, 9vw, 3.2rem); }
    .auth-story > p { font-size: .9rem; }
}
@media (max-width: 520px) {
    .site-offset { padding-top: 64px; }
    .auth-shell { min-height: calc(100vh - 64px); padding: 2rem .75rem; }
    .auth-benefits { display: none; }
    .auth-card { padding: 1.5rem; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-submit, .auth-input input { transition: none; }
}

/* Acceso institucional independiente. Los paneles reales mantienen el
   contraste sin depender de diagonales o puntos de corte del fondo. */
body.auth-page {
    min-width: 320px;
    min-height: 100svh;
    overflow-x: hidden;
    background: #edf3f8;
}
.auth-page > .skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: .75rem 1rem;
    border-radius: 10px;
    background: #fff;
    color: #0c2f5f;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(7, 30, 61, .2);
}
.auth-page > .skip-link:focus { top: 1rem; }
.auth-page #main-content { min-height: 100svh; }
.auth-shell--login {
    min-height: 100svh;
    padding: clamp(1.25rem, 4vw, 3.5rem);
    background:
        radial-gradient(circle at 10% 12%, rgba(57, 169, 219, .16), transparent 25rem),
        #edf3f8;
}
.auth-layout--login {
    width: min(1000px, 100%);
    grid-template-columns: minmax(0, .88fr) minmax(410px, 1fr);
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(12, 47, 95, .12);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(7, 30, 61, .18);
}
.auth-story--login {
    min-height: 630px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 3.4rem);
    background:
        radial-gradient(circle at 100% 0, rgba(57, 169, 219, .24), transparent 18rem),
        linear-gradient(145deg, #0c2f5f, #071e3d);
    color: #fff;
}
.auth-brand-lockup {
    display: flex;
    align-items: center;
    gap: .9rem;
}
.auth-brand-lockup img {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .24);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}
.auth-brand-lockup div { display: grid; gap: .18rem; }
.auth-brand-lockup strong {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.25;
}
.auth-brand-lockup span {
    color: #9fdcf5;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.auth-story--login .auth-kicker { color: #8bd7f6; }
.auth-story--login h1 {
    max-width: 440px;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.45rem);
    line-height: 1.06;
}
.auth-story__description {
    max-width: 430px;
    margin: 1.15rem 0 0;
    color: #d7e6f3;
    font-size: 1rem;
    line-height: 1.7;
}
.auth-security-note {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #e9f4fb;
    font-size: .84rem;
    font-weight: 700;
}
.auth-security-note i {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 11px;
    background: rgba(255, 255, 255, .09);
    color: #8bd7f6;
}
.auth-card--login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}
.auth-card--login .auth-kicker { margin: 0 0 .55rem; }
.auth-card--login h2 {
    color: #0c2f5f;
    font-size: clamp(2rem, 4vw, 2.65rem);
}
.auth-card--login .auth-copy {
    margin: .65rem 0 1.45rem;
    color: #475569;
    font-size: .96rem;
}
.auth-card--login .auth-form { gap: .72rem; }
.auth-card--login .auth-form > label:not(.auth-checkbox) {
    color: #172b45;
    font-size: .82rem;
}
.auth-card--login .auth-input input {
    min-height: 56px;
    padding-right: 1rem;
    background: #fff;
    color: #10233d;
    font-size: 1rem;
}
.auth-card--login .auth-input input::placeholder { color: #8291a4; }
.auth-card--login .auth-checkbox {
    min-height: 38px;
    font-size: .82rem;
}
.auth-card--login .auth-checkbox input {
    width: 20px;
    height: 20px;
}
.auth-card--login .auth-submit {
    min-height: 56px;
    font-size: .95rem;
}
.auth-alert--info {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #075985;
}
.auth-support {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid #dbe6ef;
    border-radius: 14px;
    background: #f7fafc;
    color: #42556d;
}
.auth-support > i {
    margin-top: .1rem;
    color: #1683b7;
    font-size: 1.15rem;
}
.auth-support div { display: grid; gap: .15rem; }
.auth-support strong {
    color: #16324f;
    font-size: .82rem;
}
.auth-support span { font-size: .76rem; }
.auth-support a {
    width: fit-content;
    color: #075f8b;
    font-size: .8rem;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-decoration: none;
}
.auth-support a:hover,
.auth-support a:focus-visible { text-decoration: underline; }

@media (max-width: 900px) {
    .auth-shell--login { padding: 1.5rem; }
    .auth-layout--login {
        max-width: 640px;
        grid-template-columns: 1fr;
        border-radius: 24px;
    }
    .auth-story--login {
        min-height: auto;
        gap: 1.4rem;
        padding: 1.6rem 2rem;
    }
    .auth-story--login h1 {
        max-width: none;
        font-size: clamp(1.7rem, 5vw, 2.3rem);
    }
    .auth-story__description { margin-top: .65rem; font-size: .9rem; }
    .auth-security-note { display: none; }
    .auth-card--login { padding: 2rem; }
}

@media (max-width: 560px) {
    .auth-shell--login {
        display: block;
        min-height: 100svh;
        padding: 0;
        background: #fff;
    }
    .auth-layout--login {
        min-height: 100svh;
        grid-template-rows: auto 1fr;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .auth-story--login {
        gap: 1rem;
        padding: 1.1rem 1.25rem;
    }
    .auth-brand-lockup img {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        border-radius: 13px;
    }
    .auth-brand-lockup strong { font-size: .96rem; }
    .auth-brand-lockup span { font-size: .64rem; }
    .auth-story__content { display: none; }
    .auth-card--login {
        justify-content: flex-start;
        padding: 1.6rem 1.25rem 2rem;
    }
    .auth-card--login h2 { font-size: 2rem; }
    .auth-card--login .auth-copy { margin-bottom: 1.15rem; font-size: .9rem; }
    .auth-card--login .auth-input input,
    .auth-card--login .auth-submit { min-height: 54px; }
    .auth-support { margin-top: 1rem; padding: .85rem; }
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-navy);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #fbbf24 0%, var(--accent-gold) 100%);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: #ffffff;
  color: var(--primary-navy);
  border-color: #ffffff;
  transform: translateY(-3px);
}

.btn-login {
  background: linear-gradient(135deg, var(--primary-navy-light) 0%, var(--primary-navy) 100%);
  color: #ffffff !important;
  border-radius: 30px;
  padding: 0.6rem 1.4rem !important;
  box-shadow: 0 4px 12px rgba(12, 47, 95, 0.2);
}

.btn-login:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(12, 47, 95, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.title-text h1 {
  font-size: 1.35rem;
  letter-spacing: 1px;
  color: var(--primary-navy);
  margin: 0;
}

.title-text .slogan {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold-hover);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-navy);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:not(.btn-login)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 60%, var(--primary-navy-light) 100%);
  color: #ffffff;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 50%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-gold-light);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
}

.hero-text h1 {
  font-size: 3.2rem;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  font-weight: 800;
}

.hero-text h1 span {
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-gold);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
.section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold-hover);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  color: var(--primary-navy);
  font-weight: 800;
}

.section-title-line {
  width: 60px;
  height: 4px;
  background: var(--accent-gold);
  margin: 1rem auto 0 auto;
  border-radius: 2px;
}

/* ==========================================================================
   ABOUT / NOSOTROS SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.about-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(12, 47, 95, 0.05);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-navy), var(--accent-gold));
  opacity: 0;
  transition: var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.about-card:hover::before {
  opacity: 1;
}

.about-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--sky-blue-light);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.about-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.about-card ul {
  list-style: none;
  padding: 0;
}

.about-card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold-hover);
  font-weight: bold;
}

/* ==========================================================================
   LEVELS / NIVELES EDUCATIVOS
   ========================================================================== */
.levels-bg {
  background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.level-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.level-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.level-img-wrap {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.level-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.level-card:hover .level-img-wrap img {
  transform: scale(1.08);
}

.level-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.level-body {
  padding: 1.8rem;
}

.level-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.level-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   GALLERY & NEWS
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

.news-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent-gold);
  transition: var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold-hover);
  margin-bottom: 0.4rem;
}

.news-title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.news-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-grid > *,
.contact-item > div:last-child {
  min-width: 0;
}

.contact-item p {
  overflow-wrap: anywhere;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-info-card h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form-wrap {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(12, 47, 95, 0.12);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--primary-navy-dark);
  color: #ffffff;
  padding: 4rem 0 2rem 0;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--accent-gold);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-text h1 {
    font-size: 2.3rem;
  }

  .contact-info-card,
  .contact-form-wrap {
    padding: 1.5rem;
  }
}

/* ========================================================================== 
   PORTADA PÚBLICA · ESTRUCTURA INSTITUCIONAL 2026
   ========================================================================== */
.public-home {
  --public-navy: #082d55;
  --public-navy-deep: #061f3d;
  --public-blue: #0b83b4;
  --public-cyan: #27add8;
  --public-gold: #f4a000;
  --public-border: #d7e3ec;
  --public-muted: #536b80;
  background: #ffffff;
}

.public-home .site-offset {
  min-height: 86px;
  padding-top: 86px;
  background: #ffffff;
}

.public-home .public-alert {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 14px;
  margin-bottom: 14px;
  padding: .78rem 1rem;
  font-size: .88rem;
  box-shadow: 0 6px 18px rgba(8, 45, 85, .06);
}

.public-home .main-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(8, 45, 85, .11);
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
}

.public-home .main-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--public-navy) 0 72%, var(--public-gold) 72% 82%, var(--public-cyan) 82% 100%);
}

.public-home .main-header.is-scrolled {
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 10px 30px rgba(6, 31, 61, .09);
}

.public-home .header-container {
  min-height: 86px;
  gap: clamp(1.4rem, 3vw, 3.4rem);
  padding-top: .65rem;
  padding-bottom: .65rem;
}

.public-home .logo-brand {
  min-width: 0;
  gap: .9rem;
}

.public-home .logo-emblem {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(8, 45, 85, .2);
  border-radius: 16px;
  background: var(--public-navy-deep);
  box-shadow: 0 10px 24px rgba(6, 31, 61, .16);
}

.public-home .logo-img {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  object-fit: cover;
  background: transparent;
  filter: none;
  box-shadow: none;
}

.public-home .title-text {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.public-home .brand-overline {
  color: #47718e;
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.public-home .title-text h1 {
  color: var(--public-navy-deep);
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: .065em;
}

.public-home .title-text .slogan {
  color: #b96700;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.public-home .main-nav { margin-left: auto; }

.public-home .main-nav ul {
  gap: .35rem;
}

.public-home .nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .7rem .9rem;
  border-radius: 8px;
  color: #27455f;
  font-size: .86rem;
  font-weight: 750;
}

.public-home .nav-link:not(.btn-login)::after {
  right: .9rem;
  bottom: 4px;
  left: .9rem;
  width: auto;
  transform: scaleX(0);
  transform-origin: left;
}

.public-home .nav-link:hover,
.public-home .nav-link.active {
  background: #f4f8fb;
  color: var(--public-navy-deep);
}

.public-home .nav-link:hover::after,
.public-home .nav-link.active::after {
  width: auto;
  transform: scaleX(1);
}

.public-home .btn-login {
  min-width: 190px;
  min-height: 54px;
  display: inline-grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: .65rem;
  margin-left: .55rem;
  padding: .45rem .8rem !important;
  border: 1px solid #0a3b69;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--public-navy-deep), #0b4778);
  box-shadow: 0 10px 24px rgba(6, 31, 61, .18);
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: none;
}

.public-home .btn-login__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #ffffff;
}

.public-home .btn-login__copy {
  display: grid;
  justify-items: start;
  gap: 1px;
  line-height: 1.05;
}

.public-home .btn-login__copy strong {
  color: #ffffff;
  font-size: .86rem;
  font-weight: 800;
}

.public-home .btn-login__copy small {
  color: #b9d5e7;
  font-size: .54rem;
  font-weight: 650;
  letter-spacing: .035em;
}

.public-home .btn-login__arrow {
  color: var(--public-gold);
  font-size: .7rem;
}

.public-home .btn-login:hover {
  border-color: var(--public-gold);
  background: linear-gradient(135deg, #0a3d70, #0c5588);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.public-home .nav-account {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.public-home .nav-account__identity {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .56rem .78rem;
  border: 1px solid #ead49f;
  border-radius: 10px;
  background: #fff9e9;
  color: var(--public-navy);
  font-size: .78rem;
  font-weight: 750;
}

.public-home .public-logout {
  margin-left: 0;
  border-color: #bb2830;
  background: #c72e36;
}

.public-home .public-nav-scrim[hidden] {
  display: none;
}

.public-home .hero {
  min-height: auto;
  align-items: stretch;
  padding: clamp(4rem, 7vw, 6.4rem) 0 2rem;
  background: var(--public-navy-deep);
}

.public-home .hero-bg-media img {
  opacity: 1;
}

.public-home .hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 28, 55, .95) 0%, rgba(6, 39, 74, .89) 46%, rgba(7, 44, 79, .7) 100%),
    linear-gradient(0deg, rgba(4, 24, 47, .72), transparent 52%);
}

.public-home .hero-content {
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.public-home .hero-text {
  max-width: 760px;
}

.public-home .hero-badge {
  margin-bottom: 1.25rem;
  padding: .48rem .82rem;
  border-color: rgba(244, 160, 0, .55);
  background: rgba(244, 160, 0, .13);
  color: #fff2cd;
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .015em;
}

.public-home .hero-eyebrow {
  display: block;
  margin-bottom: .85rem;
  color: #8eddf3;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.public-home .hero-text h1 {
  max-width: 770px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.65rem, 5.2vw, 4.65rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.public-home .hero-text h1 span {
  color: #ffb31e;
}

.public-home .hero-subtitle {
  max-width: 690px;
  margin: 1.45rem 0 1.8rem;
  color: #dbe9f4;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.75;
}

.public-home .hero-actions {
  gap: .8rem;
}

.public-home .hero-actions .btn {
  min-height: 52px;
  padding: .82rem 1.22rem;
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 750;
}

.public-home .hero-actions .btn-primary {
  background: #f4a000;
  box-shadow: 0 11px 25px rgba(244, 160, 0, .22);
}

.public-home .hero-actions .btn-primary:hover {
  background: #ffb21b;
}

.public-home .hero-purpose-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  background: rgba(255, 255, 255, .095);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(2, 15, 29, .25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.public-home .hero-purpose-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  border-radius: 15px;
  background: #f4a000;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 10px 22px rgba(244, 160, 0, .25);
}

.public-home .hero-purpose-card > span {
  color: #8eddf3;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.public-home .hero-purpose-card h2 {
  margin: .45rem 0 .75rem;
  color: #ffffff;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.25;
}

.public-home .hero-purpose-card > p {
  color: #cfdeea;
  font-size: .84rem;
  line-height: 1.65;
}

.public-home .hero-purpose-card ul {
  display: grid;
  gap: .8rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.public-home .hero-purpose-card li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
}

.public-home .hero-purpose-card li > i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(39, 173, 216, .16);
  color: #83d8ef;
  font-size: .7rem;
}

.public-home .hero-purpose-card li span {
  display: grid;
  gap: 1px;
}

.public-home .hero-purpose-card li strong {
  color: #ffffff;
  font-size: .8rem;
}

.public-home .hero-purpose-card li small {
  color: #bed0df;
  font-size: .7rem;
  line-height: 1.45;
}

.public-home .hero-purpose-card > a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #ffffff;
  font-size: .78rem;
  font-weight: 800;
}

.public-home .hero-purpose-card > a i {
  color: #ffb31e;
  transition: transform .2s ease;
}

.public-home .hero-purpose-card > a:hover i {
  transform: translateX(4px);
}

.public-home .hero-stats-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(.5rem, 2vw, 1.5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
}

.public-home .stat-card {
  min-width: 0;
  gap: .85rem;
  padding: 1rem 1.2rem;
  border: 0;
  border-radius: 0;
  background: rgba(4, 28, 52, .7);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.public-home .stat-card:hover {
  transform: none;
  border-color: transparent;
  background: rgba(7, 49, 88, .9);
}

.public-home .stat-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  font-size: 1rem;
}

.public-home .stat-number {
  font-size: 1.55rem;
}

.public-home .stat-label {
  margin-top: 2px;
  color: #c9d9e6;
  font-size: .72rem;
}

.public-home .section {
  scroll-margin-top: 84px;
  padding: clamp(4.25rem, 7vw, 6.5rem) 0;
}

.public-home .section-header {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.public-home .section-subtitle {
  color: #0c7eaa;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.public-home .section-title {
  margin-top: .5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.035em;
}

.public-home .section-lead {
  max-width: 700px;
  margin: .8rem auto 0;
  color: var(--public-muted);
  font-size: .96rem;
  line-height: 1.7;
}

.public-home .section-title-line {
  width: 44px;
  height: 4px;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--public-gold), #ffcc58);
}

.public-home #nosotros {
  background: #ffffff;
}

.public-home .about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.public-home .about-card {
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--public-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(8, 45, 85, .06);
}

.public-home .about-card::before {
  height: 5px;
  opacity: 1;
  background: linear-gradient(90deg, var(--public-blue), var(--public-cyan));
}

.public-home .about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(8, 45, 85, .11);
}

.public-home .about-icon-wrapper {
  width: 54px;
  height: 54px;
  margin-bottom: 1.2rem;
  border-radius: 14px;
  background: #e6f6fb;
  color: #087ca8;
  font-size: 1.35rem;
}

.public-home .about-card h3 {
  font-size: 1.18rem;
}

.public-home .about-card p,
.public-home .about-card ul li {
  font-size: .86rem;
  line-height: 1.72;
}

.public-home .levels-bg {
  background: #f4f8fb;
}

.public-home .levels-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.public-home .level-card {
  border: 1px solid #d4e1ea;
  border-radius: 19px;
  box-shadow: 0 12px 30px rgba(8, 45, 85, .07);
}

.public-home .level-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(8, 45, 85, .12);
}

.public-home .level-img-wrap {
  height: 205px;
}

.public-home .level-img-wrap::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(4, 29, 54, .4));
}

.public-home .level-tag {
  z-index: 1;
  top: .9rem;
  right: .9rem;
  padding: .38rem .72rem;
  border-radius: 9px;
  background: rgba(8, 45, 85, .94);
  font-size: .7rem;
}

.public-home .level-body {
  min-height: 190px;
  padding: 1.45rem;
}

.public-home .level-body h3 {
  margin-bottom: .65rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.public-home .level-body p {
  font-size: .84rem;
  line-height: 1.7;
}

.public-home #contacto {
  background: #ffffff;
}

.public-home .contact-grid {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 1.2rem;
}

.public-home .contact-info-card,
.public-home .contact-form-wrap {
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 20px;
}

.public-home .contact-info-card {
  background: linear-gradient(145deg, #0b3764, #061f3d);
  box-shadow: 0 18px 40px rgba(6, 31, 61, .16);
}

.public-home .contact-info-card > p {
  margin-bottom: 1.5rem !important;
  font-size: .84rem;
  line-height: 1.65;
}

.public-home .contact-item {
  gap: .85rem;
  margin-bottom: 1rem;
  padding: .85rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
}

.public-home .contact-item-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  font-size: 1rem;
}

.public-home .contact-item strong {
  font-size: .76rem;
}

.public-home .contact-item p {
  margin-top: 2px;
  color: #d7e4ef;
  font-size: .76rem;
}

.public-home .contact-form-wrap {
  border: 1px solid var(--public-border);
  box-shadow: 0 14px 35px rgba(8, 45, 85, .07);
}

.public-home .contact-form-heading {
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #e0e8ef;
}

.public-home .contact-form-heading > span {
  color: #087ca8;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.public-home .contact-form-heading h3 {
  margin: .35rem 0 .35rem;
  font-size: 1.25rem;
}

.public-home .contact-form-heading p {
  color: var(--public-muted);
  font-size: .79rem;
}

.public-home .form-group {
  margin-bottom: 1rem;
}

.public-home .form-group label {
  margin-bottom: .38rem;
  font-size: .76rem;
  font-weight: 750;
}

.public-home .form-control {
  min-height: 48px;
  padding: .72rem .9rem;
  border-color: #becfdb;
  border-radius: 10px;
  background: #fbfdfe;
  color: #17324b;
  font-size: .84rem;
}

.public-home textarea.form-control {
  min-height: 108px;
  resize: vertical;
}

.public-home .contact-form-wrap .btn-primary {
  min-height: 50px;
  border-radius: 11px;
  background: var(--public-navy);
  box-shadow: none;
  font-size: .84rem;
}

.public-home .footer {
  padding: 3.6rem 0 1.6rem;
  border-top-width: 5px;
  background: #061d38;
}

.public-home .footer-grid {
  grid-template-columns: 1.35fr .8fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-bottom: 2.5rem;
}

.public-home .footer-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}

.public-home .footer-brand img {
  width: 52px;
  height: 52px;
  padding: 3px;
  border-radius: 13px;
  background: #ffffff;
}

.public-home .footer-brand div {
  display: grid;
}

.public-home .footer-brand strong {
  color: #ffffff;
  font-size: 1rem;
}

.public-home .footer-brand span {
  color: #8dcbe1;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.public-home .footer-description {
  max-width: 430px;
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
  line-height: 1.7;
}

.public-home .footer-col h4 {
  font-size: .95rem;
}

.public-home .footer-links a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
}

.public-home .footer-bottom {
  font-size: .72rem;
}

@media (max-width: 1040px) {
  .public-home .main-nav ul { gap: .1rem; }
  .public-home .nav-link { padding-inline: .68rem; }
  .public-home .hero-content { grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 2rem; }
  .public-home .hero-text h1 { font-size: clamp(2.7rem, 5vw, 3.8rem); }
}

@media (max-width: 900px) {
  .public-home .hero-content {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .public-home .hero-text { max-width: 740px; }
  .public-home .hero-subtitle { margin-left: 0; margin-right: 0; }
  .public-home .hero-actions { justify-content: flex-start; }
  .public-home .hero-purpose-card { max-width: none; }
  .public-home .about-grid,
  .public-home .levels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-home .about-card:last-child,
  .public-home .level-card:last-child { grid-column: 1 / -1; }
  .public-home .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .public-home .site-offset {
    min-height: 74px;
    padding-top: 74px;
  }

  .public-home .main-header,
  .public-home .header-container {
    min-height: 74px;
  }

  .public-home .header-container {
    padding: .55rem 1rem;
  }

  .public-home .logo-brand { gap: .65rem; }
  .public-home .logo-emblem { width: 50px; height: 50px; flex-basis: 50px; border-radius: 13px; }
  .public-home .logo-img { border-radius: 10px; }
  .public-home .brand-overline { display: none; }
  .public-home .title-text h1 { font-size: 1.05rem; }
  .public-home .title-text .slogan { font-size: .53rem; letter-spacing: .055em; }

  .public-home .mobile-toggle {
    position: relative;
    z-index: 1003;
    display: inline-flex;
    border: 1px solid #c9d9e5;
    border-radius: 11px;
    background: #f4f9fc;
    font-size: 1.15rem;
  }

  .public-home .main-nav {
    position: fixed;
    z-index: 1002;
    top: 74px;
    right: 0;
    bottom: 0;
    height: calc(100vh - 74px);
    height: calc(100dvh - 74px);
    width: min(330px, 88vw);
    display: block;
    padding: 1rem;
    overflow-y: auto;
    border-left: 1px solid #d5e2eb;
    background: #ffffff;
    box-shadow: -20px 0 45px rgba(6, 31, 61, .18);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .24s ease, visibility .24s ease;
  }

  .public-home .main-header.menu-open .main-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .public-home .main-nav ul {
    display: grid;
    align-content: start;
    gap: .35rem;
  }

  .public-home .main-nav li,
  .public-home .main-nav a,
  .public-home .main-nav form,
  .public-home .main-nav .btn-login {
    width: 100%;
  }

  .public-home .nav-link {
    justify-content: flex-start;
    min-height: 52px;
    padding: .85rem 1rem;
    font-size: .92rem;
  }

  .public-home .nav-link:not(.btn-login)::after {
    top: 12px;
    right: auto;
    bottom: 12px;
    left: 0;
    width: 4px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }

  .public-home .nav-link:hover::after,
  .public-home .nav-link.active::after {
    width: 4px;
    transform: scaleY(1);
  }

  .public-home .btn-login {
    grid-template-columns: 34px 1fr auto;
    margin: .45rem 0 0;
    border-radius: 11px;
  }

  .public-home .nav-account {
    display: grid;
    gap: .5rem;
  }

  .public-home .nav-account__identity { justify-content: center; min-height: 46px; }

  .public-home .public-nav-scrim {
    position: fixed;
    z-index: 1001;
    inset: 74px 0 0;
    width: 100%;
    border: 0;
    background: rgba(3, 19, 36, .58);
    backdrop-filter: blur(2px);
  }

  .public-menu-open { overflow: hidden; }

  .public-home .hero {
    padding: 3.4rem 0 1.25rem;
  }

  .public-home .hero-overlay {
    background: linear-gradient(180deg, rgba(5, 30, 57, .93), rgba(4, 28, 53, .89));
  }

  .public-home .hero-content {
    gap: 1.5rem;
    text-align: left;
  }

  .public-home .hero-badge { margin-bottom: 1rem; }
  .public-home .hero-text h1 { font-size: clamp(2.35rem, 11vw, 3.2rem); line-height: 1.04; }
  .public-home .hero-subtitle { margin: 1.1rem 0 1.4rem; font-size: .96rem; line-height: 1.65; }
  .public-home .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
  .public-home .hero-actions .btn { width: 100%; padding-inline: .75rem; font-size: .76rem; }

  .public-home .hero-purpose-card { padding: 1.35rem; border-radius: 18px; }
  .public-home .hero-purpose-card__icon { width: 46px; height: 46px; margin-bottom: .85rem; }

  .public-home .hero-stats-grid { margin-top: 0; border-radius: 14px; }
  .public-home .stat-card { display: grid; justify-items: center; gap: .35rem; padding: .8rem .35rem; text-align: center; }
  .public-home .stat-icon { width: 35px; height: 35px; flex-basis: 35px; border-radius: 10px; font-size: .8rem; }
  .public-home .stat-number { font-size: 1.25rem; }
  .public-home .stat-label { font-size: .58rem; line-height: 1.35; }

  .public-home .section { scroll-margin-top: 74px; padding: 4rem 0; }
  .public-home .section-header { text-align: left; }
  .public-home .section-lead { margin-left: 0; margin-right: 0; font-size: .87rem; }
  .public-home .section-title-line { margin-left: 0; }

  .public-home .about-grid,
  .public-home .levels-grid { grid-template-columns: 1fr; }
  .public-home .about-card:last-child,
  .public-home .level-card:last-child { grid-column: auto; }

  .public-home .level-body { min-height: 0; }
  .public-home .contact-info-card,
  .public-home .contact-form-wrap { padding: 1.25rem; }

  .public-home .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .public-home .container { padding-inline: 1rem; }
  .public-home .title-text h1 { font-size: .97rem; }
  .public-home .title-text .slogan { max-width: 185px; white-space: nowrap; }
  .public-home .hero-eyebrow { font-size: .62rem; }
  .public-home .hero-badge { font-size: .66rem; }
  .public-home .hero-actions { grid-template-columns: 1fr; }
  .public-home .hero-actions .btn { min-height: 50px; font-size: .8rem; }
  .public-home .section-title { font-size: 2rem; }
}

/* ==========================================================
   IDENTIDAD INSTITUCIONAL — COMPOSICIÓN EDITORIAL
   ========================================================== */
.public-home .institutional-identity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 5%, rgba(99, 199, 251, .14), transparent 27rem),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.public-home .institutional-identity::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4rem;
  left: -8rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(12, 114, 179, .08);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgba(99, 199, 251, .025),
    0 0 0 7rem rgba(99, 199, 251, .018);
}

.public-home .identity-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.public-home .identity-heading__title .section-title {
  max-width: 690px;
  margin: .65rem 0 0;
  font-size: clamp(2.2rem, 3.55vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.public-home .identity-heading__headline span {
  display: block;
}

.public-home .identity-heading__headline span:first-child {
  white-space: nowrap;
}

.public-home .identity-heading__lead {
  position: relative;
  max-width: 680px;
  margin: 0 0 .35rem;
  padding-left: 1.5rem;
  color: #5a7189;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

.public-home .identity-heading__lead::before {
  content: "";
  position: absolute;
  top: .2rem;
  bottom: .2rem;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--public-cyan), var(--public-blue));
}

.public-home .identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(340px, 1.08fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.public-home .identity-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: clamp(1.65rem, 3vw, 2.4rem);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 48px rgba(4, 37, 70, .09);
  transition: transform .25s ease, box-shadow .25s ease;
}

.public-home .identity-card::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -6.5rem;
  width: 13rem;
  height: 13rem;
  border: 1px solid rgba(12, 114, 179, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem rgba(99, 199, 251, .035);
  pointer-events: none;
}

.public-home .identity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(4, 37, 70, .14);
}

.public-home .identity-card--vision {
  background: linear-gradient(145deg, #f1f9ff, #e7f4fc);
}

.public-home .identity-card--values {
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 199, 251, .22), transparent 44%),
    linear-gradient(145deg, #0b3d6d, #041d38);
  box-shadow: 0 22px 54px rgba(3, 29, 56, .24);
}

.public-home .identity-card--values::after {
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 2.5rem rgba(255, 255, 255, .025);
}

.public-home .identity-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.public-home .identity-card__icon {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 13px;
  background: #dff3ff;
  color: #0878b5;
  font-size: 1.35rem;
  box-shadow: inset 0 0 0 1px rgba(12, 114, 179, .08);
}

.public-home .identity-card--vision .identity-card__icon {
  background: #ffffff;
}

.public-home .identity-card--values .identity-card__icon {
  background: rgba(255, 255, 255, .12);
  color: #9bddff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.public-home .identity-card__number {
  color: rgba(12, 114, 179, .13);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1;
}

.public-home .identity-card--values .identity-card__number {
  color: rgba(255, 255, 255, .14);
}

.public-home .identity-card__label {
  display: block;
  margin-bottom: .55rem;
  color: #0b75b0;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.public-home .identity-card h3 {
  margin: 0 0 1rem;
  color: var(--public-ink);
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  line-height: 1.15;
}

.public-home .identity-card p {
  position: relative;
  z-index: 1;
  max-width: 44ch;
  margin: 0;
  color: #5a7189;
  font-size: .98rem;
  line-height: 1.78;
}

.public-home .identity-card--values .identity-card__label,
.public-home .identity-card--values h3 {
  color: #ffffff;
}

.public-home .identity-values {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .68rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.public-home .identity-values li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  color: #e6f3fc;
  font-size: .94rem;
  line-height: 1.35;
}

.public-home .identity-values i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: rgba(99, 199, 251, .15);
  color: #8edaff;
  font-size: .7rem;
}

@media (max-width: 1100px) {
  .public-home .identity-heading {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .public-home .identity-heading__lead {
    max-width: 760px;
  }

  .public-home .identity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-home .identity-card--values {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .public-home .identity-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .public-home .identity-heading__title .section-title {
    font-size: clamp(1.85rem, 8.7vw, 2.7rem);
  }

  .public-home .identity-heading__lead {
    padding-left: 1rem;
  }

  .public-home .identity-grid {
    grid-template-columns: 1fr;
  }

  .public-home .identity-card,
  .public-home .identity-card--values {
    grid-column: auto;
    min-height: 0;
    padding: 1.5rem;
    border-radius: 14px;
  }

  .public-home .identity-card__top {
    margin-bottom: 1.7rem;
  }

  .public-home .identity-values {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-home *,
  .public-home *::before,
  .public-home *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ========================================================================== 
   PORTADA EDITORIAL · SISTEMA VISUAL INSTITUCIONAL
   ========================================================================== */
.public-home .site-offset {
  min-height: 74px;
  padding-top: 74px;
}

.public-home .main-header,
.public-home .header-container {
  min-height: 74px;
}

.public-home .main-header {
  border: 0;
  background: rgba(255, 255, 255, .98);
}

.public-home .main-header::after {
  height: 1px;
  background: rgba(8, 45, 85, .14);
}

.public-home .main-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(5, 27, 49, .07);
}

.public-home .header-container {
  gap: 2rem;
  padding-top: .45rem;
  padding-bottom: .45rem;
}

.public-home .logo-brand { gap: .7rem; }

.public-home .logo-emblem {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.public-home .logo-img { border-radius: 8px; }

.public-home .title-text { gap: 3px; }

.public-home .title-text h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: none;
}

.public-home .title-text .slogan {
  color: #7a5a20;
  font-size: .53rem;
  font-weight: 700;
  letter-spacing: .075em;
}

.public-home .main-nav ul { gap: .15rem; }

.public-home .nav-link {
  min-height: 42px;
  padding: .6rem .75rem;
  border-radius: 0;
  background: transparent;
  color: #40566a;
  font-size: .79rem;
  font-weight: 700;
}

.public-home .nav-link:hover,
.public-home .nav-link.active {
  background: transparent;
  color: var(--public-navy-deep);
}

.public-home .nav-link:not(.btn-login)::after {
  right: .75rem;
  bottom: 2px;
  left: .75rem;
  height: 2px;
  background: var(--public-gold);
}

.public-home .btn-login {
  min-width: 116px;
  min-height: 42px;
  grid-template-columns: 1fr auto;
  gap: .8rem;
  margin-left: .8rem;
  padding: .55rem .85rem !important;
  border: 0;
  border-radius: 5px;
  background: var(--public-navy-deep);
  box-shadow: none;
}

.public-home .btn-login__copy { justify-items: start; }
.public-home .btn-login__copy strong { font-size: .78rem; }
.public-home .btn-login__arrow { color: var(--public-gold); }

.public-home .btn-login:hover {
  border: 0;
  background: #0a3b66;
  transform: none;
}

.public-home .hero {
  padding: clamp(4rem, 7vw, 6rem) 0 1.5rem;
}

.public-home .hero-content {
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, .66fr);
  gap: clamp(3rem, 7vw, 7rem);
}

.public-home .hero-purpose-card {
  padding: .5rem 0 .5rem clamp(1.5rem, 4vw, 3rem);
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .28);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.public-home .hero-purpose-card__icon {
  width: auto;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  border-radius: 0;
  background: transparent;
  color: var(--public-gold);
  font-size: 1.4rem;
  box-shadow: none;
}

.public-home .hero-purpose-card ul {
  gap: 0;
  margin: 1.1rem 0 1.25rem;
}

.public-home .hero-purpose-card li {
  grid-template-columns: 18px minmax(0, 1fr);
  gap: .7rem;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.public-home .hero-purpose-card li > i {
  width: auto;
  height: auto;
  display: block;
  padding-top: 3px;
  border-radius: 0;
  background: transparent;
  color: #72cbe7;
}

.public-home .hero-stats-grid {
  gap: 0;
  margin-top: 1.75rem;
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  background: transparent;
}

.public-home .stat-card {
  gap: .7rem;
  padding: 1rem 1.25rem;
  background: transparent;
  backdrop-filter: none;
}

.public-home .stat-card + .stat-card {
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.public-home .stat-card:hover { background: transparent; }

.public-home .stat-icon {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
  color: var(--public-gold);
  font-size: .95rem;
}

.public-home .section { padding: clamp(3.75rem, 6vw, 5.25rem) 0; }

.public-home .section-header {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(320px, 1.18fr);
  column-gap: clamp(2rem, 8vw, 7rem);
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
  text-align: left;
}

.public-home .section-subtitle,
.public-home .section-title { grid-column: 1; }

.public-home .section-title {
  margin: .45rem 0 0;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.08;
}

.public-home .section-lead {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 620px;
  margin: 0;
  font-size: .94rem;
}

.public-home .section-title-line { display: none; }

.public-home .about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.public-home .about-card {
  min-height: 0;
  padding: .35rem clamp(1.4rem, 3vw, 2.5rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.public-home .about-card:first-child { padding-left: 0; }
.public-home .about-card:last-child { padding-right: 0; }

.public-home .about-card + .about-card {
  border-left: 1px solid #dce4e9;
}

.public-home .about-card::before { display: none; }
.public-home .about-card:hover { transform: none; box-shadow: none; }

.public-home .about-icon-wrapper {
  width: auto;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  border-radius: 0;
  background: transparent;
  color: #0b81ad;
  font-size: 1.2rem;
}

.public-home .about-card h3 { font-size: 1.08rem; }

.public-home .levels-bg { background: #f2f0eb; }

.public-home .levels-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.public-home .level-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.public-home .level-card:hover { transform: none; box-shadow: none; }

.public-home .level-img-wrap {
  height: 250px;
  border-radius: 2px;
}

.public-home .level-tag {
  top: auto;
  right: auto;
  bottom: 0;
  left: 0;
  padding: .5rem .7rem;
  border-radius: 0;
  background: var(--public-navy-deep);
}

.public-home .level-body {
  min-height: 0;
  padding: 1rem 0 0;
}

.public-home .level-body h3 {
  margin-bottom: .45rem;
  font-size: 1rem;
}

.public-home #contacto { background: #ffffff; }

.public-home .contact-grid {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 0;
  background: #f5f7f8;
}

.public-home .contact-info-card,
.public-home .contact-form-wrap {
  min-height: 100%;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.public-home .contact-info-card {
  background: var(--public-navy-deep);
}

.public-home .contact-info-card > p {
  margin-bottom: 1.25rem;
  opacity: .78;
}

.public-home .contact-item {
  gap: .8rem;
  margin: 0;
  padding: .85rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  border-radius: 0;
  background: transparent;
}

.public-home .contact-item-icon {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  border-radius: 0;
  background: transparent;
  color: var(--public-gold);
  font-size: .85rem;
}

.public-home .contact-form-heading {
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border: 0;
}

.public-home .form-control {
  min-height: 45px;
  padding: .6rem 0;
  border: 0;
  border-bottom: 1px solid #9fb0bc;
  border-radius: 0;
  background: transparent;
}

.public-home .form-control:focus {
  border-bottom-color: var(--public-blue);
  box-shadow: 0 1px 0 var(--public-blue);
}

.public-home .contact-form-wrap .btn-primary {
  width: auto;
  min-height: 46px;
  padding-inline: 1.4rem;
  border-radius: 3px;
}

.public-home .footer {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 1.25rem;
  border: 0;
  background: #05192d;
}

.public-home .footer-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
}

.public-home .footer-identity > p {
  max-width: 520px;
  margin: 1rem 0 0;
  color: #9db0c1;
  font-size: .82rem;
  line-height: 1.7;
}

.public-home .footer-brand { margin: 0; }

.public-home .footer-brand img {
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
}

.public-home .footer-brand strong { font-size: 1.08rem; }

.public-home .footer-admission {
  position: relative;
  display: grid;
  gap: .35rem;
  padding: .15rem 3rem .15rem 1.6rem;
  border-left: 1px solid rgba(255, 255, 255, .2);
  color: #ffffff;
}

.public-home .footer-admission span,
.public-home .footer-directory__label {
  color: #6ec5df;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.public-home .footer-admission strong {
  max-width: 380px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.public-home .footer-admission i {
  position: absolute;
  right: 0;
  bottom: .35rem;
  color: var(--public-gold);
}

.public-home .footer-directory {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: 3.2rem;
  padding: 2.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.public-home .footer-directory__group {
  display: grid;
  align-content: start;
  gap: .7rem;
  color: #ffffff;
}

.public-home .footer-directory__group nav {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.2rem;
}

.public-home .footer-directory__group a,
.public-home .footer-directory__group small {
  color: #aebdca;
  font-size: .76rem;
}

.public-home .footer-directory__group strong { font-size: .82rem; }

.public-home .footer-directory__group a:hover { color: #ffffff; }

.public-home .footer-directory__group--access a:first-of-type {
  color: #ffffff;
  font-weight: 750;
}

.public-home .footer-directory__group--access i {
  margin-left: .35rem;
  color: var(--public-gold);
}

.public-home .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border: 0;
  color: #71879a;
}

@media (max-width: 900px) {
  .public-home .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }

  .public-home .hero-text { max-width: 740px; }
  .public-home .hero-subtitle { margin-left: 0; margin-right: 0; }
  .public-home .hero-actions { justify-content: flex-start; }

  .public-home .hero-purpose-card {
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, .24);
    border-left: 0;
  }

  .public-home .section-header {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .public-home .section-lead {
    grid-column: 1;
    grid-row: auto;
  }

  .public-home .footer-masthead { grid-template-columns: 1fr; gap: 2rem; }
  .public-home .footer-admission { padding-left: 0; border-left: 0; }
}

@media (max-width: 768px) {
  .public-home .header-container { gap: .8rem; }
  .public-home .logo-emblem { width: 44px; height: 44px; flex-basis: 44px; border-radius: 7px; }
  .public-home .title-text h1 { font-size: .92rem; }
  .public-home .title-text .slogan { font-size: .45rem; letter-spacing: .045em; }

  .public-home .main-nav { top: 74px; height: calc(100dvh - 74px); }
  .public-home .main-nav ul { gap: .15rem; }
  .public-home .nav-link { min-height: 48px; padding: .7rem .85rem; }
  .public-home .btn-login { width: 100%; grid-template-columns: 1fr auto; margin-top: .7rem; border-radius: 4px; }

  .public-home .hero { padding-top: 3.1rem; }
  .public-home .hero-content { gap: 2rem; }
  .public-home .hero-purpose-card { padding-top: 1.4rem; }

  .public-home .about-grid { grid-template-columns: 1fr; }
  .public-home .about-card,
  .public-home .about-card:first-child,
  .public-home .about-card:last-child {
    padding: 1.25rem 0;
  }
  .public-home .about-card + .about-card { border-top: 1px solid #dce4e9; border-left: 0; }

  .public-home .levels-grid { grid-template-columns: 1fr; gap: 2rem; }
  .public-home .level-card:last-child { grid-column: auto; }
  .public-home .level-img-wrap { height: 220px; }

  .public-home .contact-grid { grid-template-columns: 1fr; }
  .public-home .contact-info-card,
  .public-home .contact-form-wrap { padding: 1.5rem; }

  .public-home .footer-directory { grid-template-columns: 1fr; gap: 1.7rem; }
  .public-home .footer-bottom { display: grid; }
}

@media (max-width: 480px) {
  .public-home .hero-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .public-home .stat-card { padding: .8rem .35rem; }
  .public-home .stat-card .stat-icon { display: none; }
  .public-home .stat-number { font-size: 1.15rem; }
  .public-home .stat-label { font-size: .55rem; }
}

/* ========================================================================== 
   ACABADO PREMIUM · PALETA MARANATHA
   ========================================================================== */
.public-home {
  --public-ink: #071e2d;
  --public-navy: #0c3854;
  --public-navy-deep: #061a29;
  --public-blue: #126f7a;
  --public-cyan: #59bbb4;
  --public-gold: #dfa43a;
  --public-gold-soft: #f3dfb7;
  --public-paper: #fcfbf7;
  --public-sand: #f1ede4;
  --public-mist: #eaf2f0;
  --public-border: #d9e1de;
  --public-muted: #60717a;
  background: var(--public-paper);
  color: var(--public-ink);
}

.public-home ::selection {
  background: rgba(89, 187, 180, .3);
  color: var(--public-ink);
}

.public-home a:focus-visible,
.public-home button:focus-visible,
.public-home input:focus-visible,
.public-home textarea:focus-visible {
  outline: 3px solid rgba(89, 187, 180, .5);
  outline-offset: 3px;
}

.public-home .site-offset,
.public-home .main-header {
  background: rgba(252, 251, 247, .975);
}

.public-home .main-header {
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.public-home .main-header::after {
  background: linear-gradient(90deg, rgba(7, 30, 45, .18), rgba(18, 111, 122, .26) 55%, rgba(223, 164, 58, .45));
}

.public-home .main-header.is-scrolled {
  box-shadow: 0 12px 36px rgba(7, 30, 45, .09);
}

.public-home .logo-img {
  filter: saturate(.92) contrast(1.03);
}

.public-home .title-text h1 { color: var(--public-ink); }
.public-home .title-text .slogan { color: #86652c; }

.public-home .nav-link {
  color: #52646e;
  transition: color .18s ease;
}

.public-home .nav-link:hover,
.public-home .nav-link.active { color: var(--public-ink); }

.public-home .nav-link:not(.btn-login)::after {
  background: linear-gradient(90deg, var(--public-cyan), var(--public-gold));
}

.public-home .btn-login {
  background: var(--public-ink);
  transition: background .18s ease, color .18s ease;
}

.public-home .btn-login:hover { background: var(--public-blue); }

.public-home .hero-bg-media img {
  filter: saturate(.78) contrast(1.06);
  transform: scale(1.01);
}

.public-home .hero-overlay {
  background:
    radial-gradient(circle at 78% 19%, rgba(89, 187, 180, .22), transparent 28%),
    linear-gradient(90deg, rgba(6, 26, 41, .98) 0%, rgba(7, 38, 56, .93) 48%, rgba(7, 45, 59, .77) 100%),
    linear-gradient(0deg, rgba(5, 22, 35, .84), transparent 58%);
}

.public-home .hero-badge {
  gap: .55rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--public-gold-soft);
  font-size: .7rem;
  letter-spacing: .04em;
  box-shadow: none;
}

.public-home .hero-badge i { color: var(--public-gold); }

.public-home .hero-eyebrow { color: #8ad4ce; }

.public-home .hero-text h1 {
  max-width: 810px;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.public-home .hero-text h1 span { color: #efb13e; }

.public-home .hero-subtitle {
  max-width: 700px;
  color: #d5e2e4;
}

.public-home .hero-actions .btn {
  border-radius: 4px;
  box-shadow: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.public-home .hero-actions .btn-primary {
  background: var(--public-gold);
  color: #152a34;
  box-shadow: none;
}

.public-home .hero-actions .btn-primary:hover {
  background: #edb64f;
  transform: translateY(-2px);
}

.public-home .hero-actions .btn-outline-light {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .035);
}

.public-home .hero-actions .btn-outline-light:hover {
  border-color: var(--public-cyan);
  background: rgba(89, 187, 180, .11);
  color: #ffffff;
}

.public-home .hero-purpose-card { border-left-color: rgba(89, 187, 180, .48); }
.public-home .hero-purpose-card__icon { color: var(--public-gold); }
.public-home .hero-purpose-card > span { color: #89d5cf; }
.public-home .hero-purpose-card li { border-bottom-color: rgba(137, 213, 207, .14); }
.public-home .hero-purpose-card li > i { color: #82d0ca; }
.public-home .hero-purpose-card > a i { color: var(--public-gold); }

.public-home .hero-stats-grid { border-top-color: rgba(137, 213, 207, .3); }
.public-home .stat-card + .stat-card { border-left-color: rgba(137, 213, 207, .2); }
.public-home .stat-icon { color: var(--public-gold); }

.public-home #nosotros {
  position: relative;
  background:
    radial-gradient(circle at 100% 0%, rgba(89, 187, 180, .09), transparent 28%),
    var(--public-paper);
}

.public-home .section-subtitle { color: var(--public-blue); }
.public-home .section-title { color: var(--public-ink); text-wrap: balance; }
.public-home .section-lead { color: var(--public-muted); }

.public-home .about-grid { counter-reset: institutional-value; }

.public-home .about-card {
  position: relative;
  counter-increment: institutional-value;
}

.public-home .about-card::before {
  content: "0" counter(institutional-value);
  position: absolute;
  top: -.35rem;
  right: clamp(1.4rem, 3vw, 2.5rem);
  left: auto;
  display: block;
  width: auto;
  height: auto;
  background: transparent;
  color: rgba(18, 111, 122, .13);
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.public-home .about-card:last-child::before { right: 0; }
.public-home .about-icon-wrapper { color: var(--public-blue); }
.public-home .about-card h3 { color: var(--public-ink); }
.public-home .about-card ul li::before { color: var(--public-gold); }

.public-home .levels-bg {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .32), transparent 45%),
    var(--public-sand);
}

.public-home .levels-grid { counter-reset: educational-level; }

.public-home .level-card {
  counter-increment: educational-level;
}

.public-home .level-img-wrap { overflow: hidden; }

.public-home .level-img-wrap img {
  filter: saturate(.82) contrast(1.02);
  transition: filter .4s ease, transform .55s cubic-bezier(.2, .75, .25, 1);
}

.public-home .level-card:hover .level-img-wrap img {
  filter: saturate(1) contrast(1.03);
  transform: scale(1.035);
}

.public-home .level-tag {
  background: rgba(6, 26, 41, .94);
  color: #ffffff;
}

.public-home .level-body h3 { color: var(--public-ink); }

.public-home .level-body h3::before {
  content: "0" counter(educational-level) "  ";
  color: var(--public-gold);
  font-size: .68rem;
  letter-spacing: .06em;
  vertical-align: .15em;
}

.public-home #contacto {
  background:
    radial-gradient(circle at 10% 15%, rgba(223, 164, 58, .08), transparent 24%),
    var(--public-paper);
}

.public-home .contact-grid { background: var(--public-mist); }

.public-home .contact-info-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(89, 187, 180, .18), transparent 32%),
    linear-gradient(150deg, #0b354a, var(--public-ink));
}

.public-home .contact-item-icon { color: var(--public-gold); }
.public-home .contact-form-wrap { background: rgba(255, 255, 255, .5); }
.public-home .contact-form-heading > span { color: var(--public-blue); }

.public-home .form-control {
  border-bottom-color: #9eb1b2;
  color: var(--public-ink);
}

.public-home .form-control:focus {
  border-bottom-color: var(--public-blue);
  box-shadow: 0 1px 0 var(--public-blue);
}

.public-home .contact-form-wrap .btn-primary {
  background: var(--public-ink);
  color: #ffffff;
}

.public-home .contact-form-wrap .btn-primary:hover { background: var(--public-blue); }

.public-home .footer {
  background:
    radial-gradient(circle at 82% 0%, rgba(18, 111, 122, .2), transparent 28%),
    linear-gradient(145deg, #061a29, #071f2f 58%, #092c3b);
}

.public-home .footer-brand img { filter: saturate(.9) contrast(1.04); }
.public-home .footer-admission { border-left-color: rgba(89, 187, 180, .33); }
.public-home .footer-admission span,
.public-home .footer-directory__label { color: #79cbc5; }
.public-home .footer-admission i,
.public-home .footer-directory__group--access i { color: var(--public-gold); }
.public-home .footer-directory { border-color: rgba(137, 213, 207, .15); }

@media (max-width: 900px) {
  .public-home .hero-purpose-card {
    border-top-color: rgba(89, 187, 180, .4);
  }

  .public-home .header-container { padding-inline: 1.25rem; }

  .public-home .mobile-toggle {
    position: relative;
    z-index: 1003;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 0;
    border-radius: 6px;
    background: var(--public-mist);
    color: var(--public-ink);
    font-size: 1.05rem;
  }

  .public-home .main-nav {
    position: fixed;
    z-index: 1002;
    top: 74px;
    right: 0;
    bottom: 0;
    width: min(340px, 90vw);
    height: calc(100vh - 74px);
    height: calc(100dvh - 74px);
    display: block;
    margin: 0;
    padding: 1.25rem;
    overflow-y: auto;
    border: 0;
    background: var(--public-paper);
    box-shadow: -24px 0 54px rgba(6, 26, 41, .2);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .24s ease, visibility .24s ease;
  }

  .public-home .main-header.menu-open .main-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .public-home .main-nav ul {
    display: grid;
    align-content: start;
    gap: .15rem;
  }

  .public-home .main-nav li,
  .public-home .main-nav a,
  .public-home .main-nav form,
  .public-home .main-nav .btn-login { width: 100%; }

  .public-home .nav-link {
    justify-content: flex-start;
    min-height: 50px;
    padding: .75rem .85rem;
    font-size: .88rem;
  }

  .public-home .nav-link:not(.btn-login)::after {
    top: 13px;
    right: auto;
    bottom: 13px;
    left: 0;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }

  .public-home .nav-link:hover::after,
  .public-home .nav-link.active::after {
    width: 3px;
    transform: scaleY(1);
  }

  .public-home .btn-login {
    grid-template-columns: 1fr auto;
    margin: .8rem 0 0;
  }

  .public-home .public-nav-scrim {
    position: fixed;
    z-index: 1001;
    inset: 74px 0 0;
    width: 100%;
    border: 0;
    background: rgba(6, 26, 41, .62);
    backdrop-filter: blur(3px);
  }

  .public-home .public-nav-scrim[hidden] { display: none; }
  .public-menu-open { overflow: hidden; }
}

@media (max-width: 768px) {
  .public-home .main-nav {
    background: var(--public-paper);
    border-left: 0;
  }

  .public-home .public-nav-scrim {
    background: rgba(6, 26, 41, .62);
  }

  .public-home .nav-link:not(.btn-login)::after {
    background: var(--public-gold);
  }

  .public-home .about-card::before,
  .public-home .about-card:last-child::before {
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-home .level-img-wrap img,
  .public-home .hero-actions .btn {
    transition: none;
  }
}

/* ========================================================================== 
   IDENTIDAD MARINA · AZUL MARINO, CELESTE Y BLANCO
   ========================================================================== */
.public-home {
  --public-ink: #071f3b;
  --public-navy: #082f5b;
  --public-navy-deep: #041a33;
  --public-blue: #0c72b3;
  --public-cyan: #63c7fb;
  --public-gold: #63c7fb;
  --public-gold-soft: #d8f1ff;
  --public-paper: #ffffff;
  --public-sand: #f4f8fc;
  --public-mist: #eaf6ff;
  --public-border: #d5e5f0;
  --public-muted: #587086;
  background: #ffffff;
  color: var(--public-ink);
}

.public-home ::selection {
  background: rgba(99, 199, 251, .34);
  color: var(--public-navy-deep);
}

.public-home > .skip-link {
  position: fixed;
  z-index: 3000;
  top: .7rem;
  left: 1rem;
  padding: .65rem .9rem;
  border-radius: 5px;
  background: #ffffff;
  color: var(--public-navy-deep);
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(2, 16, 32, .24);
  transform: translateY(-180%);
  transition: transform .16s ease;
}

.public-home > .skip-link:focus { transform: translateY(0); }

.public-home a:focus-visible,
.public-home button:focus-visible,
.public-home input:focus-visible,
.public-home textarea:focus-visible {
  outline-color: rgba(99, 199, 251, .78);
}

.public-home .site-offset {
  min-height: 94px;
  padding-top: 94px;
  background: #ffffff;
}

.public-home .main-header,
.public-home .header-container { min-height: 94px; }

.public-home .main-header,
.public-home .main-header.is-scrolled {
  border: 0;
  background:
    radial-gradient(circle at 12% -80%, rgba(99, 199, 251, .24), transparent 38%),
    linear-gradient(112deg, #041a33 0%, #072b52 58%, #0a3b69 100%);
  box-shadow: 0 12px 34px rgba(3, 20, 40, .2);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

.public-home .main-header::after {
  height: 2px;
  background: linear-gradient(90deg, transparent 3%, rgba(99, 199, 251, .92) 50%, transparent 97%);
}

.public-home .logo-emblem {
  width: 68px;
  height: 72px;
  flex-basis: 68px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.public-home .logo-img {
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, .26));
}

.public-home .title-text h1 {
  color: #ffffff;
  font-size: 1.12rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.public-home .title-text .slogan {
  color: #bce8ff;
  font-size: .54rem;
  letter-spacing: .09em;
}

.public-home .nav-link {
  border-radius: 6px;
  color: #dcefff;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.public-home .nav-link:hover,
.public-home .nav-link.active {
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

.public-home .nav-link:hover { transform: translateY(-1px); }

.public-home .nav-link:not(.btn-login)::after {
  height: 2px;
  background: linear-gradient(90deg, #ffffff, var(--public-cyan));
  box-shadow: 0 0 12px rgba(99, 199, 251, .58);
}

.public-home .btn-login {
  border: 1px solid rgba(255, 255, 255, .9);
  background: #ffffff;
  color: var(--public-navy-deep);
  box-shadow: 0 8px 20px rgba(2, 15, 31, .2);
}

.public-home .main-nav a.btn-login {
  min-width: 148px;
  grid-template-columns: auto 1fr auto;
}

.public-home .btn-login__shield {
  color: var(--public-blue);
  font-size: .82rem;
}

.public-home .btn-login__copy strong { color: var(--public-navy-deep); }
.public-home .btn-login__arrow { color: var(--public-blue); }

.public-home .btn-login:hover {
  border: 1px solid var(--public-cyan);
  background: #dff3ff;
  color: var(--public-navy-deep) !important;
  box-shadow: 0 9px 24px rgba(6, 95, 149, .2);
  transform: translateY(-1px);
}

.public-home .hero-bg-media img { filter: saturate(.75) contrast(1.08); }

.public-home .hero-overlay {
  background:
    radial-gradient(circle at 82% 18%, rgba(41, 157, 222, .24), transparent 29%),
    linear-gradient(90deg, rgba(3, 20, 40, .985) 0%, rgba(5, 38, 72, .94) 49%, rgba(7, 57, 98, .78) 100%),
    linear-gradient(0deg, rgba(2, 18, 36, .88), transparent 60%);
}

.public-home .hero-badge { color: #d8f1ff; }
.public-home .hero-badge i,
.public-home .hero-purpose-card__icon,
.public-home .hero-purpose-card > a i,
.public-home .stat-icon { color: var(--public-cyan); }
.public-home .hero-eyebrow,
.public-home .hero-purpose-card > span,
.public-home .hero-purpose-card li > i { color: #a9e2ff; }
.public-home .hero-text h1 span { color: #83d4ff; }
.public-home .hero-subtitle { color: #dceaf5; }

.public-home .hero-actions .btn-primary {
  background: var(--public-cyan);
  color: var(--public-navy-deep);
}

.public-home .hero-actions .btn-primary:hover { background: #9adeff; }
.public-home .hero-actions .btn-outline-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, .1);
}

.public-home .hero-purpose-card,
.public-home .hero-stats-grid,
.public-home .stat-card + .stat-card { border-color: rgba(151, 220, 255, .26); }

.public-home #nosotros {
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 199, 251, .09), transparent 30%),
    #ffffff;
}

.public-home .section-subtitle,
.public-home .about-icon-wrapper { color: var(--public-blue); }
.public-home .section-title { color: var(--public-ink); }
.public-home .about-card::before { color: rgba(12, 114, 179, .11); }
.public-home .about-card ul li::before { color: #2098d4; }

.public-home .levels-bg {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .8), transparent 48%),
    #f3f8fc;
}

.public-home .level-tag { background: rgba(4, 26, 51, .95); }
.public-home .level-body h3::before { color: var(--public-blue); }

.public-home #contacto { background: #ffffff; }
.public-home .contact-grid { background: #edf6fc; }

.public-home .contact-info-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 199, 251, .2), transparent 34%),
    linear-gradient(150deg, #07345f, #041a33);
}

.public-home .contact-item-icon { color: var(--public-cyan); }
.public-home .contact-form-wrap { background: #ffffff; }
.public-home .contact-form-heading > span { color: var(--public-blue); }
.public-home .form-control { border-bottom-color: #9fb8ca; }
.public-home .form-control:focus {
  border-bottom-color: var(--public-blue);
  box-shadow: 0 1px 0 var(--public-blue);
}
.public-home .contact-form-wrap .btn-primary { background: var(--public-navy-deep); }
.public-home .contact-form-wrap .btn-primary:hover { background: var(--public-blue); }

/* Footer institucional compacto */
.public-home .footer {
  padding: 0;
  border: 0;
  background:
    radial-gradient(circle at 88% -20%, rgba(58, 166, 225, .2), transparent 36%),
    linear-gradient(145deg, #03172d, #052746 64%, #07345a);
  color: #ffffff;
}

.public-home .footer-shell { padding-top: 0; }

.public-home .footer-head {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(171, 222, 250, .18);
}

.public-home .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin: 0;
  color: #ffffff;
}

.public-home .footer-brand img {
  width: 58px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, .28));
}

.public-home .footer-brand__copy {
  display: grid;
  gap: .15rem;
}

.public-home .footer-brand__copy strong {
  color: #ffffff;
  font-size: 1.02rem;
  letter-spacing: .01em;
}

.public-home .footer-brand__copy small {
  color: #9fdcff;
  font-size: .56rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.public-home .footer-head__actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.public-home .footer-help {
  display: grid;
  gap: .12rem;
  color: #ffffff;
  text-align: right;
}

.public-home .footer-help span {
  color: #91b9d2;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.public-home .footer-help strong { font-size: .76rem; }

.public-home .footer-intranet {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: .65rem 1rem;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 5px;
  background: #ffffff;
  color: var(--public-navy-deep);
  font-size: .76rem;
  font-weight: 800;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.public-home .footer-intranet:hover {
  border-color: var(--public-cyan);
  background: #dff3ff;
  transform: translateY(-1px);
}

.public-home .footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(150px, .55fr) minmax(190px, .7fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.public-home .footer-statement { max-width: 570px; }

.public-home .footer-kicker,
.public-home .footer-column__title {
  display: block;
  margin-bottom: .7rem;
  color: #88d5ff;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.public-home .footer-statement h2 {
  max-width: 560px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.24;
  letter-spacing: -.025em;
}

.public-home .footer-statement p {
  max-width: 500px;
  margin: .8rem 0 0;
  color: #a9c0d1;
  font-size: .8rem;
  line-height: 1.65;
}

.public-home .footer-column {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: .55rem;
  color: #dceaf5;
  font-size: .77rem;
}

.public-home .footer-column a,
.public-home .footer-column span,
.public-home .footer-column strong {
  color: #c1d2df;
  font-size: .77rem;
}

.public-home .footer-column a {
  transition: color .18s ease, transform .18s ease;
}

.public-home .footer-column a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.public-home .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.15rem;
  border-top: 1px solid rgba(171, 222, 250, .16);
  color: #7fa0b8;
  font-size: .68rem;
}

.public-home .footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .public-home .mobile-toggle {
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .09);
    color: #ffffff;
  }

  .public-home .main-nav {
    top: 94px;
    height: calc(100vh - 94px);
    height: calc(100dvh - 94px);
    background:
      radial-gradient(circle at 100% 0%, rgba(99, 199, 251, .18), transparent 34%),
      linear-gradient(155deg, #06284b, #03172d);
    box-shadow: -24px 0 54px rgba(2, 14, 29, .36);
  }

  .public-home .main-nav .nav-link { color: #dcefff; }
  .public-home .main-nav .nav-link:hover,
  .public-home .main-nav .nav-link.active {
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
  }

  .public-home .main-nav .btn-login {
    background: #ffffff;
    color: var(--public-navy-deep);
  }

  .public-home .public-nav-scrim { background: rgba(2, 16, 32, .7); }
  .public-home .public-nav-scrim { inset: 94px 0 0; }

  .public-home .footer-head {
    align-items: flex-start;
    padding-block: 1rem;
  }

  .public-home .footer-content {
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, .7fr));
    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .public-home .header-container { padding-inline: 1rem; }
  .public-home .logo-emblem {
    width: 60px;
    height: 64px;
    flex-basis: 60px;
  }

  .public-home .title-text h1 { font-size: .92rem; }
  .public-home .title-text .slogan {
    max-width: 190px;
    font-size: .48rem;
  }

  .public-home .footer-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .public-home .footer-head__actions {
    width: 100%;
    justify-content: space-between;
    padding-top: .9rem;
    border-top: 1px solid rgba(171, 222, 250, .14);
  }

  .public-home .footer-help { text-align: left; }

  .public-home .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .public-home .footer-statement { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .public-home .footer-head__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-home .footer-help { text-align: left; }
  .public-home .footer-intranet { justify-content: space-between; }
  .public-home .footer-content { grid-template-columns: 1fr; }
  .public-home .footer-statement { grid-column: auto; }
  .public-home .footer-bottom {
    display: grid;
    justify-items: start;
  }
}

/* Mantiene el fondo de la nueva identidad sobre las capas históricas. */
.public-home #nosotros.institutional-identity {
  background:
    radial-gradient(circle at 94% 5%, rgba(99, 199, 251, .14), transparent 27rem),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

/* ==========================================================
   LOGIN INSTITUCIONAL — EXPERIENCIA DE ACCESO PROFESIONAL
   ========================================================== */
.auth-page {
  background: #041a33;
}

.auth-page #main-content {
  min-height: 100svh;
}

.auth-shell--login {
  min-height: 100svh;
  display: block;
  padding: 0;
  background: #041a33;
}

.auth-layout--login {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(470px, .82fr);
  gap: 0;
  align-items: stretch;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.auth-story--login {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 4.5vw, 4.75rem);
  background:
    linear-gradient(180deg, rgba(3, 24, 48, .66) 0%, rgba(4, 30, 57, .56) 38%, rgba(3, 22, 43, .93) 100%),
    linear-gradient(90deg, rgba(4, 26, 51, .38), transparent 62%),
    url('../almacenamiento/imagenes/login-institucional.webp') center / cover no-repeat;
  color: #ffffff;
}

.auth-story--login::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #63c7fb 0 72%, #ffffff 72% 86%, #63c7fb 86%);
}

.auth-story__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.auth-story--login .auth-brand-lockup {
  min-width: 0;
  gap: 1rem;
}

.auth-story--login .auth-brand-lockup img {
  width: 76px;
  height: 82px;
  flex: 0 0 76px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .36));
  box-shadow: none;
}

.auth-story--login .auth-brand-lockup strong {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: .015em;
}

.auth-story--login .auth-brand-lockup span {
  color: #a9ddf8;
  font-size: .66rem;
  letter-spacing: .1em;
}

.auth-home-link {
  min-height: 46px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 6px;
  background: rgba(3, 24, 48, .28);
  color: #ffffff;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.auth-home-link:hover,
.auth-home-link:focus-visible {
  border-color: #9bddff;
  background: rgba(12, 93, 145, .58);
  color: #ffffff;
  transform: translateY(-1px);
}

.auth-story--login .auth-story__content {
  max-width: 650px;
  margin-top: clamp(4rem, 14vh, 10rem);
}

.auth-story__tag {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.25rem;
  color: #a9ddf8;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.auth-story--login .auth-story__content h1 {
  max-width: 640px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.7rem, 5.25vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.auth-story--login .auth-story__content p {
  max-width: 580px;
  margin: 1.35rem 0 0;
  color: #d9e9f5;
  font-size: clamp(.95rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

.auth-story__caption {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .65rem;
  margin-top: 3rem;
  color: #dcebf5;
  font-size: .75rem;
  font-weight: 700;
}

.auth-story__caption i {
  color: #8edaff;
}

.auth-card--login {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(2.25rem, 5.5vw, 5.75rem);
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: -28px 0 65px rgba(3, 24, 48, .14);
}

.auth-login__inner {
  width: min(470px, 100%);
}

.auth-login__header {
  margin-bottom: 2rem;
}

.auth-login__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .8rem;
  color: #0b78b5;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-login__header h2 {
  margin: 0;
  color: #071e3d;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.auth-login__header p {
  margin: .8rem 0 0;
  color: #60758a;
  font-size: .96rem;
  line-height: 1.65;
}

.auth-login__form {
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: .5rem;
}

.auth-login__form .auth-field label {
  margin: 0;
  color: #193552;
  font-size: .78rem;
  font-weight: 800;
}

.auth-login__form .auth-input > i {
  left: 1rem;
  color: #7890a5;
}

.auth-card--login .auth-login__form .auth-input input {
  min-height: 58px;
  padding: .85rem 1rem .85rem 3rem;
  border: 1px solid #bfcfdd;
  border-radius: 7px;
  background: #fbfdff;
  color: #102b47;
  font-size: .96rem;
  box-shadow: none;
}

.auth-card--login .auth-login__form .auth-input input:hover {
  border-color: #8ca9be;
}

.auth-card--login .auth-login__form .auth-input input:focus {
  border-color: #1586c0;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(21, 134, 192, .12);
}

.auth-login__form .auth-checkbox {
  min-height: 34px;
  margin: 0 !important;
  color: #526b82 !important;
  font-size: .78rem;
  font-weight: 650 !important;
}

.auth-login__form .auth-checkbox input {
  width: 18px;
  height: 18px;
}

.auth-card--login .auth-login__form .auth-submit {
  min-height: 58px;
  margin-top: .1rem;
  border-radius: 7px;
  background: #0b3d6d;
  font-size: .88rem;
  letter-spacing: .01em;
  box-shadow: 0 13px 28px rgba(7, 45, 82, .18);
}

.auth-card--login .auth-login__form .auth-submit:hover,
.auth-card--login .auth-login__form .auth-submit:focus-visible {
  background: #0c568c;
}

.auth-login__support {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dce6ee;
  color: #667d91;
  font-size: .72rem;
  line-height: 1.5;
}

.auth-login__support > i {
  color: #1683b7;
  font-size: .95rem;
}

.auth-login__support a {
  color: #075f8b;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.auth-login__support a:hover,
.auth-login__support a:focus-visible {
  text-decoration: underline;
}

.auth-card--login .auth-alert {
  margin: 0 0 1.25rem;
  border-radius: 7px;
}

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

  .auth-story--login {
    min-height: 285px;
    padding: 1.5rem clamp(1.5rem, 5vw, 3rem) 2rem;
    background-position: center 34%;
  }

  .auth-story--login .auth-story__content {
    margin-top: 4rem;
  }

  .auth-story--login .auth-story__content h1 {
    max-width: 620px;
    font-size: clamp(2rem, 6vw, 3.25rem);
  }

  .auth-story--login .auth-story__content p,
  .auth-story__caption {
    display: none;
  }

  .auth-card--login {
    min-height: auto;
    padding: clamp(2.5rem, 7vw, 4.5rem) 1.5rem;
    box-shadow: 0 -18px 45px rgba(3, 24, 48, .13);
  }

  .auth-login__inner {
    width: min(560px, 100%);
  }
}

@media (max-width: 600px) {
  .auth-story--login {
    min-height: 205px;
    padding: 1rem;
  }

  .auth-story--login .auth-brand-lockup {
    gap: .65rem;
  }

  .auth-story--login .auth-brand-lockup img {
    width: 58px;
    height: 63px;
    flex-basis: 58px;
  }

  .auth-story--login .auth-brand-lockup strong {
    font-size: .86rem;
  }

  .auth-story--login .auth-brand-lockup span {
    max-width: 170px;
    font-size: .5rem;
  }

  .auth-home-link {
    min-height: 42px;
    padding: .6rem .72rem;
  }

  .auth-home-link span {
    font-size: 0;
  }

  .auth-home-link span::after {
    content: "Inicio";
    font-size: .72rem;
  }

  .auth-story--login .auth-story__content {
    margin-top: 2rem;
  }

  .auth-story__tag {
    margin-bottom: .6rem;
    font-size: .57rem;
  }

  .auth-story--login .auth-story__content h1 {
    max-width: 330px;
    font-size: clamp(1.45rem, 7.2vw, 2rem);
    line-height: 1.05;
  }

  .auth-card--login {
    justify-items: stretch;
    padding: 2rem 1.2rem 2.25rem;
  }

  .auth-login__header {
    margin-bottom: 1.5rem;
  }

  .auth-login__header h2 {
    font-size: 2.15rem;
  }

  .auth-login__header p {
    font-size: .86rem;
  }

  .auth-card--login .auth-login__form .auth-input input,
  .auth-card--login .auth-login__form .auth-submit {
    min-height: 56px;
  }
}

/* ==========================================================
   SEGUNDO FACTOR — CONTINUIDAD VISUAL DEL INICIO DE SESIÓN
   ========================================================== */
@view-transition {
  navigation: auto;
}

.auth-story--login {
  view-transition-name: auth-institutional-visual;
}

.auth-card--login {
  view-transition-name: auth-access-panel;
}

::view-transition-old(auth-institutional-visual),
::view-transition-new(auth-institutional-visual) {
  animation-duration: .32s;
  animation-timing-function: ease;
}

::view-transition-old(auth-access-panel) {
  animation: auth-panel-leave .2s ease both;
}

::view-transition-new(auth-access-panel) {
  animation: auth-panel-enter .42s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes auth-panel-leave {
  to {
    opacity: .84;
    transform: translateX(-12px);
  }
}

@keyframes auth-panel-enter {
  from {
    opacity: .45;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-card--mfa {
  overflow: hidden;
}

.auth-login__inner--mfa {
  width: min(500px, 100%);
}

.auth-mfa__progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.auth-mfa__progress-label {
  color: #5a7289;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-mfa__progress-track {
  width: min(150px, 42%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .38rem;
}

.auth-mfa__progress-track i {
  height: 4px;
  border-radius: 1px;
  background: #168bc4;
  box-shadow: 0 2px 8px rgba(22, 139, 196, .18);
}

.auth-mfa__progress-track i:last-child {
  background: #0b3d6d;
}

.auth-mfa__header {
  margin-bottom: 1.55rem;
}

.auth-mfa__header h2 {
  max-width: 480px;
  font-size: clamp(2rem, 3.5vw, 2.85rem);
}

.auth-mfa__header p {
  max-width: 470px;
}

.auth-mfa__destination {
  color: #173d61;
  font-weight: 850;
  white-space: nowrap;
}

.auth-mfa__form {
  gap: .9rem;
}

.auth-mfa__code-wrap {
  position: relative;
}

.auth-mfa__code-wrap > i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 1.1rem;
  color: #1683b7;
  font-size: .9rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-card--mfa .auth-mfa__code {
  width: 100%;
  min-height: 72px;
  padding: .8rem 1.1rem .8rem 3.15rem;
  border: 1px solid #adc3d4;
  border-radius: 7px;
  background: #f8fbfe;
  color: #092d52;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  font-weight: 750;
  letter-spacing: .48em;
  text-align: center;
  text-indent: .48em;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-card--mfa .auth-mfa__code::placeholder {
  color: #b2c2cf;
  opacity: .7;
}

.auth-card--mfa .auth-mfa__code:hover {
  border-color: #7ea5bd;
}

.auth-card--mfa .auth-mfa__code:focus {
  border-color: #1688c0;
  outline: 0;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 136, 192, .12);
}

.auth-card--mfa .auth-mfa__code:valid:not(:placeholder-shown) {
  border-color: #38a57a;
  background: #f7fffb;
}

.auth-mfa__hint {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #697f91;
  font-size: .7rem;
  line-height: 1.4;
}

.auth-mfa__hint i {
  color: #7f96a9;
  font-size: .65rem;
}

.auth-mfa__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-top: 1rem;
}

.auth-mfa__actions form {
  margin: 0;
}

.auth-mfa__action {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .65rem .8rem;
  border: 1px solid #cbd9e4;
  border-radius: 6px;
  background: #ffffff;
  color: #294a68;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.auth-mfa__action:hover,
.auth-mfa__action:focus-visible {
  border-color: #73acd0;
  background: #f2f9fd;
  color: #075e8f;
}

.auth-mfa__action:disabled {
  cursor: wait;
  opacity: .62;
}

.auth-mfa__support {
  margin-top: 1.2rem;
  padding-top: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .auth-shell--mfa .auth-login__inner--mfa {
    animation: auth-mfa-content-in .46s cubic-bezier(.22, 1, .36, 1) both;
  }

  @keyframes auth-mfa-content-in {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 600px) {
  .auth-login__inner--mfa {
    width: 100%;
  }

  .auth-mfa__progress {
    margin-bottom: 1rem;
  }

  .auth-mfa__header {
    margin-bottom: 1.25rem;
  }

  .auth-mfa__header h2 {
    font-size: 2rem;
  }

  .auth-card--mfa .auth-mfa__code {
    min-height: 66px;
    font-size: 1.55rem;
    letter-spacing: .35em;
    text-indent: .35em;
  }

  .auth-mfa__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: .01ms !important;
  }

  .auth-shell--mfa .auth-login__inner--mfa {
    animation: none;
  }
}

/* Cierre de sesión: confirmación discreta sin alterar la composición. */
.auth-login__toast {
  position: fixed;
  z-index: 1200;
  top: 1.1rem;
  right: 1.1rem;
  width: min(340px, calc(100vw - 2rem));
  min-height: 50px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  align-items: center;
  gap: .65rem;
  padding: .55rem .58rem .55rem .7rem;
  border: 1px solid #bad9cb;
  border-left: 3px solid #16865f;
  border-radius: 6px;
  background: rgba(255, 255, 255, .97);
  color: #173c32;
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.35;
  box-shadow: 0 14px 34px rgba(3, 24, 48, .18);
  backdrop-filter: blur(14px);
  animation: auth-toast-enter .28s cubic-bezier(.22, 1, .36, 1) both;
}

.auth-login__toast-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #e4f6ed;
  color: #08714c;
  font-size: .72rem;
}

.auth-login__toast button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #657c8f;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.auth-login__toast button:hover,
.auth-login__toast button:focus-visible {
  background: #eef4f7;
  color: #123958;
}

.auth-login__toast.is-leaving {
  pointer-events: none;
  animation: auth-toast-leave .2s ease both;
}

@keyframes auth-toast-enter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auth-toast-leave {
  to {
    opacity: 0;
    transform: translateY(-7px);
  }
}

@media (max-width: 980px) {
  .auth-login__toast {
    top: auto;
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 600px) {
  .auth-login__toast {
    right: .75rem;
    bottom: .75rem;
    width: calc(100vw - 1.5rem);
    min-height: 48px;
    font-size: .73rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-login__toast,
  .auth-login__toast.is-leaving {
    animation: none;
  }
}
