/* ============================================================
   ByP INELG — Design tokens extraídos del proyecto v0
   Fuente: construction-service-website (app/globals.css, tailwind.config.ts)
   ============================================================ */

:root {
  /* --- Tipografía --- */
  /* ponytail: Google Fonts via <link> en HTML, no @import (mejor carga) */
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Montserrat", var(--font-sans);

  /* Escala móvil-first de v0 (clamped, un valor en vez de 4 breakpoints) */
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.4rem + 2vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 1.6rem + 3vw, 3rem);
  --text-5xl: clamp(2.5rem, 1.6rem + 4.2vw, 3.75rem);

  /* --- Colores (paleta v0: ámbar sobre neutros fríos) --- */
  /* Superficies / fondo */
  --background: #ffffff;
  --surface: #f1f5f9;        /* gray-100 / muted de v0 */
  --surface-2: #e2e8f0;       /* gray-200 */
  --card: #ffffff;

  /* Texto */
  --foreground: #0f172a;      /* gray-900 / foreground v0 */
  --muted-foreground: #556378;/* slate-600-ish: AA sobre surface #f1f5f9 en text-sm */
  --text-on-dark: #f8fafc;    /* gray-50 */

  /* Acento ámbar (paleta custom del tailwind.config v0) */
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;      /* primary / accent / ring de v0 */
  --amber-600: #d97706;      /* btn-primary bg de v0 */
  --amber-700: #b45309;      /* hover de v0 */
  --primary: var(--amber-600);
  --primary-hover: var(--amber-700);

  /* Botones neutros de v0 (btn-secondary/dark/light) */
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --black: #000000;

  /* Estados */
  --destructive: hsl(0 84.2% 60.2%);

  /* Bordes */
  --border: #e2e8f0;         /* border de v0 (blue-gray claro) */
  --input: var(--border);

  /* --- Radios de borde (v0: --radius 0.75rem base) --- */
  --radius-sm: calc(0.75rem - 6px);  /* 0.375rem ~ sm de v0 */
  --radius-md: calc(0.75rem - 2px);  /* ~md de v0 */
  --radius-lg: 0.75rem;               /* base v0 */
  --radius-full: 9999px;              /* badges "rounded-full" de v0 */

  /* --- Sombras (tailwind shadow-sm/md + hover-lift de v0) --- */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lift: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* --- Espaciados (escala de v0: container py-8→20, gap-4→8) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --section-py: clamp(2rem, 1rem + 4vw, 5rem); /* py-8→20 de v0 */
  --container-pad: clamp(1rem, 0.5rem + 2vw, 2rem);
  --container-max: 80rem; /* max-w-7xl */

  /* --- Transición global de v0 --- */
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Layout --- */
  --header-h: 4.5rem;
}

/* ============================================================
   Reset base (universal mínimo, sin librerías)
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition-property: background-color, border-color, color, fill, stroke,
    opacity, box-shadow, transform, filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms; /* heredado de v0 */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem); /* anclas bajo header sticky */
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.625; /* leading-relaxed de v0 */
  color: var(--foreground);
  background: var(--background);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-xl); }

p, li { line-height: 1.625; }

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul[class], ol[class] {
  list-style: none;
}

/* ============================================================
   Componentes base globales (extraídos de v0)
   ============================================================ */

/* --- Botones (variantes .btn-* de v0) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px; /* tap target móvil de v0 */
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--amber-600);
  color: #fff;
}
.btn-primary:hover { background: var(--amber-700); }

.btn-secondary {
  background: var(--gray-700);
  color: #fff;
}
.btn-secondary:hover { background: var(--gray-800); }

.btn-outline {
  border-color: var(--amber-500);
  color: var(--amber-600);
  background: transparent;
}
.btn-outline:hover {
  background: var(--amber-500);
  color: #fff;
}

.btn-dark {
  background: var(--gray-900);
  color: #fff;
}
.btn-dark:hover { background: var(--black); }

