/* =========================================================
   Unidad Educativa Limón — hoja de estilos
   Paleta y tipografías tomadas del Manual de Marca UEL 2026:
   azul institucional #253066, amarillo #dedd23, Times New Roman
   (titulares) + Montserrat (cuerpos de texto).
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,600&display=swap");

:root {
  --navy-deep: #161f42;
  --navy: #253066;
  --navy-soft: #34418a;
  --gold: #dedd23;
  --gold-deep: #8c8a12;
  --ivory: #f8f4e8;
  --ivory-dim: #f0ead7;
  --ink: #1a2036;
  --ink-soft: #4b526b;
  --white: #ffffff;
  --line: rgba(12, 31, 77, 0.12);

  --font-display: "Times New Roman", "Nimbus Roman", Georgia, "Liberation Serif", serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;

  --bs-primary: var(--navy);
  --bs-primary-rgb: 37, 48, 102;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-link-color: var(--navy);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
}

::selection {
  background: var(--gold);
  color: var(--navy-deep);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.shell {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.eyebrow.on-dark {
  color: var(--gold);
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy-deep);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.section {
  padding-block: clamp(3.2rem, 3rem + 2vw, 5.5rem);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.6rem;
}

.section-head h2 {
  margin-top: 0.5rem;
}

.bg-ivory-dim {
  background: var(--ivory-dim);
}

.bg-navy {
  background: linear-gradient(165deg, var(--navy-deep), var(--navy) 78%);
  color: rgba(255, 255, 255, 0.92);
}

.bg-navy h2,
.bg-navy h3 {
  color: var(--white);
}

.border-top-line {
  border-top: 1px solid var(--line);
}

.border-bottom-line {
  border-bottom: 1px solid var(--line);
}

/* ---------- Botones ---------- */
.btn-inst {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-inst-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-inst-gold:hover {
  background: var(--gold-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-inst-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-inst-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-inst-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-inst-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn-inst,
  .reveal,
  .seal-badge {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.navbar {
  padding-block: 0.7rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark img {
  height: 46px;
  width: 46px;
  object-fit: contain;
}

.brand-text .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-deep);
  line-height: 1.1;
}

.brand-text .brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.nav-links .nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.5rem 0.9rem !important;
  position: relative;
}

.nav-links .nav-link.active,
.nav-links .nav-link:hover {
  color: var(--navy);
}

.nav-links .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--gold-deep);
}

.navbar-toggler {
  border: none;
  padding: 0.3rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: 3px solid var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
  padding-block: clamp(3rem, 4vw, 5rem) 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-estudiantes.jpg") center 20% / cover no-repeat;
  opacity: 0.16;
  mix-blend-mode: luminosity;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--navy-deep) 42%, rgba(12, 31, 77, 0.55) 78%, rgba(12, 31, 77, 0.25));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: end;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem);
  margin-top: 0.7rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  max-width: 34rem;
  margin-top: 1.1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.hero-photo {
  position: relative;
  isolation: isolate;
}

.hero-photo-frame {
  border-radius: 0.4rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Banner: cutout de estudiantes con uniforme, sin marco, apoyado sobre la franja de cifras */
.hero-cutout {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-cutout img {
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45));
}

/* the seal, used as an official "stamp" motif overlapping a photo */
.seal-badge {
  position: absolute;
  width: clamp(120px, 14vw, 170px);
  height: clamp(120px, 14vw, 170px);
  left: -2.2rem;
  bottom: -2.2rem;
  z-index: 2;
  border-radius: 50%;
  background: var(--ivory);
  padding: 0.7rem;
  box-shadow: 0 18px 34px -12px rgba(0, 0, 0, 0.5);
  transform: rotate(-8deg);
}

.seal-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* variant: seal placed over the hero cutout banner */
.hero-cutout .seal-badge {
  width: clamp(100px, 11vw, 140px);
  height: clamp(100px, 11vw, 140px);
  left: auto;
  right: -0.5rem;
  bottom: auto;
  top: -0.5rem;
  transform: rotate(9deg);
}

