/* Servieléctricos del Valle — landing clara e industrial.
   Tipografía: Space Grotesk (títulos) + Inter (texto) + JetBrains Mono (rótulos técnicos).
   Color: concreto claro, negro, gris acero y amarillo de seguridad. */
:root {
  --paper: #f3f2ee;
  --white: #ffffff;
  --ink: #0d0d0d;
  --ink-2: rgba(13, 13, 13, 0.72);
  --ink-3: rgba(13, 13, 13, 0.64);
  --graphite: #1b1b1b;
  --steel: #d9d7d0;
  --line: rgba(13, 13, 13, 0.1);
  --yellow: #ffc600;
  --yellow-2: #ffd84d;
  --yellow-soft: #fff3c4;
  --wa: #25d366;
  --r-lg: 22px;
  --r-md: 14px;
  --head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --stripes: repeating-linear-gradient(-45deg, var(--ink) 0 14px, var(--yellow) 14px 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.62 var(--body); color: var(--ink); background: var(--paper); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; color: var(--ink); }
h2 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.03em; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--yellow); color: var(--ink); }

/* Palabra resaltada con marcador amarillo que se pinta al aparecer */
.mark { font-style: italic; position: relative; z-index: 0; padding: 0 0.08em; white-space: nowrap; }
.mark::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0.08em; height: 0.42em; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 0.35s; }
.is-in .mark::before, .hero__title .mark::before { transform: scaleX(1); }
.hero__title .mark::before { transition: none; animation: paint 0.9s var(--ease) 0.75s both; }
@keyframes paint { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Barra superior */
.topbar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 16px; background: var(--yellow); color: var(--ink); font: 600 0.76rem var(--body); letter-spacing: 0.14em; text-transform: uppercase; text-align: center; }
.topbar__dot { width: 8px; height: 8px; background: var(--ink); flex: none; animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* Botones */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; font: 600 1rem var(--body); text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s, border-color 0.3s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform 0.4s var(--ease); }
.btn:hover::before { transform: none; }
.btn .arr { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 14px 30px -16px rgba(200, 150, 0, 0.9); }
.btn--yellow::before { background: var(--ink); }
.btn--yellow:hover { color: var(--yellow); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark::before { background: var(--yellow); }
.btn--dark:hover { color: var(--ink); transform: translateY(-2px); }
.btn--line { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn--line::before { background: var(--yellow-soft); }
.btn--line:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 0.95rem; }

/* Etiqueta tipo píldora */
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font: 500 0.74rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); flex: none; animation: pulse 2s ease-in-out infinite; }
.badge--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge--dark .badge__dot { box-shadow: none; }
@keyframes pulse { 50% { transform: scale(0.7); opacity: 0.6; } }

/* Franja de advertencia animada */
.hazard { height: 14px; background: var(--stripes); background-size: 39.6px 39.6px; animation: hazard 1.4s linear infinite; }
.hazard--thin { height: 8px; }
@keyframes hazard { to { background-position: 39.6px 0; } }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: box-shadow 0.3s, border-color 0.3s; }
.nav.is-solid { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.35); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; transition: transform 0.4s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__mark rect { fill: var(--yellow); }
.brand__mark path { fill: var(--ink); }
.brand__txt { display: flex; flex-direction: column; font: 700 1.42rem/0.95 var(--head); letter-spacing: -0.045em; }
.brand__txt small { font: 500 0.66rem var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a { text-decoration: none; font-size: 1.02rem; color: var(--ink-2); position: relative; padding: 6px 0; transition: color 0.2s; }
.nav__links > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav__links > a:hover { color: var(--ink); }
.nav__links > a:hover::after { transform: scaleX(1); }
.nav__ctas { display: flex; gap: 10px; margin-left: 6px; }
.nav__toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--yellow); padding: 12px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Cuadrícula técnica de fondo */
.grid-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 80%); opacity: 0.6; }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 36px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: stretch; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero__title { margin: 24px 0 24px; font-size: clamp(2.6rem, 5.3vw, 4.4rem); line-height: 0.98; letter-spacing: -0.04em; }
.hero__title .line { display: block; overflow: hidden; padding: 0 0.1em 0.08em 0; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.08s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.16s; }
.hero__title .line:nth-child(4) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: none; } }
.hero__lead { max-width: 540px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: 0.98rem; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 4px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5' fill='none' stroke='%230d0d0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* Marcos reservados para fotos (con marcas de corte) */
.ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); background-color: #e7e5df; background-image: repeating-linear-gradient(-45deg, rgba(13, 13, 13, 0.05) 0 2px, transparent 2px 14px); }
.ph::before { content: ""; position: absolute; inset: 14px; z-index: 1; pointer-events: none; background:
    linear-gradient(var(--yellow), var(--yellow)) left top / 22px 3px, linear-gradient(var(--yellow), var(--yellow)) left top / 3px 22px,
    linear-gradient(var(--yellow), var(--yellow)) right top / 22px 3px, linear-gradient(var(--yellow), var(--yellow)) right top / 3px 22px,
    linear-gradient(var(--yellow), var(--yellow)) left bottom / 22px 3px, linear-gradient(var(--yellow), var(--yellow)) left bottom / 3px 22px,
    linear-gradient(var(--yellow), var(--yellow)) right bottom / 22px 3px, linear-gradient(var(--yellow), var(--yellow)) right bottom / 3px 22px;
  background-repeat: no-repeat; }
