/* ==========================================================================
   Novoelectra — Estilos
   Azul #09487B · Amarillo #FCC803 · Gris #909291
   ========================================================================== */

:root {
  --blue: #09487B;
  --blue-dark: #063253;
  --blue-soft: #0d5d9e;
  --yellow: #FCC803;
  --yellow-dark: #e2b300;
  --gray: #909291;
  --ink: #0d1c27;
  --muted: #5c6c78;
  --line: #e3e9ee;
  --soft: #f4f8fa;
  --white: #ffffff;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 10px 25px -18px rgba(9, 72, 123, .45);
  --shadow: 0 24px 55px -30px rgba(9, 72, 123, .45);

  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --header-h: 78px;
}

/* Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

img, svg, iframe {
  display: block;
  max-width: 100%;
}

ul { margin: 0; padding: 0; list-style: none; }

::selection {
  background: var(--yellow);
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}

section { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: .7rem 1.1rem;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  transition: top .2s ease;
}

.skip-link:focus {
  top: .75rem;
  color: #fff;
}

/* Botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.55rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease, background-color .2s ease, color .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 28px -16px rgba(9, 72, 123, .8);
}

.btn--primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 18px 32px -16px rgba(9, 72, 123, .85);
}

.btn--accent {
  background: var(--yellow);
  color: var(--blue-dark);
}

.btn--accent:hover { background: #ffd92e; }

.btn--ghost {
  background: #fff;
  border-color: #cfdbe4;
  color: var(--blue);
}

.btn--ghost:hover {
  border-color: var(--blue);
  background: #f2f8fc;
}

.btn--sm {
  padding: .72rem 1.25rem;
  font-size: .875rem;
}

.btn--block {
  width: 100%;
}

/* Cabecera
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -24px rgba(9, 72, 123, .55);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand__logo {
  display: block;
  width: clamp(168px, 16vw, 212px);
  height: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.3rem);
}

.nav__links > a {
  position: relative;
  padding: .4rem 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s ease;
}

.nav__links > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav__links > a:hover,
.nav__links > a.is-active {
  color: var(--blue);
}

.nav__links > a:hover::after,
.nav__links > a.is-active::after {
  transform: scaleX(1);
}

.nav__links .nav__phone {
  display: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--blue);
  transition: transform .25s ease, opacity .2s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(2.8rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  top: -220px;
  right: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(252, 200, 3, .16), transparent 65%);
}

.hero::after {
  bottom: -260px;
  left: -220px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(9, 72, 123, .09), transparent 65%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.15rem;
  padding: .42rem .9rem .42rem .7rem;
  border: 1px solid #dbe5ec;
  border-radius: 999px;
  background: #f8fbfd;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--blue);
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(252, 200, 3, .22);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.7rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.highlight {
  position: relative;
  color: var(--blue);
  white-space: nowrap;
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: .22em;
  border-radius: 4px;
  background: var(--yellow);
  z-index: -1;
}

.hero__lead {
  max-width: 55ch;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}

.hero__meta svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex-shrink: 0;
}

/* Panel del hero */

.hero__visual {
  position: relative;
}

.panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.6rem, 2.5vw, 2.2rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 12%, rgba(252, 200, 3, .22), transparent 42%),
    linear-gradient(150deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  box-shadow: 0 40px 70px -40px rgba(6, 50, 83, .85);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
}

.panel__header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "eyebrow icon"
    "badge icon";
  align-items: center;
  column-gap: 1rem;
  row-gap: .65rem;
}

.panel__eyebrow {
  grid-area: eyebrow;
  align-self: end;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}

.panel__badge {
  grid-area: badge;
  justify-self: start;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .8rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: .72rem;
  font-weight: 600;
  color: #eaf4fb;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252, 200, 3, .55); }
  50%      { box-shadow: 0 0 0 6px rgba(252, 200, 3, 0); }
}

.panel__icon {
  grid-area: icon;
  align-self: center;
  color: var(--yellow);
  line-height: 0;
}

.panel__icon svg {
  width: clamp(72px, 8.5vw, 100px);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .25));
}

.panel__list {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.panel__list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .78rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
}

.panel__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.panel__card {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: 1.5rem;
  padding: .9rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 35px -22px rgba(0, 0, 0, .5);
}

.panel__card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef5fa;
  color: var(--blue);
  flex-shrink: 0;
}

.panel__card-icon svg {
  width: 21px;
  height: 21px;
}

.panel__card-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.panel__card-text span {
  font-size: .74rem;
  font-weight: 600;
  color: var(--muted);
}

.panel__card-text a {
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--blue);
  transition: color .2s ease;
}

.panel__card-text a:hover { color: var(--blue-soft); }

/* Secciones: cabecera
   ========================================================================== */

.section-head {
  max-width: 660px;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-head__lead {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Servicios
   ========================================================================== */

.services {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border-top: 1px solid var(--line);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.service {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.service::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.service:hover {
  transform: translateY(-6px);
  border-color: #c9dce9;
  box-shadow: 0 26px 45px -32px rgba(9, 72, 123, .65);
}

.service:hover::after {
  transform: scaleX(1);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.15rem;
  border-radius: 14px;
  background: #eaf2f8;
  color: var(--blue);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.service__icon svg {
  width: 24px;
  height: 24px;
}

.service:hover .service__icon {
  background: var(--yellow);
  color: var(--blue-dark);
  transform: rotate(-4deg);
}

.service h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: .55rem;
}

.service p {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Franja "por qué nosotros"
   ========================================================================== */

.why {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 4.8rem) 0;
  background: var(--blue);
  color: #fff;
}

.why::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 200, 3, .16), transparent 65%);
  pointer-events: none;
}

.why .container {
  position: relative;
  z-index: 1;
}

.why__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}

