/* ============================================
   Nexo Gestoría — Hoja de estilos principal
   tramite-gestoria.app
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700&display=swap');

/* ── 1. Variables ──────────────────────────── */
:root {
  /* Paleta principal */
  --c-primary:        #0B5E82;
  --c-primary-dark:   #073F5A;
  --c-primary-mid:    #0A5070;
  --c-primary-light:  #DFF0F8;
  --c-primary-xlight: #F0F8FC;

  /* Fondos */
  --c-bg:          #F7FAFC;
  --c-bg-alt:      #EEF4F9;
  --c-white:       #FFFFFF;

  /* Texto */
  --c-text:        #1A2533;
  --c-text-muted:  #596978;
  --c-text-faint:  #8FA0B0;

  /* Bordes */
  --c-border:      #DAE5EE;
  --c-border-soft: #EBF2F8;

  /* Semánticos */
  --c-success:     #16A34A;
  --c-error:       #DC2626;
  --c-star:        #F59E0B;

  /* Tipografía */
  --f-heading:     'Montserrat', system-ui, sans-serif;
  --f-body:        'Inter', system-ui, sans-serif;

  /* Radios */
  --r-xs:    4px;
  --r-sm:    8px;
  --r-md:    14px;
  --r-lg:    22px;
  --r-pill:  9999px;

  /* Sombras */
  --sh-xs: 0 1px 2px rgba(0,0,0,.06);
  --sh-sm: 0 2px 8px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
  --sh-md: 0 6px 18px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.05);
  --sh-lg: 0 16px 40px rgba(0,0,0,.13), 0 4px 12px rgba(0,0,0,.06);

  /* Transiciones */
  --t:      .22s ease;
  --t-fast: .14s ease;
  --t-slow: .38s ease;

  /* Layout */
  --max-w:    1180px;
  --pad-x:    1.25rem;
  --header-h: 66px;
}

/* ── 2. Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
svg { display: block; }

/* ── 3. Tipografía ─────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--f-heading);
  font-weight: 700;
  line-height: 1.22;
  color: var(--c-text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: .875rem; }
p:last-child { margin-bottom: 0; }

/* ── 4. Contenedor ─────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ── 5. Secciones ──────────────────────────── */
.section { padding-block: 3.5rem; }
@media (min-width: 640px)  { .section { padding-block: 5rem; } }
@media (min-width: 1024px) { .section { padding-block: 6.5rem; } }

.section--alt  { background: var(--c-bg); }
.section--dark {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  color: var(--c-white);
}

.section__header { text-align: center; margin-bottom: 3rem; }
@media (min-width: 768px) { .section__header { margin-bottom: 3.75rem; } }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: .625rem;
}
.section--dark .eyebrow { color: rgba(255,255,255,.7); }

.section__title  { margin-bottom: .875rem; }
.section__desc   {
  color: var(--c-text-muted);
  max-width: 58ch;
  margin-inline: auto;
  font-size: 1.0625rem;
}
.section--dark .section__desc { color: rgba(255,255,255,.75); }

/* ── 6. Botones ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--r-pill);
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: .9375rem;
  border: 2px solid transparent;
  white-space: nowrap;
  transition:
    background var(--t),
    color var(--t),
    border-color var(--t),
    box-shadow var(--t),
    transform var(--t-fast);
}
.btn:active { transform: scale(.975); }

.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}
.btn--primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  box-shadow: 0 4px 18px rgba(11,94,130,.38);
}

.btn--outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--outline:hover { background: var(--c-primary-light); }

.btn--white {
  background: var(--c-white);
  color: var(--c-primary);
  border-color: var(--c-white);
}
.btn--white:hover {
  background: var(--c-primary-xlight);
  border-color: var(--c-primary-light);
}

.btn--ghost {
  background: rgba(255,255,255,.14);
  color: var(--c-white);
  border-color: rgba(255,255,255,.32);
}
.btn--ghost:hover { background: rgba(255,255,255,.24); }

.btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn--sm { padding: .5rem 1.25rem; font-size: .875rem; }

/* ── 7. Header ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--t);
}
.site-header.is-scrolled { box-shadow: var(--sh-md); border-bottom-color: transparent; }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}
.logo__mark    { color: var(--c-primary); }
.logo__name    {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1;
  color: var(--c-text);
}
.logo--light .logo__mark { color: var(--c-white); }
.logo--light .logo__name { color: var(--c-white); }

/* Nav desktop */
.site-nav {
  display: none;
  align-items: center;
  gap: .125rem;
}
@media (min-width: 800px) { .site-nav { display: flex; } }

