/* ==========================================================================
   Cerrajería Casa Llaves · Corporate Institutional Trust
   Navy / white / warm gray / trust blue / discreet gold
   Source Serif 4 + Inter
   ========================================================================== */

:root {
  --navy: #1a2b4a;
  --navy-700: #21365c;
  --navy-900: #111d33;
  --blue: #2b5cb0;
  --blue-700: #234a8c;
  --gold: #b8943f;
  --gold-soft: #c9a45a;

  --paper: #f4f2ee;
  --paper-2: #ede9e1;
  --white: #ffffff;
  --line: #d9d4c8;
  --line-soft: #e4dfd3;

  --ink: #1f2733;
  --ink-2: #4a5466;
  --ink-3: #6b7488;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius: 2px;
  --radius-lg: 4px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(17, 29, 51, 0.06);
  --shadow-md: 0 6px 24px rgba(17, 29, 51, 0.10);
  --shadow-lg: 0 18px 48px rgba(17, 29, 51, 0.16);

  --header-h: 76px;
}

*,
*::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-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: clamp(16px, 0.9rem + 0.4vw, 18px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img { height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1rem; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 1px;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-alt { background: var(--paper); }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

.section-title {
  font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.4rem);
  font-weight: 600;
  margin-top: 0.4rem;
}

.section-lead {
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 1.02rem;
  max-width: 62ch;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.7rem;
  transform: translateY(-2px);
}

.subsection-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 1.4rem 0 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.82rem; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  border-top: 2px solid var(--gold);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(17, 29, 51, 0.08);
}

.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  margin-right: auto;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy);
}
.brand-tag {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.site-nav { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  position: relative;
}
.nav-toggle-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bar:nth-child(1) { transform: translate(-50%, -7px); }
.nav-toggle-bar:nth-child(3) { transform: translate(-50%, 5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-menu a {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--navy);
  border-bottom-color: var(--gold);
  text-decoration: none;
}
.nav-cta-mobile { display: none; }
.nav-cta-desktop { flex-shrink: 0; }

/* Hero — full-bleed, brand-first */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: hero-slow 18s var(--ease) infinite alternate;
}

@keyframes hero-slow {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 29, 51, 0.35) 0%, rgba(17, 29, 51, 0.72) 55%, rgba(17, 29, 51, 0.92) 100%),
    linear-gradient(90deg, rgba(17, 29, 51, 0.55) 0%, rgba(17, 29, 51, 0.15) 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) clamp(3.5rem, 7vw, 5rem);
}

.hero-brand {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  margin: 0 0 0.85rem;
}

.hero-title {
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1.1rem;
  color: var(--white);
  max-width: 16ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: #c9d8f0;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 1.8rem;
  max-width: 48ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
}
.hero .btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy-900);
}

/* Trust seals */
.seals {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(2.25rem, 4vw, 3rem);
}
.seals-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.seal {
  position: relative;
  padding-left: 1.1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.seal-num {
  display: block;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
  margin-bottom: 0.4rem;
}
.seal-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.35rem;
}
.seal-text {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  line-height: 1.5;
}

/* About */
.about-grid { display: grid; gap: 1.25rem; }
.about-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.about-copy p { color: var(--ink-2); }
.about-copy strong { color: var(--navy); font-weight: 600; }
.about-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.65rem;
}
.about-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-2);
  font-size: 0.96rem;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.6rem;
  height: 1px;
  background: var(--gold);
}
.about-figure { margin: 0; }
.about-figure img {
  width: 100%;
  aspect-ratio: 9 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease);
}
.about-figure:hover img { transform: scale(1.02); }
.about-figure figcaption {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 0.6rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}
.card-figure {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper);
}
.card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card-figure img { transform: scale(1.04); }
.card-body { padding: 1.15rem 1.25rem 1.4rem; }
.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.card-text {
  font-size: 0.88rem;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}

.services-extra {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.extra-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1.5rem;
  margin-top: 0.75rem;
}
.extra-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.extra-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 1px;
  background: var(--gold);
}