.why h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  max-width: 20ch;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.why__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: .85rem;
  border-radius: 12px;
  background: rgba(252, 200, 3, .16);
  color: var(--yellow);
}

.why__icon svg {
  width: 22px;
  height: 22px;
}

.why__item h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .45rem;
}

.why__item p {
  font-size: .86rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .72);
}

/* Contacto
   ========================================================================== */

.contact {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background: #fff;
}

.contact__grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  align-items: start;
}

.contact__info {
  display: grid;
  gap: .85rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

a.info-card:hover {
  border-color: #bcd4e4;
  box-shadow: 0 20px 40px -34px rgba(9, 72, 123, .8);
  transform: translateY(-2px);
}

.info-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #edf4f9;
  color: var(--blue);
  flex-shrink: 0;
}

.info-card__icon svg {
  width: 22px;
  height: 22px;
}

.info-card__body {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  min-width: 0;
}

.info-card__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
}

.info-card__value {
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--blue);
}

.info-card__value--sm {
  font-size: 1.02rem;
  color: var(--ink);
}

.info-card__hint {
  font-size: .82rem;
  color: var(--muted);
}

.info-card--area {
  background: var(--soft);
  border-style: dashed;
}

.map {
  overflow: hidden;
  margin-top: .2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  line-height: 0;
}

.map iframe {
  width: 100%;
  height: 232px;
  border: 0;
  filter: grayscale(15%);
}

/* Formulario */

.form-card {
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fbfdfe 0%, #f4f8fa 100%);
}

.form-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  margin-bottom: .4rem;
}

.form-card__lead {
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .95rem;
}

.field label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
}

.optional {
  font-weight: 500;
  color: var(--gray);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .82rem .95rem;
  border: 1px solid #cfdae3;
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2309487B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
  cursor: pointer;
}

.field textarea {
  resize: vertical;
  min-height: 108px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa8b3;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(9, 72, 123, .13);
}

.field input:user-invalid,
.field select:user-invalid {
  border-color: #c0442f;
}

.form-note {
  margin-top: .9rem;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--muted);
}

.form-note a {
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  margin-top: .6rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--blue);
}

.form-status.is-error { color: #b03a26; }

/* Pie
   ========================================================================== */

.site-footer {
  padding-top: clamp(2.8rem, 5vw, 4rem);
  background: var(--blue-dark);
  color: rgba(255, 255, 255, .72);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr 1fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  padding-bottom: 2.6rem;
}

.brand--footer {
  padding: .6rem .8rem;
  border-radius: 14px;
  background: #fff;
}

.brand__logo--footer {
  width: 178px;
}

.footer__brand p {
  max-width: 38ch;
  margin-top: 1rem;
  font-size: .87rem;
  line-height: 1.65;
}

.footer__title {
  margin-bottom: .9rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.footer__nav,
.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9rem;
}

.footer__nav a,
.footer__contact a {
  color: rgba(255, 255, 255, .78);
  transition: color .2s ease;
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--yellow);
}

.footer__contact a {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.footer__contact p {
  line-height: 1.6;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .78rem;
  color: rgba(255, 255, 255, .55);
}

/* Botón volver arriba
   ========================================================================== */

.to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 55;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(252, 200, 3, .18), 0 18px 32px -14px rgba(6, 50, 83, .75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.92);
  transition: opacity .25s ease, transform .25s ease, visibility .25s,
              background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--yellow);
  color: var(--blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 0 0 4px rgba(252, 200, 3, .22), 0 22px 34px -16px rgba(6, 50, 83, .8);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

/* Animación de entrada
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1.4rem; }
}

@media (max-width: 940px) {
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .nav__links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .6rem clamp(1.15rem, 4vw, 2rem) 1.1rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 24px 40px -30px rgba(9, 72, 123, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links > a {
    padding: .95rem .2rem;
    border-bottom: 1px solid #eff3f6;
    font-size: 1rem;
  }

  .nav__links > a::after { display: none; }

  .nav__links .nav__phone {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .8rem;
    padding: .8rem 1rem;
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    justify-content: center;
  }

  .nav__links .nav__phone svg { width: 18px; height: 18px; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__lead { max-width: 62ch; }

  .hero__visual {
    max-width: 540px;
    margin-inline: auto;
  }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__info { order: 2; }
  .form-card { order: 1; }
}

@media (max-width: 720px) {
  :root { --header-h: 70px; }

  .brand__logo { width: 156px; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .why__head { flex-direction: column; align-items: flex-start; }
  .why h2 { max-width: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .panel__header {
    grid-template-areas:
      "eyebrow icon"
      "badge badge";
    row-gap: .5rem;
  }

  .panel__eyebrow { align-self: center; }
  .panel__icon { align-self: center; }
  .panel__icon svg { width: 52px; }
}

@media (max-width: 520px) {
  .hero { padding-top: 2.2rem; }

  .hero__actions .btn { width: 100%; }

  .hero__meta { gap: .5rem 1rem; }
  .hero__meta li { font-size: .8rem; }

  .panel { border-radius: 22px; }

  .services__grid { grid-template-columns: 1fr; }

  .why__grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer__grid { grid-template-columns: 1fr; }

  .footer__bottom { justify-content: flex-start; }
}

/* Movimiento reducido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
