/* =========================================================
   Aseo Concepción — estilos
   Dirección: corporativo limpio y premium · "precisión temporal"
   ========================================================= */

:root {
  /* Color */
  --navy: #0a2a52;          /* azul marino corporativo profundo */
  --navy-deep: #071d3a;     /* navy casi negro (footer / filosofía) */
  --navy-700: #103a6e;
  --blue: #1d6ef5;          /* azul eléctrico de acento */
  --blue-soft: #5b94ff;
  --wa: #25d366;            /* verde WhatsApp */
  --wa-dark: #1cb955;

  --bg: #ffffff;
  --bg-alt: #f3f7fc;        /* azul grisáceo tenue */
  --surface: #ffffff;
  --line: #e4ebf4;

  --ink: #0f1d33;           /* texto principal */
  --ink-soft: #41526b;      /* texto secundario */
  --ink-mute: #7a89a0;

  /* Tipografía */
  --font-sans: "Hanken Grotesk", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  /* Escala de espaciado (4px) */
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Radios */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Sombra */
  --shadow-sm: 0 1px 2px rgba(10, 42, 82, .06);
  --shadow-md: 0 12px 30px -12px rgba(10, 42, 82, .18);
  --shadow-lg: 0 30px 60px -20px rgba(10, 42, 82, .28);

  /* Motion */
  --t-fast: 160ms cubic-bezier(.2, .7, .3, 1);
  --t-base: 280ms cubic-bezier(.2, .7, .3, 1);

  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-6); }

/* ---------- Tipografía display ---------- */
.accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
  font-optical-sizing: auto;
}
.accent--light { color: var(--blue-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: .4rem .85rem; border-radius: var(--radius-pill);
}
.eyebrow--light { color: #cfe0ff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(29,110,245,.18); }

/* =========================================================
   Botones
   ========================================================= */
.btn {
  --btn-bg: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .8rem 1.3rem; border: 1px solid transparent; border-radius: var(--radius-sm);
  transition: transform var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--pill { border-radius: var(--radius-pill); }

.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--navy-700); box-shadow: var(--shadow-lg); }

.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--ghost .wa { color: var(--wa); }

.btn--wa { background: var(--wa); color: #04391c; }
.btn--wa:hover { background: var(--wa-dark); color: #fff; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.site-header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand__logo { height: 52px; width: auto; transition: transform var(--t-fast); }
.brand:hover .brand__logo { transform: scale(1.03); }

.nav__list { display: flex; gap: var(--space-6); }
.nav__list a { font-weight: 500; color: var(--ink-soft); font-size: .95rem; position: relative; padding: .35rem 0; transition: color var(--t-fast); }
.nav__list a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base); }
.nav__list a:hover { color: var(--navy); }
.nav__list a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: var(--space-4); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 10px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--t-base), opacity var(--t-fast); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(29,110,245,.10), transparent 60%),
    radial-gradient(700px 420px at 0% 0%, rgba(10,42,82,.06), transparent 55%),
    linear-gradient(180deg, #fff, var(--bg-alt));
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .4;
  -webkit-mask-image: radial-gradient(900px 500px at 75% 0%, #000, transparent 70%);
  mask-image: radial-gradient(900px 500px at 75% 0%, #000, transparent 70%);
}
/* Foto de acompañamiento, baja opacidad y desvanecida hacia el texto */
.hero__photo {
  position: absolute; inset: 0; z-index: -1;
  background: url("../assets/hero-bg.jpg") center right / cover no-repeat;
  opacity: .14;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero__slogan {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem); color: var(--navy);
  margin: -.4rem 0 1rem; max-width: 36ch;
}

.hero__title {
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.03;
  margin: 1.1rem 0 1.3rem;
}
.hero__title .accent { display: inline-block; font-size: 1.02em; letter-spacing: -.01em; line-height: 1.05; margin-top: .1em; }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-soft); max-width: 38ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-8) 0 var(--space-6); }

.trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.5rem; color: var(--ink-soft); font-size: .9rem; font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: .45rem; }
.trust .check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(37,211,102,.14); color: var(--wa-dark); font-size: .72rem; font-weight: 800; }