.btn-light {
  background: #f3f4f6;
  color: #1f2937;
}
.btn-light:hover { background: var(--surface-2); }

/* --- Inputs / formularios (.form-* de v0) --- */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  min-height: 44px; /* tap target de v0 */
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--amber-500);
  box-shadow: 0 0 0 2px var(--amber-500);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* --- Tarjetas (.responsive-card de v0) --- */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  transition: box-shadow 300ms;
}

.card-hover:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-5px); /* hover-lift de v0 */
}

/* --- Contenedor (.container de v0) --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ============================================================
   Páginas internas: cabecera de página + breadcrumb
   ============================================================ */
.page-hero {
  background: var(--gray-900);
  color: var(--text-on-dark);
  padding: var(--space-12) 0;
}

.page-hero .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 56rem;
}

.breadcrumb {
  font-size: var(--text-sm);
  color: #94a3b8;
}

.breadcrumb a { color: #cbd5e1; }
.breadcrumb a:hover { color: var(--amber-400); }

.breadcrumb [aria-hidden] { margin: 0 0.35rem; }

.page-hero h1 { color: #fff; }

.page-lede {
  font-size: var(--text-lg);
  color: #cbd5e1;
  max-width: 46rem;
}

/* ============================================================
   Bloques de servicio (servicios.html)
   ============================================================ */
.service-block {
  padding: var(--section-py) 0;
}

.service-block:nth-of-type(even) { background: var(--surface); }

.service-block .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .service-block .container { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}

.service-block-head {
  max-width: 30rem;
}

.service-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--amber-700); /* AA: amber-600 sobre blanco falla 4.5:1 */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-2);
}

.service-block-head h2 {
  font-size: var(--text-3xl); /* jerarquía clara sobre case-card h3 (text-xl) */
  margin-bottom: var(--space-3);
}

.service-block-head p {
  color: var(--muted-foreground);
  font-size: var(--text-lg);
}

/* Lista de features con check */
.service-list {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.service-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.service-list .check {
  flex: none;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgb(245 158 11 / 0.12);
  color: var(--amber-600);
  margin-top: 0.125rem;
}

/* CTA por servicio: cierra el bloque, preselecciona el chip en contacto */
.service-cta {
  grid-column: 1 / -1;
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Caso real embebido (tarjeta destacada) */
.case-card {
  grid-column: 1 / -1;
  background: var(--background);
  border: 1px solid var(--amber-100);
  border-left: 4px solid var(--amber-500);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-block:nth-of-type(even) .case-card { background: var(--card); }

.case-card > strong {
  color: var(--amber-700); /* AA */
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-card h3 {
  font-size: var(--text-xl);
}

.case-card p {
  color: var(--muted-foreground);
}

.case-card ul {
  display: grid;
  gap: 0.5rem;
  margin-top: var(--space-2);
}

.case-card ul li {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.case-card ul li::before {
  content: "—";
  color: var(--amber-600);
  font-weight: 700;
}

/* ============================================================
   Split misión/visión + valores (nosotros.html)
   ============================================================ */
.org-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .org-grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}

.org-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.org-card .org-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgb(245 158 11 / 0.12);
  color: var(--amber-600);
}

/* Números de respaldo (fondo claro, contraste AA) */
.stats-band {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding: var(--space-12) 0;
}

.stats-band .hero-stats {
  border-top: none; /* reusa grid del hero pero sin línea */
  margin-top: 0;
}

.stats-band .stat-value { color: var(--amber-600); }
.stats-band .stat-label { color: var(--muted-foreground); }

/* Valores: grid 1→2→3 */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}

.value-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.value-card h3 { font-size: var(--text-lg); }
.value-card p { color: var(--muted-foreground); }

/* Ficha legal */
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
  max-width: 32rem;
}

.legal-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-6);
}

.legal-card dt {
  font-weight: 600;
  color: var(--muted-foreground);
  font-size: var(--text-sm);
}

.legal-card dd { font-weight: 500; }

