/* ================================================================
   Ágil Trámites — Estilos principales
   ================================================================ */

/* 1. Variables de marca */
:root {
  --accent:        #1B6CA8;
  --accent-dark:   #155892;
  --accent-xdark:  #0e3d67;
  --accent-light:  #E8F3FB;
  --accent-mid:    #5C9DC7;

  --text:          #1E293B;
  --text-2:        #4B5563;
  --text-3:        #9CA3AF;

  --bg:            #F8FAFC;
  --bg-alt:        #EFF6FF;
  --white:         #FFFFFF;
  --border:        #E2E8F0;
  --border-dark:   #CBD5E1;

  --success:       #16A34A;
  --success-bg:    #F0FDF4;
  --error:         #DC2626;
  --warn:          #F59E0B;

  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
          'Helvetica Neue', Arial, sans-serif;

  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  36px;

  --sh-xs: 0 1px 2px rgba(0,0,0,.06);
  --sh-sm: 0 1px 4px rgba(0,0,0,.08);
  --sh-md: 0 4px 12px rgba(0,0,0,.09);
  --sh-lg: 0 8px 28px rgba(0,0,0,.11);
  --sh-xl: 0 16px 48px rgba(0,0,0,.13);

  --max-w:  1200px;
  --nav-h:  70px;
  --tr:     0.22s ease;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body  { font-family: var(--font); color: var(--text); background: var(--bg);
        line-height: 1.65; -webkit-font-smoothing: antialiased; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul    { list-style: none; }
input, textarea, select { font-family: inherit; }
h1,h2,h3,h4,h5,h6 { line-height: 1.22; color: var(--text); }
strong { font-weight: 700; }

/* 3. Layout */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px)  { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 5.5rem 0; } }

.section__header { text-align: center; margin-bottom: 3rem; }
.section__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: .3rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .65rem;
}
.section__title {
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: .6rem;
}
.section__subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 1.02rem;
}

/* 4. Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .72rem 1.75rem;
  border-radius: var(--r-md);
  font-size: .97rem;
  font-weight: 600;
  line-height: 1;
  transition: background var(--tr), color var(--tr),
              border-color var(--tr), transform var(--tr),
              box-shadow var(--tr);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
}
.btn--white {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--accent-dark);
}
.btn--ghost-white {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,.22);
}
.btn--lg { padding: .95rem 2.2rem; font-size: 1.05rem; }
.btn--sm { padding: .5rem 1.1rem; font-size: .85rem; }

/* 5. Navegación */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-icon { flex-shrink: 0; }
.nav__list {
  display: none;
  align-items: center;
  gap: .15rem;
}
.nav__link {
  padding: .5rem .9rem;
  border-radius: var(--r-sm);
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--tr), background var(--tr);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-light);
}
.nav__cta {
  margin-left: .4rem;
  padding: .5rem 1.2rem;
  font-size: .9rem;
}
.nav__cta.nav__link:hover { background: var(--accent-dark); color: var(--white); }

.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: var(--r-sm);
}
.nav__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .28s ease, opacity .22s ease;
}
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.25rem;
  flex-direction: column;
  gap: .25rem;
  box-shadow: var(--sh-lg);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile .nav__link {
  padding: .72rem 1rem;
  font-size: .98rem;
}
.nav__mobile .btn { margin-top: .6rem; width: 100%; justify-content: center; }

@media (min-width: 768px) {
  .nav__list   { display: flex; }
  .nav__burger { display: none; }
}

