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

:root {
  /* TIVO brand palette (matches corporate presentation) */
  --cyan: #29B6E9;          /* Logo/brand cyan */
  --cyan-light: #5CCBF0;
  --cyan-dark: #1E9BCD;
  --teal: #0F4C61;          /* Dark headline teal */
  --teal-deep: #0B3A4A;
  --teal-ink: #0C3C4F;
  --ink: #1A1A1A;
  --body: #2B2B2B;
  --gray: #666;
  --gray-light: #9AA4AE;
  --gray-bg: #F4F7F9;
  --line: #E4E9ED;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  color: var(--ink);
}

.section-title--teal { color: var(--teal); }
.section-title--white { color: var(--white); }
.section-title--center { text-align: center; }
.section-title strong { font-weight: 900; }

/* === Logo Circle === */
.logo-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 4px 14px rgba(41, 182, 233, 0.35);
  flex-shrink: 0;
  overflow: hidden;
}

.logo-circle svg {
  width: 100%;
  height: 100%;
}

.logo-circle--sm { width: 40px; height: 40px; }
.logo-circle--lg { width: 110px; height: 110px; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn--primary {
  background: var(--cyan);
  color: var(--white);
  border-color: var(--cyan);
}
.btn--primary:hover {
  background: var(--cyan-dark);
  border-color: var(--cyan-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--cyan);
  color: var(--white);
  border-color: var(--cyan);
}

.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--full { width: 100%; }

/* === Header === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 76, 97, 0.08);
  z-index: 100;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header__logo { display: flex; align-items: center; }

.header__nav {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal);
}
.header__nav a {
  transition: color 0.15s;
  position: relative;
}
.header__nav a:hover { color: var(--cyan); }

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__admin-link { padding: 8px 16px; font-size: 0.8rem; }

.header__menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}
.header__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.mobile-menu.active { display: block; }

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(320px, 85vw);
  background: var(--white);
  padding: 64px 32px 32px;
  overflow-y: auto;
  box-shadow: -8px 0 24px rgba(0,0,0,0.1);
}

.mobile-menu__close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--teal);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu__nav a {
  padding: 14px 0;
  font-weight: 500;
  font-size: 1rem;
  color: var(--teal);
  border-bottom: 1px solid var(--line);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  padding: 120px 0 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat,
    linear-gradient(135deg, #1a1a1a, #2b2b2b);
  background-blend-mode: multiply;
  filter: grayscale(10%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 60, 79, 0.35) 0%, rgba(12, 60, 79, 0.55) 100%);
}

.hero__inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero__logo {
  margin: 0 auto 40px;
  box-shadow: 0 10px 36px rgba(41, 182, 233, 0.5), 0 0 0 4px rgba(255,255,255,0.08);
}

.hero__title {
  font-size: clamp(4rem, 13vw, 9rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 24px;
  color: var(--white);
}

.hero__tagline {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 56px;
  font-style: italic;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 0; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* === Temario === */
.temario {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.temario__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.temario__image {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #E8EDF1;
  position: relative;
}
.temario__image-inner {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=900&q=80&auto=format&fit=crop') center/cover;
}

.temario__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.temario__list li {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.1rem;
  color: var(--body);
  font-weight: 500;
}
.temario__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  border-radius: 6px;
  flex-shrink: 0;
}

.temario__wave {
  position: absolute;
  top: 10%;
  right: -80px;
  width: 340px;
  height: 340px;
  background:
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(41, 182, 233, 0.12) 56%, rgba(41, 182, 233, 0.12) 58%, transparent 59%),
    radial-gradient(circle at 50% 50%, transparent 65%, rgba(41, 182, 233, 0.1) 66%, rgba(41, 182, 233, 0.1) 68%, transparent 69%),
    radial-gradient(circle at 50% 50%, transparent 75%, rgba(41, 182, 233, 0.08) 76%, rgba(41, 182, 233, 0.08) 78%, transparent 79%);
  pointer-events: none;
  z-index: 0;
}

/* === Quiénes Somos === */
.quienes {
  position: relative;
  padding: 120px 0;
  color: var(--white);
  overflow: hidden;
}
.quienes__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?w=1920&q=80&auto=format&fit=crop') center/cover;
  filter: brightness(0.55) saturate(0.8);
}
.quienes__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(15, 76, 97, 0.55) 0%, rgba(41, 182, 233, 0.55) 100%);
}
.quienes__inner { position: relative; z-index: 2; }

.quienes__body {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.8;
  color: rgba(255,255,255,0.95);
}
.quienes__body p + p { margin-top: 20px; }
.quienes__body strong { color: var(--white); font-weight: 700; }

