/* EF Company — sitio estático.
   Amarillo es acento: el texto encima del amarillo usa --ink. */

:root {
  --ink: #14202b;
  --navy: #0e3a5d;
  --navy-deep: #0a2740;
  --yellow: #f5c518;
  --yellow-hover: #e3b20e;
  --paper: #f4f1ea;
  --white: #ffffff;
  --muted: #3e5163;
  --line: #d5d0c6;
  --field: #5e7386;
  --whatsapp: #075e54;
  --display: "Barlow Condensed", "Arial Narrow", "Liberation Sans", sans-serif;
  --sans: "Source Sans 3", "Segoe UI", "Liberation Sans", sans-serif;
  --shadow: 0 12px 30px rgba(14, 58, 93, 0.08);
  color-scheme: light;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.4rem, 9vw, 4.7rem);
  color: var(--navy);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  color: var(--navy);
}

h3 {
  margin: 0.75rem 0 0.4rem;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--navy);
}

p {
  margin: 0;
}

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus {
  outline: none;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 0;
  z-index: 80;
  transform: translateY(-150%);
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0 0 12px 12px;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 3.25rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 5px;
  margin-top: 0.7rem;
  background: var(--yellow);
  border-radius: 99px;
}

.section-head p {
  max-width: 40rem;
  color: var(--muted);
}

.band-white {
  background: var(--white);
}

.band-navy {
  background-color: var(--navy);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.025) 0 10px,
    rgba(255, 255, 255, 0.05) 10px 11px
  );
  color: var(--white);
}

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

.band-navy .section-head p {
  color: #e7eef5;
}

.band-navy :focus-visible,
.site-footer :focus-visible,
.hero-card :focus-visible,
.fab:focus-visible {
  outline-color: var(--yellow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-top: 5px solid var(--yellow);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  padding: 0.7rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 11px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo-name {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.logo-tag {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
}

.header-call {
  margin-left: auto;
}

#contenido section[id] {
  scroll-margin-top: 10.5rem;
}

.nav {
  order: 3;
  width: 100%;
  padding-bottom: 0.15rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0;
  padding: 0.2rem 0.15rem 0.35rem;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(14, 58, 93, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.btn-yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.btn-yellow:hover {
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
  color: var(--ink);
}

.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-ghost:hover {
  background: rgba(14, 58, 93, 0.06);
  color: var(--navy);
}

.btn-compact {
  min-height: 44px;
  padding: 0.4rem 0.95rem;
}

.hero {
  padding: 1.4rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
}

.eyebrow {
  margin: 0;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-line {
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.tagline {
  margin-top: 0.85rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--yellow);
  max-width: 28rem;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 600;
}

.hero-support {
  margin-top: 0.9rem;
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cta-row .btn {
  width: 100%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy);
  font-weight: 600;
}

.trust-row li::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  flex: none;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--yellow);
}

.hero-card {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--white);
  border-radius: 22px;
  padding: 1.35rem 1.25rem 1.15rem;
  box-shadow: var(--shadow);
}

.hero-card-kicker {
  margin: 0;
  color: var(--yellow);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card-title {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.hero-card-sub {
  margin: 0.35rem 0 0.4rem;
  color: #e7eef5;
}

.hero-card dl {
  margin: 0.6rem 0 0;
}

.hero-card dl > div {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-card dt {
  margin: 0;
  color: var(--yellow);
  font-weight: 600;
}

.hero-card dd {
  margin: 0;
}

.hero-card a {
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.15rem;
}

.hero-card a:hover {
  color: var(--white);
}

.service-grid,
.gallery-grid,
.why-grid,
.zone-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.service-card,
.gallery-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.service-card {
  padding: 1.15rem 1.15rem 1.25rem;
}

.service-card:hover {
  border-color: var(--navy);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
}

.icon-badge svg {
  width: 26px;
  height: 26px;
  display: block;
}

.service-card p,
.why-grid p {
  color: var(--ink);
}

.band-navy .why-grid p {
  color: #e7eef5;
}

.why-grid {
  display: grid;
  gap: 1.35rem;
}

.why-grid li {
  padding-top: 0.2rem;
  border-top: 4px solid var(--yellow);
}

.why-num {
  display: block;
  margin-top: 0.7rem;
  color: var(--yellow);
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0.03em;
}

.zone-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.zone-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 64px;
  padding: 0.8rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
  font-weight: 700;
}

.zone-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--navy);
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e4edf5;
}

.gallery-card figcaption {
  padding: 0.85rem 1rem 1rem;
  font-weight: 700;
  color: var(--navy);
}

.caption-kicker {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  gap: 1.25rem;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 72px;
  padding: 0.8rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}

.contact-link:hover {
  border-color: var(--navy);
}

.kicker {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-value {
  display: block;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

address {
  font-style: normal;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem;
}

.form-card h3 {
  margin-top: 0;
}

.stack-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--field);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: #8e1d1d;
}

.form-help,
.form-note {
  color: var(--muted);
  font-size: 0.975rem;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--navy);
  font-weight: 600;
}

.form-card .btn {
  width: 100%;
}

.site-footer {
  background: var(--navy-deep);
  color: #e7eef5;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 0.95;
}

.footer-grid p + p {
  margin-top: 0.35rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.footer-nav a,
.site-footer a {
  color: var(--white);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--yellow);
}

.legal {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #e7eef5;
  font-size: 0.975rem;
}

.fab {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.missing {
  padding: 4rem 0 5rem;
}

.missing h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}

.missing p {
  margin-top: 0.8rem;
  max-width: 36rem;
}

@media (max-width: 380px) {
  .logo-tag {
    display: none;
  }

  .hero-card dl > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

@media (min-width: 700px) {
  .wrap {
    width: min(1120px, calc(100% - 3rem));
  }

  .service-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cta-row .btn {
    width: auto;
  }

  .form-card {
    padding: 1.5rem;
  }
}

@media (min-width: 800px) {
  .section {
    padding: 5rem 0;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 980px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 1rem;
  }

  #contenido section[id] {
    scroll-margin-top: 6.25rem;
  }

  .nav {
    order: 2;
    width: auto;
    margin-left: auto;
  }

  .nav-list {
    flex-wrap: nowrap;
  }

  .header-call {
    order: 3;
    margin-left: 0;
  }

  .hero {
    padding: 2.5rem 0 4.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3rem;
  }

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

  .contact-layout {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: start;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 2rem;
  }
}

.service-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 1rem;
}