.hero-strip {
  margin-top: clamp(2.6rem, 3vw, 3.6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-block: 1.6rem;
}

.hero-strip .strip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.strip-item {
  border-left: 2px solid var(--gold);
  padding-left: 0.9rem;
}

.strip-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  color: var(--white);
  line-height: 1;
}

.strip-item span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* ---------- Registro institucional (info bar) ---------- */
.registro-bar {
  background: var(--ivory-dim);
  border-bottom: 1px solid var(--line);
  padding-block: 0.9rem;
}

.registro-bar .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.registro-bar strong {
  color: var(--navy);
}

/* ---------- Tarjetas ---------- */
.grid-cards {
  display: grid;
  gap: 1.6rem;
}

.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-inst {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 2rem 1.7rem;
  height: 100%;
}

.card-inst .icon {
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
}

.card-inst h3 {
  margin-bottom: 0.6rem;
}

.card-inst p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Niveles educativos (secuencia numerada real) ---------- */
.niveles {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.nivel-row {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.6rem;
  padding-block: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.nivel-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--gold-deep);
  line-height: 1;
}

.nivel-row h3 {
  margin-bottom: 0.5rem;
}

.nivel-row p {
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 46rem;
  margin: 0;
}

.nivel-row .edad {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--ivory-dim);
  border: 1px solid var(--line);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* ---------- Valores ---------- */
.valores-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.valor-item {
  text-align: left;
  padding: 1.8rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.valor-item .glyph {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.valor-item h3 {
  color: var(--white);
}

/* ---------- Rendición de cuentas ---------- */
.info-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--white);
}

.info-table .info-row {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.info-table .info-row:nth-child(2n) {
  border-right: none;
}

.info-table dt {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.info-table dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.quote-block {
  border-left: 4px solid var(--gold);
  background: var(--ivory-dim);
  padding: 1.8rem 2rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy-deep);
  line-height: 1.6;
  margin: 0;
}

.stat-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.6rem;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--navy-deep);
  line-height: 1;
}

.stat-box span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

.stat-box .sub {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

/* Bootstrap accordion, restyled to match la marca institucional */
.accordion-eje .accordion-item {
  border: 1px solid var(--line);
  border-radius: 0.6rem !important;
  overflow: hidden;
  margin-bottom: 1rem;
}

.accordion-eje .accordion-button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-deep);
  background: var(--white);
  padding: 1.3rem 1.5rem;
}

.accordion-eje .accordion-button .eje-num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  margin-right: 0.7rem;
}

.accordion-eje .accordion-button:not(.collapsed) {
  background: var(--navy);
  color: var(--white);
  box-shadow: none;
}

.accordion-eje .accordion-button:not(.collapsed) .eje-num {
  color: var(--gold);
}

.accordion-eje .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(37, 48, 102, 0.2);
}

.accordion-eje .accordion-button::after {
  filter: none;
}

.accordion-eje .accordion-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.accordion-eje .accordion-body ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.accordion-eje .accordion-body ul li {
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

.accordion-eje .accordion-body ul li strong {
  color: var(--ink);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-soft);
  line-height: 1.55;
}

.check-list li::before {
  content: "✓";
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}

.signature-block {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-top: 1.4rem;
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.signature-block img {
  height: 54px;
  width: 54px;
  object-fit: contain;
}

.signature-block strong {
  display: block;
  color: var(--navy-deep);
}

.signature-block span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Carrusel institucional ---------- */
.carousel-uel {
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(12, 31, 77, 0.45);
}

.carousel-uel .carousel-item,
.carousel-uel .carousel-slide-frame {
  aspect-ratio: 21 / 10;
}

.carousel-uel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-uel .carousel-slide-navy {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(165deg, var(--navy-deep), var(--navy) 78%);
}

.carousel-uel .carousel-slide-navy img {
  max-height: 92%;
  width: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.4));
}