.nav-link {
  padding: .5rem .875rem;
  border-radius: var(--r-xs);
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--t), background var(--t);
}
.nav-link:hover { color: var(--c-primary); background: var(--c-primary-light); }
.nav-link[aria-current="page"] {
  color: var(--c-primary);
  background: var(--c-primary-light);
  font-weight: 600;
}

.nav-actions { display: none; gap: .75rem; align-items: center; }
@media (min-width: 800px) { .nav-actions { display: flex; } }

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px 8px;
  border-radius: var(--r-sm);
  color: var(--c-text);
  transition: background var(--t);
}
.burger:hover { background: var(--c-bg); }
.burger__bar {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast), transform-origin var(--t);
  transform-origin: center;
}
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 800px) { .burger { display: none; } }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--c-white);
  padding: 1.25rem var(--pad-x) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .375rem;
  overflow-y: auto;
  z-index: 99;
  transform: translateX(101%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  border-top: 1px solid var(--c-border);
}
.mobile-nav.is-open { transform: none; }
@media (min-width: 800px) { .mobile-nav { display: none !important; } }

.mobile-nav__link {
  display: block;
  padding: .875rem 1rem;
  border-radius: var(--r-sm);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-bg-alt);
  transition: background var(--t), color var(--t);
}
.mobile-nav__link:hover,
.mobile-nav__link[aria-current="page"] {
  background: var(--c-primary-light);
  color: var(--c-primary);
}
.mobile-nav__divider { height: 1px; background: var(--c-border); margin-block: .5rem; }
.mobile-nav__cta { margin-top: 1rem; display: flex; flex-direction: column; gap: .75rem; }

/* ── 8. Hero principal ─────────────────────── */
.hero {
  background: linear-gradient(140deg, var(--c-primary-dark) 0%, #0B5E82 55%, #1479a8 100%);
  color: var(--c-white);
  padding-block: 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,.07) 0%, transparent 62%);
  pointer-events: none;
}
@media (min-width: 768px) { .hero { padding-block: 6rem; } }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .hero__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-pill);
  padding: .35rem 1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4DD8CC;
  flex-shrink: 0;
}

.hero__title {
  color: var(--c-white);
  margin-bottom: 1.25rem;
}

.hero__lead {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.82);
  max-width: 48ch;
  margin-bottom: 2.25rem;
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}
.hero__trust-ico { color: #4DD8CC; }

.hero__visual { display: none; }
@media (min-width: 768px) {
  .hero__visual {
    display: block;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-lg);
  }
  .hero__visual img {
    width: 100%;
    aspect-ratio: 5/4;
    object-fit: cover;
    display: block;
  }
}

.hero__disclaimer {
  grid-column: 1 / -1;
  margin-top: .5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
}
@media (min-width: 768px) { .hero__disclaimer { margin-top: 1rem; } }

/* ── 9. Trust bar ──────────────────────────── */
.trust-bar {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  padding-block: 1.375rem;
}
.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .875rem 2.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-text-muted);
}
.trust-item__ico { color: var(--c-primary); flex-shrink: 0; }

/* ── 10. Tarjetas de servicios ─────────────── */
.service-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.75rem;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.service-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
  border-color: var(--c-primary-light);
}
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-card__name { font-size: 1.0625rem; margin-bottom: .5rem; }
.service-card__desc { color: var(--c-text-muted); font-size: .9375rem; line-height: 1.68; }

