/* =========================================================
   GRUCOTOX CONSTRUCCIONES — Rediseño "Propuesta 11"
   Concepto: banda nocturna de obra (azul-noche del logotipo)
   que se abre a superficies claras; portada en tarjeta
   redondeada con el nombre delineado en gran formato detrás.
   ========================================================= */

:root {
  /* Color */
  --night: #121722;        /* azul-noche: base oscura derivada del azul del logo */
  --night-2: #1a2130;      /* superficies sobre fondo oscuro */
  --night-line: #2b3446;
  --paper: #ffffff;
  --stone: #f1f2f4;        /* superficies claras */
  --ink: #161b26;
  --ink-soft: #5a6272;
  --on-dark: #e9ecf2;
  --on-dark-soft: #a3abbb;
  --orange: #f47f3a;       /* naranja del logo, ligeramente más intenso para botones */
  --orange-hover: #e86d24;
  --brand-orange: #f79451;
  --blue: #2a579f;
  --yellow: #f9e45a;

  /* Tipografía */
  --f-display: "Sora", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --f-body: "DM Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --fs-sm: 0.875rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem);
  --fs-h1: clamp(2.4rem, 1.3rem + 4.4vw, 4.6rem);

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;
  --header-h: 92px;
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--orange); color: var(--ink); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 48px);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 560px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: -0.005em;
  text-decoration: none; border: 1.5px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-orange { background: var(--orange); color: #1b1006; }
.btn-orange:hover { background: var(--orange-hover); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--blue); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Encabezado ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--night); color: #fff;
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--night-line), 0 12px 30px -20px rgba(0,0,0,.8); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; line-height: 0; }
.brand img { height: 66px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { display: flex; gap: 30px; }
.nav ul a { text-decoration: none; color: var(--on-dark); font-weight: 500; font-size: .97rem; padding: 8px 0; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav ul a:hover, .nav ul a[aria-current="true"] { color: #fff; }
.nav ul a:hover::after, .nav ul a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta { min-height: 44px; padding: 0 20px; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .brand img { height: 54px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 1px solid var(--night-line); border-radius: var(--r-sm);
    background: transparent; cursor: pointer;
  }
  .bars { display: grid; gap: 5px; }
  .bars i { display: block; width: 22px; height: 2px; background: #fff; transition: transform .25s var(--ease), opacity .2s; }
  .menu-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 18px;
    background: var(--night); border-top: 1px solid var(--night-line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
    box-shadow: 0 24px 40px -24px rgba(0,0,0,.8);
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 15px 2px; border-bottom: 1px solid var(--night-line); font-size: 1.06rem; }
  .nav ul a::after { display: none; }
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  /* banda oscura que continúa el encabezado detrás de la tarjeta */
  background: linear-gradient(var(--night) 0 58%, var(--paper) 58% 100%);
  padding-top: 4px;
}
.hero-shell { position: relative; }
.hero-card {
  --pad-x: clamp(24px, 5.6vw, 80px);
  position: relative; z-index: 2; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg);
  min-height: clamp(500px, 70vh, 660px);
  display: flex; align-items: center;
  background: #1d2230;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slides::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,14,21,.9) 0%, rgba(11,14,21,.72) 38%, rgba(11,14,21,.25) 70%, rgba(11,14,21,.1) 100%),
    linear-gradient(0deg, rgba(11,14,21,.55) 0%, rgba(11,14,21,0) 35%);
}
.hero-content {
  max-width: 820px;
  padding: 72px var(--pad-x) 112px;
  color: #fff;
  animation: heroIn 1s var(--ease) both;
}
.hero h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; max-width: 13.5em; }
.hero-lead { margin-top: 24px; font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); line-height: 1.5; color: #dde1e8; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-actions .btn { min-height: 56px; min-width: 214px; padding: 0 28px; font-size: 1rem; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Pie de la tarjeta: etiqueta de foto a la izquierda, indicadores a la derecha, en la misma línea */
.hero-dots {
  position: absolute; right: var(--pad-x); bottom: 40px;
  display: flex; gap: 10px;
}
.dot { width: 30px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.4); cursor: pointer; transition: background .3s, width .3s; position: relative; }
.dot::before { content: ""; position: absolute; inset: -14px -4px; } /* área táctil */
.dot.is-active { background: var(--orange); width: 48px; }

.photo-note {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: .72rem; font-weight: 500; letter-spacing: .01em;
  color: #fff; background: rgba(12,15,22,.55); padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero-card > .photo-note { left: var(--pad-x); bottom: 32px; }

/* Nombre delineado en gran formato: asoma por debajo de la tarjeta, sin cruzar su contenido */
.hero-watermark {
  position: relative; z-index: 1;
  margin: -0.34em 0 0 calc(var(--pad-x, 48px) - .06em);
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(4.2rem, 13.5vw, 11.5rem); line-height: .8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(140,150,168,.45);
  pointer-events: none; user-select: none; white-space: nowrap;
}
@media (min-width: 761px) { .hero-watermark { margin-left: clamp(24px, 5.6vw, 80px); } }

@media (max-width: 760px) {
  .hero { background: linear-gradient(var(--night) 0 64%, var(--paper) 64% 100%); }
  .hero-card { --pad-x: 22px; min-height: 0; align-items: flex-end; border-radius: var(--r-md); aspect-ratio: auto; }
  .hero-slide { object-position: 55% 40%; }
  .hero-slides::after { background: linear-gradient(0deg, rgba(11,14,21,.94) 0%, rgba(11,14,21,.78) 50%, rgba(11,14,21,.35) 100%); }
  .hero-content { padding: 96px 22px 76px; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 2.75rem); letter-spacing: -0.03em; }
  .hero-lead { margin-top: 16px; font-size: 1.05rem; }
  .hero-actions { margin-top: 28px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; min-width: 0; min-height: 52px; }
  .hero-card > .photo-note { left: 22px; bottom: 26px; }
  .hero-dots { right: 22px; bottom: 34px; }
  .dot { width: 20px; }
  .dot.is-active { width: 32px; }
  /* En celular el nombre queda debajo de la tarjeta, sin tocar el contenido */
  .hero-watermark { margin: 14px 0 0 2px; font-size: calc((100vw - 40px) / 6.1); -webkit-text-stroke-width: 1px; }
}

/* ---------- Presentación: divisiones y sectores ---------- */
.intro { padding-block: clamp(48px, 6vw, 80px) clamp(72px, 8vw, 112px); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px clamp(40px, 7vw, 112px); align-items: center; }
.intro-statement {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.3rem); line-height: 1.22; letter-spacing: -0.02em;
  color: var(--ink); max-width: 24ch; text-wrap: balance;
}
.intro-list { display: grid; border-top: 1px solid #dfe2e8; }
.intro-list li { border-bottom: 1px solid #dfe2e8; }
.intro-list a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 22px 4px; text-decoration: none; color: var(--ink); transition: background-color .2s; }
.intro-list a:hover { background: var(--stone); }
.intro-num { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: 1; letter-spacing: -0.04em; color: var(--orange); min-width: 2.2ch; }
.intro-text { display: grid; gap: 2px; }
.intro-text b { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; }
.intro-text span { color: var(--ink-soft); }
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-statement { max-width: 30ch; }
}
@media (max-width: 760px) { .intro { padding-block: 32px 64px; } .intro-list a { padding: 18px 2px; gap: 18px; } }