/* 6. Hero — Inicio */
.hero {
  background: linear-gradient(140deg, #0c2340 0%, #1B6CA8 58%, #2d94d4 100%);
  color: var(--white);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.05) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0,0,0,.08) 0%, transparent 40%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr 440px;
    align-items: center;
  }
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9);
  font-size: .76rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .07em;
  width: fit-content;
  margin-bottom: 1.1rem;
}
.hero__badge svg { color: #7DD3FC; }
.hero__title {
  font-size: clamp(2.1rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.09;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero__title em { font-style: normal; color: #7DD3FC; }
.hero__subtitle {
  font-size: clamp(.98rem, 2.2vw, 1.18rem);
  color: rgba(255,255,255,.82);
  max-width: 520px;
  margin-bottom: 2.1rem;
  line-height: 1.72;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.85rem;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .84rem;
  color: rgba(255,255,255,.78);
}
.hero__trust-item svg { color: #7DD3FC; flex-shrink: 0; }

.hero__visual { display: flex; align-items: center; justify-content: center; }
.hero__card {
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  width: 100%;
  max-width: 380px;
}
.hero__card-label {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.15rem;
}
.hero__step-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .72rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hero__step-row:last-child { border-bottom: none; }
.hero__step-num {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  font-weight: 800;
  color: var(--white);
}
.hero__step-text { font-size: .9rem; color: rgba(255,255,255,.85); }

.hero__disclaimer {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-left: 3px solid rgba(255,255,255,.35);
  border-radius: var(--r-sm);
  padding: .8rem 1rem;
  margin-top: 2.2rem;
  font-size: .78rem;
  color: rgba(255,255,255,.68);
  line-height: 1.55;
}
.hero__disclaimer strong { color: rgba(255,255,255,.9); }

/* 7. Sección Servicios — cards */
.services { background: var(--white); }
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 600px) { .services__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px){ .services__grid { grid-template-columns: repeat(3,1fr); } }

.svc-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem;
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.svc-card:hover {
  border-color: var(--accent);
  box-shadow: var(--sh-lg);
  transform: translateY(-2px);
}
.svc-card__icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.svc-card__title { font-size: 1.04rem; font-weight: 700; margin-bottom: .45rem; }
.svc-card__text  { font-size: .9rem; color: var(--text-2); line-height: 1.68; }

/* 8. Proceso */
.process { background: var(--bg); }
.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
@media (min-width: 768px) {
  .process__grid {
    grid-template-columns: repeat(4,1fr);
    gap: 1.5rem;
  }
}
.process__step { display: flex; flex-direction: column; gap: .7rem; position: relative; }
@media (min-width: 768px) {
  .process__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(50% + 28px);
    width: calc(100% - 28px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--border) 100%);
  }
}
.process__num {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(27,108,168,.35);
}
.process__title { font-size: 1rem; font-weight: 700; }
.process__desc  { font-size: .875rem; color: var(--text-2); line-height: 1.65; }

/* 9. Testimonios */
.testimonials { background: var(--white); }
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 600px)  { .testimonials__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .testimonials__grid { grid-template-columns: repeat(4,1fr); } }

.testimonial {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.testimonial__stars { display: flex; gap: 2px; margin-bottom: .75rem; }
.testimonial__star  { color: var(--warn); font-size: 1rem; }
.testimonial__text  {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.68;
  font-style: italic;
  flex: 1;
  margin-bottom: 1.1rem;
}
.testimonial__footer { display: flex; align-items: center; gap: .75rem; }
.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--accent-light);
}
.testimonial__name     { font-size: .875rem; font-weight: 700; color: var(--text); }
.testimonial__location { font-size: .78rem; color: var(--text-3); }

/* 10. FAQ */
.faq { background: var(--bg); }
.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.faq__item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--tr);
}
.faq__item:has(.faq__btn[aria-expanded="true"]) { border-color: var(--accent); }
.faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  text-align: left;
  font-size: .97rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--tr);
}
.faq__btn:hover { color: var(--accent); }
.faq__btn[aria-expanded="true"] { color: var(--accent); }
.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s ease;
}
.faq__icon::before { width: 14px; height: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq__icon::after  { width: 2px; height: 14px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq__btn[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%,-50%) rotate(90deg);
}
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  padding: 0 1.4rem;
}
.faq__answer.is-open { max-height: 500px; padding: 0 1.4rem 1.25rem; }
.faq__answer p { font-size: .93rem; color: var(--text-2); line-height: 1.72; }

/* 11. CTA Banner */
.cta-banner {
  background: linear-gradient(140deg, #0c2340 0%, var(--accent) 100%);
  padding: 4.5rem 0;
  color: var(--white);
  text-align: center;
}
.cta-banner__eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #7DD3FC;
  margin-bottom: .6rem;
}
.cta-banner__title {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.015em;
  margin-bottom: .85rem;
}
.cta-banner__subtitle {
  color: rgba(255,255,255,.78);
  max-width: 540px;
  margin: 0 auto 2.1rem;
  font-size: 1.04rem;
}
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* 12. Footer */
.footer {
  background: #0a1929;
  color: rgba(255,255,255,.68);
  padding: 3.5rem 0 1.75rem;
}
.footer__grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .footer__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.6fr; } }

.footer__logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  margin-bottom: .95rem;
}
.footer__brand p {
  font-size: .875rem;
  line-height: 1.72;
  max-width: 280px;
}
.footer__col-title {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.38);
  margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__link {
  font-size: .875rem;
  color: rgba(255,255,255,.62);
  transition: color var(--tr);
}
.footer__link:hover { color: var(--white); }