/* ── 11. Proceso (pasos) ───────────────────── */
.steps-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
}

.step { display: flex; flex-direction: column; align-items: flex-start; gap: .875rem; }
@media (min-width: 768px) { .step { align-items: center; text-align: center; } }

.step__num {
  width: 50px;
  height: 50px;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(11,94,130,.32);
}
.step__title { font-size: 1rem; margin-bottom: .35rem; }
.step__desc  { color: var(--c-text-muted); font-size: .9rem; line-height: 1.62; }

/* ── 12. Testimonios ───────────────────────── */
.testimonial-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: .875rem;
  color: var(--c-star);
}
.testimonial-card__quote {
  font-size: .9375rem;
  line-height: 1.74;
  color: var(--c-text);
  font-style: italic;
  flex: 1;
  margin-bottom: 1.375rem;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.testimonial-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  object-fit: cover;
  flex-shrink: 0;
  border: 2.5px solid var(--c-primary-light);
}
.testimonial-card__name     { font-weight: 600; font-size: .9rem; line-height: 1.25; display: block; }
.testimonial-card__location { font-size: .78rem; color: var(--c-text-muted); }

/* ── 13. FAQ ───────────────────────────────── */
.faq__list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.faq__item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  text-align: left;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--c-text);
  transition: color var(--t), background var(--t);
}
.faq__btn:hover { color: var(--c-primary); background: var(--c-primary-xlight); }
.faq__btn[aria-expanded="true"] { color: var(--c-primary); }

.faq__chevron {
  flex-shrink: 0;
  color: var(--c-primary);
  transition: transform var(--t);
}
.faq__btn[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); }

.faq__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s ease;
  padding-inline: 1.375rem;
}
.faq__body.is-open { max-height: 600px; padding-bottom: 1.25rem; }
.faq__body p { color: var(--c-text-muted); font-size: .9375rem; line-height: 1.76; }

/* ── 14. Banda CTA ─────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  color: var(--c-white);
  padding-block: 5rem;
  text-align: center;
}
.cta-band__title  { color: var(--c-white); margin-bottom: 1rem; }
.cta-band__desc   {
  color: rgba(255,255,255,.78);
  font-size: 1.0625rem;
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ── 15. Footer ────────────────────────────── */
.site-footer {
  background: #06273A;
  color: rgba(255,255,255,.68);
  padding-top: 3.5rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 600px)  { .footer__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.6fr; } }

.footer-brand__desc {
  font-size: .875rem;
  line-height: 1.65;
  max-width: 30ch;
  margin-top: .75rem;
}

.footer-col__heading {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 1.1rem;
}
.footer-col__links { display: flex; flex-direction: column; gap: .625rem; }
.footer-col__link  {
  font-size: .875rem;
  color: rgba(255,255,255,.58);
  transition: color var(--t);
}
.footer-col__link:hover { color: var(--c-white); }

.footer-contact      { display: flex; flex-direction: column; gap: .875rem; }
.footer-contact__item{ display: flex; align-items: flex-start; gap: .625rem; }
.footer-contact__ico { flex-shrink: 0; margin-top: 2px; color: #71BFDB; }
.footer-contact__txt {
  font-size: .875rem;
  color: rgba(255,255,255,.62);
  line-height: 1.52;
}
.footer-contact__txt a { color: rgba(255,255,255,.62); transition: color var(--t); }
.footer-contact__txt a:hover { color: var(--c-white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
}

.footer-disclaimer {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-sm);
  padding: .875rem 1.125rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  line-height: 1.62;
  flex: 1;
}
.footer-disclaimer strong { color: rgba(255,255,255,.7); }

.footer__bottom-right {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  flex-shrink: 0;
}
@media (min-width: 768px) { .footer__bottom-right { align-items: flex-end; } }

.footer-legal-links { display: flex; flex-wrap: wrap; gap: 0; align-items: center; }
.footer-legal-links a {
  font-size: .78rem;
  color: rgba(255,255,255,.38);
  padding: .25rem .5rem;
  border-radius: var(--r-xs);
  transition: color var(--t);
}
.footer-legal-links a:hover { color: rgba(255,255,255,.8); }
.footer-legal-sep { color: rgba(255,255,255,.2); font-size: .78rem; }

.footer-copy { font-size: .78rem; color: rgba(255,255,255,.32); }

/* ── 16. Page hero (páginas internas) ──────── */
.page-hero {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  color: var(--c-white);
  padding-block: 3.5rem 3rem;
  text-align: center;
}
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  font-size: .78rem;
  color: rgba(255,255,255,.52);
  margin-bottom: .875rem;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,.52); transition: color var(--t); }
