/* ==========================================================
   RODFER S.A.C. — Hoja de estilos del sitio web
   Paleta de marca: azul marino + naranja de seguridad
   Tipografía: Barlow Condensed (títulos) y Barlow (texto)
   ========================================================== */

:root {
  --navy: #0C1C55;
  --navy-deep: #081340;
  --ink: #111A3A;
  --steel: #55607A;
  --paper: #F3F5F9;
  --line: #DDE2EB;
  --white: #FFFFFF;
  --orange: #EF5B0C;          /* acentos y encuadres */
  --orange-btn: #D34E08;      /* botones (contraste con blanco) */
  --orange-btn-hover: #B74306;
  --orange-text: #B34405;     /* texto naranja sobre blanco */
  --wa: #0F7F43;              /* botón de WhatsApp */
  --wa-hover: #0B6936;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
}

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

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

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

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

a { color: var(--orange-text); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

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

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--navy); }

h1, h2 {
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.35rem, 1.5rem + 3.3vw, 4rem); line-height: 1.03; }
h2 { font-size: clamp(1.9rem, 1.35rem + 1.9vw, 2.85rem); line-height: 1.08; }
h3 { font-family: var(--body); font-size: 1.3rem; font-weight: 600; line-height: 1.3; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--steel); max-width: 62ch; }

.muted { color: var(--steel); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Encuadre naranja (elemento distintivo de la marca) ---------- */
.encuadre { position: relative; padding: 14px; }
.encuadre::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  --c: var(--orange); --l: 38px; --t: 4px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l) no-repeat;
}
.encuadre--sm::before { --l: 24px; --t: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 1.125rem; line-height: 1.1;
  padding: 15px 22px; min-height: 52px;
  border-radius: 6px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--orange-btn); color: #fff; }
.btn-primary:hover { background: var(--orange-btn-hover); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { height: 48px; width: auto; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.55rem; letter-spacing: .01em; line-height: 1; }
.brand-name small { display: block; font-family: var(--body); font-weight: 500; font-size: .72rem; color: var(--steel); letter-spacing: .02em; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a, .nav .sub-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; color: var(--ink);
  text-decoration: none; padding: 10px 12px; border-radius: 6px;
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav .sub-toggle:hover { color: var(--orange-text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .15s ease; }
.has-sub { position: relative; }
.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(12, 28, 85, .12);
  display: none;
}
.submenu a { display: block; padding: 10px 12px; }
.submenu a:hover { background: var(--paper); }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { display: block; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.nav .btn { margin-left: 10px; padding: 12px 18px; min-height: 46px; font-size: 1.05rem; }
.menu-btn {
  display: none; background: none; border: 2px solid var(--line); border-radius: 6px;
  width: 48px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--navy);
}
.menu-btn svg { width: 24px; height: 24px; }

@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; flex-direction: column; align-items: stretch;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav .sub-toggle { width: 100%; padding: 13px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--paper); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 14px; }
  .submenu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .sub-toggle svg { display: none; }
  .nav .btn { margin: 14px 0 0; width: 100%; }
}

/* ---------- Portada (hero) ---------- */
.hero {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #fff;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 100px);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.82); margin-bottom: 30px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--navy-deep); border-radius: 2px; }
.hero-facts { list-style: none; margin: 34px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255,255,255,.18);
  display: grid; grid-template-columns: repeat(3, auto); gap: 14px 28px; justify-content: start; }
