/* ==========================================================================
   Solar Ingeniería Diseño y Construcciones — estilos
   1. Tokens  2. Base  3. Modo revisión  4. Header  5. Botones
   6. Hero y carta solar  7. Secciones  8. Servicios  9. Proceso
   10. Sectores  11. Ficha de proyecto  12. Banda de contacto
   13. Páginas internas  14. Formulario  15. Footer  16. Barra móvil
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Paleta: petróleo profundo, blanco cálido, arena y un amarillo solar puntual */
  --c-petroleo: #0F3A3E;
  --c-petroleo-2: #164B50;
  --c-pino: #1F5F55;
  --c-blanco: #FBFAF7;
  --c-arena: #EDE9E0;
  --c-arena-2: #E2DDD1;
  --c-grafito: #1C2828;
  --c-texto-2: #4D5A59;     /* 6,9:1 sobre blanco cálido */
  --c-linea: #CDD2CB;
  --c-sol: #F2B33D;         /* solo sobre petróleo o como marca gráfica */
  --c-sol-hondo: #8A5A00;   /* versión AA para texto sobre claro */
  --c-error: #A3261B;
  --c-ok: #1F6B4A;
  --c-sobre-oscuro: #E8EEEC;
  --c-sobre-oscuro-2: #A9BDBA;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Escala tipográfica (razón ~1,25, adaptativa) */
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  --fs-2xl: clamp(1.85rem, 1.3rem + 2vw, 2.75rem);
  --fs-3xl: clamp(2.4rem, 1.4rem + 3.6vw, 4.5rem);

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4.5rem, 3rem + 6vw, 8rem);

  --radius-s: 4px;
  --radius-m: 10px;
  --header-h: 76px;
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --bs-body-font-family: var(--font);
  --bs-body-color: var(--c-grafito);
  --bs-body-bg: var(--c-blanco);
  --bs-link-color-rgb: 31, 95, 85;
  --bs-border-color: var(--c-linea);
}

/* 2. Base ------------------------------------------------------------------ */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-grafito);
  background: var(--c-blanco);
  font-feature-settings: 'tnum' 0;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.022em; line-height: 1.08; color: var(--c-grafito); }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); letter-spacing: -.015em; line-height: 1.2; }
h4 { font-size: var(--fs-lg); letter-spacing: -.01em; line-height: 1.3; }
.h3, .h4 { font-weight: 800; letter-spacing: -.012em; }
p { max-width: 68ch; }
a { color: var(--c-pino); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-petroleo); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--c-pino); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--c-sol); }

.container-site { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container-site { padding-inline: 32px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--c-petroleo); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; color: #fff; }

.lead-text { font-size: var(--fs-lg); line-height: 1.55; color: var(--c-texto-2); }
.muted { color: var(--c-texto-2); }
.small-note { font-size: var(--fs-xs); color: var(--c-texto-2); }

/* 3. Modo revisión --------------------------------------------------------- */
.pending-tag {
  display: inline-flex; align-items: baseline; gap: .35em;
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--c-sol-hondo); background: #FBF0D9;
  border: 1px solid #EBCF94; border-radius: 99px;
  padding: .3em .7em; vertical-align: middle; line-height: 1.3; max-width: 100%;
}
.pending-tag::before { content: ''; width: .45em; height: .45em; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-.1em); }
.on-dark .pending-tag { color: #FFE2A6; background: rgba(242, 179, 61, .14); border-color: rgba(242, 179, 61, .45); }

.review-bar {
  background: var(--c-arena); border-bottom: 1px solid var(--c-arena-2);
  font-size: var(--fs-xs); color: var(--c-texto-2); padding: .55rem 0;
}
.review-bar strong { color: var(--c-grafito); }

[data-mode="publicacion"] [data-status="pendiente"],
[data-mode="publicacion"] .pending-tag,
[data-mode="publicacion"] .review-bar,
[data-mode="revision"] [data-only="publicacion"] { display: none !important; }

[data-requires]:not(.is-ready) { display: none !important; }

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(251, 250, 247, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-linea); }
.site-header .bar { display: flex; align-items: center; gap: var(--space-3); min-height: var(--header-h); transition: min-height .25s var(--ease); }
.site-header.is-scrolled .bar { min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--c-grafito); margin-right: auto; }
.brand:hover { color: var(--c-grafito); }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em; }
.brand-name span { font-size: .78rem; color: var(--c-texto-2); font-weight: 500; }

