/* =========================================================
   GranaSol Renovables · landing
   Paleta inspirada en Granada: cielo, sol de mediodía, cal y olivo
   ========================================================= */

:root {
  /* Colores tomados del logo: sol #E0BB31 y copo #2989BC */
  --logo-azul: #2989BC;    /* iconos y acentos */
  --cielo: #1F6E9C;        /* enlaces sobre claro (contraste AA) */
  --cielo-hondo: #0E3B56;  /* sección placas / público */
  --sol: #E8BE2E;          /* acción principal y el sol */
  --sol-hondo: #C99D12;
  --negro: #000;
  --cal: #F4F6F4;          /* fondo general, blanco de cal */
  --pizarra: #17262E;      /* texto */
  --pizarra-suave: #4A5A62;
  --olivo: #5E7A3A;        /* estados correctos */
  --rojo: #B3261E;         /* errores */
  --linea: #D6DDDC;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --radius-s: 6px;
  --radius-l: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--pizarra);
  background: var(--cal);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--cielo); }
a:hover { color: var(--cielo-hondo); }

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

h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.6rem;
  font: 700 1.05rem/1 var(--font);
  font-stretch: 110%;
  border: 0; border-radius: var(--radius-s);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sol); color: var(--pizarra); }
.btn-sun:hover { background: var(--sol-hondo); color: var(--pizarra); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--negro);
  color: #fff;
}
.header-row { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.brand { display: block; line-height: 0; }
.brand img { height: 52px; width: auto; }

.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a { color: rgb(255 255 255 / .85); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: #fff; }

.header-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--sol); font-weight: 700; text-decoration: none;
  padding: .55rem .9rem; border: 1.5px solid rgb(232 190 46 / .5); border-radius: 999px;
}
.header-phone:hover { color: var(--negro); background: var(--sol); border-color: var(--sol); }
.main-nav a { position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--sol); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.header-phone svg, .mobile-bar svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linejoin: round; stroke-linecap: round;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(6rem, 10vw, 9rem);
  /* Fondo de reserva si falta la foto */
  background: linear-gradient(165deg, #06131c 0%, #0E3B56 55%, #2a5d74 80%, #9c7f2a 100%);
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img {
  position: absolute; left: 0; top: -30%;
  width: 100%; height: 130%;
  object-fit: cover; object-position: center 60%;
  will-change: transform;
}
/* Velo para que el texto se lea sobre cualquier foto:
   oscuro a la izquierda (texto), más ligero a la derecha (formulario blanco) */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(4 14 22 / .88) 0%, rgb(4 14 22 / .72) 42%, rgb(4 14 22 / .35) 75%, rgb(4 14 22 / .25) 100%),
    linear-gradient(180deg, rgb(0 0 0 / .35) 0%, transparent 30%);
}
.hero-title, .hero-lead { text-shadow: 0 2px 18px rgb(0 0 0 / .35); }
.sun-path {
  display: block;
  width: min(100%, 420px); height: auto;
  margin-bottom: 1.75rem;
  overflow: visible;
}
.sun-arc { fill: none; stroke: rgb(255 255 255 / .35); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; }
.horizon { stroke: rgb(255 255 255 / .5); stroke-width: 2; }
.sun-dot { fill: var(--sol); }

.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.hero-copy { padding-top: clamp(0rem, 2vw, 1.5rem); max-width: 40rem; }

/* El titular es la pieza tipográfica de la página: ancho expandido de Archivo */
.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero-lead {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: rgb(255 255 255 / .92);
  max-width: 34rem;
}
.hero-note {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--sol);
}
.hero-alt {
  margin-top: 2.25rem;
  display: flex; flex-wrap: wrap; gap: .35rem .6rem;
  color: rgb(255 255 255 / .75);
}
.hero-alt a { color: #fff; font-weight: 600; }
.hero-alt a:hover { color: var(--sol); }

/* ---------- Formulario ---------- */
.form-card {
  background: #fff;
  color: var(--pizarra);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: 0 30px 60px -30px rgb(10 30 45 / .55);
}
.form-title { font-size: 1.6rem; font-weight: 800; font-stretch: 112%; }
.form-sub { margin-top: .3rem; color: var(--pizarra-suave); font-size: .95rem; }

#leadForm { margin-top: 1.4rem; display: grid; gap: 1.05rem; }

.field { display: grid; gap: .35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend {
  font-weight: 600; font-size: .95rem; padding: 0;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.optional { font-weight: 400; color: var(--pizarra-suave); }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--font);
  color: var(--pizarra);
  background: var(--cal);
  border: 1.5px solid var(--linea);
  border-radius: var(--radius-s);
  padding: .75rem .85rem;
  transition: border-color .15s ease, background-color .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #b9c4c3; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--cielo); background: #fff;
  box-shadow: 0 0 0 3px rgb(31 95 139 / .18);
}
textarea { resize: vertical; min-height: 84px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2317262E' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
  padding-right: 2.4rem;
}
[aria-invalid="true"] { border-color: var(--rojo) !important; }
.error { color: var(--rojo); font-size: .85rem; min-height: 0; }
.error:empty { display: none; }

/* Selector vivienda / empresa / comercio */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: .5rem 1rem;
  border: 1.5px solid var(--linea);
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: background-color .15s ease, border-color .15s ease;
}
.chip input:checked + span { background: var(--pizarra); border-color: var(--pizarra); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--sol); outline-offset: 2px; }