/* ---------- Cotizador ---------- */
.quoter {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(243,247,252,.86));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.2vw, 1.8rem);
}
.quoter::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(29,110,245,.5), rgba(255,255,255,0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.quoter__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.quoter__title { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.quoter__time { font-size: .75rem; font-weight: 700; color: var(--blue); background: rgba(29,110,245,.1); padding: .3rem .6rem; border-radius: var(--radius-pill); }

.field { border: 0; padding: 0; margin-bottom: 1.15rem; }
.field legend { display: flex; align-items: baseline; justify-content: space-between; width: 100%; font-size: .82rem; font-weight: 700; color: var(--ink); letter-spacing: .02em; text-transform: uppercase; margin-bottom: .6rem; }
.field__out { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--blue); text-transform: none; letter-spacing: 0; }

.chipgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.chipgrid--freq { grid-template-columns: repeat(3, 1fr); }
.chip {
  padding: .6rem .4rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: transform var(--t-fast), border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.chip:hover { border-color: var(--blue-soft); color: var(--navy); transform: translateY(-1px); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow-md); }

/* Slider */
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--blue) var(--fill, 8%), var(--line) var(--fill, 8%)); cursor: pointer; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: var(--shadow-md); transition: transform var(--t-fast); }
.slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: var(--shadow-md); }
.slider__scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-mute); margin-top: .45rem; }

.quoter__price { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.3rem 0 1rem; padding: 1rem 1.1rem; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #fff; }
.quoter__price-label { font-size: .8rem; color: #b9cdf0; font-weight: 500; }
.quoter__price-value { font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; }
.quoter__note { font-size: .72rem; color: var(--ink-mute); text-align: center; margin-top: .7rem; }

/* =========================================================
   Secciones genéricas
   ========================================================= */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }

.section__head { margin-bottom: var(--space-12); }
.section__head--center { max-width: 720px; margin-inline: auto; text-align: center; }
.section__head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-8); align-items: end; }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.section__lead { color: var(--ink-soft); font-size: clamp(1rem, 1.3vw, 1.1rem); margin-top: 1rem; }
.rule { display: block; width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--navy), var(--blue)); margin: 1.1rem auto 0; }
.section__head--center .rule { margin-inline: auto; }
.contact__intro .rule { margin-left: 0; }

/* ---------- Cards trío ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-8); box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--blue); background: rgba(29,110,245,.1); margin-bottom: 1.1rem; }
.card h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* =========================================================
   Servicios
   ========================================================= */
.services { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: var(--space-6); }
.svc {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc--feature { grid-column: span 2; grid-row: span 2; }

.svc__media { position: relative; height: 130px; background: var(--navy); overflow: hidden; }
.svc__media::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.4px);
  background-size: 16px 16px; opacity: .6;
}
.svc--feature .svc__media { height: auto; flex: 1; min-height: 260px; }