.legal-card h2 { font-size: var(--text-2xl); }

/* ============================================================
   Contacto: tarjetas + formulario
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: var(--space-12); }
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-content: start;
}

@media (min-width: 480px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-card .contact-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgb(245 158 11 / 0.12);
  color: var(--amber-600);
}

.contact-card h3 { font-size: var(--text-base); color: var(--muted-foreground); font-weight: 600; }
.contact-card .contact-value { font-weight: 600; font-size: var(--text-lg); }
.contact-card a { color: var(--amber-600); }
.contact-card a:hover { color: var(--amber-700); }

/* Email largo: wrap sin romper card */
.contact-email { font-size: var(--text-base); word-break: break-all; }

/* Formulario v2 (adaptado de e.html: header, grid, chips, errores inline) */
.quote-card {
  padding: var(--space-8);
}

.quote-header {
  margin-bottom: var(--space-6);
}

.quote-header .badge {
  margin-bottom: var(--space-3);
}

.quote-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.quote-subtitle {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-3);
}

.input-group .form-input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

/* Estado de error inline */
.error-msg {
  display: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--destructive);
  margin-top: 0.4rem;
}

.input-group.invalid .form-input {
  border-color: var(--destructive);
  background: #fef2f2;
}

.input-group.invalid .error-msg { display: block; }

/* Radios agrupados: fieldset/legend accesible */
fieldset.input-group { border: 0; padding: 0; margin: 0 0 var(--space-3); }
fieldset.input-group legend.form-label { padding: 0; }

/* Chips de selección de servicio (radios estilizados) */
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.chip { cursor: pointer; }

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* tap target */
  padding: 0.6rem 1.1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--foreground);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  transition: all 200ms ease;
  user-select: none;
}

.chip:hover span {
  border-color: var(--amber-500);
  background: var(--background);
}

.chip input:checked + span {
  background: var(--amber-100);
  border-color: var(--amber-500);
  color: var(--amber-700);
  font-weight: 600;
  box-shadow: 0 2px 8px rgb(245 158 11 / 0.15);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--amber-600);
  outline-offset: 2px;
}

/* Botón submit: ancho completo en móvil, tamaño de contenido en desktop */
.form-submit {
  width: 100%;
}

@media (min-width: 768px) {
  .form-submit { width: auto; }
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgb(217 119 6 / 0.3);
}

.form-submit:active { transform: translateY(0); }

.form-footer-note {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  text-align: center;
  margin-top: var(--space-4);
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .quote-card { padding: var(--space-6); }
}

/* --- Enlaces de navegación (.navbar-link de v0) --- */
.nav-link {
  font-size: var(--text-base);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--transition);
}

.nav-link:hover { color: var(--amber-600); }

/* --- Badge / pill ámbar (patrón repetido en páginas v0) --- */
.badge {
  display: inline-block;
  align-self: flex-start; /* dentro de flex-column no se estira al ancho del contenedor */
  width: fit-content;
  padding: 0.35rem 0.85rem;
  background: var(--amber-100);
  color: var(--amber-700);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* --- Accesibilidad: reduced motion (de v0) --- */
/* ponytail: foco visible global (a11y crítica) */
:focus-visible {
  outline: 2px solid var(--amber-600);
  outline-offset: 2px;
}

/* ============================================================
   Header sticky (patrón v0)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smart header: oculto al scrollear hacia abajo (solo JS en móvil) */
.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: var(--header-h);
}

/* Logo lockup: imagen vertical + wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-logo {
  height: 44px;
  width: 44px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--foreground);
}

.brand-sub {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

/* Nav desktop */
.site-nav {
  display: none; /* móvil: oculto, menú hamburguesa */
}

.site-nav ul {
  display: flex;
  gap: var(--space-6);
}

.site-nav .nav-link {
  padding-inline: 0.5rem;
}

.site-nav .nav-link[aria-current="page"] {
  color: var(--amber-700); /* AA */
  font-weight: 600;
}