.page-hero__breadcrumb a:hover { color: var(--c-white); }
.page-hero__title { color: var(--c-white); margin-bottom: .75rem; }
.page-hero__desc  { color: rgba(255,255,255,.78); font-size: 1.0625rem; max-width: 52ch; margin-inline: auto; }

/* ── 17. Contacto ──────────────────────────── */
.contact-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 768px) { .contact-layout { grid-template-columns: 1fr 1.3fr; } }

.contact-info__title { margin-bottom: .875rem; }
.contact-info__lead  { color: var(--c-text-muted); margin-bottom: 2rem; font-size: 1.0625rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-item__ico {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__label { font-weight: 600; font-size: .875rem; margin-bottom: .2rem; color: var(--c-text); display: block; }
.contact-item__val   { color: var(--c-text-muted); font-size: .9375rem; }
.contact-item__val a { color: var(--c-primary); }
.contact-item__val a:hover { opacity: .75; }

.contact-hours {
  background: var(--c-primary-xlight);
  border: 1px solid var(--c-primary-light);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.contact-hours__title { font-size: .875rem; font-weight: 700; margin-bottom: .75rem; color: var(--c-primary); }
.contact-hours__row {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--c-text-muted);
  padding-block: .3rem;
  border-bottom: 1px solid var(--c-border-soft);
}
.contact-hours__row:last-child { border-bottom: none; }

/* ── 18. Formulario ────────────────────────── */
.form-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem;
}
@media (min-width: 480px) { .form-card { padding: 2.25rem 2.5rem; } }

.form-card__title { font-size: 1.25rem; margin-bottom: .5rem; }
.form-card__desc  { color: var(--c-text-muted); font-size: .9375rem; margin-bottom: 1.75rem; }

.form__field { margin-bottom: 1.25rem; }
.form__label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: .4rem;
  color: var(--c-text);
}
.form__label-req { color: var(--c-error); }

.form__control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-white);
  color: var(--c-text);
  font-size: .9375rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.form__control::placeholder { color: var(--c-text-faint); }
.form__control:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(11,94,130,.12);
}
.form__control.has-error { border-color: var(--c-error); }
textarea.form__control { resize: vertical; min-height: 122px; }

.form__error-msg {
  font-size: .78rem;
  color: var(--c-error);
  margin-top: .3rem;
  display: none;
}
.form__error-msg.is-shown { display: block; }

.form__row { display: grid; gap: 1rem; }
@media (min-width: 480px) { .form__row { grid-template-columns: 1fr 1fr; } }

.form__submit { width: 100%; }

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.form-success.is-visible { display: block; }
.form-success__ico {
  width: 60px;
  height: 60px;
  border-radius: var(--r-pill);
  background: #DCFCE7;
  color: var(--c-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.form-success__title { font-size: 1.25rem; margin-bottom: .5rem; }
.form-success__msg   { color: var(--c-text-muted); }

/* ── 19. Página Nosotros ───────────────────── */
.about-intro {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .about-intro { grid-template-columns: 1fr 1fr; } }

.about-intro__img {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.about-intro__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.about-intro__eyebrow { margin-bottom: .625rem; }
.about-intro__title   { margin-bottom: 1rem; }
.about-intro__body    { color: var(--c-text-muted); font-size: 1rem; }
.about-intro__body p  { margin-bottom: .875rem; }

.values-grid { display: grid; gap: 1.5rem; }
@media (min-width: 560px) { .values-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(3,1fr); } }

.value-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  transition: box-shadow var(--t), transform var(--t);
}
.value-card:hover { box-shadow: var(--sh-sm); transform: translateY(-2px); }
.value-card__ico  { color: var(--c-primary); margin-bottom: .875rem; }
.value-card__name { font-size: 1rem; margin-bottom: .35rem; }
.value-card__desc { font-size: .875rem; color: var(--c-text-muted); line-height: 1.62; }

.team-grid { display: grid; gap: 2rem; }
@media (min-width: 560px) { .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(3,1fr); } }