.main-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .55rem .8rem; font-weight: 600; font-size: var(--fs-sm);
  color: var(--c-grafito); text-decoration: none; position: relative;
}
.main-nav a::after {
  content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px;
  background: var(--c-sol); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--c-petroleo); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--c-linea);
  background: transparent; border-radius: var(--radius-s); padding: .55rem .8rem;
  font-weight: 600; font-size: var(--fs-sm); color: var(--c-grafito); min-height: 44px;
}
.menu-toggle i { font-size: 1.2rem; }

.offcanvas.menu-panel { background: var(--c-blanco); width: min(88vw, 360px); }
.menu-panel .offcanvas-body ul { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.menu-panel .offcanvas-body li + li { border-top: 1px solid var(--c-linea); }
.menu-panel .offcanvas-body a:not(.btn-site) {
  display: block; padding: .95rem 0; font-size: var(--fs-lg); font-weight: 700;
  color: var(--c-grafito); text-decoration: none;
}
.menu-panel .offcanvas-body a[aria-current="page"] { color: var(--c-pino); }

@media (max-width: 1099.98px) { .main-nav, .site-header .header-cta { display: none; } }
@media (min-width: 1100px) { .menu-toggle { display: none; } }

/* 5. Botones --------------------------------------------------------------- */
.btn-site {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: var(--radius-s);
  font-weight: 700; font-size: var(--fs-sm); text-decoration: none; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn-site:active { transform: translateY(1px); }
.btn-primary-site { background: var(--c-petroleo); color: #fff; }
.btn-primary-site:hover { background: var(--c-pino); color: #fff; }
.btn-ghost-site { border-color: var(--c-grafito); color: var(--c-grafito); background: transparent; }
.btn-ghost-site:hover { background: var(--c-grafito); color: #fff; }
.btn-sun { background: var(--c-sol); color: var(--c-grafito); }
.btn-sun:hover { background: #F7C766; color: var(--c-grafito); }
.btn-light-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn-light-ghost:hover { background: #fff; color: var(--c-petroleo); }
.btn-site[disabled], .btn-site[aria-disabled="true"] { opacity: .6; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: var(--fs-sm);
  color: var(--c-pino); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px;
}
.text-link:hover { color: var(--c-petroleo); }
.text-link i { transition: transform .2s var(--ease); }
.text-link:hover i { transform: translateX(3px); }

/* 6. Hero y carta solar ---------------------------------------------------- */
.hero { position: relative; padding: clamp(2.5rem, 5vw, 4.5rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: end; }
.hero h1 { max-width: 12ch; margin-bottom: var(--space-3); font-size: clamp(2.4rem, 1.5rem + 3vw, 4.25rem); text-wrap: balance; }
.hero .lead-text { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-4); }
.hero-audience { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--c-texto-2); }

.hero-visual { position: relative; }
.hero-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-m) var(--radius-m) 0 0; background: var(--c-arena); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-credit-tag {
  position: absolute; right: 10px; top: 10px; font-size: .72rem; font-weight: 600;
  background: rgba(15, 58, 62, .78); color: #fff; padding: .25rem .55rem; border-radius: 99px;
}

/* Panel de la carta solar */
.sunchart {
  background: var(--c-petroleo); color: var(--c-sobre-oscuro);
  padding: var(--space-3); display: grid; gap: var(--space-3);
}
.sunchart h2 { color: #fff; font-size: var(--fs-lg); letter-spacing: -.01em; margin: 0 0 .35rem; }
.sunchart p { font-size: var(--fs-sm); color: var(--c-sobre-oscuro-2); margin: 0; }
.sunchart svg { width: 100%; max-width: 300px; height: auto; margin-inline: auto; display: block; overflow: visible; }
.sunchart .grid-line { fill: none; stroke: rgba(232, 238, 236, .2); stroke-width: 1; }
.sunchart .horizon { fill: rgba(255, 255, 255, .03); stroke: rgba(232, 238, 236, .55); stroke-width: 1.25; }
.sunchart .axis-label { fill: var(--c-sobre-oscuro-2); font-size: 11px; font-weight: 600; font-family: var(--font); }
.sunchart .ring-label { fill: rgba(232, 238, 236, .45); font-size: 9px; font-family: var(--font); }
.sunchart .path { fill: none; stroke: rgba(232, 238, 236, .38); stroke-width: 1.5; stroke-dasharray: 3 4; }
.sunchart .path.is-active { stroke: var(--c-sol); stroke-width: 2.25; stroke-dasharray: none; }
.sunchart .sun-ray { stroke: var(--c-sol); stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }
.sunchart .sun { fill: var(--c-sol); }
.sunchart .sun-halo { fill: var(--c-sol); opacity: .22; }

.sunchart-controls { display: grid; gap: .9rem; }
.season-switch { display: flex; gap: .3rem; flex-wrap: wrap; }
.season-switch button {
  flex: 1 1 auto; min-height: 40px; padding: .35rem .6rem; border-radius: var(--radius-s);
  border: 1px solid rgba(232, 238, 236, .35); background: transparent; color: var(--c-sobre-oscuro);
  font: 600 var(--fs-xs) var(--font);
}
.season-switch button[aria-pressed="true"] { background: var(--c-sobre-oscuro); color: var(--c-petroleo); border-color: var(--c-sobre-oscuro); }
.hour-control label { display: flex; justify-content: space-between; font-size: var(--fs-xs); font-weight: 600; margin-bottom: .2rem; }
.hour-control input[type="range"] { width: 100%; accent-color: var(--c-sol); min-height: 32px; }
.sun-readout { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0; }
.sun-readout div { border-top: 1px solid rgba(232, 238, 236, .25); padding-top: .45rem; }
.sun-readout dt { font-size: var(--fs-xs); font-weight: 500; color: var(--c-sobre-oscuro-2); }
.sun-readout dd { margin: 0; font-size: 1.5rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sun-readout dd small { font-size: var(--fs-xs); font-weight: 600; color: var(--c-sobre-oscuro-2); margin-left: .25rem; }

@media (min-width: 992px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4); align-items: center; }
  .hero-copy { padding-bottom: 9rem; }
  .hero-visual { margin-right: calc((100vw - min(100vw, var(--container))) / -2 - 32px); }
  .hero-photo { aspect-ratio: auto; height: clamp(560px, 74vh, 700px); border-radius: var(--radius-m) 0 0 0; }
  .sunchart {
    position: absolute; right: auto; left: calc(var(--space-4) * -1); bottom: calc(var(--space-5) * -1);
    width: min(600px, 88%); grid-template-columns: 220px minmax(0, 1fr); column-gap: var(--space-3); row-gap: var(--space-2);
    align-items: center; border-radius: var(--radius-m); box-shadow: 0 18px 40px -24px rgba(15, 58, 62, .55);
  }
  .sunchart > div:first-child { grid-column: 1 / -1; }
  .hero { padding-bottom: var(--space-5); }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .sunchart { grid-template-columns: 220px minmax(0, 1fr); align-items: center; }
  .sunchart > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
  .hero-photo { margin-inline: -20px; border-radius: 0; }
  .sunchart { margin-inline: -20px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-photo, .sunchart { margin-inline: -32px; }
}

/* 7. Secciones ------------------------------------------------------------- */
.section { padding-block: var(--space-6); }
.section-tight { padding-block: var(--space-5); }
.section-sand { background: var(--c-arena); }
.section-head { max-width: 640px; margin-bottom: var(--space-5); }
.section-head p { margin: var(--space-2) 0 0; }
.section-head .pending-tag { margin-top: var(--space-2); }
.rule-top { border-top: 1px solid var(--c-linea); }

/* 8. Servicios (lista editorial, no tarjetas) ------------------------------ */
.services-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
@media (min-width: 992px) {
  .services-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-5); }
  .services-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-grafito); }
.service-row {
  display: grid; grid-template-columns: 48px 1fr; gap: .25rem 1.25rem;
  padding: var(--space-4) 0; border-bottom: 1px solid var(--c-linea);
}
.service-row .ico {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--c-linea); border-radius: 50%; color: var(--c-pino); font-size: 1.3rem;
  transition: background-color .25s, color .25s, border-color .25s;
}
.service-row:hover .ico { background: var(--c-petroleo); color: var(--c-sol); border-color: var(--c-petroleo); }
.service-row h3 { margin: .45rem 0 .5rem; }
.service-row p { color: var(--c-texto-2); margin-bottom: 1rem; }
.service-row .row-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }

/* 9. Proceso (secuencia real: numerado) ------------------------------------ */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: paso; }
.process li { counter-increment: paso; position: relative; padding: 0 0 var(--space-4) 3.5rem; }
.process li::before {
  content: counter(paso); position: absolute; left: 0; top: -.15rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-blanco); border: 1.5px solid var(--c-petroleo); color: var(--c-petroleo);
  font-weight: 800; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; z-index: 1;
}
.process li::after { content: ''; position: absolute; left: calc(1.2rem - .5px); top: 2.4rem; bottom: 0; width: 1px; background: var(--c-linea); }
.process li:last-child::after { display: none; }
.process li:last-child::before { background: var(--c-petroleo); color: var(--c-sol); }
.process h3 { font-size: var(--fs-lg); margin: 0 0 .4rem; letter-spacing: -.01em; }
.process p { font-size: var(--fs-sm); color: var(--c-texto-2); margin: 0; }
@media (min-width: 992px) {
  .process { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
  .process li { padding: 3.5rem 0 0; }
  .process li::before { top: 0; }
  .process li::after { left: 2.4rem; right: calc(var(--space-3) * -1); top: 1.2rem; bottom: auto; width: auto; height: 1px; }
}

/* 10. Sectores ------------------------------------------------------------- */
.sectors { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 576px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) {
  .sectors { grid-template-columns: 1.25fr 1fr 1fr; align-items: start; }
  .sectors figure:nth-child(2) { margin-top: var(--space-5); }
  .sectors figure:nth-child(3) { margin-top: calc(var(--space-5) * 2); }
}
.sectors figure { margin: 0; }
.sectors .ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-m); background: var(--c-arena-2); }
.sectors figure:first-child .ph { aspect-ratio: 4 / 5; }
.sectors img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sectors figure:hover img { transform: scale(1.03); }
.sectors figcaption { padding-top: .9rem; }
.sectors figcaption h3 { font-size: var(--fs-lg); margin: 0 0 .25rem; letter-spacing: -.01em; }
.sectors figcaption p { font-size: var(--fs-sm); color: var(--c-texto-2); margin: 0; }