/* === Misión y Visión === */
.mv {
  position: relative;
  padding: 120px 0;
  color: var(--white);
  overflow: hidden;
}
.mv__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1580273916550-e323be2ae537?w=1920&q=80&auto=format&fit=crop') center/cover;
  filter: brightness(0.5) saturate(0.9);
}
.mv__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(15, 76, 97, 0.6) 0%, rgba(41, 182, 233, 0.6) 100%);
}
.mv__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.mv__panel { max-width: 460px; }
.mv__panel--right {
  margin-left: auto;
  text-align: right;
  margin-top: 80px;
}
.mv__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  color: var(--white);
}
.mv__panel p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.95);
}

/* === Valores === */
.valores {
  padding: 120px 0;
  background: var(--white);
  position: relative;
}

.valores__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.valor-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
}
.valor-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 16px 32px rgba(41, 182, 233, 0.12);
}

.valor-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--white);
  background: var(--cyan);
}
.valor-card__icon--1 { background: linear-gradient(135deg, #29B6E9, #1E9BCD); }
.valor-card__icon--2 { background: linear-gradient(135deg, #3DD2B9, #1FA68C); }
.valor-card__icon--3 { background: linear-gradient(135deg, #0F4C61, #0B3A4A); }
.valor-card__icon--4 { background: linear-gradient(135deg, #FFB547, #E89A2B); }
.valor-card__icon--5 { background: linear-gradient(135deg, #8B5CF6, #6D3EE0); }

.valor-card h4 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  color: var(--ink);
}
.valor-card p {
  font-size: 0.925rem;
  color: var(--gray);
  font-style: italic;
  line-height: 1.55;
}

/* === Objetivos === */
.objetivos {
  position: relative;
  padding: 120px 0;
  background: var(--gray-bg);
  overflow: hidden;
}
.objetivos__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(41, 182, 233, 0.08), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(15, 76, 97, 0.06), transparent 40%);
}
.objetivos__inner { position: relative; z-index: 2; }

.objetivos__grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.objetivo-card {
  display: flex;
  gap: 28px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  align-items: flex-start;
  transition: transform 0.2s ease;
}
.objetivo-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15, 76, 97, 0.08); }

.objetivo-card__icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.objetivo-card__body h4 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.objetivo-card__body p {
  font-size: 0.975rem;
  color: var(--body);
  line-height: 1.7;
}

/* === Público Objetivo === */
.publico {
  padding: 120px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.publico__wave {
  position: absolute;
  bottom: 0;
  left: -120px;
  width: 420px;
  height: 420px;
  background:
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(15, 76, 97, 0.07) 56%, rgba(15, 76, 97, 0.07) 58%, transparent 59%),
    radial-gradient(circle at 50% 50%, transparent 65%, rgba(15, 76, 97, 0.05) 66%, rgba(15, 76, 97, 0.05) 68%, transparent 69%),
    radial-gradient(circle at 50% 50%, transparent 75%, rgba(15, 76, 97, 0.04) 76%, rgba(15, 76, 97, 0.04) 78%, transparent 79%);
  pointer-events: none;
}

.publico__grid {
  display: grid;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.publico__subtitle {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 22px;
}

.publico__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.publico__list li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  color: var(--body);
}
.publico__check {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

/* === Servicios / Modalidades === */
.servicios {
  padding: 100px 0;
  background: var(--gray-bg);
}

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.servicio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1.5px solid var(--line);
  position: relative;
  transition: all 0.25s ease;
}
.servicio-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(41, 182, 233, 0.1);
}
.servicio-card--featured {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: var(--white);
  border-color: transparent;
}
.servicio-card--featured:hover { border-color: var(--cyan); }
.servicio-card--featured h3,
.servicio-card--featured strong { color: var(--white); }
.servicio-card--featured .servicio-card__badge {
  background: var(--cyan);
  color: var(--white);
}

.servicio-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--teal);
  color: var(--white);
  border-radius: 12px;
  font-weight: 800;
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.servicio-card h3 {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.servicio-card > p {
  margin-bottom: 20px;
  line-height: 1.65;
  color: inherit;
  opacity: 0.9;
}
.servicio-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.servicio-card li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.servicio-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
}

/* === Vehículos === */
.vehiculos {
  padding: 100px 0;
  background: var(--white);
}

.vehiculos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.vehiculo-card {
  text-align: center;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all 0.25s ease;
}
.vehiculo-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(41, 182, 233, 0.1);
}

.vehiculo-card__icon {
  color: var(--teal);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}
.vehiculo-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}
.vehiculo-card__cap {
  font-size: 0.875rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: lowercase;
}
.vehiculo-card__desc {
  font-size: 0.925rem;
  color: var(--gray);
  line-height: 1.55;
}

/* === Pasos === */
.pasos {
  padding: 100px 0;
  background: var(--gray-bg);
}

.pasos__desc {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.7;
}

.pasos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.paso {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  border: 1.5px solid var(--line);
  position: relative;
}

.paso__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 6px 16px rgba(41, 182, 233, 0.3);
}