.footer__contact { display: flex; flex-direction: column; gap: .65rem; }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .875rem;
}
.footer__contact-icon { flex-shrink: 0; margin-top: 1px; color: #7DD3FC; }

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 2.25rem 0 1.4rem;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer__disclaimer {
  font-size: .8rem;
  color: rgba(255,255,255,.48);
  max-width: 650px;
  line-height: 1.6;
  background: rgba(255,255,255,.04);
  padding: .75rem 1.1rem;
  border-radius: var(--r-sm);
  border-left: 3px solid rgba(255,255,255,.15);
  flex: 1;
  min-width: 240px;
}
.footer__disclaimer strong { color: rgba(255,255,255,.72); }
.footer__copy {
  font-size: .78rem;
  color: rgba(255,255,255,.33);
  white-space: nowrap;
  margin-top: .2rem;
}

/* 13. Hero interior (páginas internas) */
.page-hero {
  background: linear-gradient(140deg, #0c2340 0%, var(--accent) 100%);
  color: var(--white);
  padding: 3.75rem 0;
  text-align: center;
}
.page-hero__tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7DD3FC;
  margin-bottom: .6rem;
}
.page-hero__title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: .7rem;
}
.page-hero__subtitle {
  color: rgba(255,255,255,.78);
  font-size: 1.04rem;
  max-width: 560px;
  margin: 0 auto;
}

/* 14. Servicios — detalle */
.services-detail { background: var(--white); }
.svc-detail-list { display: flex; flex-direction: column; gap: 1.75rem; }
.svc-detail {
  display: grid;
  gap: 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 2rem;
  background: var(--bg);
  transition: border-color var(--tr);
}
.svc-detail:hover { border-color: var(--accent-mid); }
@media (min-width: 768px) {
  .svc-detail { grid-template-columns: 72px 1fr; }
}
.svc-detail__icon {
  width: 72px;
  height: 72px;
  background: var(--accent-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.svc-detail__title { font-size: 1.18rem; font-weight: 700; margin-bottom: .45rem; }
.svc-detail__text  { font-size: .93rem; color: var(--text-2); line-height: 1.72; margin-bottom: .8rem; }
.svc-detail__tags  { display: flex; flex-wrap: wrap; gap: .45rem; }
.svc-detail__tag {
  font-size: .78rem;
  background: var(--accent-light);
  color: var(--accent);
  padding: .22rem .75rem;
  border-radius: 50px;
  font-weight: 600;
}

/* 15. Por qué elegirnos */
.why { background: var(--bg); }
.why__grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .why__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .why__grid { grid-template-columns: repeat(3,1fr); } }

.why-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.6rem;
}
.why-card__icon { color: var(--accent); margin-bottom: .85rem; }
.why-card__title { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.why-card__text  { font-size: .875rem; color: var(--text-2); line-height: 1.65; }

/* 16. Nosotros */
.about-story { background: var(--white); }
.about-story__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .about-story__grid { grid-template-columns: 1fr 1fr; }
}
.about-story__visual {
  background: var(--accent-light);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-stat {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--sh-sm);
}
.about-stat__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .2rem;
}
.about-stat__label { font-size: .875rem; color: var(--text-2); }

.about-story__body { display: flex; flex-direction: column; gap: 1.1rem; }
.about-story__body h2 { font-size: clamp(1.55rem,3vw,2.2rem); font-weight: 800; letter-spacing: -.015em; }
.about-story__body p  { font-size: .95rem; color: var(--text-2); line-height: 1.75; }

.values { background: var(--bg); }
.values__grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .values__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .values__grid { grid-template-columns: repeat(4,1fr); } }

.val-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.6rem;
  text-align: center;
}
.val-card__icon {
  width: 54px;
  height: 54px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--accent);
}
.val-card__title { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.val-card__text  { font-size: .875rem; color: var(--text-2); line-height: 1.62; }

.team { background: var(--white); }
.team__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .team__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .team__grid { grid-template-columns: repeat(3,1fr); } }

.team-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem;
  text-align: center;
}
.team-card__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto .9rem;
  border: 3px solid var(--accent-light);
}
.team-card__name { font-size: 1.02rem; font-weight: 700; margin-bottom: .2rem; }
.team-card__role { font-size: .84rem; color: var(--accent); font-weight: 600; margin-bottom: .6rem; }
.team-card__text { font-size: .875rem; color: var(--text-2); line-height: 1.62; }