/* ---------- Bandas de sección ---------- */
.band { padding-block: clamp(80px, 9vw, 128px); }
@media (max-width: 760px) { .band { padding-block: 72px; } }
.band-dark { background: var(--night); color: var(--on-dark); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-light { background: var(--paper); color: var(--ink); }
.band h2 { font-size: var(--fs-h2); }

.tag { display: inline-flex; align-items: center; gap: 10px; color: var(--orange); font-weight: 600; font-size: .95rem; margin-bottom: 16px; }
.tag::before { content: ""; width: 22px; height: 2px; background: currentColor; }

.split-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.split-head-side { display: grid; gap: 24px; justify-items: start; }
.split-head-side p { font-size: var(--fs-lg); max-width: 52ch; }
.band-dark .split-head-side p { color: var(--on-dark-soft); }
.band-light .split-head-side p { color: var(--ink-soft); }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .split-head { margin-bottom: 36px; } .split-head-side p { font-size: 1.05rem; } }

/* ---------- Nuestra empresa ---------- */
.empresa-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); margin-bottom: clamp(40px, 5vw, 64px); }
.empresa-lines > div { padding-top: 20px; border-top: 1px solid var(--night-line); }
.empresa-lines > div:first-child { border-top-color: var(--blue); }
.empresa-lines > div:nth-child(2) { border-top-color: var(--brand-orange); }
.empresa-lines > div:nth-child(3) { border-top-color: var(--yellow); }
.empresa-lines h3 { font-size: 1.2rem; margin-bottom: 8px; }
.empresa-lines p { color: var(--on-dark-soft); max-width: 36ch; }
.empresa-photos { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 20px; }
.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--night-2); }
.photo img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.photo figcaption, .division-photo figcaption {
  position: absolute; left: 16px; bottom: 14px;
  font-size: .72rem; font-weight: 500; color: #fff; background: rgba(12,15,22,.55); padding: 4px 10px; border-radius: 999px;
}
@media (max-width: 860px) { .empresa-lines { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 700px) {
  .empresa-photos { grid-template-columns: 1fr; gap: 12px; }
  .photo { border-radius: var(--r-md); }
  .photo:not(.photo-main) { display: none; } /* en celular basta una fotografía */
}

.principios { margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--night-line); }
.principios-note { color: var(--on-dark-soft); font-size: .9rem; margin-bottom: 26px; }
.principios-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.principios h3 { font-size: 1.1rem; margin-bottom: 10px; }
.principios p { color: var(--on-dark-soft); font-size: .98rem; }
@media (max-width: 860px) { .principios-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Servicios ---------- */
.divisions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.division { display: flex; flex-direction: column; background: var(--stone); border-radius: var(--r-lg); overflow: hidden; }
.division-photo { position: relative; }
.division-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.division-photo img.pos-top { object-position: 50% 12%; }
.division-mark { position: absolute; top: 0; right: 0; width: 72px; height: 72px; }
.mark-blue { background: var(--blue); clip-path: polygon(100% 0, 100% 100%, 0 0); }
.mark-orange { background: var(--brand-orange); clip-path: polygon(100% 0, 100% 100%, 0 0); }
.division-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: clamp(26px, 3.4vw, 44px); }
.division-index { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.division h3 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); color: var(--ink); }
.division-body > p:not(.division-index) { color: var(--ink-soft); max-width: 46ch; min-height: 3.2em; }
.service-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; margin: 10px 0 26px; border-top: 1px solid #dcdfe5; }
.service-list li { display: flex; align-items: center; min-height: 56px; padding: 8px 0 8px 22px; border-bottom: 1px solid #dcdfe5; position: relative; font-weight: 500; line-height: 1.3; }
.service-list li::before { content: ""; position: absolute; left: 0; top: 50%; margin-top: -5px; width: 9px; height: 10px; background: var(--blue); clip-path: polygon(0 0, 100% 50%, 0 100%); }
#mantenimiento .service-list li::before { background: var(--orange); }
.division-body .btn { margin-top: auto; align-self: flex-start; min-width: 240px; }
@media (max-width: 900px) { .divisions { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .division { border-radius: var(--r-md); }
  .division-photo img { aspect-ratio: 4 / 3; }
  .division-body { padding: 24px 22px 26px; }
  .division-body > p:not(.division-index) { min-height: 0; }
  .service-list { grid-template-columns: 1fr; margin-bottom: 22px; }
  .service-list li { min-height: 50px; }
  .division-body .btn { align-self: stretch; min-width: 0; }
}

/* ---------- Sectores ---------- */
.sector-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.sector { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; isolation: isolate; background: var(--night-2); }
.sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.sector::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,15,22,.92) 0%, rgba(12,15,22,.35) 55%, rgba(12,15,22,.1) 100%); }
.sector-body { padding: clamp(26px, 3.4vw, 40px); padding-bottom: 54px; }
.sector h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.sector-body p { margin-top: 10px; color: #d3d8e1; max-width: 40ch; font-size: var(--fs-lg); }
.sector .photo-note { left: clamp(26px, 3.4vw, 40px); bottom: 18px; }
@media (max-width: 760px) { .sector-grid { grid-template-columns: 1fr; } .sector { min-height: 300px; border-radius: var(--r-md); } }

/* ---------- Contacto ---------- */
.contacto-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.contact-card { background: var(--night); color: var(--on-dark); border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 40px); display: grid; gap: 22px; }
.contact-name { font-family: var(--f-display); font-weight: 600; color: #fff; font-size: 1rem; line-height: 1.35; }
.contact-direct { display: grid; gap: 18px; }
.contact-direct li { display: grid; gap: 2px; }
.cd-label { font-size: .85rem; color: var(--on-dark-soft); }
.cd-value { font-family: var(--f-display); font-weight: 600; color: #fff; text-decoration: none; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cd-value.cd-mail { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); }
.cd-value:hover { color: var(--brand-orange); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions .btn { flex: 1 1 auto; }
.contact-fiscal { margin: 4px 0 0; padding-top: 18px; border-top: 1px solid var(--night-line); display: grid; gap: 12px; font-size: .88rem; }
.contact-fiscal dt { color: var(--on-dark-soft); font-size: .8rem; }
.contact-fiscal dd { margin: 2px 0 0; color: #c9cfda; }
.contact-note { font-size: .82rem; color: var(--on-dark-soft); }
.contact-note a { color: #fff; text-decoration-color: var(--orange); text-underline-offset: 3px; white-space: nowrap; }

.form-panel { background: var(--stone); border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 44px); }
.form-panel h3 { font-size: var(--fs-h3); color: var(--ink); }
.form-help { margin: 12px 0 26px; color: var(--ink-soft); font-size: .95rem; padding: 14px 16px; background: var(--paper); border-radius: var(--r-sm); border-left: 4px solid var(--yellow); }
.form-help strong { color: var(--ink); }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; margin: 0 0 18px; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; padding: 0; color: var(--ink); }
.field label span[aria-hidden], .field legend span[aria-hidden] { color: #c4561a; }
.opt { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea, .fallback textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #cdd2db; border-radius: var(--r-sm); background: var(--paper);
  padding: 12px 14px; min-height: 50px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,87,159,.18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; }
.seg-opt span { display: flex; align-items: center; justify-content: center; min-height: 50px; border: 1px solid #cdd2db; border-radius: var(--r-sm); background: var(--paper); font-weight: 600; transition: all .2s; }
.seg-opt input:checked + span { border-color: var(--night); background: var(--night); color: #fff; }
.seg-opt input[value="Mantenimiento"]:checked + span { border-color: var(--orange); background: var(--orange); color: #1b1006; }
.seg-opt input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.form-error { margin-bottom: 16px; color: #a8261a; font-weight: 600; font-size: .95rem; }
/* Estado del envío */
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); font-weight: 600; font-size: .97rem; line-height: 1.45; background: var(--paper); color: var(--ink); border-left: 4px solid var(--night); }
.form-status.is-ok { border-left-color: #2e8b57; color: #1f6b41; background: #eef8f2; }
.form-status.is-error { border-left-color: #c0392b; color: #a8261a; background: #fdf0ee; }
.btn[disabled] { opacity: .7; cursor: progress; }
/* Campo trampa para bots, fuera de la vista */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contacto-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-card, .form-panel { border-radius: var(--r-md); }
  .contact-actions .btn { flex: 1 1 auto; }
}

/* ---------- Soporte ---------- */
.soporte-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.soporte-text p:not(.tag) { margin-top: 20px; color: var(--on-dark-soft); font-size: var(--fs-lg); max-width: 44ch; }
.support-list { border-top: 1px solid var(--night-line); }
.support-list li { border-bottom: 1px solid var(--night-line); }
.support-list a { display: grid; gap: 2px; padding: 22px 48px 22px 0; text-decoration: none; position: relative; transition: padding-left .25s var(--ease); }
.support-list a::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg); }
.support-list a:hover { padding-left: 8px; }
.sl-title { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; color: #fff; }
.sl-text { color: var(--on-dark-soft); font-size: .95rem; }
.soporte-alt { color: var(--on-dark-soft); font-size: .9rem; margin-top: 18px; max-width: 52ch; }
.soporte-alt a { color: #fff; font-weight: 600; }
@media (max-width: 900px) { .soporte-inner { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Pie de página ---------- */
.site-footer { background: #0d111a; color: var(--on-dark-soft); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px clamp(24px, 4vw, 56px); align-items: start; }
.footer-brand { display: grid; gap: 16px; }
.footer-brand img { height: 70px; width: auto; }
.footer-brand p { max-width: 30ch; font-size: .93rem; }
.footer-title { font-family: var(--f-display); font-weight: 600; color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--on-dark); text-decoration: none; font-size: .93rem; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--brand-orange); }
.footer-fiscal p:not(.footer-title) { font-size: .84rem; line-height: 1.55; color: #8f98aa; }
.footer-fiscal p + p { margin-top: 6px; }
.footer-legal { margin-top: 52px; padding-block: 22px; border-top: 1px solid #222a39; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .8rem; color: #8f98aa; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  .footer-col:not(nav) ul { grid-template-columns: 1fr; }
  .footer-col a { overflow-wrap: normal; }
  .site-footer { padding-top: 52px; }
  .footer-legal { margin-top: 36px; }
}

/* Segunda fotografía de "Nuestra empresa": ocupa la altura de la principal */
.empresa-photos .photo:not(.photo-main) img { aspect-ratio: auto; height: 100%; position: absolute; inset: 0; }