/* 11. Ficha de proyecto ---------------------------------------------------- */
.project-sheet {
  display: grid; border: 1px solid var(--c-grafito); border-radius: var(--radius-m); overflow: hidden; background: var(--c-blanco);
}
@media (min-width: 992px) { .project-sheet { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.project-sheet .ph { position: relative; min-height: 280px; background: var(--c-arena-2); }
.project-sheet .ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.project-sheet .sheet-body { padding: var(--space-4); }
.project-sheet h3 { margin: 0 0 var(--space-2); }
.spec { margin: 0; display: grid; }
.spec div { display: grid; grid-template-columns: minmax(8rem, 40%) 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--c-linea); font-size: var(--fs-sm); }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; color: var(--c-texto-2); }
.spec dd.empty { font-style: italic; }
.image-disclaimer {
  position: absolute; left: 12px; bottom: 12px; right: 12px; font-size: .75rem; font-weight: 600;
  background: rgba(251, 250, 247, .92); color: var(--c-grafito); padding: .4rem .65rem; border-radius: var(--radius-s); width: fit-content;
}

/* 12. Banda de contacto ---------------------------------------------------- */
.cta-band { background: var(--c-petroleo); color: var(--c-sobre-oscuro); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 18ch; margin-bottom: var(--space-3); }
.cta-band p { color: var(--c-sobre-oscuro-2); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-3); }
.cta-band .arc-deco { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 520px; height: 520px; pointer-events: none; opacity: .5; }
@media (max-width: 767.98px) { .cta-band .arc-deco { display: none; } }