.ph::after { content: "◫  " attr(data-label); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: 80%; text-align: center; font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.04em; color: var(--ink-3); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.ph:has(img)::after, .ph:has(img)::before { display: none; }
.ph:hover img { transform: scale(1.04); }
.ph figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: var(--white); font: 600 0.85rem var(--body); box-shadow: 0 10px 20px -14px rgba(0, 0, 0, 0.5); transform: translateY(8px); opacity: 0.92; transition: transform 0.4s var(--ease), background 0.3s; }
.ph:hover figcaption { transform: none; background: var(--yellow); }

/* Visual del hero: foto + circuito + cinta + orden en vivo */
.hero__visual { position: relative; min-height: 600px; }
.ph--hero { position: absolute; inset: 0; }
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; border-radius: var(--r-lg); }
.circuit .current path { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 80 1100; stroke-dashoffset: 1180; filter: drop-shadow(0 0 6px rgba(255, 198, 0, 0.9)); animation: current 5s linear infinite; }
.circuit .current path:nth-child(2) { animation-duration: 6.4s; animation-delay: -2.4s; }
.circuit .current path:nth-child(3) { animation-duration: 5.6s; animation-delay: -3.6s; }
@keyframes current { to { stroke-dashoffset: 0; } }
.tape { position: absolute; z-index: 3; top: 30px; right: -46px; width: 220px; padding: 8px 0; transform: rotate(35deg); background: var(--stripes); background-size: 39.6px 39.6px; animation: hazard 1.4s linear infinite; text-align: center; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5); }
.tape span { display: inline-block; padding: 2px 10px; background: var(--ink); color: var(--yellow); font: 600 0.72rem var(--mono); letter-spacing: 0.2em; text-transform: uppercase; }
.hero__visual { border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.7); }

.ot { position: absolute; z-index: 4; left: 24px; bottom: 24px; width: min(340px, calc(100% - 48px)); background: var(--white); border-radius: 18px; padding: 20px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.6); border-top: 4px solid var(--yellow); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.ot__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ot__num { display: inline-flex; align-items: center; gap: 8px; font: 500 0.74rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.ot__num::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e53935; animation: pulse 1.4s ease-in-out infinite; }
.ot__status { padding: 4px 12px; border-radius: 999px; background: var(--yellow-soft); color: var(--ink); font-size: 0.78rem; font-weight: 600; transition: background 0.4s; }
.ot__status.is-done { background: var(--yellow); }
.ot__machine { margin: 12px 0 14px; font: 700 1.25rem/1.2 var(--head); letter-spacing: -0.03em; min-height: 1.5em; transition: opacity 0.3s; }
.ot__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ot__steps li { display: flex; align-items: center; gap: 10px; font-size: 0.93rem; color: var(--ink-3); transition: color 0.4s; }
.ot__steps li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 6px; border: 2px solid rgba(13, 13, 13, 0.15); transition: background 0.4s, border-color 0.4s; }
.ot__steps li.is-on { color: var(--ink); }
.ot__steps li.is-on::before { border-color: var(--ink); background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230d0d0d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ot__bar { margin-top: 16px; height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.ot__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--stripes); background-size: 39.6px 39.6px; animation: hazard 1.4s linear infinite; transition: width 0.7s var(--ease); }