/* Why / confianza */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.why-item {
  padding: 1.5rem 1.4rem 1.6rem;
  border-top: 2px solid var(--navy);
  background: var(--paper);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.why-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.why-num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.why-title {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}
.why-text {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: minmax(220px, 320px);
  gap: 0.85rem;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-wide { grid-row: span 1; }

/* Ubicación */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.ubicacion-address {
  margin: 1.25rem 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.ubicacion-address a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.ubicacion-address a:hover { color: var(--blue); }

.mapa-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.mapa {
  width: 100%;
  height: 360px;
  min-height: 280px;
  border: 0;
}

/* Contacto */
.contacto-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.contacto-info { min-width: 0; }
.contacto-info > p { color: var(--ink-2); margin-bottom: 0.4rem; }
.contacto-info .subsection-title:first-child { margin-top: 0; }

.contacto-list { display: grid; gap: 0.2rem; margin-bottom: 0.4rem; }
.contacto-list a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
  overflow-wrap: anywhere;
}
.contacto-list a:hover { color: var(--blue); }

.contacto-whatsapp {
  display: inline-block;
  font-weight: 600;
  color: var(--white) !important;
  background: var(--blue);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.contacto-whatsapp:hover { background: var(--navy); transform: translateY(-1px); }

.contacto-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  min-width: 0;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 0;
}
.field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 1.1rem; }
.field label {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
.req { color: var(--blue); }
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 92, 176, 0.15);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #9a2b2b;
  box-shadow: 0 0 0 3px rgba(154, 43, 43, 0.12);
}
.field-error {
  font-size: 0.8rem;
  color: #9a2b2b;
  margin: 0.35rem 0 0;
  min-height: 1em;
}
.form-actions { margin-top: 0.2rem; }
.form-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  min-height: 1.2em;
}
.form-note.success { color: #2d6a3e; }
.form-disclaimer {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  padding-top: clamp(3rem, 5vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
}
.footer-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  margin: 0 0 0.3rem;
}
.footer-tag {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  margin: 0 0 0.8rem;
}
.footer-loc { font-size: 0.9rem; margin: 0; }
.footer-nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--white); }
.footer-contact p { font-size: 0.9rem; margin: 0 0 0.2rem; }
.footer-contact a { color: rgba(255, 255, 255, 0.9); }
.footer-label {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 1rem;
}
.footer-label:first-child { margin-top: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.25rem;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), var(--shadow-md);
  z-index: 90;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-fab svg { width: 30px; height: 30px; fill: #ffffff; }
.whatsapp-fab:hover { transform: translateY(-2px) scale(1.04); text-decoration: none; }
.whatsapp-fab:active { transform: translateY(0) scale(1); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .extra-list { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(200px, 280px);
  }
  .gallery-wide { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .hero { min-height: min(78vh, 640px); }
  .about-body { grid-template-columns: 1fr; gap: 2rem; }
  .about-figure { max-width: 520px; }
  .ubicacion-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mapa { height: 320px; min-height: 260px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta-desktop { display: none; }

  .nav-menu {
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-menu a {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 0.95rem;
    border-bottom: none;
  }
  .nav-menu a:hover,
  .nav-menu a:focus-visible {
    border-bottom: none;
    color: var(--blue);
  }
  .nav-cta-mobile { display: block; padding-top: 0.75rem; }
  .nav-cta-mobile .btn { width: 100%; }

  .seals-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .extra-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-nav ul { grid-template-columns: 1fr 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(200px, 260px);
  }
  .gallery-wide { grid-column: auto; }
}

@media (max-width: 420px) {
  .services-grid { grid-template-columns: 1fr; }
  .seals-inner { grid-template-columns: 1fr; }
  .seal {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 1rem 0 0;
  }
  .seal:first-child { border-top: none; padding-top: 0; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-nav ul { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .hero { min-height: 70vh; }
  .mapa { min-height: 240px; height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-media img { animation: none; transform: none; }
  .card:hover { transform: none; }
  .card:hover .card-figure img { transform: none; }
  .gallery-item:hover img { transform: none; }
  .why-item:hover { transform: none; }
  .about-figure:hover img { transform: none; }
}