/* 13. Páginas internas ----------------------------------------------------- */
.page-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 var(--space-4); border-bottom: 1px solid var(--c-linea); }
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.75rem); max-width: 18ch; margin-bottom: var(--space-2); }
.page-hero .lead-text { max-width: 58ch; margin: 0; }
.breadcrumb-site { font-size: var(--fs-xs); margin-bottom: var(--space-3); }
.breadcrumb-site ol { list-style: none; padding: 0; margin: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.breadcrumb-site li + li::before { content: '/'; margin-right: .4rem; color: var(--c-texto-2); }
.breadcrumb-site a { color: var(--c-texto-2); }

.service-detail { display: grid; gap: var(--space-4); padding-block: var(--space-5); border-bottom: 1px solid var(--c-linea); }
.service-detail:last-of-type { border-bottom: 0; }
@media (min-width: 992px) {
  .service-detail { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-5); align-items: start; }
  .service-detail.is-flipped .sd-media { order: 2; }
}
.sd-media { position: relative; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 3 / 2; background: var(--c-arena-2); }
.sd-media img { width: 100%; height: 100%; object-fit: cover; }
.sd-body h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); margin-bottom: var(--space-2); }
.scope-list { list-style: none; padding: 0; margin: var(--space-3) 0; border-top: 1px solid var(--c-linea); }
.scope-list li { display: flex; gap: .7rem; padding: .65rem 0; border-bottom: 1px solid var(--c-linea); font-size: var(--fs-sm); }
.scope-list i { color: var(--c-pino); flex: none; margin-top: .1rem; }