/* Marquesina */
.marquee { overflow: hidden; padding: 20px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font: 700 2.1rem var(--head); letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee i { width: 14px; height: 14px; background: var(--yellow); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Secciones */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section--white { background: var(--white); }
.section--tight { padding-top: 40px; }
.head { max-width: 780px; margin-bottom: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.head--center { margin-inline: auto; align-items: center; text-align: center; }
.head--split { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
.head--split > div { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.head--split > p { max-width: 360px; }
.head > p:last-child:not(.badge) { color: var(--ink-2); font-size: 1.15rem; max-width: 640px; }

/* Servicios en filas (la foto aparece al pasar el mouse) */
.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.05fr) 150px; gap: 28px; align-items: center; padding: 34px 24px 34px 28px; border-bottom: 1px solid var(--line); transition: background 0.4s var(--ease); }
.row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--stripes); background-size: 39.6px 39.6px; transform: scaleY(0); transform-origin: top; transition: transform 0.45s var(--ease); }
.row:hover { background: var(--white); }
.row:hover::before { transform: scaleY(1); }
.row__n { font: 500 0.9rem var(--mono); color: var(--ink-3); transition: color 0.3s; }
.row:hover .row__n { color: var(--ink); }
.row h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.08; letter-spacing: -0.04em; transition: transform 0.45s var(--ease); }
.row:hover h3 { transform: translateX(8px); }
.row__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.row__body p { color: var(--ink-2); }
.tag { padding: 4px 14px; border-radius: 999px; background: var(--yellow-soft); border: 1px solid rgba(200, 150, 0, 0.35); color: var(--ink); font-size: 0.85rem; font-weight: 500; }
.ph--thumb { height: 110px; border-radius: var(--r-md); transform: scale(0.9) rotate(-3deg); opacity: 0.55; transition: transform 0.5s var(--ease), opacity 0.4s; }
.ph--thumb::after { font-size: 0.66rem; }
.row:hover .ph--thumb { transform: none; opacity: 1; }

/* Galería de trabajos */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 14px; }
.ph--a { grid-column: span 2; grid-row: span 2; }
.ph--b { grid-column: span 2; }
.ph--c { grid-column: span 1; }
.ph--d { grid-column: span 1; }
.ph--e { grid-column: span 4; grid-row: span 1; }

/* Sectores */
.sectors { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.sectors li { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 210px; padding: 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: transform 0.45s var(--ease); }
.sectors li::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); clip-path: circle(0% at 100% 100%); transition: clip-path 0.6s var(--ease); }
.sectors li:hover { transform: translateY(-6px); }
.sectors li:hover::after { clip-path: circle(150% at 100% 100%); }
.sectors__n { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: var(--ink); color: var(--yellow); font: 500 0.85rem var(--mono); transition: transform 0.4s var(--ease); }
.sectors li:hover .sectors__n { transform: rotate(-8deg); }
.sectors b { font: 700 1.5rem/1.08 var(--head); letter-spacing: -0.04em; }