.carousel-uel .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 19, 51, 0.78) 0%, rgba(12, 19, 51, 0.05) 45%, transparent 70%);
  pointer-events: none;
}

.carousel-uel .carousel-caption {
  text-align: left;
  left: 2rem;
  right: 2rem;
  bottom: 1.6rem;
  padding: 0;
}

.carousel-uel .carousel-caption h3 {
  color: var(--white);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
  margin-top: 0.35rem;
}

.carousel-uel .carousel-control-prev,
.carousel-uel .carousel-control-next {
  width: 3.4rem;
  opacity: 1;
}

.carousel-uel .carousel-control-prev-icon,
.carousel-uel .carousel-control-next-icon {
  width: 2.4rem;
  height: 2.4rem;
  background-color: rgba(12, 19, 51, 0.45);
  border-radius: 50%;
  padding: 0.6rem;
  background-size: 1.1rem;
}

.carousel-uel .carousel-indicators {
  margin-bottom: 1rem;
}

.carousel-uel .carousel-indicators [data-bs-target] {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.55);
  opacity: 1;
  margin-inline: 0.3rem;
}

.carousel-uel .carousel-indicators .active {
  background-color: var(--gold);
}

@media (max-width: 575px) {
  .carousel-uel .carousel-item,
  .carousel-uel .carousel-slide-frame {
    aspect-ratio: 4 / 5;
  }

  .carousel-uel .carousel-caption h3 {
    font-size: 1.15rem;
  }
}

.valor-item p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ---------- CTA ---------- */
.cta-band {
  background: var(--gold);
  color: var(--navy-deep);
}

.cta-band .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: 2.4rem;
}

.cta-band h2 {
  color: var(--navy-deep);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -6rem;
  width: 26rem;
  height: 26rem;
  background: url("../img/logo.png") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 2.5rem;
  padding-block: 3.4rem;
  position: relative;
}

.footer-grid h2 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.footer-brand img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 0.35rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 26rem;
  line-height: 1.6;
  margin-top: 0.6rem;
}

.social-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.social-row a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

.social-row a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.1rem;
  font-size: 0.82rem;
}

.footer-bottom .shell {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Página interior: encabezado simple ---------- */
.page-hero {
  background: linear-gradient(165deg, var(--navy-deep), var(--navy) 85%);
  color: var(--white);
  padding-block: 3.4rem 3.8rem;
}

.page-hero h1 {
  color: var(--white);
  margin-top: 0.5rem;
}

.breadcrumb-inst {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb-inst a {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Formulario de contacto ---------- */
.form-inst label {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.form-inst .form-control,
.form-inst .form-select {
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
}

.form-inst .form-control:focus,
.form-inst .form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28, 60, 143, 0.15);
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.8rem;
}

.contact-info-card dt {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
}

.contact-info-card dd {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.map-frame {
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-frame iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.form-feedback {
  display: none;
  border-radius: 0.5rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 1rem;
}

.form-feedback.show {
  display: block;
}

.form-feedback.ok {
  background: #e6f4ea;
  color: #1e6b3a;
}

.form-feedback.err {
  background: #fbe7e7;
  color: #9c2b2b;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.3rem;
  bottom: 5.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  border: none;
  font-size: 1.1rem;
  box-shadow: 0 10px 24px -8px rgba(12, 31, 77, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 60;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px -8px rgba(18, 71, 41, 0.55);
  z-index: 61;
  transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
}

@media (max-width: 575px) {
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 48px;
    height: 48px;
  }

  .back-to-top {
    right: 1rem;
    bottom: 4.9rem;
  }
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-deep);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-strip .strip-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.4rem;
  }

  .cols-3,
  .cols-2 {
    grid-template-columns: 1fr;
  }

  .valores-row {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .seal-badge {
    left: 1rem;
    bottom: -1.6rem;
  }
}

@media (max-width: 575px) {
  .hero-strip .strip-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .nivel-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .info-table {
    grid-template-columns: 1fr;
  }

  .info-table .info-row {
    border-right: none;
  }
}