.service-actions .btn {
  width: 100%;
}

.muni-list,
.faq-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.muni-list li,
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.05rem 1.15rem;
}

.muni-list h3,
.faq-list h3 {
  margin-top: 0;
}

.muni-list p,
.faq-list p {
  margin-top: 0.35rem;
}

.muni-list .btn {
  width: 100%;
  margin-top: 0.9rem;
}

.faq-list summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.faq-list summary:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.prose h1,
.qr-card h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

.qr-card h1,
.qr-card h2 {
  text-align: center;
  margin-top: 1.15rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 1.8rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.prose p,
.prose li {
  margin-top: 0.7rem;
}

.prose ul,
.prose ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.page-lead {
  margin-top: 0.8rem;
  max-width: 40rem;
}

.qr-page {
  padding: 1.25rem 0 2.5rem;
}

.qr-card {
  max-width: 32rem;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.1rem 1rem 1.25rem;
}

.qr-brand {
  display: flex;
  justify-content: center;
}

.qr-card .logo-mark {
  width: 64px;
  height: 64px;
  font-size: 2rem;
}

.qr-card .logo-name {
  font-size: 2rem;
}

.qr-intro {
  margin-top: 1rem;
  text-align: center;
}

.qr-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.qr-actions .btn,
.stack-form > .btn {
  width: 100%;
}

.qr-actions .btn {
  min-height: 48px;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.field-check input {
  width: 1.35rem;
  height: 1.35rem;
  min-height: 1.35rem;
  margin-top: 0.2rem;
  flex: none;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mobile-bar {
  display: none;
}

@media (min-width: 700px) {
  .muni-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .muni-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 899px) {
  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
  }

  .mobile-bar .btn {
    flex: 1;
  }

  body {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .btn,
  .mobile-bar,
  .logo-mark,
  .icon-badge,
  .service-card,
  .contact-link {
    border: 2px solid ButtonText;
  }
}

@media print {
  .mobile-bar,
  .skip-link,
  .nav,
  .header-call,
  .cta-row,
  .form-card {
    display: none !important;
  }

  .site-header {
    position: static;
    border-bottom: 1px solid #000;
  }

  body {
    padding-bottom: 0;
    background: #fff;
    color: #000;
  }

  .band-navy,
  .site-footer,
  .hero-card {
    background: #fff;
    color: #000;
  }

  .band-navy h2,
  .band-navy h3,
  .site-footer,
  .hero-card,
  .hero-card a {
    color: #000;
  }

  a[href^="tel:"]::after,
  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-weight: 400;
  }
}