/* Proceso: línea de tiempo que se llena al bajar */
.process { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.process .head { position: sticky; top: 120px; margin-bottom: 0; }
.timeline { list-style: none; padding: 0 0 0 64px; margin: 0; position: relative; --progress: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--steel); }
.timeline::after { background: var(--stripes); background-size: 39.6px 39.6px; animation: hazard 1.4s linear infinite; transform: scaleY(var(--progress)); transform-origin: top; }
.timeline li { position: relative; padding: 4px 0 56px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -64px; top: 4px; width: 34px; height: 34px; border-radius: 10px; background: var(--white); border: 2px solid var(--steel); z-index: 1; transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease); }
.timeline li.is-reached::before { background: var(--yellow); border-color: var(--ink); transform: rotate(45deg) scale(0.85); }
.timeline__n { font: 500 0.78rem var(--mono); letter-spacing: 0.12em; color: var(--ink-3); }
.timeline h3 { margin: 6px 0 10px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.04em; }
.timeline p { color: var(--ink-2); max-width: 520px; }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media { position: relative; min-height: 560px; }
.ph--about1 { position: absolute; left: 0; top: 0; width: 72%; height: 82%; }
.ph--about2 { position: absolute; right: 0; bottom: 0; width: 48%; height: 46%; border: 6px solid var(--paper); }
.about__stamp { position: absolute; left: 56%; top: 6%; width: 130px; height: 130px; z-index: 3; border-radius: 50%; background: var(--yellow); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5); animation: spin 22s linear infinite; }
.about__stamp text { font: 600 9.6px var(--mono); letter-spacing: 0.24em; fill: var(--ink); }
.about__stamp .stamp-bolt { fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.about__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.about__txt p:not(.badge) { color: var(--ink-2); font-size: 1.12rem; }
.about__txt .btn { margin-top: 10px; }

/* Preguntas */
.faq__list { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); transition: box-shadow 0.3s, border-color 0.3s, background 0.3s; }
.faq details[open] { background: var(--white); border-color: var(--ink); box-shadow: 6px 6px 0 var(--yellow); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; cursor: pointer; font: 600 1.15rem var(--head); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--white); border: 1px solid var(--line); font: 400 1.3rem var(--body); transition: transform 0.35s var(--ease), background 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--yellow); border-color: var(--ink); }
.faq details p { padding: 0 26px 24px; color: var(--ink-2); animation: open 0.4s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* Llamado final amarillo */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(64px, 8vw, 104px) 24px; border-radius: 28px; background: var(--yellow); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta h2 { max-width: 820px; font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
.cta > p:not(.badge) { color: var(--ink-2); font-size: 1.15rem; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.cta__stripes { position: absolute; left: 0; right: 0; top: 0; height: 16px; background: var(--stripes); background-size: 39.6px 39.6px; animation: hazard 1.4s linear infinite; }
.cta__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cta__lines path { fill: none; stroke: var(--ink); stroke-width: 2; opacity: 0.25; stroke-dasharray: 60 900; animation: current 6s linear infinite; }
.cta__lines path:nth-child(2) { animation-duration: 8s; animation-delay: -3s; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.contact__cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact__cards li { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.contact__cards li:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--yellow); border-color: var(--ink); }
.contact__cards li > span:first-child { font: 500 0.72rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.contact__cards a { font: 700 1.5rem var(--head); letter-spacing: -0.03em; text-decoration: none; }
.contact__cards p { font-weight: 500; }
.social { display: flex; gap: 10px; }
.social a { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; transition: background 0.3s, transform 0.3s var(--ease); }
.social a:hover { background: var(--yellow); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__map { min-height: 340px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #e7e5df; }
.map-facade { height: 100%; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px; text-align: center; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; }
.map-facade p { color: var(--ink-2); }
.map-facade b { color: var(--ink); font: 700 1.3rem var(--head); letter-spacing: -0.03em; }
.map-facade__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.map-facade__pin { position: relative; width: 44px; height: 44px; border-radius: 50% 50% 50% 0; background: var(--yellow); border: 3px solid var(--ink); transform: rotate(-45deg); animation: pin 2s ease-in-out infinite; }
.map-facade__pin::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--ink); }
@keyframes pin { 50% { transform: rotate(-45deg) translate(4px, -4px); } }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(0.6) contrast(1.05); }

/* Pie */
.foot { margin-top: 96px; background: var(--white); color: var(--ink-2); font-size: 0.92rem; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; }
.foot a { color: var(--ink); font-weight: 600; text-decoration: none; background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 100% 3px no-repeat; transition: background-size 0.3s; }
.foot a:hover { background-size: 100% 100%; }
.brand--foot .brand__txt { font-size: 1.2rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.4); transition: transform 0.3s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: wa-ping 2.4s ease-out infinite; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
@keyframes wa-ping { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.7); opacity: 0; } }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
  .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row { grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.1fr); }
  .ph--thumb { display: none; }
}
@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 84px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(0, 0, 0, 0.3); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: transform 0.3s var(--ease), opacity 0.3s; }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links > a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav__links > a::after { display: none; }
  .nav__ctas { margin: 16px 0 0; }
  .nav__ctas .btn { flex: 1; }
  .hero__grid, .process, .about, .contact { grid-template-columns: 1fr; }
  .hero__visual { min-height: 520px; }
  .process .head { position: static; margin-bottom: 40px; }
  .about__media { min-height: 460px; }
  .row { grid-template-columns: 50px 1fr; padding: 28px 12px 28px 22px; }
  .row__body { grid-column: 2; }
  .head--split { flex-direction: column; align-items: flex-start; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .ph--a { grid-column: span 2; }
  .ph--e { grid-column: span 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { font-size: 0.66rem; letter-spacing: 0.08em; }
  .nav__in { height: 72px; }
  .nav__links { inset: 72px 0 auto; }
  .hero { padding-top: 24px; }
  .hero__ctas .btn { width: 100%; }
  .hero__visual { min-height: 470px; }
  .ot { left: 14px; bottom: 14px; width: calc(100% - 28px); }
  .tape { right: -58px; top: 22px; }
  .marquee span { font-size: 1.6rem; }
  .sectors { grid-template-columns: 1fr 1fr; }
  .sectors li { min-height: 150px; padding: 18px; }
  .sectors li:last-child { grid-column: 1 / -1; }
  .sectors b { font-size: 1.25rem; }
  .row h3 { font-size: 1.5rem; }
  .bento { grid-auto-rows: 160px; }
  .ph--b, .ph--c, .ph--d { grid-column: span 2; }
  .about__media { min-height: 380px; }
  .about__stamp { width: 100px; height: 100px; left: 58%; }
  .contact__cards { grid-template-columns: 1fr; }
  .foot__in { flex-direction: column; align-items: flex-start; }
  .brand__txt { font-size: 1.25rem; }
  .mark { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero__title .line > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .circuit, .cta__lines { display: none; }
}