/* Calculadora de factura: el momento interactivo del formulario */
.bill {
  background: #FFF6E0;
  border-radius: var(--radius-s);
  padding: .9rem 1rem 1rem;
}
.bill label { display: flex; justify-content: space-between; align-items: baseline; }
.bill output { font-size: 1.35rem; font-weight: 800; font-stretch: 115%; }
input[type="range"] {
  width: 100%; margin: .4rem 0 .2rem;
  appearance: none; background: transparent; height: 28px;
  --fill: 16%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--sol) var(--fill), #EAD9AE var(--fill));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #EAD9AE; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--sol); }
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 24px; height: 24px; margin-top: -9px;
  border-radius: 50%; background: var(--sol); border: 3px solid #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / .3);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--sol);
  border: 3px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .3);
}
.bill-estimate { font-size: .92rem; color: var(--pizarra); }
.bill-estimate strong { font-weight: 800; }
.bill-estimate small { display: block; margin-top: .2rem; color: var(--pizarra-suave); font-size: .8rem; }

.check { grid-template-columns: auto 1fr; align-items: start; gap: .3rem .6rem; }
.check input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--cielo); }
.check label { font-weight: 400; font-size: .92rem; }
.check .error { grid-column: 1 / -1; }

#submitBtn { width: 100%; margin-top: .2rem; }
.form-status { font-size: .92rem; }
.form-status.is-error { color: var(--rojo); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-done { text-align: center; padding: 2rem .5rem; }
.form-done:focus { outline: none; }
.form-done svg { width: 72px; fill: none; stroke: var(--sol); stroke-width: 3; }
.form-done circle { fill: var(--sol); stroke: none; }
.form-done h3 { margin-top: 1rem; font-size: 1.5rem; font-stretch: 112%; }
.form-done p { margin-top: .6rem; color: var(--pizarra-suave); }

/* ---------- Separadores ---------- */
.divider { display: block; width: 100%; height: clamp(40px, 6vw, 90px); margin: 0; }
.divider-hero { position: absolute; left: 0; bottom: -1px; z-index: 1; fill: var(--cal); }
.divider-tilt { background: var(--cal); fill: var(--cielo-hondo); margin-bottom: -1px; }
.divider-arc  { background: var(--cielo-hondo); fill: #fff; margin-top: -1px; margin-bottom: -2px; position: relative; z-index: 1; }
.divider-wave { background: #fff; fill: var(--cal); margin-top: -1px; margin-bottom: -1px; }
.divider-foot { background: var(--cal); fill: var(--negro); margin-bottom: -1px; }

/* Ornamento de títulos: la línea y el sol del logo */
.ornament { display: block; width: 120px; margin-bottom: 1.1rem; }
.ornament svg { display: block; width: 100%; overflow: visible; fill: none; stroke: var(--sol-hondo); stroke-width: 2.5; stroke-linecap: round; }
.ornament path:first-of-type { fill: var(--sol); stroke: none; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; font-stretch: 122%;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--pizarra-suave); max-width: 32rem; }

/* Introducción de servicios con simulación animada */
.services-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.services-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; font-stretch: 122%; letter-spacing: -0.02em;
}
.services-copy > p { margin-top: 1rem; color: var(--pizarra-suave); max-width: 34rem; }
.services-copy > .services-claim {
  margin-top: 1.4rem;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.35;
  font-weight: 600; color: var(--pizarra);
}
.benefits { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.benefits li { position: relative; padding-left: 2rem; font-weight: 500; }
.benefits li::before {
  content: ""; position: absolute; left: 0; top: .15em;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--sol) 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='%2317262E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.energy-sim {
  margin: 0;
  background: #fff;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--linea), 0 30px 60px -40px rgb(14 59 86 / .45);
}
.energy-sim svg { display: block; width: 100%; height: auto; }
.sim-hill-back { fill: #B9CBA4; }
.sim-ground { fill: #8FA874; }
.sim-wall { fill: #FBFBF8; stroke: var(--pizarra); stroke-width: 2; }
.sim-roof { fill: #34434C; stroke: var(--pizarra); stroke-width: 2; stroke-linejoin: round; }
.sim-panel { fill: var(--logo-azul); stroke: var(--sol); stroke-width: 2; stroke-linejoin: round; }
.sim-panel-glow { fill: #FFE48A; opacity: 0; }
.sim-cell { fill: none; stroke: rgb(255 255 255 / .6); stroke-width: 1; }
.sim-door { fill: #6B7F8A; }
.sim-win { fill: #BFD3DE; stroke: var(--pizarra); stroke-width: 2; }
.sim-pylon path { fill: none; stroke: #5D6B73; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.sim-wire { fill: none; stroke: #5D6B73; stroke-width: 1.5; }
#simStars circle { fill: #fff; }
.sim-flow { fill: none; stroke-linecap: round; stroke-dasharray: 2 14; }
.sim-flow-sun { stroke: var(--sol); }
.sim-flow-grid { stroke: #E2574C; }

.sim-caption { padding: 1rem 1.25rem 1.2rem; border-top: 1px solid var(--linea); }
.sim-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; font-size: .92rem; font-weight: 600; }
.sim-clock {
  font-size: 1.15rem; font-weight: 800; font-stretch: 112%;
  font-variant-numeric: tabular-nums; min-width: 3.6em;
}
.sim-legend { display: inline-flex; align-items: center; gap: .45rem; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.sw-sun { background: var(--sol); }
.sw-grid { background: #E2574C; }
.sim-bar {
  margin-top: .8rem; height: 10px; border-radius: 5px; overflow: hidden;
  background: #E2574C;
}
.sim-bar span { display: block; height: 100%; width: 0; background: var(--sol); }
.sim-note { margin-top: .6rem; font-size: .8rem; color: var(--pizarra-suave); }

/* Servicios: la fotovoltaica como pieza principal, el resto en una fila */
.service-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 2px solid var(--pizarra);
}
.service {
  padding: 2rem 1.5rem 2.2rem;
  border-bottom: 1px solid var(--linea);
}
.service + .service:not(:nth-child(2)) { border-left: 1px solid var(--linea); }
.service:nth-child(2) { padding-left: 0; }

.service-main {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
}

.ico {
  width: 44px; height: 44px; fill: none; stroke: var(--cielo);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.service h3 { margin-top: 1rem; font-size: 1.25rem; font-weight: 700; font-stretch: 108%; }
.service p { margin-top: .5rem; color: var(--pizarra-suave); font-size: 1rem; }

.service-main .ico { width: 84px; height: 84px; stroke: var(--sol-hondo); }
.service-main h3 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; font-stretch: 122%; letter-spacing: -0.015em; }
.service-main p { margin: 0; font-size: 1.15rem; color: var(--pizarra); max-width: 40ch; }
.service-cta { grid-column: 3; font-weight: 700; }

/* Para quién */
.audience { position: relative; background: var(--cielo-hondo); color: #fff; isolation: isolate; }
/* Patrón: rejilla de células de un panel solar */
.audience::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / .09) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .09) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / .12) 2px, transparent 2px),
    linear-gradient(90deg, rgb(255 255 255 / .12) 2px, transparent 2px);
  background-size: 26px 26px, 26px 26px, 156px 156px, 156px 156px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 85% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 90% at 85% 40%, #000 0%, transparent 75%);
}
.audience article { text-align: left; }
.aud-ico {
  display: block; width: 140px; height: 112px; margin-bottom: 1.5rem;
  padding: 14px 12px 6px; border-radius: 50% 50% 14px 14px;
  background: rgb(255 255 255 / .06);
  box-shadow: inset 0 0 0 1.5px rgb(232 190 46 / .55);
}
.aud-ico .ln, .aud-ico .win { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.aud-ico .win { stroke-width: 1.6; stroke: rgb(255 255 255 / .75); }
.aud-ico .thin { stroke-width: 1.5; stroke: rgb(255 255 255 / .6); }
.aud-ico .panel { fill: var(--logo-azul); stroke: var(--sol); stroke-width: 2; stroke-linejoin: round; }
.aud-ico .cell { fill: none; stroke: rgb(255 255 255 / .55); stroke-width: 1; }
.aud-ico .sun { fill: var(--sol); }
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
.audience h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800; font-stretch: 120%;
  padding-bottom: 1rem; border-bottom: 2px solid var(--sol);
}
.audience p { margin-top: 1rem; color: rgb(255 255 255 / .82); }

/* Proceso (secuencia real, por eso numerado) */
.process { position: relative; background: #fff; isolation: isolate; }
.process::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgb(41 137 188 / .28) 1.3px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
          mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
}
.steps {
  list-style: none; margin: 0 0 3rem; padding: 0;
  counter-reset: paso;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.steps li { counter-increment: paso; position: relative; padding-top: 4.2rem; }
.steps li::before {
  content: counter(paso);
  position: absolute; top: 0; left: 0;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sol); color: var(--pizarra);
  font-weight: 800; font-size: 1.2rem;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.5rem; left: 3.6rem; right: -1.4rem;
  border-top: 2px dotted #b9c4c3;
}
.steps h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 108%; }
.steps p { margin-top: .5rem; color: var(--pizarra-suave); }

/* ---------- Instagram ---------- */
.insta { padding-top: clamp(2.5rem, 5vw, 4rem); }
.insta .section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.insta-grid {
  list-style: none; margin: 0 0 2.5rem; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.insta-grid li { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #E4E9E8; }
.insta-skel { background: linear-gradient(100deg, #E4E9E8 30%, #EEF2F1 50%, #E4E9E8 70%) 0 0 / 300% 100%; animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { to { background-position: -150% 0; } }

.insta-item a { position: relative; display: block; height: 100%; color: #fff; }
.insta-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.insta-item a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / .75));
  opacity: 0; transition: opacity .25s ease;
}
.insta-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: .9rem; font-size: .88rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.insta-item a:hover img, .insta-item a:focus-visible img { transform: scale(1.04); }
.insta-item a:hover::after, .insta-item a:focus-visible::after,
.insta-item a:hover .insta-cap, .insta-item a:focus-visible .insta-cap { opacity: 1; transform: none; }
.insta-type {
  position: absolute; top: .6rem; right: .6rem; z-index: 1;
  width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .5));
}
.insta-type.video { fill: #fff; }
.insta-type.carousel { fill: none; stroke: #fff; stroke-width: 2; }

.btn-outline {
  gap: .6rem; background: transparent; color: var(--pizarra);
  box-shadow: inset 0 0 0 2px var(--pizarra);
}
.btn-outline:hover { background: var(--pizarra); color: #fff; }
.btn-outline svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.insta-empty .insta-grid { display: none; }

/* ---------- Pie ---------- */
.site-footer { background: var(--negro); color: #fff; padding: 3rem 0 2rem; }
.footer-logo { height: 60px; width: auto; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sol); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 2rem; }
.footer-brand { font-size: 1.5rem; font-weight: 800; font-stretch: 120%; }
.footer-claim { margin-top: .5rem; color: rgb(255 255 255 / .75); max-width: 24rem; }
address { font-style: normal; line-height: 1.8; }
.footer-links { display: grid; gap: .5rem; align-content: start; }
.copyright { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .15); font-size: .85rem; color: rgb(255 255 255 / .6); }

/* ---------- Barra móvil ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .services-intro { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insta-grid li:nth-child(n+7) { display: none; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-main { grid-template-columns: auto minmax(0, 1fr); }
  .service-main p, .service-cta { grid-column: 1 / -1; }
  .service-list > .service:not(.service-main) { border-left: 0; padding-left: 0; }
  .service-list > .service:nth-child(odd):not(.service-main) { border-left: 1px solid var(--linea); padding-left: 1.5rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { padding-bottom: 64px; }
  .main-nav { display: none; }
  .header-phone { margin-left: auto; white-space: nowrap; }
  .brand img { height: 42px; }
  .insta-grid { gap: 8px; }
  .insta-cap { display: none; }
  .header-phone { padding: .45rem .75rem; font-size: .95rem; }
  .hero-media::after { background: linear-gradient(180deg, rgb(4 14 22 / .8) 0%, rgb(4 14 22 / .7) 60%, rgb(4 14 22 / .55) 100%); }
  .aud-ico { width: 112px; height: 94px; }
  .field-row { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .service-list > .service { padding-left: 0 !important; padding-right: 0 !important; border-left: 0 !important; }
  .service-main { grid-template-columns: 1fr; }
  .audience-grid, .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr;
    position: fixed; inset: auto 0 0 0; z-index: 30;
    background: var(--negro);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 60px; color: #fff; text-decoration: none; font-weight: 700;
  }
  .mobile-bar-cta { background: var(--sol); color: var(--pizarra) !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