/* Acciones header */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-phone {
  display: none; /* solo desktop */
  font-weight: 500;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--foreground);
}

.nav-toggle:hover { background: var(--surface); }

/* Menú móvil desplegable */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--space-2) var(--container-pad) var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--background);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
}

.mobile-nav .nav-link + .nav-link {
  margin-top: 0.5rem;
}

.mobile-nav .nav-link:hover {
  background: var(--surface);
}

/* ponytail: breakpoint único 960px, coincide con max-w-7xl col-3 del v0 */
@media (min-width: 960px) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }
  .header-phone { display: inline-flex; }
  .mobile-nav { display: none !important; }
}

/* Móvil: header compacto para que entre brand + CTA + toggle sin deformar el botón */
@media (max-width: 959px) {
  .site-header .container { gap: var(--space-3); }
  .header-actions { gap: var(--space-3); }
  .header-actions .btn { padding-inline: 1rem; white-space: nowrap; }
}

/* ============================================================
   Hero (dark section de v0: gray-900 + acento ámbar)
   ============================================================ */
.hero {
  background: var(--gray-900);
  color: var(--text-on-dark);
  padding: var(--section-py) 0;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  max-width: 56rem; /* hero legible, no full 7xl */
}

/* Badge ámbar sobre fondo oscuro (v0 usa amber-300/400 en dark) */
.hero .badge {
  background: rgb(254 243 199 / 0.12);
  color: var(--amber-300);
}

.hero-lede {
  font-size: var(--text-lg);
  color: #cbd5e1; /* gray-300 */
  max-width: 46rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  width: 100%;
}

/* Botón outline blanco sobre oscuro (v0) */
.btn-outline-light {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--gray-900);
}

/* Métricas: fila que pasa a grid en desktop */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  width: 100%;
  margin-top: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgb(255 255 255 / 0.15);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--amber-400);
}

.stat-label {
  font-size: var(--text-sm);
  color: #cbd5e1;
}

/* ============================================================
   Trust strip (4 garantías, grid 2x2 → 4 col)
   ============================================================ */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.trust-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgb(245 158 11 / 0.12);
  color: var(--amber-600);
}

.trust-item strong {
  display: block;
  font-size: var(--text-base);
}

.trust-item span {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

/* ============================================================
   Secciones genéricas (eyebrow + título + intro)
   ============================================================ */
.section {
  padding: var(--section-py) 0;
}

.section-surface { background: var(--surface); }

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-8);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  color: var(--amber-700); /* AA */
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  display: block;
}

.section-head .section-title {
  margin-bottom: var(--space-4);
}

.section-intro {
  color: var(--muted-foreground);
  font-size: var(--text-lg);
}

/* ============================================================
   Grid de servicios (6 tarjetas, resumen)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-tag {
  align-self: flex-start;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--amber-700);
  background: var(--amber-100);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.service-card h3 {
  font-size: var(--text-xl);
}

.service-card p {
  color: var(--muted-foreground);
  flex: 1; /* empuja enlace abajo */
}

.service-link {
  font-weight: 600;
  color: var(--amber-700); /* AA */
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.service-link:hover {
  color: var(--amber-700);
  gap: 0.5rem; /* micro-feedback flecha */
}

/* ============================================================
   Grid de proyectos / casos (3 tarjetas)
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project-sector {
  align-self: flex-start;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card h3 {
  font-size: var(--text-lg);
}

.project-card p {
  color: var(--muted-foreground);
  flex: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.project-meta li {
  font-size: var(--text-sm);
  color: var(--amber-700);
  background: var(--amber-100);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ============================================================
   Split "Por qué elegirnos" (2 columnas: texto + puntos)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}

.split-points {
  display: grid;
  gap: var(--space-6);
}

.split-point {
  display: flex;
  gap: var(--space-4);
}

.split-point .point-num {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gray-900);
  color: var(--amber-400);
  font-family: var(--font-heading);
  font-weight: 700;
}

.split-point h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.25rem;
}

.split-point p {
  color: var(--muted-foreground);
}

/* ============================================================
   CTA final (banda oscura, mismo lenguaje que hero)
   ============================================================ */
.cta-final {
  background: var(--gray-900);
  color: var(--text-on-dark);
  text-align: center;
  padding: var(--section-py) 0;
}

.cta-final .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 46rem;
}