.hero-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; color: rgba(255,255,255,.88); line-height: 1.35; max-width: 22ch; }
.hero-facts svg { width: 20px; height: 20px; flex: none; color: var(--orange); margin-top: 1px; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li { max-width: none; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { color: var(--steel); font-size: 1.15rem; }
.section--navy .section-head p { color: rgba(255,255,255,.8); }

/* ---------- ¿Qué necesitas resolver? ---------- */
.needs { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.needs-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.needs-list a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px;
  padding: 22px 6px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: background-color .15s ease;
}
.needs-list a:hover { background: var(--white); }
.need-text { display: block; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); font-weight: 500; line-height: 1.35; }
.need-svc { display: block; margin-top: 4px; font-size: .98rem; font-weight: 600; color: var(--orange-text); }
.needs-list svg { width: 26px; height: 26px; color: var(--navy); }
@media (max-width: 880px) { .needs { grid-template-columns: 1fr; } }

/* ---------- Líneas de servicio ---------- */
.core { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.core-item {
  border-top: 5px solid var(--navy); background: var(--white);
  padding: 30px 26px 28px; display: flex; flex-direction: column;
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
}
.core-item h3 { font-family: var(--head); font-size: 2rem; font-weight: 700; line-height: 1.05; margin-bottom: 12px; }
.core-item > p { color: var(--steel); }
.core-item .checks { margin-bottom: 24px; }
.core-item .more { margin-top: auto; }
.comp { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--white); }
.comp a { display: block; padding: 22px 24px; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); }
.comp a:last-child { border-right: 0; }
.comp a:hover { background: var(--paper); }
.comp strong { display: block; font-size: 1.15rem; color: var(--navy); }
.comp span { display: block; color: var(--steel); font-size: .98rem; margin-top: 2px; }
.comp-label { font-weight: 600; color: var(--steel); margin: 34px 0 10px; }
.more { font-weight: 700; color: var(--orange-text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.more:hover { color: var(--navy); }
.more svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .core { grid-template-columns: 1fr; }
  .comp { grid-template-columns: 1fr; }
  .comp a { border-right: 0; border-bottom: 1px solid var(--line); }
  .comp a:last-child { border-bottom: 0; }
}

/* ---------- Listas con check ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.45; }
.checks svg { width: 20px; height: 20px; color: var(--orange); margin-top: 2px; }
.checks--2 { grid-template-columns: 1fr 1fr; gap: 12px 32px; }
@media (max-width: 720px) { .checks--2 { grid-template-columns: 1fr; } }

/* ---------- Modalidades ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode { padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); background: var(--white); }
.mode h3 { font-family: var(--head); font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); font-weight: 700; line-height: 1.05; }
.mode .for { color: var(--steel); margin-bottom: 22px; }
.mode--featured { background: var(--navy); border-color: var(--navy); color: #fff; }
.mode--featured h3 { color: #fff; }
.mode--featured .for { color: rgba(255,255,255,.8); }
.mode--featured .checks svg { color: var(--orange); }
@media (max-width: 820px) { .modes { grid-template-columns: 1fr; } }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: paso; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--5 { grid-template-columns: repeat(5, 1fr); gap: 24px; }
.steps li { counter-increment: paso; border-top: 2px solid var(--line); padding-top: 18px; }
.steps li::before {
  content: counter(paso);
  display: block; font-family: var(--head); font-weight: 700; font-size: 3.4rem; line-height: 1;
  color: var(--orange); margin-bottom: 10px;
}
.section--navy .steps li { border-color: rgba(255,255,255,.2); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--steel); margin: 0; }
.section--navy .steps p { color: rgba(255,255,255,.8); }
@media (max-width: 960px) { .steps--4, .steps--5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .steps, .steps--4, .steps--5 { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Profesionales ---------- */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.person { display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: start; }
.person-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; background: var(--paper); }
.person h3 { font-family: var(--head); font-size: 1.85rem; font-weight: 700; line-height: 1.05; margin-bottom: 4px; }
.person .role { color: var(--steel); font-weight: 500; margin-bottom: 4px; }
.person .reg { font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.person .does { margin-bottom: 14px; }
.person .checks { font-size: 1rem; margin-bottom: 14px; }
.verify { font-size: .95rem; font-weight: 600; }
@media (max-width: 960px) { .people { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .person { grid-template-columns: 1fr; } .person-photo { max-width: 240px; } }

/* ---------- Evidencia (fotos reales) ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.gallery figcaption { font-size: .92rem; color: var(--steel); margin-top: 8px; }
.section--navy .gallery figcaption { color: rgba(255,255,255,.72); }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Clientes ---------- */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.clients li {
  background: var(--white); border: 1px solid var(--line);
  height: 104px; display: flex; align-items: center; justify-content: center; padding: 14px;
}
.clients img { max-height: 58px; max-width: 86%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .82; transition: filter .2s ease, opacity .2s ease; }
.clients li:hover img { filter: none; opacity: 1; }

/* ---------- Lema ---------- */
.motto { background: var(--navy); color: #fff; padding: clamp(64px, 9vw, 120px) 0; }
.motto .encuadre { padding: clamp(28px, 4vw, 56px); max-width: 980px; }
.motto blockquote { margin: 0; }
.motto p.phrase { font-family: var(--head); font-weight: 700; font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4.6rem); line-height: 1.02; margin: 0 0 18px; color: #fff; }
.motto p.sub { color: rgba(255,255,255,.8); font-size: 1.15rem; margin: 0; max-width: 60ch; }

/* ---------- Llamado final ---------- */
.cta { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta-box { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); }
.cta-box .btn { width: 100%; }
.cta-box .btn + .btn { margin-top: 12px; }
.cta-note { font-size: .98rem; color: var(--steel); margin-top: 16px; margin-bottom: 0; }
@media (max-width: 880px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { background: var(--navy); color: #fff; padding: clamp(40px, 6vw, 80px) 0 clamp(44px, 6vw, 84px); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: rgba(255,255,255,.82); margin-bottom: 28px; }
.crumbs { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .95rem; }
.crumbs li { color: rgba(255,255,255,.7); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255,255,255,.4); }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; }
.page-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 64px); align-items: end; }
.hero-aside { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); padding: 24px; }
.hero-aside h2 { font-family: var(--body); font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.hero-aside .checks { font-size: 1rem; color: rgba(255,255,255,.9); }
@media (max-width: 880px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------- Bloque de dos columnas ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.note {
  border-left: 4px solid var(--orange); background: var(--paper);
  padding: 18px 22px; margin: 28px 0 0; color: var(--ink);
}
.note p:last-child { margin-bottom: 0; }

/* ---------- Temas / agentes (etiquetas) ---------- */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.group { border-top: 3px solid var(--navy); padding-top: 18px; }
.group h3 { font-family: var(--head); font-size: 1.6rem; font-weight: 700; }
@media (max-width: 880px) { .groups { grid-template-columns: 1fr; } }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: var(--white); border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 1rem; }

/* ---------- Otros servicios ---------- */
.other { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.other-block { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3vw, 34px); }
.other-block h3 { font-family: var(--head); font-size: 1.7rem; font-weight: 700; }
.other-list { list-style: none; margin: 0 0 20px; padding: 0; }
.other-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.other-list li:last-child { border-bottom: 0; }
.other-list strong { display: block; color: var(--navy); }
.other-list span { color: var(--steel); font-size: 1rem; }
@media (max-width: 820px) { .other { grid-template-columns: 1fr; } }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 860px; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 600; font-size: 1.15rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange);
  transform: rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .answer { padding: 0 0 22px; color: var(--steel); max-width: 72ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Datos / registros ---------- */
.facts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.facts li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts strong { color: var(--navy); }
@media (max-width: 560px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Contacto y formulario ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.channels { list-style: none; margin: 0 0 24px; padding: 0; }
.channels li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.channels svg { width: 24px; height: 24px; color: var(--navy); margin-top: 2px; }
.channels strong { display: block; color: var(--navy); }
.channels a { font-weight: 600; }

.form { background: var(--paper); padding: clamp(22px, 3.2vw, 40px); border: 1px solid var(--line); }
.form h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 1rem; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #C5CCDA; border-radius: 6px;
  padding: 12px 14px; min-height: 50px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--navy); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .98rem; color: var(--steel); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--orange-btn); }