.paso h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.paso p {
  font-size: 0.925rem;
  color: var(--gray);
  line-height: 1.5;
}

/* === FAQ === */
.faq {
  padding: 100px 0;
  background: var(--white);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--gray-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.2s;
}
.faq__item:hover { background: #EBF0F4; }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal);
  text-align: left;
  font-family: inherit;
  gap: 16px;
}

.faq__chevron {
  color: var(--teal);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq__question[aria-expanded="true"] + .faq__answer {
  max-height: 400px;
  padding: 0 24px 20px;
}
.faq__answer p {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.7;
}

/* === Gracias / CTA === */
.gracias {
  position: relative;
  padding: 140px 0 120px;
  background: var(--teal);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.gracias__wave {
  position: absolute;
  width: 380px;
  height: 380px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(255,255,255,0.08) 56%, rgba(255,255,255,0.08) 58%, transparent 59%),
    radial-gradient(circle at 50% 50%, transparent 65%, rgba(255,255,255,0.06) 66%, rgba(255,255,255,0.06) 68%, transparent 69%),
    radial-gradient(circle at 50% 50%, transparent 75%, rgba(255,255,255,0.04) 76%, rgba(255,255,255,0.04) 78%, transparent 79%);
}
.gracias__wave--top { top: -120px; right: -120px; }
.gracias__wave--bottom { bottom: -120px; left: -120px; }
.gracias__inner { position: relative; z-index: 2; }

.gracias__logo {
  margin: 0 auto 36px;
  box-shadow: 0 8px 28px rgba(41, 182, 233, 0.4);
}

.gracias__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 40px;
}

.gracias__phone {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  margin-bottom: 36px;
  transition: color 0.2s;
}
.gracias__phone:hover { color: var(--cyan-light); }

.gracias__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* === Legal / Content Pages === */
.legal {
  padding: 130px 0 80px;
  min-height: 60vh;
  background: var(--white);
}
.legal__container {
  max-width: 820px;
}
.legal__breadcrumb {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 24px;
}
.legal__breadcrumb a { color: var(--cyan-dark); }
.legal__breadcrumb a:hover { text-decoration: underline; }
.legal__breadcrumb span[aria-hidden] { margin: 0 8px; color: var(--gray-light); }
.legal__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.legal__updated,
.legal__subtitle {
  color: var(--gray);
  margin-bottom: 40px;
}
.legal__subtitle { font-size: 1.05rem; line-height: 1.6; max-width: 640px; }
.legal__subtitle--small { font-size: 0.9rem; margin-top: -24px; margin-bottom: 40px; }
.legal__subtitle--small a { color: var(--cyan-dark); text-decoration: underline; }
.legal section { margin-bottom: 28px; }
.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.legal p, .legal li {
  color: var(--body);
  line-height: 1.75;
  font-size: 0.975rem;
}
.legal ul { padding-left: 0; }
.legal ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}
.legal a {
  color: var(--cyan-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover { color: var(--cyan); }
.legal strong { color: var(--ink); }

/* === Contact Page === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}
.contact-card {
  background: var(--gray-bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all 0.2s ease;
}
.contact-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(41, 182, 233, 0.1);
}
.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cyan);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.contact-card p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 10px;
}
.contact-card__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal);
  word-break: break-word;
}
.contact-card__link:hover { color: var(--cyan); }
.contact-card__socials {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}
.contact-card__socials a { color: var(--teal); }
.contact-card__socials a:hover { color: var(--cyan); text-decoration: underline; }

.contact-form-wrap {
  background: var(--gray-bg);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1.5px solid var(--line);
}
.contact-form-wrap + .contact-form-wrap { margin-top: 32px; }
.contact-form-wrap h2 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 24px;
}

/* Account deletion (danger) variant */
.contact-form-wrap--danger {
  background: #FFF7F6;
  border-color: #F8CFCB;
}
.contact-form-wrap--danger h2 {
  color: #B42318;
  margin-bottom: 4px;
}
.danger-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.danger-heading__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(180, 35, 24, 0.1);
  color: #B42318;
  display: flex;
  align-items: center;
  justify-content: center;
}
.danger-heading__desc {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.6;
}
.danger-heading__desc strong { color: #B42318; }

.danger-checklist {
  background: rgba(180, 35, 24, 0.06);
  border: 1px solid rgba(180, 35, 24, 0.16);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 4px;
}
.danger-checklist__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #B42318;
  margin-bottom: 8px;
}
.danger-checklist ul {
  padding-left: 0;
  list-style: none;
}
.danger-checklist li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 6px;
}
.danger-checklist li:last-child { margin-bottom: 0; }
.danger-checklist ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: #B42318;
}
.danger-checklist strong { color: #B42318; }
.danger-checklist a { color: #B42318; text-decoration: underline; }

.contact-form__checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.925rem;
  color: var(--body);
  line-height: 1.55;
  cursor: pointer;
}
.contact-form__checkbox input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #B42318;
  cursor: pointer;
}