.team-card         { text-align: center; }
.team-card__photo  {
  width: 100px;
  height: 100px;
  border-radius: var(--r-pill);
  object-fit: cover;
  margin: 0 auto .875rem;
  border: 3px solid var(--c-primary-light);
}
.team-card__name { font-size: 1.0625rem; margin-bottom: .25rem; }
.team-card__role { font-size: .875rem; color: var(--c-primary); font-weight: 600; margin-bottom: .5rem; }
.team-card__bio  { font-size: .875rem; color: var(--c-text-muted); line-height: 1.62; }

/* ── 20. Página Servicios ──────────────────── */
.service-block {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: 1.5rem;
  transition: box-shadow var(--t);
}
.service-block:hover { box-shadow: var(--sh-sm); }
@media (min-width: 768px) { .service-block { grid-template-columns: 68px 1fr; align-items: start; } }

.service-block__ico {
  width: 68px;
  height: 68px;
  border-radius: var(--r-md);
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-block__name { font-size: 1.25rem; margin-bottom: .625rem; }
.service-block__desc { color: var(--c-text-muted); margin-bottom: 1rem; font-size: .9375rem; line-height: 1.7; }
.service-block__list { display: flex; flex-direction: column; gap: .5rem; }
.service-block__item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9rem;
  color: var(--c-text-muted);
}
.service-block__bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── 21. Páginas legales ───────────────────── */
.legal-wrap  { max-width: 820px; margin-inline: auto; }

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: var(--c-primary-light);
  color: var(--c-primary);
  padding: .35rem .875rem;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 2.25rem;
}

.legal-body h2 {
  font-size: 1.25rem;
  color: var(--c-primary);
  margin-top: 2.75rem;
  margin-bottom: .875rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body h3 { font-size: 1.0625rem; margin-top: 1.5rem; margin-bottom: .625rem; }
.legal-body p, .legal-body li {
  color: var(--c-text-muted);
  font-size: .9375rem;
  line-height: 1.8;
}
.legal-body p  { margin-bottom: .875rem; }
.legal-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body li { margin-bottom: .5rem; }
.legal-body a  { color: var(--c-primary); text-decoration: underline; }
.legal-body strong { color: var(--c-text); font-weight: 600; }

/* ── 22. Animaciones ───────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-up { animation: fadeUp .55s ease both; }
.fade-in { animation: fadeIn .45s ease both; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .1s; }
.reveal--d2 { transition-delay: .2s; }
.reveal--d3 { transition-delay: .3s; }
.reveal--d4 { transition-delay: .4s; }

/* ── 23. Utilidades ────────────────────────── */
.text-primary  { color: var(--c-primary); }
.text-muted    { color: var(--c-text-muted); }
.text-center   { text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--c-primary);
  color: var(--c-white);
  padding: .5rem 1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  font-size: .875rem;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* ── 24. Scrollbar ─────────────────────────── */
::-webkit-scrollbar        { width: 7px; }
::-webkit-scrollbar-track  { background: var(--c-bg); }
::-webkit-scrollbar-thumb  { background: var(--c-primary-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-primary-dark); }

/* ── 25. Responsive ajustes ────────────────── */
@media (max-width: 480px) {
  :root { --pad-x: 1rem; }
  .hero { padding-block: 3rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .cta-band__actions { flex-direction: column; align-items: center; }
  .cta-band__actions .btn { width: 100%; max-width: 320px; }
}