/* Gradientes temáticos por servicio (placeholder de fotografía real) */
.svc[data-art="sanitizacion"] .svc__media { background: linear-gradient(150deg, #07203f 0%, #0a2a52 45%, #1d6ef5 120%); }
.svc[data-art="oficinas"] .svc__media { background: linear-gradient(150deg, #0a2a52, #2a6fc0); }
.svc[data-art="condominios"] .svc__media { background: linear-gradient(150deg, #103a6e, #1d6ef5); }
.svc[data-art="industrial"] .svc__media { background: linear-gradient(150deg, #0f2540, #3b6ea5); }
.svc[data-art="residencial"] .svc__media { background: linear-gradient(150deg, #14406f, #4d8de0); }

/* Ícono temático grande en el media */
.svc__media::after {
  content: ""; position: absolute; right: -10px; bottom: -10px; width: 96px; height: 96px;
  opacity: .9; background-repeat: no-repeat; background-position: center; background-size: contain;
}
.svc[data-art="sanitizacion"] .svc__media::after { width: 150px; height: 150px; right: 6%; bottom: 8%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-opacity='.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11h6v9a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2z'/%3E%3Cpath d='M10 11V7a2 2 0 0 1 2-2h0'/%3E%3Cpath d='M14 5h3M16 3v4M19 8h2M20 7v3M18 12h2'/%3E%3C/svg%3E"); }
.svc[data-art="oficinas"] .svc__media::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-opacity='.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='1'/%3E%3Cpath d='M8 7h2M14 7h2M8 11h2M14 11h2M8 15h2M14 15h2'/%3E%3C/svg%3E"); }
.svc[data-art="condominios"] .svc__media::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-opacity='.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14'/%3E%3Cpath d='M9 21v-5h6v5M9 9h.01M15 9h.01M9 13h.01M15 13h.01'/%3E%3C/svg%3E"); }
.svc[data-art="industrial"] .svc__media::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-opacity='.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21V10l6 4V10l6 4V7l6 4v10z'/%3E%3C/svg%3E"); }
.svc[data-art="residencial"] .svc__media::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-opacity='.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); }

.svc__badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; font-size: .74rem; font-weight: 700; color: var(--navy); background: #fff; padding: .4rem .75rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-md); }

.svc__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.svc--feature .svc__body { padding: 1.8rem; gap: .7rem; }
.svc__body h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.svc--feature .svc__body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.svc__body p { color: var(--ink-soft); font-size: .92rem; }
.svc--feature .svc__body p { font-size: 1.02rem; max-width: 46ch; }
.svc__tag { margin-top: .3rem; align-self: flex-start; font-size: .76rem; font-weight: 700; color: var(--blue); background: rgba(29,110,245,.1); padding: .35rem .7rem; border-radius: var(--radius-pill); }

/* =========================================================
   Filosofía
   ========================================================= */
.philosophy { position: relative; color: #eaf1fb; background: var(--navy-deep); overflow: hidden; }
.philosophy::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(29,110,245,.28), transparent 60%),
    radial-gradient(600px 400px at -10% 90%, rgba(29,110,245,.14), transparent 60%);
}
.philosophy::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .5;
  -webkit-mask-image: radial-gradient(700px 500px at 80% 100%, #000, transparent 70%);
  mask-image: radial-gradient(700px 500px at 80% 100%, #000, transparent 70%);
}
.philosophy__grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.philosophy__title { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.025em; margin: 1rem 0 1.2rem; color: #fff; }
.philosophy__text { color: #c2d4ee; font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 52ch; }
.philosophy__points { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.6rem; }
.philosophy__points li { display: flex; align-items: center; gap: .7rem; color: #dce8f8; font-weight: 500; }
.philosophy__points span { color: var(--blue-soft); font-weight: 800; }

.philosophy__card {
  background: linear-gradient(160deg, rgba(91,148,255,.22), rgba(29,110,245,.12));
  border: 1px solid rgba(146,186,255,.35);
  border-radius: var(--radius-lg); padding: var(--space-8);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
}
.philosophy__card-time { display: inline-block; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: #fff; margin-bottom: .8rem; }
.philosophy__card p { font-size: 1.15rem; line-height: 1.5; color: #eef4ff; }
.philosophy__card-meta { display: block; margin-top: 1rem; font-size: .8rem; color: #a9c2ea; }

/* =========================================================
   Contacto
   ========================================================= */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }

.contact__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-md); }
.formrow { margin-bottom: 1.1rem; }
.formrow label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: .45rem; }
.formrow input, .formrow select, .formrow textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfdff; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.formrow textarea { resize: vertical; }
.formrow input:focus, .formrow select:focus, .formrow textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,110,245,.14); }
.formrow input:user-invalid, .formrow select:user-invalid, .formrow textarea:user-invalid { border-color: #e2526b; }
.contact__status { font-size: .9rem; font-weight: 600; margin-top: .9rem; min-height: 1.2em; }
.contact__status.is-ok { color: var(--wa-dark); }
.contact__status.is-err { color: #d23a55; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--navy-deep); color: #aebed6; padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-8); padding-bottom: var(--space-12); border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__logo { display: inline-flex; background: #fff; padding: .7rem 1rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.footer__logo img { height: 56px; width: auto; }
.footer__slogan { margin-top: 1.1rem; font-family: var(--font-display); font-style: italic; color: #dce8f8; font-size: 1.02rem; max-width: 32ch; }
.footer__brand p { margin-top: 1rem; max-width: 34ch; font-size: .92rem; }
.footer__brand .footer__slogan + p { margin-top: .5rem; }
.footer__col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer__col ul { display: flex; flex-direction: column; gap: .6rem; font-size: .94rem; }
.footer__col a { transition: color var(--t-fast); }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.5rem; font-size: .82rem; color: #7e92b3; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
/* Mejora progresiva: sin JS el contenido es visible; con JS se anima al entrar. */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .quoter { order: 2; }
  .section__head--split { grid-template-columns: 1fr; align-items: start; }
  .cards3 { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc--feature { grid-column: span 2; grid-row: auto; }
  .svc--feature .svc__media { min-height: 200px; }
  .philosophy__grid, .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav, .header__actions .btn--pill { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .nav.is-open .nav__list { flex-direction: column; gap: 0; padding: var(--space-4) var(--space-6); }
  .nav.is-open .nav__list li { border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__list li:last-child { border-bottom: 0; }
  .nav.is-open .nav__list a { display: block; padding: .9rem 0; }
  .services { grid-template-columns: 1fr; }
  .svc--feature { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .chipgrid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