.facts { margin: 0; border-top: 1px solid var(--c-grafito); }
.facts div { display: grid; grid-template-columns: 1fr; gap: .2rem; padding: 1rem 0; border-bottom: 1px solid var(--c-linea); }
@media (min-width: 576px) { .facts div { grid-template-columns: 14rem 1fr; gap: 1rem; } }
.facts dt { font-weight: 700; font-size: var(--fs-sm); }
.facts dd { margin: 0; color: var(--c-texto-2); font-size: var(--fs-sm); }

.split { display: grid; gap: var(--space-4); }
@media (min-width: 992px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); } }
.portrait { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 5; background: var(--c-arena-2); position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.needs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
@media (min-width: 768px) { .needs-list { grid-template-columns: 1fr 1fr; column-gap: var(--space-4); } }
.needs-list li { display: flex; gap: .8rem; padding: 1rem 0; border-top: 1px solid var(--c-linea); font-size: var(--fs-sm); }
.needs-list i { color: var(--c-pino); font-size: 1.15rem; flex: none; }
.needs-list strong { display: block; font-size: var(--fs-base); }

.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: var(--fs-xl); margin-top: var(--space-4); }

/* 14. Formulario ----------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
@media (min-width: 992px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.form-site { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: .35rem; }
.field .opt { font-weight: 500; color: var(--c-texto-2); }
.field .hint { display: block; font-size: var(--fs-xs); color: var(--c-texto-2); margin-top: .3rem; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem; font: inherit; font-size: 1rem;
  color: var(--c-grafito); background: #fff; border: 1.5px solid #9AA6A3; border-radius: var(--radius-s);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-pino); box-shadow: 0 0 0 3px rgba(31, 95, 85, .2); }
.field [aria-invalid="true"] { border-color: var(--c-error) !important; }
.field .error { display: none; color: var(--c-error); font-size: var(--fs-xs); font-weight: 600; margin-top: .35rem; }
.field .error.is-visible { display: flex; gap: .35rem; }
.field .check { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); font-weight: 500; }
.check input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--c-petroleo); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; border-radius: var(--radius-s); padding: 1rem 1.15rem; font-size: var(--fs-sm); border: 1px solid; }
.form-status.is-visible { display: block; }
.form-status.is-info { background: #FBF0D9; border-color: #EBCF94; }
.form-status.is-ok { background: #E3F1EA; border-color: #A7D1BC; }
.form-status.is-error { background: #F8E3E0; border-color: #E2A59D; }
.form-status p { margin: 0 0 .5rem; }
.form-status p:last-child { margin: 0; }
.form-status .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

.contact-aside { border-top: 1px solid var(--c-grafito); }
.contact-aside h2 { font-size: var(--fs-lg); margin: var(--space-3) 0 var(--space-2); letter-spacing: -.01em; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--c-linea); font-size: var(--fs-sm); }
.contact-list i { color: var(--c-pino); font-size: 1.1rem; flex: none; margin-top: .05rem; }
.contact-list .k { display: block; font-weight: 700; color: var(--c-grafito); }

/* 15. Footer --------------------------------------------------------------- */
.site-footer { background: var(--c-grafito); color: #C9D2D0; padding: var(--space-5) 0 calc(var(--space-3) + 72px); font-size: var(--fs-sm); }
@media (min-width: 768px) { .site-footer { padding-bottom: var(--space-3); } }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--c-sol); }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: var(--space-2); }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand b { color: #fff; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.site-footer h2 { font-size: var(--fs-sm); color: #fff; letter-spacing: 0; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-bottom { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: var(--fs-xs); }
.social-list { display: flex !important; gap: .5rem !important; }
.social-list a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.credits summary { cursor: pointer; color: #fff; font-weight: 600; }
.credits ul { margin-top: .6rem; font-size: var(--fs-xs); }

/* 16. Barra móvil de contacto ---------------------------------------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; display: flex; gap: .5rem;
  padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: var(--c-blanco);
  border-top: 1px solid var(--c-linea);
}
.mobile-bar .btn-site { flex: 1; }
@media (min-width: 768px) { .mobile-bar { display: none; } }
[data-page="contacto"] .mobile-bar { display: none; }
@media (max-width: 767.98px) { [data-page="contacto"] .site-footer { padding-bottom: var(--space-3); } }

/* Movimiento --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