.cta-final h2 { color: #fff; }

.cta-final p {
  color: #cbd5e1;
  font-size: var(--text-lg);
}

.cta-final .hero-actions { justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--gray-900);
  color: #cbd5e1;
  padding: var(--space-12) 0 var(--space-6);
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #94a3b8; }
.footer-brand p { margin-top: var(--space-4); max-width: 24rem; }

.footer-grid h3 {
  color: #fff;
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

.footer-grid ul {
  display: grid;
  gap: var(--space-2);
  list-style: none; /* ul sin clase escapan del reset global ul[class] */
  padding-left: 0;
}

.footer-grid a {
  color: #cbd5e1;
  transition: color var(--transition);
}

.footer-grid a:hover { color: var(--amber-400); }

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid rgb(255 255 255 / 0.2);
  color: #cbd5e1;
}

.footer-social a:hover {
  border-color: var(--amber-400);
  color: var(--amber-400);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-6);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: var(--text-sm);
  color: #94a3b8;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   Imágenes de evidencia (proyectos / casos reales)
   ============================================================ */
.evidence-figure {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin: 0;
}

.evidence-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Variante vertical para pares de fotos (pozos, tableros, colegio) */
.evidence-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: 0;
}

@media (min-width: 640px) {
  .evidence-pair { grid-template-columns: 1fr 1fr; }
}

.evidence-pair .evidence-figure img { aspect-ratio: 4 / 3; }

/* Hover sutil: zoom contenido, sin overflow */
.card-hover .evidence-figure img,
a .evidence-figure img,
.case-card .evidence-figure img {
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover .evidence-figure img,
a:hover .evidence-figure img,
.case-card:hover .evidence-figure img {
  transform: scale(1.02);
}

/* Banda panorámica de evidencia: cierra sección sin desequilibrar columnas */
.evidence-band img { aspect-ratio: 16 / 9; }
@media (min-width: 768px) {
  .evidence-band img { aspect-ratio: 21 / 9; }
}

/* Utilidades de espaciado (reemplazan estilos inline) */
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.section-cta { text-align: center; margin-top: var(--space-8); }

/* Márgenes contextuales */
.project-card .evidence-figure { margin-bottom: var(--space-4); }
.case-card .evidence-figure { margin-bottom: var(--space-2); }
.case-card .evidence-pair { margin-bottom: var(--space-3); }
.service-block .evidence-pair { grid-column: 1 / -1; }

/* ============================================================
   Botón flotante WhatsApp
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  background: #16a34a; /* verde WhatsApp, UI estándar */
  color: #fff;
  font-weight: 500;
  box-shadow: var(--shadow-lift);
}

.whatsapp-float:hover { background: #15803d; }

/* espacio para que el botón fijo no tape footer/copyright (float ancho hasta 1023px) */
@media (max-width: 1023px) {
  body { padding-bottom: 80px; }
  .footer-bottom { padding-bottom: var(--space-6); }
}

/* ponytail: en móvil solo icono circular, texto en ≥640px */
@media (max-width: 639px) {
  .whatsapp-float {
    padding: 0;
    width: 56px;
    height: 56px;
    justify-content: center;
  }
  .whatsapp-float span { display: none; }
}

/* --- Accesibilidad: reduced motion (de v0) --- */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- FAQ Accordion SEO --- */
.faq-grid {
  display: grid;
  gap: var(--space-4);
  max-width: 48rem;
  margin-inline: auto;
}
.faq-item {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: var(--space-4) var(--space-6);
  transition: box-shadow 200ms;
}
.faq-item[open] {
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: #f59e0b;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: #475569;
  line-height: 1.6;
}