.form .btn { width: 100%; margin-top: 6px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: none; background: #FDECEA; border-left: 4px solid #B3261E; color: #5F1511; padding: 14px 18px; margin-bottom: 20px; }
.form-alert.show { display: block; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Página simple (gracias, privacidad, 404) ---------- */
.simple { max-width: 780px; }
.simple h2 { font-size: 1.7rem; margin-top: 1.6em; }
.simple ul { padding-left: 1.2em; }
.simple li { margin-bottom: .4em; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.78); padding: 64px 0 28px; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
.foot-brand { font-family: var(--head); font-weight: 700; font-size: 2rem; color: #fff; line-height: 1; margin-bottom: 12px; }
.site-footer h2 { font-family: var(--body); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: .92rem; color: rgba(255,255,255,.6); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700;
  padding: 14px 18px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(8, 19, 64, .28);
}
.wa-float:hover { background: var(--wa-hover); color: #fff; }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 15px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.hero-aside a { color: #fff; }
.hero-aside a:hover { color: #fff; text-decoration-thickness: 2px; }

/* Ajustes */
.nav a.btn-primary { background: var(--orange-btn); color: #fff; margin-left: 10px; padding: 12px 18px; border-radius: 6px; box-shadow: none; }
.nav a.btn-primary:hover { background: var(--orange-btn-hover); color: #fff; }
.hero h1 { max-width: 21ch; font-size: clamp(2.3rem, 1.5rem + 2.9vw, 3.7rem); }
@media (min-width: 881px) { .needs > div:first-child { position: sticky; top: 110px; } }
@media (max-width: 1020px) { .nav a.btn-primary { margin: 14px 0 0; justify-content: center; border-bottom: 0; } }
@media (max-width: 880px) { .hero-photo img { aspect-ratio: 4 / 3; } }
.field label.consent { font-weight: 400; color: var(--steel); }

/* ==========================================================
   Animaciones y microinteracciones
   (el revelado al hacer scroll se controla desde main.js;
    sin JavaScript o con "movimiento reducido" activado en el
    sistema, todo el contenido se ve normal, sin animar)
   ========================================================== */

/* Tarjetas y bloques: elevación sutil al pasar el cursor */
.core-item, .mode, .other-block {
  transition: transform .28s ease, box-shadow .28s ease;
}
.core-item:hover, .other-block:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(12,28,85,.14); }
.mode:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(12,28,85,.18); }

.clients li { transition: transform .22s ease, box-shadow .22s ease; }
.clients li:hover { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(12,28,85,.10); }

/* Fotos de galería: zoom suave al pasar el cursor */
.gallery figure { overflow: hidden; }
.gallery img { transition: transform .55s ease; }
.gallery figure:hover img { transform: scale(1.07); }

/* Botones: pequeño levantamiento al pasar el cursor */
.btn { transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 12px 24px rgba(211,78,8,.28); }
.btn-wa:hover { box-shadow: 0 12px 24px rgba(15,127,67,.28); }

/* Cabecera: sombra sutil al bajar la página */
.site-header { transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 20px rgba(12,28,85,.10); }

/* Menú móvil: se despliega deslizando en vez de aparecer de golpe */
@media (max-width: 1020px) {
  .nav {
    display: flex !important;
    max-height: 0; opacity: 0; overflow: hidden;
    padding-top: 0; padding-bottom: 0;
    transition: max-height .32s ease, opacity .25s ease, padding .32s ease;
  }
  .nav.open {
    max-height: calc(100vh - 76px); opacity: 1; overflow-y: auto;
    padding: 8px var(--gutter) 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Portada y encabezados internos: entrada suave al cargar la página */
  .hero h1, .hero .lead, .hero .btn-row, .hero-facts, .hero-photo,
  .page-hero h1, .page-hero .lead, .page-hero .btn-row, .hero-aside {
    animation: entrada .7s ease both;
  }
  .hero .lead, .page-hero .lead { animation-delay: .08s; }
  .hero .btn-row, .page-hero .btn-row { animation-delay: .16s; }
  .hero-facts { animation-delay: .24s; }
  .hero-photo { animation-delay: .1s; }
  .hero-aside { animation-delay: .18s; }
  @keyframes entrada { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

  /* Botón flotante de WhatsApp: pulso suave para llamar la atención */
  .wa-float { animation: pulso-wa 2.6s ease-in-out infinite; }
  @keyframes pulso-wa {
    0%, 100% { box-shadow: 0 10px 24px rgba(8,19,64,.28), 0 0 0 0 rgba(15,127,67,.45); }
    50% { box-shadow: 0 10px 24px rgba(8,19,64,.28), 0 0 0 12px rgba(15,127,67,0); }
  }
}