/* 17. Contacto */
.contact { background: var(--white); }
.contact__grid { display: grid; gap: 3rem; }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1.55fr; }
}
.contact__aside { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.contact-info-card__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-info-card__label {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-3);
  margin-bottom: .18rem;
}
.contact-info-card__val { font-size: .93rem; font-weight: 500; color: var(--text); }
.contact-info-card__val a { color: var(--accent); }

.hours-card {
  background: var(--accent-light);
  border-radius: var(--r-md);
  padding: 1.35rem;
}
.hours-card h3 { font-size: .88rem; font-weight: 700; color: var(--accent); margin-bottom: .8rem; }
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--text-2);
  padding: .32rem 0;
  border-bottom: 1px solid rgba(27,108,168,.12);
}
.hours-row:last-child { border-bottom: none; }

/* 18. Formulario */
.form { display: flex; flex-direction: column; gap: 1.15rem; }
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__group { display: flex; flex-direction: column; gap: .35rem; }
.form__label { font-size: .875rem; font-weight: 600; color: var(--text); }
.form__req   { color: var(--accent); margin-left: 2px; }
.form__input {
  padding: .7rem .95rem;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--r-sm);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--tr), box-shadow var(--tr);
}
.form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27,108,168,.12);
  background: var(--white);
}
.form__input.is-error   { border-color: var(--error); }
.form__input.is-success { border-color: var(--success); }
.form__textarea { resize: vertical; min-height: 130px; }
.form__error {
  font-size: .8rem;
  color: var(--error);
  display: none;
}
.form__error.is-visible { display: block; }
.form__hint { font-size: .8rem; color: var(--text-3); }
.form__footer { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form__privacy { font-size: .8rem; color: var(--text-3); }
.form__privacy a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.form-success {
  display: none;
  background: var(--success-bg);
  border: 1.5px solid #BBF7D0;
  border-radius: var(--r-md);
  padding: 1.5rem;
}
.form-success.is-visible { display: flex; align-items: flex-start; gap: .85rem; }
.form-success__icon { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.form-success__title { font-size: .97rem; font-weight: 700; color: #166534; margin-bottom: .25rem; }
.form-success__text  { font-size: .875rem; color: #166534; }

/* 19. Páginas legales */
.legal { background: var(--white); }
.legal__body { max-width: 820px; margin: 0 auto; }
.legal__date {
  font-size: .875rem;
  color: var(--text-3);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--border);
}
.legal__body h2 { font-size: 1.3rem; font-weight: 700; margin: 2.2rem 0 .7rem; }
.legal__body h3 { font-size: 1.06rem; font-weight: 600; margin: 1.4rem 0 .45rem; }
.legal__body p  { font-size: .95rem; color: var(--text-2); line-height: 1.78; margin-bottom: .9rem; }
.legal__body ul { margin: .5rem 0 1rem 1.3rem; list-style: disc; }
.legal__body ul li { font-size: .95rem; color: var(--text-2); line-height: 1.7; margin-bottom: .35rem; }
.legal__body a  { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal__body strong { color: var(--text); }

/* 20. Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: #0a1929;
  color: rgba(255,255,255,.82);
  padding: 1.1rem 1.25rem;
  display: none;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
}
.cookie-banner__text { font-size: .875rem; flex: 1; min-width: 220px; line-height: 1.55; }
.cookie-banner__text a { color: #7DD3FC; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .75rem; flex-shrink: 0; }
.cb-btn {
  padding: .55rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background var(--tr), color var(--tr);
}
.cb-btn--accept { background: var(--accent); color: var(--white); }
.cb-btn--accept:hover { background: var(--accent-dark); }
.cb-btn--reject { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.cb-btn--reject:hover { background: rgba(255,255,255,.2); }

/* 21. Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }
.d6 { transition-delay: .48s; }

/* 22. Utilidades */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
.skip-link {
  position: absolute; top: -100%; left: .5rem;
  padding: .5rem 1rem; background: var(--accent); color: var(--white);
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-size: .875rem;
  font-weight: 600; z-index: 999; transition: top .2s;
}
.skip-link:focus { top: 0; }
.text-center { text-align: center; }
.mt-xs { margin-top: .5rem; }
.mt-sm { margin-top: .85rem; }
.mt-md { margin-top: 1.5rem; }
.accent { color: var(--accent); }