.btn--danger {
  background: #B42318;
  color: var(--white);
  border-color: #B42318;
}
.btn--danger:hover {
  background: #961B12;
  border-color: #961B12;
  transform: translateY(-1px);
}
.form-flash {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.form-flash--success {
  background: #ECFDF3;
  border-color: #ABEFC6;
  color: #085D3A;
}
.form-flash--error {
  background: #FEF3F2;
  border-color: #FECDCA;
  color: #912018;
}
.form-errors {
  background: #FEF3F2;
  border: 1px solid #FECDCA;
  border-radius: 10px;
  color: #912018;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 14px 16px 14px 34px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--body);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(41, 182, 233, 0.15);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }
.contact-form__note {
  font-size: 0.8rem;
  color: var(--gray);
}

/* === Footer === */
.footer {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo { display: inline-block; margin-bottom: 14px; }

.footer__tagline {
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  max-width: 260px;
}

.footer__col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--cyan-light); }

.footer__legal {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: flex-start;
}
.footer__legal-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.15s;
}
.footer__legal-links a:hover { color: var(--cyan-light); }
.footer__legal-external { opacity: 0.6; }

.footer__bottom {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__copy { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: all 0.2s;
}
.footer__social a:hover {
  background: var(--cyan);
  color: var(--white);
}

/* === Download Modal === */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.download-modal.active { display: flex; }

.download-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 60, 79, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFade 0.2s ease;
}

.download-modal__dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 40px 32px 32px;
  box-shadow: 0 24px 80px rgba(12, 60, 79, 0.3);
  animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.download-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-bg);
  border: none;
  cursor: pointer;
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.download-modal__close:hover {
  background: var(--teal);
  color: var(--white);
}

.download-modal__logo {
  margin: 0 auto 20px;
  display: block;
}

.download-modal__title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--teal);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.download-modal__subtitle {
  color: var(--gray);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 28px;
}

.download-modal__options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.download-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
  text-decoration: none;
  flex: 1 1 180px;
  max-width: 220px;
  min-height: 56px;
  padding: 0;
  background: transparent;
  border: none;
}
.download-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(12, 60, 79, 0.18);
}
.download-option:active { transform: translateY(0); }
.download-option img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}
.download-option.is-pending { opacity: 0.75; }

.download-modal__note {
  font-size: 0.8rem;
  color: var(--gray);
  text-align: center;
  line-height: 1.5;
}
.download-modal__note strong { color: var(--teal); }

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

body.modal-open { overflow: hidden; }

/* === Responsive === */
@media (max-width: 960px) {
  .header__nav { display: none; }
  .header__admin-link { display: none; }
  .header__menu-btn { display: flex; }

  .temario__layout { grid-template-columns: 1fr; gap: 40px; }
  .temario__image { aspect-ratio: 16/10; }

  .mv__inner { grid-template-columns: 1fr; gap: 48px; }
  .mv__panel { max-width: none; }
  .mv__panel--right { margin-top: 0; text-align: left; margin-left: 0; }

  .objetivo-card { padding: 28px; gap: 20px; }

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

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  .hero { padding: 100px 0 80px; min-height: 80vh; }
  .hero__tagline { margin-bottom: 40px; letter-spacing: 0.25em; }

  .quienes, .mv, .objetivos, .publico, .servicios, .vehiculos, .pasos, .faq {
    padding: 80px 0;
  }

  .temario { padding: 80px 0; }
  .temario__list li { font-size: 1rem; gap: 16px; }

  .objetivo-card { flex-direction: column; text-align: left; }

  .gracias { padding: 100px 0 80px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .legal { padding: 110px 0 60px; }
  .contact-form-wrap { padding: 24px 20px; }
  .download-modal__dialog { padding: 32px 20px 24px; }
  .footer__legal-links { gap: 10px 18px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .download-modal__options { grid-template-columns: 1fr; }
}

