/* AC Servicios — actualización visual sin alterar rutas ni estructura HTML */
:root {
  --color-corporate-dark: #062a33;
  --color-primary: #00677a;
  --color-primary-strong: #004d5d;
  --color-cyan: #18a9c2;
  --color-accent-cyan: #18a9c2;
  --color-surface: #f5fafb;
  --color-ink: #102a32;
  --shadow-soft: 0 18px 55px rgba(0, 62, 77, .11);
  --shadow-lift: 0 26px 65px rgba(0, 62, 77, .17);
  --line: rgba(0, 103, 122, .12);
}

html { scroll-padding-top: 8rem; }
body { color: var(--color-ink); background: var(--color-surface); }

/* Cabecera más clara, compacta y profesional */
body > #root > header,
.navbar-architecture {
  box-shadow: 0 10px 35px rgba(0, 22, 31, .18);
}

.navbar-architecture {
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 72px 100%,
    linear-gradient(110deg, rgba(0, 57, 70, .99), rgba(0, 111, 130, .98));
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

@media (min-width: 1024px) {
  .navbar-architecture .lg\:h-24 { height: 5.25rem; }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  .navbar-architecture img[src*="canary-islands-map"] { display: none !important; }
  .navbar-architecture .xl\:flex > a { padding-left: .7rem; padding-right: .7rem; font-size: 10px; }
  .navbar-architecture .xl\:flex { gap: 0; }
}

.navbar-architecture .max-w-7xl { max-width: 86rem; }
.navbar-architecture a[aria-label="Volver al inicio"] {
  position: relative;
  padding-left: 1rem;
}
.navbar-architecture a[aria-label="Volver al inicio"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2rem;
  bottom: .2rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(var(--color-cyan), var(--color-accent-cyan));
  box-shadow: 0 0 18px rgba(24, 169, 194, .7);
}

.navbar-architecture .xl\:flex > a {
  position: relative;
  padding: .75rem .9rem;
  border-radius: .55rem;
}
.navbar-architecture .xl\:flex > a::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .35rem;
  height: 2px;
  border-radius: 9px;
  background: var(--color-accent-cyan);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.navbar-architecture .xl\:flex > a:hover::after,
.navbar-architecture .xl\:flex > a.bg-white\/10::after { transform: scaleX(1); }
.navbar-architecture .xl\:flex > a.bg-white\/10 { background: rgba(255,255,255,.08); }

nav a, nav button { transition: color .25s ease, background-color .25s ease, transform .25s ease; }
nav a:hover { transform: translateY(-1px); }

/* Portada con el recurso corporativo que ya existía en el proyecto */
main > section:first-child.bg-premium-layer {
  background-color: #f8fcfd !important;
  background-image:
    linear-gradient(90deg, rgba(248, 252, 253, .98) 0%, rgba(248, 252, 253, .93) 42%, rgba(248, 252, 253, .68) 70%, rgba(248, 252, 253, .78) 100%),
    url('/images/home-hero-abstract-8k.webp') !important;
  background-position: center, right center !important;
  background-repeat: no-repeat !important;
  background-size: cover, min(58vw, 900px) auto !important;
}

main > section:first-child.bg-premium-layer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--color-primary-strong) 0 34%, var(--color-cyan) 34% 67%, var(--color-accent-cyan) 67%);
  opacity: .9;
}

main > section:first-child.bg-premium-layer > div:first-child { opacity: .3; }
main > section:first-child.bg-premium-layer h1 { color: var(--color-corporate-dark) !important; text-wrap: balance; }
main > section:first-child.bg-premium-layer h1 span {
  background-image: linear-gradient(100deg, var(--color-primary), var(--color-cyan)) !important;
}

/* Sistema visual consistente */
h1, h2, h3, h4 { color: var(--color-corporate-dark); text-wrap: balance; }
p { text-wrap: pretty; }

main section:not(:first-child) h2 {
  position: relative;
  letter-spacing: -.04em;
}
main section:not(:first-child) h2::after {
  content: "";
  display: block;
  width: 3.6rem;
  height: 4px;
  margin-top: 1rem;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan), var(--color-accent-cyan));
}
main section:not(:first-child) .text-center h2::after,
main section:not(:first-child) h2.text-center::after { margin-left: auto; margin-right: auto; }

.btn-primary {
  background: linear-gradient(115deg, var(--color-primary-strong), var(--color-primary));
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: .7rem;
  box-shadow: 0 12px 28px rgba(0, 95, 115, .25);
}
.btn-primary:hover { background: linear-gradient(115deg, #003e4d, #006f83); transform: translateY(-2px); }
.btn-secondary { border-radius: .7rem; border-color: rgba(0, 95, 115, .22); background: rgba(255, 255, 255, .88); }
.btn-secondary:hover { border-color: var(--color-primary); box-shadow: 0 10px 25px rgba(0, 95, 115, .1); transform: translateY(-2px); }

.card-corporate,
main article,
main .shadow-xl,
main .shadow-2xl {
  border-color: rgba(0, 95, 115, .11) !important;
  box-shadow: var(--shadow-soft) !important;
}
.card-corporate:hover,
main article:hover { box-shadow: var(--shadow-lift) !important; }

html[data-home="true"] main > section:nth-child(even) {
  background-color: #f3f9fa;
  background-image:
    linear-gradient(rgba(0,103,122,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,103,122,.035) 1px, transparent 1px);
  background-size: 42px 42px;
}
main > section { border-color: rgba(0, 95, 115, .08) !important; isolation: isolate; }

/* Especialidades: tarjetas con identidad por servicio */
html[data-home="true"] main > section:nth-child(2) .grid > * {
  position: relative;
  border-radius: 1.1rem !important;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 58%, #edf9fb) !important;
  box-shadow: 0 22px 55px rgba(0,77,93,.12) !important;
  border: 1px solid rgba(0,103,122,.12) !important;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease !important;
}
html[data-home="true"] main > section:nth-child(2) .grid > *:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 34px 70px rgba(0,77,93,.2) !important;
}
html[data-home="true"] main > section:nth-child(2) .grid > *::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
}
html[data-home="true"] main > section:nth-child(2) .grid > *:nth-child(2)::before { background: linear-gradient(90deg, #18a9c2, #087f9a); }
html[data-home="true"] main > section:nth-child(2) .grid > *:nth-child(3)::before { background: linear-gradient(90deg, #087f9a, #001d3d); }
html[data-home="true"] main > section:nth-child(2) .grid > *:nth-child(2) { background: linear-gradient(145deg, #ffffff 58%, #eff9fb) !important; }
html[data-home="true"] main > section:nth-child(2) .grid > *:nth-child(3) { background: linear-gradient(145deg, #ffffff 58%, #f0f5f8) !important; }
html[data-home="true"] main > section:nth-child(2) .grid > * > div:first-child {
  border-radius: 1rem !important;
  transform: rotate(-3deg);
  box-shadow: 0 10px 24px rgba(0,77,93,.1);
}

/* Calculadora: bloque editorial con más profundidad */
html[data-home="true"] main > section:nth-child(3) {
  background:
    radial-gradient(circle at 85% 30%, rgba(24,169,194,.17), transparent 30%),
    linear-gradient(125deg, #062a33, #004d5d) !important;
  color: rgba(255,255,255,.78);
}
html[data-home="true"] main > section:nth-child(3) h2,
html[data-home="true"] main > section:nth-child(3) h3 { color: white !important; }
html[data-home="true"] main > section:nth-child(3) p { color: rgba(255,255,255,.72) !important; }
html[data-home="true"] main > section:nth-child(3) .bg-white { box-shadow: 0 28px 70px rgba(0,20,27,.34) !important; }

/* Testimonios: aspecto más editorial y menos de plantilla */
html[data-home="true"] main > section:nth-child(4) .grid > * {
  border-radius: 0 1.2rem 1.2rem 1.2rem !important;
  border-left: 4px solid var(--color-cyan) !important;
}

html[data-home="true"] main > section:nth-child(6) {
  background:
    linear-gradient(115deg, rgba(5,28,35,.96), rgba(0,79,94,.9)),
    url('/images/home-hero-abstract-8k.webp') center / cover !important;
}
html[data-home="true"] main > section:nth-child(6) h2 { color: white !important; }
html[data-home="true"] main > section:nth-child(6) p { color: rgba(255,255,255,.72) !important; }
html[data-home="true"] main > section:nth-child(4) .grid > *:nth-child(2) { border-left-color: var(--color-accent-cyan) !important; }
html[data-home="true"] main > section:nth-child(4) .grid > *:nth-child(3) { border-left-color: var(--color-primary) !important; }

/* Cobertura y llamada final */
html[data-home="true"] main > section:nth-child(5) {
  background-image:
    radial-gradient(circle at 15% 50%, rgba(24,169,194,.1), transparent 32%),
    linear-gradient(135deg, #f7fbfc, #edf7f8) !important;
}
html[data-home="true"] main > section:nth-child(6) {
  background:
    linear-gradient(120deg, rgba(0,38,48,.96), rgba(0,103,122,.93)),
    url('/images/home-hero-abstract-8k.webp') center / cover !important;
}
html[data-home="true"] main > section:nth-child(6) h2 { color: white !important; }
html[data-home="true"] main > section:nth-child(6) h2::after { background: var(--color-accent-cyan); }

input, textarea, select {
  border-radius: .65rem !important;
  border-color: rgba(0, 95, 115, .18) !important;
  background: rgba(255, 255, 255, .92) !important;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 4px rgba(0, 103, 122, .12) !important;
}

footer { background-image: radial-gradient(circle at 85% 0%, rgba(24, 169, 194, .13), transparent 34%); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-accent-cyan);
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  main > section:first-child.bg-premium-layer {
    background-image: linear-gradient(rgba(248, 252, 253, .91), rgba(248, 252, 253, .97)), url('/images/home-hero-abstract-8k.webp') !important;
    background-position: center !important;
    background-size: cover !important;
  }
  main > section:first-child.bg-premium-layer::after { height: 4px; }
  main section:not(:first-child) h2::after { margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Dirección editorial inspirada en AC Encanto */
@media (min-width: 1024px) {
  header > div:first-child { display: none !important; }
}

.navbar-architecture {
  background: rgba(255, 255, 255, .96) !important;
  color: var(--color-corporate-dark);
  border-bottom: 1px solid rgba(0, 62, 77, .08);
  box-shadow: 0 12px 40px rgba(0, 35, 44, .08);
}
.navbar-architecture::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,103,122,.025), transparent);
}
.navbar-architecture a[aria-label="Volver al inicio"] span:first-child { color: var(--color-corporate-dark) !important; }
.navbar-architecture a[aria-label="Volver al inicio"] span:last-child { color: rgba(0,62,77,.64) !important; }
.navbar-architecture img[src*="canary-islands-map"] { filter: none !important; opacity: .28 !important; }
.navbar-architecture .xl\:flex > a { color: rgba(6,42,51,.67) !important; }
.navbar-architecture .xl\:flex > a:hover,
.navbar-architecture .xl\:flex > a.bg-white\/10 { color: var(--color-corporate-dark) !important; background: transparent !important; }
.navbar-architecture .xl\:flex > a::after { background: var(--color-accent-cyan); }
.navbar-architecture .notranslate button { color: var(--color-corporate-dark) !important; border-color: rgba(0,62,77,.16) !important; }
.navbar-architecture .notranslate button.bg-white { background: var(--color-corporate-dark) !important; color: white !important; }
.navbar-architecture > div:first-child { height: 2px !important; opacity: .72; }

main > section:first-child.bg-premium-layer {
  min-height: 100vh !important;
  background-image:
    linear-gradient(90deg, rgba(3,25,31,.88) 0%, rgba(3,31,38,.74) 43%, rgba(3,31,38,.42) 70%, rgba(3,31,38,.58) 100%),
    url('/images/hero-corporativo-2026.webp') !important;
  background-position: center, center 58% !important;
  background-size: cover, cover !important;
}
main > section:first-child.bg-premium-layer > div:first-child { display: none; }
main > section:first-child.bg-premium-layer h1 {
  color: white !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600 !important;
  letter-spacing: -.045em !important;
  line-height: .92 !important;
  text-shadow: 0 4px 30px rgba(0,0,0,.28);
}
main > section:first-child.bg-premium-layer h1 span {
  background: none !important;
  color: #8fe0ec !important;
  -webkit-text-fill-color: currentColor !important;
}
main > section:first-child.bg-premium-layer p { color: rgba(255,255,255,.82) !important; font-weight: 400 !important; }
main > section:first-child.bg-premium-layer .bg-white p,
main > section:first-child.bg-premium-layer [class*="bg-white/"] p { color: rgba(26,26,27,.66) !important; }
main > section:first-child.bg-premium-layer .bg-white h2,
main > section:first-child.bg-premium-layer .bg-white h3,
main > section:first-child.bg-premium-layer [class*="bg-white/"] h2,
main > section:first-child.bg-premium-layer [class*="bg-white/"] h3 { color: var(--encanto-ink) !important; }
main > section:first-child.bg-premium-layer strong { color: white; }
main > section:first-child.bg-premium-layer .rounded-full { background: rgba(255,255,255,.11) !important; border-color: rgba(255,255,255,.3) !important; color: white !important; backdrop-filter: blur(12px); }
main > section:first-child.bg-premium-layer .border-l-2 { border-color: rgba(255,255,255,.2) !important; }
main > section:first-child.bg-premium-layer .border-l-2 span:last-child { color: rgba(255,255,255,.62) !important; }
main > section:first-child.bg-premium-layer .btn-primary { background: white !important; color: var(--color-corporate-dark) !important; box-shadow: 0 18px 45px rgba(0,0,0,.22); }
main > section:first-child.bg-premium-layer .btn-secondary { background: transparent !important; color: white !important; border-color: rgba(255,255,255,.55) !important; }
main > section:first-child.bg-premium-layer .max-w-md {
  background: rgba(255,255,255,.94) !important;
  backdrop-filter: blur(20px);
  border-top-color: var(--color-accent-cyan) !important;
  border-radius: 0 !important;
  box-shadow: 0 35px 90px rgba(0,0,0,.3) !important;
}
main > section:first-child.bg-premium-layer .max-w-md p { color: rgba(26,26,27,.62) !important; }
main > section:first-child.bg-premium-layer .max-w-md label { color: rgba(26,26,27,.64) !important; font-weight: 500; }
main > section:first-child.bg-premium-layer .max-w-md input { background: white !important; }

main section:not(:first-child) h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.25rem, 4vw, 3.65rem);
  line-height: 1.08 !important;
  letter-spacing: -.04em;
}
main section:not(:first-child) h2::after { height: 2px; width: 4.5rem; background: var(--color-accent-cyan); }
html[data-home="true"] main > section:nth-child(even) { background-color: #f8f7f3; }
html[data-home="true"] main > section:nth-child(2) .grid > * { border-radius: 0 !important; }
html[data-home="true"] main > section:nth-child(4) .grid > * { border-radius: 0 !important; }
.btn-primary, .btn-secondary { border-radius: 0; letter-spacing: .16em; }

@media (max-width: 1023px) {
  .navbar-architecture { background: rgba(255,255,255,.97) !important; }
  .navbar-architecture a[aria-label="Volver al inicio"] span:first-child { color: var(--color-corporate-dark) !important; }
  .navbar-architecture a[aria-label="Volver al inicio"] span:last-child { color: rgba(0,62,77,.62) !important; }
  .navbar-architecture .xl\:hidden a { background: rgba(0,95,115,.08) !important; color: var(--color-primary) !important; border-color: rgba(0,95,115,.15) !important; }
  .navbar-architecture .xl\:hidden button { background: var(--color-corporate-dark) !important; color: white !important; border-color: var(--color-corporate-dark) !important; }
  main > section:first-child.bg-premium-layer {
    min-height: auto !important;
    background-image:
      linear-gradient(rgba(3,25,31,.72), rgba(3,31,38,.86)),
      url('/images/hero-corporativo-2026.webp') !important;
    background-position: center !important;
  }
  main > section:first-child.bg-premium-layer h1 { color: white !important; }
  main > section:first-child.bg-premium-layer .grid > a { background: rgba(255,255,255,.94) !important; }
  main > section:first-child.bg-premium-layer .grid > a span { color: inherit !important; }
}

/* Protección general frente a desbordamientos y solapamientos */
h1, h2, h3, h4, p, a, button, label, li { overflow-wrap: anywhere; }
main h1, main h2, main h3 { max-width: 100%; }
main section { overflow: clip; }
main section .max-w-7xl,
main section .max-w-5xl,
main section .max-w-4xl { width: min(100%, 100vw); }

@media (max-width: 767px) {
  main section:not(:first-child) h2 { font-size: clamp(2rem, 10vw, 2.75rem); line-height: 1.08 !important; }
  main section:not(:first-child) h3 { line-height: 1.18 !important; }
  main > section:first-child.bg-premium-layer h1 { line-height: .98 !important; }
  main > section:first-child.bg-premium-layer .max-w-md { width: calc(100% - 1rem); margin-inline: auto; }
  footer h3 { line-height: 1.15 !important; }
}

/* Ajuste fiel a la referencia actual de AC Encanto */
:root {
  --encanto-ink: #1a1a1b;
  --ac-accent: #18a9c2;
  --encanto-soft: #fafafa;
  --encanto-divider: #e5e5e5;
}

body { font-weight: 300; background: #fff; }
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif !important; font-weight: 400 !important; }

.navbar-architecture {
  height: 100px;
  background: rgba(18, 18, 19, .93) !important;
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: none;
  backdrop-filter: blur(24px);
}
.navbar-architecture::before { display: none; }
.navbar-architecture .lg\:h-24 { height: 100px !important; }
.navbar-architecture a[aria-label="Volver al inicio"]::before { background: var(--ac-accent); box-shadow: none; width: 1px; }
.navbar-architecture a[aria-label="Volver al inicio"] span:first-child {
  color: white !important;
  font-family: "Cinzel", serif;
  font-style: normal !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
}
.navbar-architecture a[aria-label="Volver al inicio"] span:last-child { color: var(--ac-accent) !important; font-weight: 400 !important; }
.navbar-architecture img[src*="canary-islands-map"] { filter: brightness(0) invert(1) !important; opacity: .3 !important; }
.navbar-architecture .xl\:flex > a {
  color: rgba(255,255,255,.68) !important;
  font-weight: 400 !important;
  letter-spacing: .18em !important;
  background: transparent !important;
}
.navbar-architecture .xl\:flex > a:hover,
.navbar-architecture .xl\:flex > a.bg-white\/10 { color: var(--ac-accent) !important; }
.navbar-architecture .xl\:flex > a::after { height: 1px; background: var(--ac-accent); bottom: .15rem; }
.navbar-architecture .notranslate button { color: rgba(255,255,255,.75) !important; border-color: rgba(255,255,255,.15) !important; border-radius: 0 !important; }
.navbar-architecture .notranslate button.bg-white { color: var(--encanto-ink) !important; background: var(--ac-accent) !important; }
.navbar-architecture > div:first-child { display: none !important; }

main > section:first-child.bg-premium-layer { padding-top: 160px !important; }
main > section:first-child.bg-premium-layer h1 {
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: -.025em !important;
}
main > section:first-child.bg-premium-layer h1 span { color: var(--ac-accent) !important; }
main > section:first-child.bg-premium-layer .border-l-2 > span:first-child { color: #8fe0ec !important; }
main > section:first-child.bg-premium-layer .max-w-md { border-top: 1px solid var(--ac-accent) !important; }
main > section:first-child.bg-premium-layer .btn-primary {
  background: var(--ac-accent) !important;
  color: white !important;
}
main > section:first-child.bg-premium-layer .btn-primary:hover { background: var(--encanto-ink) !important; }

main > section:not(:first-child) {
  padding-top: clamp(80px, 10vh, 140px) !important;
  padding-bottom: clamp(80px, 10vh, 140px) !important;
  background-image: none !important;
}
html[data-home="true"] main > section:nth-child(even) { background-color: var(--encanto-soft) !important; }
html[data-home="true"] main > section:nth-child(odd):not(:first-child):not(:nth-child(3)) { background-color: #fff !important; }
main section:not(:first-child) h2 {
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -.015em;
}
main section:not(:first-child) h2::after { background: var(--ac-accent); width: 3.5rem; height: 1px; }
main h2 + p { margin-top: 1.5rem !important; }

html[data-home="true"] main > section:nth-child(2) .grid > * {
  border-radius: 0 !important;
  background: #fafafa !important;
  border: 1px solid var(--encanto-divider) !important;
  box-shadow: none !important;
}
html[data-home="true"] main > section:nth-child(2) .grid > *::before { height: 1px; background: var(--ac-accent) !important; }
html[data-home="true"] main > section:nth-child(2) .grid > *:hover {
  background: white !important;
  border-color: var(--ac-accent) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.035) !important;
  transform: translateY(-5px) !important;
}

html[data-home="true"] main > section:nth-child(3) {
  background: linear-gradient(120deg, rgba(18,18,19,.97), rgba(0,62,77,.94)), url('/images/home-hero-abstract-8k.webp') center / cover !important;
}
html[data-home="true"] main > section:nth-child(3) .rounded-2xl,
html[data-home="true"] main > section:nth-child(3) .rounded-xl { border-radius: 0 !important; }

html[data-home="true"] main > section:nth-child(4) .grid > * {
  border-radius: 0 !important;
  border: 1px solid var(--encanto-divider) !important;
  border-top: 1px solid var(--ac-accent) !important;
  border-left-width: 1px !important;
  box-shadow: none !important;
}

.btn-primary, .btn-secondary {
  border-radius: 0 !important;
  font-weight: 400 !important;
  letter-spacing: .2em !important;
}
.btn-primary { background: var(--ac-accent); }
.btn-primary:hover { background: var(--encanto-ink); }

@media (max-width: 1023px) {
  .navbar-architecture { height: 80px; background: rgba(18,18,19,.96) !important; }
  .navbar-architecture a[aria-label="Volver al inicio"] span:first-child { color: white !important; }
  .navbar-architecture a[aria-label="Volver al inicio"] span:last-child { color: var(--ac-accent) !important; }
  .navbar-architecture .xl\:hidden a { color: white !important; background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.18) !important; }
  .navbar-architecture .xl\:hidden button { background: var(--ac-accent) !important; color: var(--encanto-ink) !important; border-color: var(--ac-accent) !important; }
  main > section:first-child.bg-premium-layer { padding-top: 112px !important; }
}

/* Logo completo: solo se muestra a un tamaño en el que conserva su lectura */
footer .grid > div:first-child > a[href="/"] {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff url('/images/logo-perfecto.webp') center / contain no-repeat;
  box-shadow: 0 18px 45px rgba(0,0,0,.24);
}
footer .grid > div:first-child > a[href="/"] span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 1280px) and (max-width: 1535px) {
  .navbar-architecture .xl\:flex > a {
    padding-inline: .625rem !important;
    letter-spacing: .14em !important;
  }
  .navbar-architecture .xl\:flex > .h-4 { margin-inline: .5rem !important; }
}

@media (max-width: 639px) {
  footer .grid > div:first-child > a[href="/"] { margin-inline: auto; }
}

@media (max-width: 350px) {
  .navbar-architecture .xl\:hidden a[href^="tel:"] { display: none !important; }
  .navbar-architecture a[aria-label="Volver al inicio"] span:first-child { font-size: 1rem !important; }
  .navbar-architecture a[aria-label="Volver al inicio"] span:last-child { font-size: .5rem !important; letter-spacing: .14em !important; }
}

/* El CTA final conserva contraste tras los fondos alternos */
html[data-home="true"] main > section:nth-child(6) {
  background:
    linear-gradient(115deg, rgba(5,28,35,.96), rgba(0,79,94,.9)),
    url('/images/home-hero-abstract-8k.webp') center / cover !important;
}
html[data-home="true"] main > section:nth-child(6) h2 { color: white !important; }
html[data-home="true"] main > section:nth-child(6) p { color: rgba(255,255,255,.74) !important; }

/* Acabado final: navegación contextual, controles y contenedores */
header .navbar-architecture {
  transition: height .45s cubic-bezier(.16,1,.3,1), background-color .45s ease, box-shadow .45s ease, backdrop-filter .45s ease;
}
html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture {
  background: linear-gradient(180deg, rgba(8,17,20,.78), rgba(8,17,20,.38)) !important;
  border-bottom-color: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
}
header.is-scrolled .navbar-architecture,
html[data-dark-hero="false"] header .navbar-architecture {
  height: 80px;
  background: rgba(18,18,19,.97) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.16);
  backdrop-filter: blur(24px);
}
header.is-scrolled .navbar-architecture .lg\:h-24,
html[data-dark-hero="false"] header .navbar-architecture .lg\:h-24 { height: 80px !important; }

.btn-primary,
.btn-secondary,
main button[type="submit"] {
  position: relative;
  overflow: hidden;
  border-radius: 2px !important;
  min-height: 52px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, background-color .3s ease, border-color .3s ease !important;
}
.btn-primary:hover,
.btn-secondary:hover,
main button[type="submit"]:hover { transform: translateY(-3px); }
.btn-primary:active,
.btn-secondary:active,
main button[type="submit"]:active { transform: translateY(0) scale(.98); }
.btn-primary::after,
main button[type="submit"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.22) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .65s ease;
  pointer-events: none;
}
.btn-primary:hover::after,
main button[type="submit"]:hover::after { transform: translateX(120%); }

main > section:not(:first-child) > div:not(.absolute) {
  position: relative;
}
main > section:not(:first-child) > div:not(.absolute)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 1px;
  background: rgba(0,103,122,.35);
}
html[data-home="true"] main > section:nth-child(3) > div:not(.absolute)::before,
html[data-home="true"] main > section:nth-child(6) > div:not(.absolute)::before { background: rgba(255,255,255,.32); }

.card-corporate,
main article {
  transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .4s ease, box-shadow .4s ease !important;
}
.card-corporate:hover,
main article:hover { transform: translateY(-6px); }

input, textarea, select {
  min-height: 52px;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease !important;
}
textarea { min-height: 130px; }

@media (max-width: 1023px) {
  html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture { background: rgba(12,18,20,.78) !important; }
  header.is-scrolled .navbar-architecture,
  html[data-dark-hero="false"] header .navbar-architecture { height: 72px; }
  main > section:not(:first-child) > div:not(.absolute)::before { left: 1rem; }
}

@media (max-width: 639px) {
  main > section:not(:first-child) { padding-top: 72px !important; padding-bottom: 72px !important; }
  .btn-primary, .btn-secondary, main button[type="submit"] { width: 100%; }
  main > section:first-child.bg-premium-layer .btn-primary,
  main > section:first-child.bg-premium-layer .btn-secondary { width: auto; }
}

/* Identidad AC Signal: iconos, líneas y microinteracciones propias */
:root {
  --ac-electric: #0b6880;
  --ac-climate: #18a9c2;
  --ac-solar: #087f9a;
  --ac-technical: #005f73;
  --ac-night: #071f2d;
  --ac-ease: cubic-bezier(.16, 1, .3, 1);
}

/* Firma mínima junto al wordmark: línea de energía y nodo activo */
.navbar-architecture a[aria-label="Volver al inicio"]::before {
  width: 1px;
  border-radius: 0;
  background: linear-gradient(180deg, transparent, #36c5d9 20%, #36c5d9 80%, transparent);
  box-shadow: 0 0 16px rgba(54,197,217,.45);
}
.navbar-architecture a[aria-label="Volver al inicio"]::after {
  content: "";
  position: absolute;
  left: -3px;
  top: calc(50% - 4px);
  width: 7px;
  height: 7px;
  border: 1px solid #7de0ec;
  background: #092b36;
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(24,169,194,.08), 0 0 15px rgba(24,169,194,.35);
}
.navbar-architecture a[aria-label="Volver al inicio"] span:last-child {
  letter-spacing: .24em !important;
}
.navbar-architecture .xl\:flex > a::after {
  background: linear-gradient(90deg, transparent, #4ed2e3 22%, #4ed2e3 78%, transparent);
  box-shadow: 0 0 12px rgba(78,210,227,.28);
}

/* Sistema de iconos lineales con el mismo lenguaje en todas las rutas */
.ac-icon-glyph {
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 1.75 !important;
  transition: transform .45s var(--ac-ease), color .3s ease, filter .3s ease;
}
.ac-icon-shell {
  --ac-icon-tone: var(--ac-technical);
  position: relative;
  isolation: isolate;
  overflow: visible !important;
  color: var(--ac-icon-tone) !important;
  border: 1px solid color-mix(in srgb, var(--ac-icon-tone) 24%, white) !important;
  border-radius: 3px 12px 3px 12px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), color-mix(in srgb, var(--ac-icon-tone) 8%, white)) !important;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--ac-icon-tone) 13%, transparent) !important;
  transition: transform .45s var(--ac-ease), border-radius .45s var(--ac-ease), box-shadow .45s ease !important;
}
.ac-icon-shell::before,
.ac-icon-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.ac-icon-shell::before {
  inset: -4px;
  z-index: -1;
  opacity: .58;
  background:
    linear-gradient(var(--ac-icon-tone), var(--ac-icon-tone)) left top / 9px 1px no-repeat,
    linear-gradient(var(--ac-icon-tone), var(--ac-icon-tone)) left top / 1px 9px no-repeat,
    linear-gradient(var(--ac-icon-tone), var(--ac-icon-tone)) right bottom / 9px 1px no-repeat,
    linear-gradient(var(--ac-icon-tone), var(--ac-icon-tone)) right bottom / 1px 9px no-repeat;
}
.ac-icon-shell::after {
  right: -5px;
  top: -5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ac-icon-tone);
  border: 2px solid white;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac-icon-tone) 14%, transparent);
}
.ac-icon-electric { --ac-icon-tone: var(--ac-electric); }
.ac-icon-climate { --ac-icon-tone: var(--ac-climate); }
.ac-icon-solar { --ac-icon-tone: var(--ac-solar); }
.ac-icon-technical { --ac-icon-tone: var(--ac-technical); }
.ac-icon-action {
  --ac-icon-tone: #47c5d6;
  border-radius: 50% !important;
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.18) !important;
  box-shadow: none !important;
}
.ac-icon-action::before,
.ac-icon-action::after { display: none; }

@media (hover: hover) {
  .ac-icon-shell:not(.ac-icon-action):hover,
  a:hover .ac-icon-shell:not(.ac-icon-action),
  .group:hover .ac-icon-shell:not(.ac-icon-action) {
    transform: translateY(-4px) rotate(-2deg) !important;
    border-radius: 12px 3px 12px 3px !important;
    box-shadow: 0 17px 34px color-mix(in srgb, var(--ac-icon-tone) 20%, transparent) !important;
  }
  .ac-icon-shell:not(.ac-icon-action):hover .ac-icon-glyph,
  a:hover .ac-icon-shell:not(.ac-icon-action) .ac-icon-glyph,
  .group:hover .ac-icon-shell:not(.ac-icon-action) .ac-icon-glyph {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--ac-icon-tone) 22%, transparent));
  }
}

/* Luz y energía: una versión más viva de la identidad técnica */
:root {
  --ac-electric-light: #45e2f1;
  --ac-electric-blue: #008fb3;
  --ac-electric-deep: #005f78;
  --ac-ice: #e9fbfd;
  --ac-white-glow: rgba(255,255,255,.94);
}

body {
  background: #fbfeff;
}

/* La portada gana luz sin sacrificar la lectura del texto */
main > section:first-child.bg-premium-layer {
  background-image:
    linear-gradient(90deg, rgba(3,25,31,.74) 0%, rgba(0,44,54,.58) 42%, rgba(0,50,62,.24) 72%, rgba(0,38,47,.34) 100%),
    url('/images/hero-corporativo-2026.webp') !important;
}
main > section:first-child.bg-premium-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 20%, rgba(85,226,241,.24), transparent 22%),
    linear-gradient(112deg, transparent 0 62%, rgba(91,229,242,.11) 62.2%, transparent 62.7%),
    linear-gradient(112deg, transparent 0 72%, rgba(255,255,255,.1) 72.15%, transparent 72.5%);
  mix-blend-mode: screen;
}
main > section:first-child.bg-premium-layer h1 {
  text-shadow: 0 5px 34px rgba(0,0,0,.34), 0 0 42px rgba(0,143,179,.14);
}
main > section:first-child.bg-premium-layer h1 span {
  color: #70e3ef !important;
  text-shadow: 0 0 30px rgba(69,226,241,.18);
}
main > section:first-child.bg-premium-layer .rounded-full {
  background: rgba(5,53,64,.44) !important;
  border-color: rgba(112,227,239,.48) !important;
  box-shadow: inset 0 0 18px rgba(69,226,241,.06), 0 9px 28px rgba(0,18,24,.15);
}

/* CTA principal con apariencia energética, no oscura */
.btn-primary,
main button[type="submit"],
main > section:first-child.bg-premium-layer .btn-primary {
  color: white !important;
  background: linear-gradient(112deg, #006d87 0%, #009fbe 52%, #1cc5d7 100%) !important;
  border-color: rgba(116,236,246,.42) !important;
  box-shadow: 0 14px 34px rgba(0,143,179,.25), 0 0 0 1px rgba(255,255,255,.08) inset !important;
}
.btn-primary:hover,
main button[type="submit"]:hover,
main > section:first-child.bg-premium-layer .btn-primary:hover {
  background: linear-gradient(112deg, #005b73 0%, #008fab 48%, #30d3e1 100%) !important;
  box-shadow: 0 20px 45px rgba(0,159,190,.32), 0 0 24px rgba(69,226,241,.13) !important;
}
.btn-secondary {
  color: var(--ac-electric-deep) !important;
  border-color: rgba(0,143,179,.28) !important;
  background: rgba(255,255,255,.92) !important;
}
main > section:first-child.bg-premium-layer .btn-secondary {
  color: white !important;
  border-color: rgba(117,229,240,.58) !important;
  background: rgba(0,45,56,.2) !important;
  backdrop-filter: blur(12px);
}

/* Corriente luminosa en los separadores de sección */
main section:not(:first-child) h2::after {
  background: linear-gradient(90deg,
    var(--ac-electric-deep) 0 28%,
    var(--ac-electric-blue) 40% 62%,
    transparent 62% 69%,
    var(--ac-electric-light) 69% 84%,
    transparent 84% 90%,
    var(--ac-electric-light) 90% 100%);
  filter: drop-shadow(0 0 5px rgba(69,226,241,.2));
}
@media (prefers-reduced-motion: no-preference) {
  main section:not(:first-child) h2::after {
    background-size: 180% 100%;
    animation: ac-energy-flow 5s ease-in-out infinite alternate;
  }
  .navbar-architecture a[aria-label="Volver al inicio"]::after {
    animation: ac-energy-node 2.8s ease-in-out infinite;
  }
}
@keyframes ac-energy-flow {
  from { background-position: 0 0; }
  to { background-position: 72% 0; }
}
@keyframes ac-energy-node {
  0%, 100% { box-shadow: 0 0 0 4px rgba(24,169,194,.06), 0 0 10px rgba(24,169,194,.24); }
  50% { box-shadow: 0 0 0 7px rgba(24,169,194,.1), 0 0 20px rgba(69,226,241,.48); }
}

/* Tarjetas más blancas, con reflejo y bordes eléctricos */
html[data-home="true"] main > section:nth-child(2) {
  background:
    radial-gradient(circle at 88% 15%, rgba(69,226,241,.11), transparent 25%),
    linear-gradient(180deg, #f9feff, #eef9fb) !important;
}
html[data-home="true"] main > section:nth-child(2) .grid > * {
  background:
    linear-gradient(135deg, rgba(255,255,255,1), rgba(241,252,253,.96)) !important;
  border-color: rgba(0,159,190,.17) !important;
  box-shadow: 0 18px 48px rgba(0,95,115,.1), 0 1px 0 white inset !important;
}
html[data-home="true"] main > section:nth-child(2) .grid > *::before {
  background: linear-gradient(90deg, var(--ac-electric-deep), var(--ac-electric-blue), var(--ac-electric-light)) !important;
  box-shadow: 0 2px 12px rgba(69,226,241,.2);
}
@media (hover: hover) {
  html[data-home="true"] main > section:nth-child(2) .grid > *:hover {
    border-color: rgba(69,226,241,.52) !important;
    box-shadow: 0 28px 62px rgba(0,143,179,.18), 0 0 0 1px rgba(69,226,241,.08) inset !important;
  }
}

.ac-icon-shell {
  background: linear-gradient(145deg, #fff, var(--ac-ice)) !important;
  border-color: rgba(0,159,190,.24) !important;
}
.ac-icon-shell::after {
  box-shadow: 0 0 0 3px rgba(69,226,241,.13), 0 0 13px rgba(69,226,241,.32);
}

/* Bloques oscuros ahora usan azul eléctrico y más profundidad */
html[data-home="true"] main > section:nth-child(3),
html[data-home="true"] main > section:nth-child(6),
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(4) {
  background:
    radial-gradient(circle at 82% 20%, rgba(69,226,241,.2), transparent 24%),
    radial-gradient(circle at 10% 82%, rgba(0,143,179,.15), transparent 26%),
    linear-gradient(120deg, #062c39 0%, #00536a 55%, #00748c 100%) !important;
}
html[data-page="sobre-nosotros"] main > section:first-child {
  background:
    radial-gradient(circle at 78% 22%, rgba(69,226,241,.27), transparent 28%),
    linear-gradient(118deg, #062b38 0%, #005267 56%, #00778e 100%) !important;
}
html[data-page="contacto"] main .lg\:col-span-1 > div:last-child {
  background:
    radial-gradient(circle at 88% 16%, rgba(69,226,241,.22), transparent 29%),
    linear-gradient(135deg, #062d3a, #007087) !important;
}

/* Texto secundario con algo más de contraste y limpieza */
html:not([data-page="home"]) main .text-zinc-500,
html:not([data-page="home"]) main .text-zinc-600 {
  color: #4c626a !important;
}
:is(
  html[data-page="sobre-nosotros"] main > section:first-child,
  html[data-page="aire-acondicionado"] main > section:nth-child(4),
  html[data-page="electricidad"] main > section:nth-child(4),
  html[data-page="fotovoltaica"] main > section:nth-child(4)
) p {
  color: rgba(255,255,255,.76) !important;
}

/* El navbar sólido mantiene el tono vivo al desplazarse */
header.is-scrolled .navbar-architecture {
  background: linear-gradient(110deg, rgba(4,42,52,.98), rgba(0,88,105,.97)) !important;
  box-shadow: 0 14px 40px rgba(0,72,88,.22) !important;
}
header.is-scrolled .navbar-architecture::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(84,224,239,.72), transparent);
}

/* ========================================================================== */
/* Portada V4 — dirección visual definitiva, compacta y azul                  */
/* ========================================================================== */

/* Ninguna animación puede dejar contenido invisible mientras se hace scroll. */
html[data-home="true"] main > section:nth-child(2) .text-center,
html[data-home="true"] main > section:nth-child(2) .grid > *,
html[data-home="true"] main > section:nth-child(4) .grid > *,
html[data-home="true"] main > section:nth-child(2) [style*="opacity"],
html[data-home="true"] main > section:nth-child(4) [style*="opacity"] {
  opacity: 1 !important;
  transform: none !important;
}

/* Se eliminan adornos heredados que producían cuadrados y líneas sin función. */
html[data-home="true"] main > section:not(:first-child) > div:not(.absolute)::before {
  content: none !important;
  display: none !important;
}

/* Hero: coloración azul marino neutra y altura controlada. */
html[data-home="true"] main > section:first-child.bg-premium-layer {
  min-height: 820px !important;
  padding-top: 128px !important;
  padding-bottom: 34px !important;
  background: #07192b !important;
}
html[data-home="true"] main > section:first-child.bg-premium-layer::before {
  display: block !important;
  opacity: 1;
  mix-blend-mode: normal;
  background-image:
    linear-gradient(90deg, rgba(5,17,31,.91) 0%, rgba(7,28,48,.78) 44%, rgba(8,34,56,.22) 72%, rgba(5,17,30,.34) 100%),
    url('/images/hero-corporativo-2026.webp') !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  filter: saturate(.62) contrast(1.06);
}
html[data-home="true"] main > section:first-child.bg-premium-layer::after {
  height: 4px;
  background: linear-gradient(90deg, #082d4c 0 35%, #127bad 35% 68%, #57d5e7 68%) !important;
}

/* Ritmo vertical más editorial y consistente. */
html[data-home="true"] main > section:nth-child(2),
html[data-home="true"] main > section:nth-child(4),
html[data-home="true"] main > section:nth-child(5) {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}
html[data-home="true"] main > section:nth-child(2) {
  background: linear-gradient(180deg, #f8fafc 0%, #eef4f7 100%) !important;
}
html[data-home="true"] main > section:nth-child(2) .text-center {
  margin-bottom: 42px !important;
}
html[data-home="true"] main > section:nth-child(2) .text-center h2,
html[data-home="true"] main > section:nth-child(4) .text-center h2 {
  font-size: clamp(2.55rem, 4.2vw, 3.65rem) !important;
  line-height: 1.03 !important;
}
html[data-home="true"] main > section:nth-child(2) .text-center h2 {
  margin-bottom: 18px !important;
}
html[data-home="true"] main > section:nth-child(2) .text-center h2::after {
  content: none !important;
  display: none !important;
}
html[data-home="true"] main > section:nth-child(2) .text-center h2 + div {
  margin-bottom: 22px !important;
}
html[data-home="true"] main > section:nth-child(2) .text-center p {
  max-width: 62ch;
  margin-inline: auto;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}
html[data-home="true"] main > section:nth-child(2) .grid {
  gap: 24px !important;
}
html[data-home="true"] main > section:nth-child(2) .grid > .group > .relative {
  padding: 28px !important;
}
html[data-home="true"] main > section:nth-child(2) .grid .ac-icon-shell {
  width: 54px !important;
  height: 54px !important;
  margin-bottom: 20px !important;
}
html[data-home="true"] main > section:nth-child(2) .grid h3 {
  margin-bottom: 10px !important;
  font-size: 1.45rem !important;
}
html[data-home="true"] main > section:nth-child(2) .grid h3 + div {
  margin-bottom: 16px !important;
}
html[data-home="true"] main > section:nth-child(2) .grid p {
  margin-bottom: 24px !important;
  font-size: .94rem !important;
  line-height: 1.62 !important;
}

/* Calculador: bloque breve, azul profundo y sin masa verde. */
html[data-home="true"] main > section:nth-child(3) {
  padding: 52px 0 !important;
  background:
    radial-gradient(circle at 88% 14%, rgba(45,163,216,.14), transparent 24%),
    linear-gradient(118deg, #071a2e 0%, #0a3151 58%, #0d5a82 100%) !important;
}
html[data-home="true"] main > section:nth-child(3) > div:not(.absolute) > .flex {
  gap: 36px !important;
}
html[data-home="true"] main > section:nth-child(3) h2 {
  max-width: 17ch;
  font-size: clamp(2.25rem, 3vw, 3.1rem) !important;
}
html[data-home="true"] main > section:nth-child(3) .max-w-sm.bg-white\/10 {
  width: min(100%, 286px) !important;
  padding: 20px !important;
  transform: none !important;
  border-radius: 3px 20px 3px 20px !important;
}
html[data-home="true"] main > section:nth-child(3) .inline-flex.bg-white\/10 {
  width: max-content !important;
  padding: 9px 15px !important;
  transform: none !important;
  border-radius: 999px !important;
}

/* Opiniones: visibles desde el inicio y con menos aire sobrante. */
html[data-home="true"] main > section:nth-child(4) {
  background: #fff !important;
}
html[data-home="true"] main > section:nth-child(4) .text-center {
  margin-bottom: 40px !important;
}
html[data-home="true"] main > section:nth-child(4) .grid {
  gap: 22px !important;
}
html[data-home="true"] main > section:nth-child(4) .grid > * {
  padding: 26px !important;
}
html[data-home="true"] main > section:nth-child(4) .grid > * > .flex {
  margin-bottom: 16px !important;
}
html[data-home="true"] main > section:nth-child(4) .grid > * > p {
  font-size: .96rem !important;
  line-height: 1.65 !important;
}

/* Cobertura: una sola superficie compacta y claramente separada. */
html[data-home="true"] main > section:nth-child(5) {
  background: #f3f7fa !important;
}
html[data-home="true"] main > section:nth-child(5) .bg-zinc-900 {
  padding: 46px !important;
  border-radius: 3px 24px 3px 24px !important;
  background: #0b172a !important;
  box-shadow: 0 24px 54px rgba(7,23,42,.14) !important;
}
html[data-home="true"] main > section:nth-child(5) .relative.z-10.grid {
  gap: 36px !important;
}
html[data-home="true"] main > section:nth-child(5) h2 span {
  color: #62d6e8 !important;
}

/* Cierre: composición lateral estable; el título ya no depende de un círculo. */
html[data-home="true"] main > section:nth-child(6) {
  padding: 48px 0 !important;
  background:
    radial-gradient(circle at 92% 15%, rgba(48,159,210,.15), transparent 26%),
    linear-gradient(118deg, #061629 0%, #0a2946 68%, #0d4668 100%) !important;
}
html[data-home="true"] main > section:nth-child(6) > div.absolute {
  display: none !important;
}
html[data-home="true"] main > section:nth-child(6) > .max-w-5xl {
  width: min(calc(100% - 48px), 1216px) !important;
  max-width: 1216px !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 270px);
  grid-template-areas: "title actions" "copy actions";
  align-items: center;
  gap: 14px 64px;
  padding: 42px 48px !important;
  text-align: left !important;
  border: 1px solid rgba(119,205,229,.18);
  border-radius: 3px 22px 3px 22px;
  background: rgba(255,255,255,.045);
  box-shadow: 0 22px 50px rgba(0,7,17,.2), inset 0 1px rgba(255,255,255,.06);
}
html[data-home="true"] main > section:nth-child(6) > .max-w-5xl::before,
html[data-home="true"] main > section:nth-child(6) > .max-w-5xl::after {
  content: none !important;
  display: none !important;
}
html[data-home="true"] main > section:nth-child(6) h2 {
  grid-area: title;
  max-width: 17ch;
  margin: 0 !important;
  font-size: clamp(2.35rem, 3.7vw, 3.65rem) !important;
  line-height: 1.02 !important;
}
html[data-home="true"] main > section:nth-child(6) h2 span {
  color: #6bdbea !important;
}
html[data-home="true"] main > section:nth-child(6) h2::after {
  margin-left: 0 !important;
  margin-top: 16px !important;
}
html[data-home="true"] main > section:nth-child(6) h2 + p {
  grid-area: copy;
  max-width: 58ch;
  margin: 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
}
html[data-home="true"] main > section:nth-child(6) h2 + p + div {
  grid-area: actions;
  width: 100%;
  display: flex;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 0 !important;
}
html[data-home="true"] main > section:nth-child(6) h2 + p + div > a {
  width: 100%;
  justify-content: center;
}

/* Pie más corto; conserva el logo oficial a un tamaño legible. */
footer {
  padding-top: 54px !important;
  padding-bottom: 34px !important;
}
footer > .max-w-7xl > .grid {
  row-gap: 32px !important;
  margin-bottom: 34px !important;
}
footer .grid > div:first-child > a[href="/"] {
  width: 138px;
  height: 138px;
}
footer .space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 16px !important;
}

header.is-scrolled .navbar-architecture {
  background: linear-gradient(110deg, rgba(5,20,35,.985), rgba(7,47,73,.98)) !important;
  box-shadow: 0 12px 34px rgba(4,18,33,.22) !important;
}

/* ================================================================
   ESTRUCTURA DE PORTADA — MISMO PRINCIPIO QUE AC ENCANTO
   La fotografia pertenece solo al hero. El contenido continua debajo
   en flujo normal, sin fondos fijos ni capas que invadan las secciones.
   ================================================================ */
html[data-home="true"] main {
  position: relative;
  overflow: clip;
  background: #f5f8fa;
}

html[data-home="true"] main > section:first-child.bg-premium-layer {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh !important;
  height: auto !important;
  isolation: isolate;
}

html[data-home="true"] main > section:first-child.bg-premium-layer::before {
  z-index: -2 !important;
}

html[data-home="true"] main > section:first-child.bg-premium-layer::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 20, 35, .3));
}

html[data-home="true"] main > section:first-child.bg-premium-layer > .max-w-7xl {
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
}

html[data-home="true"] main > section:nth-child(n + 2) {
  position: relative;
  z-index: 2;
}

html[data-home="true"] main > section:nth-child(2) {
  border-top: 1px solid rgba(10, 57, 83, .08);
  box-shadow: 0 -18px 48px rgba(4, 18, 33, .07);
}

@media (min-width: 1024px) {
  html[data-home="true"] main > section:first-child.bg-premium-layer {
    padding-top: clamp(116px, 14vh, 148px) !important;
    padding-bottom: clamp(34px, 5vh, 54px) !important;
  }

  html[data-home="true"] main > section:first-child.bg-premium-layer > .max-w-7xl {
    display: flex;
    align-items: center;
  }
}

/*
   En tablet y movil la parte fotografica conserva una altura propia.
   El formulario sigue siendo el mismo elemento y mantiene su posicion
   SEO/DOM, pero aparece sobre una superficie clara inmediatamente debajo.
*/
@media (max-width: 1023px) {
  html[data-home="true"] main > section:first-child.bg-premium-layer {
    --ac-home-stage: clamp(730px, 86svh, 810px);
    min-height: 0 !important;
    padding-top: 96px !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    background: #f2f6f8 !important;
  }

  html[data-home="true"] main > section:first-child.bg-premium-layer::before {
    inset: 0 0 auto !important;
    width: 100% !important;
    height: var(--ac-home-stage) !important;
  }

  html[data-home="true"] main > section:first-child.bg-premium-layer::after {
    top: calc(var(--ac-home-stage) - 112px);
    bottom: auto;
    height: 112px;
  }

  html[data-home="true"] main > section:first-child.bg-premium-layer > .max-w-7xl {
    margin: 0 auto;
    padding-bottom: 0 !important;
  }

  html[data-home="true"] main > section:first-child.bg-premium-layer .grid.lg\:grid-cols-2 {
    gap: 0 !important;
  }

  html[data-home="true"] main > section:first-child.bg-premium-layer .grid.lg\:grid-cols-2 > div:first-child {
    display: flex;
    min-height: calc(var(--ac-home-stage) - 96px);
    align-items: center;
  }

  html[data-home="true"] main > section:first-child.bg-premium-layer .grid.lg\:grid-cols-2 > div:first-child > div {
    width: 100%;
  }

  html[data-home="true"] main > section:first-child.bg-premium-layer .grid.lg\:grid-cols-2 > .flex.justify-center {
    position: relative;
    width: 100%;
    padding: 42px 0 48px !important;
    background: #f2f6f8;
    box-shadow: 0 0 0 100vmax #f2f6f8;
    clip-path: inset(0 -100vmax);
  }

  html[data-home="true"] main > section:first-child.bg-premium-layer .grid.lg\:grid-cols-2 > .flex.justify-center::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(190px, 48vw);
    height: 3px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #009cc4, transparent);
  }
}

@media (max-width: 767px) {
  html[data-home="true"] main > section:first-child.bg-premium-layer {
    --ac-home-stage: clamp(730px, 91svh, 790px);
  }

  html[data-home="true"] main > section:first-child.bg-premium-layer .grid.lg\:grid-cols-2 > .flex.justify-center {
    padding-top: 34px !important;
    padding-bottom: 40px !important;
  }
}

@media (max-width: 359px) {
  html[data-home="true"] main > section:first-child.bg-premium-layer {
    --ac-home-stage: 790px;
  }
}

/* ================================================================
   PALETA FUNCIONAL Y TIPOGRAFIA TECNICA
   Cada especialidad tiene un acento reconocible, sin recurrir al dorado.
   ================================================================ */
:root {
  --ac-cobalt: #2f6fed;
  --ac-cyan-bright: #18b8d2;
  --ac-coral: #f46f4c;
  --ac-soft-warm: #fbfaf7;
  --ac-soft-blue: #eef7fb;
}

/* La firma inferior del navbar sustituye el amarillo heredado. */
.navbar-architecture > .absolute.bottom-0 > div:nth-child(1) {
  background: var(--ac-cobalt) !important;
}
.navbar-architecture > .absolute.bottom-0 > div:nth-child(2) {
  background: var(--ac-cyan-bright) !important;
}
.navbar-architecture > .absolute.bottom-0 > div:nth-child(3) {
  background: var(--ac-coral) !important;
}

/* Titular de portada: menos efectos y una lectura mas directa. */
html[data-home="true"] main > section:first-child.bg-premium-layer h1 {
  max-width: 11ch;
  margin-bottom: 24px !important;
  color: #fff !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: clamp(3.35rem, 5.45vw, 5.15rem) !important;
  font-style: normal !important;
  font-weight: 720 !important;
  line-height: .96 !important;
  letter-spacing: -.055em !important;
  text-wrap: balance;
  text-shadow: 0 3px 20px rgba(0, 8, 18, .28) !important;
}

html[data-home="true"] main > section:first-child.bg-premium-layer h1 span {
  color: #77deeb !important;
  background: none !important;
  font-style: normal !important;
  font-weight: 620 !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

html[data-home="true"] main > section:first-child.bg-premium-layer .hidden.lg\:block > div:first-child {
  padding: 7px 11px !important;
  border-radius: 4px !important;
  border-color: rgba(119, 222, 235, .34) !important;
  background: rgba(5, 27, 46, .5) !important;
  box-shadow: none !important;
  color: #bdeff4 !important;
  letter-spacing: .14em !important;
}

html[data-home="true"] main > section:first-child.bg-premium-layer .hidden.lg\:block > div:first-child span {
  animation: none !important;
  background: var(--ac-cyan-bright) !important;
  box-shadow: 0 0 0 4px rgba(24, 184, 210, .12);
}

html[data-home="true"] main > section:first-child.bg-premium-layer .hidden.lg\:block > .grid.grid-cols-2 > div {
  border-left-width: 3px !important;
  border-left-color: rgba(255, 255, 255, .18) !important;
}
html[data-home="true"] main > section:first-child.bg-premium-layer .hidden.lg\:block > .grid.grid-cols-2 > div:nth-child(1) { border-left-color: var(--ac-cyan-bright) !important; }
html[data-home="true"] main > section:first-child.bg-premium-layer .hidden.lg\:block > .grid.grid-cols-2 > div:nth-child(2) { border-left-color: var(--ac-cobalt) !important; }
html[data-home="true"] main > section:first-child.bg-premium-layer .hidden.lg\:block > .grid.grid-cols-2 > div:nth-child(3) { border-left-color: #78d6e4 !important; }
html[data-home="true"] main > section:first-child.bg-premium-layer .hidden.lg\:block > .grid.grid-cols-2 > div:nth-child(4) { border-left-color: var(--ac-coral) !important; }

html[data-home="true"] main > section:first-child.bg-premium-layer .hidden.lg\:block > .grid.grid-cols-2 > div > span:first-child {
  color: #fff !important;
  font-weight: 700 !important;
}

/* Especialidades: color util, superficies sobrias y texto sin cursivas. */
html[data-home="true"] main > section:nth-child(2) {
  background: var(--ac-soft-warm) !important;
}

html[data-home="true"] main > section:nth-child(2) .text-center h2,
html[data-home="true"] main > section:nth-child(2) .text-center h2 span {
  color: #0a2238 !important;
  font-style: normal !important;
  font-weight: 720 !important;
  letter-spacing: -.04em !important;
}

html[data-home="true"] main > section:nth-child(2) .grid > .group {
  --ac-service-color: var(--ac-cyan-bright);
  --ac-service-soft: #eaf9fc;
}
html[data-home="true"] main > section:nth-child(2) .grid > .group:nth-child(2) {
  --ac-service-color: var(--ac-cobalt);
  --ac-service-soft: #eef3ff;
}
html[data-home="true"] main > section:nth-child(2) .grid > .group:nth-child(3) {
  --ac-service-color: var(--ac-coral);
  --ac-service-soft: #fff0ec;
}

html[data-home="true"] main > section:nth-child(2) .grid > .group > .relative {
  border: 1px solid rgba(10, 34, 56, .09) !important;
  border-top: 3px solid var(--ac-service-color) !important;
  border-radius: 12px !important;
  background: linear-gradient(160deg, #fff 65%, var(--ac-service-soft)) !important;
  box-shadow: 0 16px 38px rgba(10, 34, 56, .075) !important;
}

html[data-home="true"] main > section:nth-child(2) .grid .ac-icon-shell {
  --ac-icon-tone: var(--ac-service-color);
  border-radius: 10px !important;
  background: var(--ac-service-soft) !important;
  box-shadow: none !important;
}

html[data-home="true"] main > section:nth-child(2) .grid .ac-icon-shell::before,
html[data-home="true"] main > section:nth-child(2) .grid .ac-icon-shell::after {
  display: none !important;
}

html[data-home="true"] main > section:nth-child(2) .grid h3 {
  color: #0a2238 !important;
  font-style: normal !important;
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
}

html[data-home="true"] main > section:nth-child(2) .grid h3 + div {
  width: 38px !important;
  background: var(--ac-service-color) !important;
}

html[data-home="true"] main > section:nth-child(2) .grid p {
  color: #526271 !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

html[data-home="true"] main > section:nth-child(2) .grid a {
  border-bottom-color: color-mix(in srgb, var(--ac-service-color) 35%, transparent) !important;
}

html[data-home="true"] main > section:nth-child(2) .grid a svg {
  color: var(--ac-service-color) !important;
}

/* Las tarjetas rapidas del hero mantienen la misma codificacion cromatica. */
html[data-home="true"] main > section:first-child.bg-premium-layer .lg\:hidden .grid > a:nth-child(1) {
  border-left: 4px solid var(--ac-cobalt) !important;
}
html[data-home="true"] main > section:first-child.bg-premium-layer .lg\:hidden .grid > a:nth-child(2) {
  border-left: 4px solid var(--ac-cyan-bright) !important;
}
html[data-home="true"] main > section:first-child.bg-premium-layer .lg\:hidden .grid > a:nth-child(3) {
  border-left: 4px solid var(--ac-coral) !important;
}

html[data-home="true"] main > section:first-child.bg-premium-layer .lg\:hidden .grid > a:nth-child(1) > div:nth-child(2) {
  color: var(--ac-cobalt) !important;
  background: #eef3ff !important;
}
html[data-home="true"] main > section:first-child.bg-premium-layer .lg\:hidden .grid > a:nth-child(2) > div:nth-child(2) {
  color: #087f9d !important;
  background: #eaf9fc !important;
}
html[data-home="true"] main > section:first-child.bg-premium-layer .lg\:hidden .grid > a:nth-child(3) > div:nth-child(2) {
  color: #d95232 !important;
  background: #fff0ec !important;
}

/* Alternancia luminosa para evitar una sucesion de bloques azul verdosos. */
html[data-home="true"] main > section:nth-child(4) {
  background: var(--ac-soft-blue) !important;
}
html[data-home="true"] main > section:nth-child(5) {
  background: #fff !important;
}

html[data-home="true"] main > section:not(:first-child) h2::after {
  width: 48px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: var(--ac-cyan-bright) !important;
  filter: none !important;
  box-shadow: none !important;
}
html[data-home="true"] main > section:nth-child(3) h2::after { background: #78deea !important; }
html[data-home="true"] main > section:nth-child(5) h2::after { background: var(--ac-cobalt) !important; }
html[data-home="true"] main > section:nth-child(6) h2::after { background: var(--ac-coral) !important; }

/* Páginas de servicio: se elimina la serif y la cursiva heredadas. */
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) {
  --ac-page-accent: var(--ac-cyan-bright);
  --ac-page-soft: #eaf9fc;
}
html[data-page="electricidad"] {
  --ac-page-accent: var(--ac-cobalt);
  --ac-page-soft: #eef3ff;
}
html[data-page="fotovoltaica"] {
  --ac-page-accent: var(--ac-coral);
  --ac-page-soft: #fff0ec;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child {
  background:
    radial-gradient(circle at 87% 14%, var(--ac-page-soft), transparent 34%),
    linear-gradient(180deg, #fff, #f8fafc) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child h1 {
  max-width: 14ch;
  margin-inline: auto;
  color: #091f34 !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: clamp(2.65rem, 5vw, 4.65rem) !important;
  font-style: normal !important;
  font-weight: 720 !important;
  line-height: .98 !important;
  letter-spacing: -.05em !important;
  text-wrap: balance;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child h1 + div {
  width: 46px !important;
  height: 3px !important;
  margin-top: 0 !important;
  background: var(--ac-page-accent) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .text-primary {
  color: var(--ac-page-accent) !important;
}

@media (min-width: 1024px) {
  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child h1 {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 1023px) {
  html[data-home="true"] main > section:first-child.bg-premium-layer h1 {
    max-width: 10ch;
    margin-inline: auto;
    font-size: clamp(2.7rem, 11.5vw, 3.65rem) !important;
    line-height: .95 !important;
  }

  html[data-home="true"] main > section:first-child.bg-premium-layer .lg\:hidden > div:first-child > div:first-child {
    border-radius: 4px !important;
    background: rgba(5, 27, 46, .48) !important;
    border-color: rgba(119, 222, 235, .3) !important;
  }

  html[data-home="true"] main > section:first-child.bg-premium-layer .lg\:hidden > div:first-child > div:first-child span {
    color: #c3eef3 !important;
  }
}

@media (max-width: 767px) {
  html[data-home="true"] main > section:first-child.bg-premium-layer {
    min-height: auto !important;
    padding-top: 96px !important;
    padding-bottom: 24px !important;
    background: #07192b !important;
  }
  html[data-home="true"] main > section:first-child.bg-premium-layer::before {
    background-image:
      linear-gradient(180deg, rgba(5,17,31,.62) 0%, rgba(7,28,48,.72) 54%, rgba(5,17,31,.9) 100%),
      url('/images/hero-corporativo-2026.webp') !important;
    background-position: 60% center !important;
    filter: saturate(.58) contrast(1.06);
  }
  html[data-home="true"] main > section:first-child .max-w-7xl > .grid {
    gap: 28px !important;
  }
  html[data-home="true"] main > section:first-child .lg\:hidden.flex.flex-col {
    padding-top: 12px !important;
    padding-bottom: 0 !important;
  }
  html[data-home="true"] main > section:first-child .lg\:hidden.flex.flex-col > .text-center {
    margin-bottom: 22px !important;
  }
  html[data-home="true"] main > section:first-child .lg\:hidden.flex.flex-col > .grid {
    margin-bottom: 22px !important;
    gap: 10px !important;
  }
  html[data-home="true"] main > section:first-child .max-w-md > div:first-child {
    padding: 16px 18px !important;
  }
  html[data-home="true"] main > section:first-child .max-w-md > div:last-child {
    padding: 20px !important;
  }
  html[data-home="true"] main > section:first-child .max-w-md form > * + * {
    margin-top: 14px !important;
  }
  html[data-home="true"] main > section:first-child .max-w-md form .text-center.py-2 {
    padding-block: 2px !important;
  }

  html[data-home="true"] main > section:nth-child(2),
  html[data-home="true"] main > section:nth-child(4),
  html[data-home="true"] main > section:nth-child(5) {
    padding-top: 46px !important;
    padding-bottom: 46px !important;
  }
  html[data-home="true"] main > section:nth-child(2) .text-center,
  html[data-home="true"] main > section:nth-child(4) .text-center {
    margin-bottom: 30px !important;
  }
  html[data-home="true"] main > section:nth-child(2) .text-center h2,
  html[data-home="true"] main > section:nth-child(4) .text-center h2 {
    font-size: clamp(2.15rem, 10.5vw, 2.7rem) !important;
  }

  /* Carriles táctiles: las tres tarjetas siguen presentes sin alargar la página. */
  html[data-home="true"] main > section:nth-child(2) .grid,
  html[data-home="true"] main > section:nth-child(4) .grid {
    width: calc(100% + 16px);
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(82%, 82%);
    gap: 14px !important;
    margin-right: -16px;
    padding: 4px 16px 16px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  html[data-home="true"] main > section:nth-child(2) .grid::-webkit-scrollbar,
  html[data-home="true"] main > section:nth-child(4) .grid::-webkit-scrollbar {
    display: none;
  }
  html[data-home="true"] main > section:nth-child(2) .grid > *,
  html[data-home="true"] main > section:nth-child(4) .grid > * {
    min-width: 0;
    scroll-snap-align: start;
  }
  html[data-home="true"] main > section:nth-child(2) .grid > .group > .relative {
    padding: 22px !important;
  }
  html[data-home="true"] main > section:nth-child(2) .grid p {
    margin-bottom: 20px !important;
    font-size: .9rem !important;
  }
  html[data-home="true"] main > section:nth-child(4) .grid > * {
    padding: 22px !important;
  }

  html[data-home="true"] main > section:nth-child(3) {
    padding: 44px 0 !important;
  }
  html[data-home="true"] main > section:nth-child(3) > div:not(.absolute) > .flex {
    gap: 26px !important;
  }
  html[data-home="true"] main > section:nth-child(3) h2 {
    max-width: none;
    font-size: clamp(2.05rem, 10vw, 2.55rem) !important;
  }
  html[data-home="true"] main > section:nth-child(3) .max-w-sm.bg-white\/10 {
    width: min(100%, 286px) !important;
    padding: 17px !important;
  }
  html[data-home="true"] main > section:nth-child(3) .max-w-sm.bg-white\/10 > div:first-child {
    margin-bottom: 10px !important;
    padding-bottom: 9px !important;
  }
  html[data-home="true"] main > section:nth-child(3) .max-w-sm.bg-white\/10 > .space-y-4 > div:nth-child(-n+2) {
    display: none !important;
  }
  html[data-home="true"] main > section:nth-child(3) .max-w-sm.bg-white\/10 > .space-y-4 > div:last-child {
    margin-top: 0 !important;
    padding-top: 4px !important;
  }
  html[data-home="true"] main > section:nth-child(3) .max-w-sm.bg-white\/10 .text-5xl {
    font-size: 2.6rem !important;
  }

  html[data-home="true"] main > section:nth-child(5) .bg-zinc-900 {
    padding: 28px !important;
    border-radius: 3px 18px 3px 18px !important;
  }
  html[data-home="true"] main > section:nth-child(5) .relative.z-10.grid {
    gap: 28px !important;
  }
  html[data-home="true"] main > section:nth-child(5) h2 {
    font-size: 2.25rem !important;
  }
  html[data-home="true"] main > section:nth-child(5) .grid.grid-cols-2 > div {
    padding: 18px !important;
  }

  html[data-home="true"] main > section:nth-child(6) {
    padding: 40px 0 !important;
  }
  html[data-home="true"] main > section:nth-child(6) > .max-w-5xl {
    width: min(calc(100% - 32px), 1216px) !important;
    display: block;
    padding: 30px 22px !important;
    text-align: left !important;
    border-radius: 3px 18px 3px 18px;
  }
  html[data-home="true"] main > section:nth-child(6) h2 {
    max-width: none;
    margin-bottom: 18px !important;
    font-size: clamp(2.1rem, 10vw, 2.7rem) !important;
  }
  html[data-home="true"] main > section:nth-child(6) h2 + p {
    margin-bottom: 24px !important;
    font-size: 1rem !important;
  }
  html[data-home="true"] main > section:nth-child(6) h2 + p + div {
    gap: 10px !important;
  }

  footer {
    padding-top: 46px !important;
    padding-bottom: 106px !important;
  }
  footer > .max-w-7xl > .grid {
    grid-template-columns: 1fr 1fr !important;
    column-gap: 20px !important;
    row-gap: 34px !important;
    margin-bottom: 30px !important;
  }
  footer > .max-w-7xl > .grid > div:first-child,
  footer > .max-w-7xl > .grid > div:last-child {
    grid-column: 1 / -1;
  }
  footer .grid > div:first-child > a[href="/"] {
    width: 126px;
    height: 126px;
  }
  footer h3 {
    margin-bottom: 18px !important;
    font-size: 1.35rem !important;
  }
  footer ul {
    font-size: .8rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  html[data-home="true"] main > section:first-child.bg-premium-layer {
    min-height: auto !important;
    padding-top: 100px !important;
    padding-bottom: 28px !important;
    background: #07192b !important;
  }
  html[data-home="true"] main > section:first-child.bg-premium-layer::before {
    background-image:
      linear-gradient(180deg, rgba(5,17,31,.6) 0%, rgba(7,28,48,.7) 58%, rgba(5,17,31,.88) 100%),
      url('/images/hero-corporativo-2026.webp') !important;
    background-position: 58% center !important;
    filter: saturate(.6) contrast(1.06);
  }
  html[data-home="true"] main > section:first-child .max-w-7xl > .grid {
    gap: 30px !important;
  }
  html[data-home="true"] main > section:first-child .lg\:hidden.flex.flex-col {
    padding-top: 14px !important;
    padding-bottom: 0 !important;
  }
  html[data-home="true"] main > section:first-child .lg\:hidden.flex.flex-col > .text-center,
  html[data-home="true"] main > section:first-child .lg\:hidden.flex.flex-col > .grid {
    margin-bottom: 24px !important;
  }
  html[data-home="true"] main > section:first-child .max-w-md > div:first-child {
    padding: 17px 20px !important;
  }
  html[data-home="true"] main > section:first-child .max-w-md > div:last-child {
    padding: 22px !important;
  }
  html[data-home="true"] main > section:first-child .max-w-md form > * + * {
    margin-top: 14px !important;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  html[data-home="true"] main > section:nth-child(2) .grid,
  html[data-home="true"] main > section:nth-child(4) .grid {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: 46%;
    gap: 18px !important;
    padding: 4px 4px 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  html[data-home="true"] main > section:nth-child(2) .grid::-webkit-scrollbar,
  html[data-home="true"] main > section:nth-child(4) .grid::-webkit-scrollbar {
    display: none;
  }
  html[data-home="true"] main > section:nth-child(2) .grid > *,
  html[data-home="true"] main > section:nth-child(4) .grid > * {
    scroll-snap-align: start;
  }
}

.ac-mobile-rail:focus-visible {
  outline: 3px solid rgba(24,169,194,.36);
  outline-offset: 5px;
}

/* El formulario de llamada ya tiene contraste propio: eliminamos el halo circular redundante. */
html[data-home="true"] main > section:first-child.bg-premium-layer
  .flex.justify-center.lg\:justify-end.relative > .absolute.inset-0 {
  display: none !important;
}

/* Navbar adaptativo al estilo AC Encanto: transparente arriba, sólido al desplazarse */
header:not(.is-scrolled),
header:not(.is-scrolled) .navbar-architecture {
  box-shadow: none !important;
}
header:not(.is-scrolled) .navbar-architecture {
  height: 100px;
  background: transparent !important;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
header:not(.is-scrolled) .navbar-architecture .lg\:h-24 {
  height: 100px !important;
}

/* Portadas oscuras: versión clara del wordmark y la navegación */
html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture a[aria-label="Volver al inicio"] span:first-child,
header.is-scrolled .navbar-architecture a[aria-label="Volver al inicio"] span:first-child {
  color: white !important;
}
html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture a[aria-label="Volver al inicio"] span:last-child,
header.is-scrolled .navbar-architecture a[aria-label="Volver al inicio"] span:last-child {
  color: #59d2e2 !important;
}
html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture img[src*="canary-islands-map"],
header.is-scrolled .navbar-architecture img[src*="canary-islands-map"] {
  filter: brightness(0) invert(1) !important;
  opacity: .34 !important;
}
html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture .xl\:flex > a,
header.is-scrolled .navbar-architecture .xl\:flex > a {
  color: rgba(255,255,255,.72) !important;
}
html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture .xl\:flex > a:hover,
html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture .xl\:flex > a.bg-white\/10,
header.is-scrolled .navbar-architecture .xl\:flex > a:hover,
header.is-scrolled .navbar-architecture .xl\:flex > a.bg-white\/10 {
  color: #67d9e8 !important;
}
html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture .notranslate button,
header.is-scrolled .navbar-architecture .notranslate button {
  color: rgba(255,255,255,.82) !important;
  border-color: rgba(255,255,255,.2) !important;
  background: transparent !important;
}
html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture .notranslate button.bg-white,
header.is-scrolled .navbar-architecture .notranslate button.bg-white {
  color: #071f2d !important;
  background: #55cada !important;
  border-color: #55cada !important;
}

/* Cabeceras claras: navbar transparente con tinta corporativa */
html[data-dark-hero="false"] header:not(.is-scrolled) .navbar-architecture {
  background: transparent !important;
  border-bottom-color: rgba(0,62,77,.08);
}
html[data-dark-hero="false"] header:not(.is-scrolled) .navbar-architecture a[aria-label="Volver al inicio"] span:first-child {
  color: var(--ac-night) !important;
}
html[data-dark-hero="false"] header:not(.is-scrolled) .navbar-architecture a[aria-label="Volver al inicio"] span:last-child {
  color: var(--ac-technical) !important;
}
html[data-dark-hero="false"] header:not(.is-scrolled) .navbar-architecture img[src*="canary-islands-map"] {
  filter: none !important;
  opacity: .24 !important;
}
html[data-dark-hero="false"] header:not(.is-scrolled) .navbar-architecture .xl\:flex > a {
  color: rgba(7,31,45,.68) !important;
}
html[data-dark-hero="false"] header:not(.is-scrolled) .navbar-architecture .xl\:flex > a:hover,
html[data-dark-hero="false"] header:not(.is-scrolled) .navbar-architecture .xl\:flex > a.bg-white\/10 {
  color: var(--ac-technical) !important;
}
html[data-dark-hero="false"] header:not(.is-scrolled) .navbar-architecture .xl\:flex > .h-4 {
  background: rgba(7,31,45,.16) !important;
}
html[data-dark-hero="false"] header:not(.is-scrolled) .navbar-architecture .notranslate button {
  color: var(--ac-night) !important;
  border-color: rgba(7,31,45,.16) !important;
  background: rgba(255,255,255,.54) !important;
}
html[data-dark-hero="false"] header:not(.is-scrolled) .navbar-architecture .notranslate button.bg-white {
  color: white !important;
  background: var(--ac-technical) !important;
  border-color: var(--ac-technical) !important;
}

/* Estado compacto común después del primer desplazamiento */
header.is-scrolled .navbar-architecture {
  height: 80px;
  background: rgba(7,31,36,.965) !important;
  border-bottom-color: rgba(255,255,255,.08);
  box-shadow: 0 14px 38px rgba(0,0,0,.18) !important;
  backdrop-filter: blur(22px) saturate(1.08);
}
header.is-scrolled .navbar-architecture .lg\:h-24 {
  height: 80px !important;
}

@media (max-width: 1023px) {
  header:not(.is-scrolled) .navbar-architecture,
  header:not(.is-scrolled) .navbar-architecture .lg\:h-24 {
    height: 80px !important;
  }
  header.is-scrolled .navbar-architecture,
  header.is-scrolled .navbar-architecture .lg\:h-24 {
    height: 72px !important;
  }
  html[data-dark-hero="false"] header:not(.is-scrolled) .navbar-architecture .xl\:hidden a {
    color: var(--ac-technical) !important;
    background: rgba(255,255,255,.58) !important;
    border-color: rgba(0,95,115,.16) !important;
  }
  html[data-dark-hero="false"] header:not(.is-scrolled) .navbar-architecture .xl\:hidden button {
    color: white !important;
    background: var(--ac-technical) !important;
    border-color: var(--ac-technical) !important;
  }
  html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture .xl\:hidden a,
  header.is-scrolled .navbar-architecture .xl\:hidden a {
    color: white !important;
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.18) !important;
  }
  html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture .xl\:hidden button,
  header.is-scrolled .navbar-architecture .xl\:hidden button {
    color: #071f2d !important;
    background: #55cada !important;
    border-color: #55cada !important;
  }
}

/* Las tarjetas rápidas de la portada comparten una sola identidad cromática */
html[data-home="true"] main > section:first-child.bg-premium-layer .grid > a {
  border: 1px solid rgba(116,205,219,.28) !important;
  border-radius: 3px 18px 3px 18px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(239,250,252,.94)) !important;
  box-shadow: 0 16px 40px rgba(0,26,34,.16) !important;
}
html[data-home="true"] main > section:first-child.bg-premium-layer .grid > a > div:nth-child(2) {
  color: var(--ac-technical) !important;
  background: #eef9fb !important;
}
html[data-home="true"] main > section:first-child.bg-premium-layer .grid > a::after {
  content: "";
  position: absolute;
  inset: auto 16px 0 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24,169,194,.58), transparent);
  transform: scaleX(.28);
  transition: transform .45s var(--ac-ease);
}
html[data-home="true"] main > section:first-child.bg-premium-layer .grid > a:hover::after { transform: scaleX(1); }

/* Línea de sección tipo señal: tramo, pausa y pulso */
main section:not(:first-child) h2::after {
  width: 5.4rem;
  height: 3px;
  border-radius: 0;
  background: linear-gradient(90deg,
    var(--ac-technical) 0 62%,
    transparent 62% 70%,
    var(--ac-climate) 70% 84%,
    transparent 84% 91%,
    var(--ac-climate) 91% 100%);
  box-shadow: none;
}

/* Superficies técnicas, ligeras y reconocibles */
.ac-surface,
main article,
main .card-corporate {
  outline: 1px solid rgba(0,95,115,.035);
  outline-offset: -7px;
  border-top-color: rgba(24,169,194,.32) !important;
}
@media (hover: hover) {
  .ac-surface:hover,
  main article:hover,
  main .card-corporate:hover {
    outline-color: rgba(24,169,194,.14);
    border-top-color: var(--ac-climate) !important;
  }
}

/* Botones: carril de energía y desplazamiento contenido */
.btn-primary,
.btn-secondary,
main button[type="submit"] {
  isolation: isolate;
  border-radius: 3px 14px 3px 14px !important;
}
.btn-primary::before,
.btn-secondary::before,
main button[type="submit"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #68d9e8 25%, #68d9e8 75%, transparent);
  transform: scaleX(.24);
  transition: transform .42s var(--ac-ease);
}
.btn-primary:hover::before,
.btn-secondary:hover::before,
main button[type="submit"]:hover::before { transform: scaleX(1); }
.btn-primary svg,
.btn-secondary svg,
main button[type="submit"] svg { transition: transform .35s var(--ac-ease); }
.btn-primary:hover svg,
.btn-secondary:hover svg,
main button[type="submit"]:hover svg { transform: translateX(4px); }

/* Fotografía de servicio con corte técnico; el distintivo queda integrado */
main img[src*="/images/services/"] {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  filter: saturate(.9) contrast(1.03);
}
main img[src*="/images/services/"] + div {
  border-radius: 3px 16px 3px 16px !important;
  border: 1px solid rgba(91,202,218,.16);
  box-shadow: 0 22px 48px rgba(3,28,41,.2) !important;
}

/* Formularios: foco de marca y mejor lectura del estado activo */
input:hover,
textarea:hover,
select:hover { border-color: rgba(24,169,194,.48) !important; }
input:focus,
textarea:focus,
select:focus {
  border-color: var(--ac-climate) !important;
  box-shadow: 0 0 0 3px rgba(24,169,194,.11), 0 10px 28px rgba(0,95,115,.08) !important;
}

footer .grid > div:first-child > a[href="/"] {
  outline: 1px solid rgba(126,224,236,.34);
  outline-offset: 7px;
  box-shadow: 0 18px 45px rgba(0,0,0,.24), 0 0 0 13px rgba(24,169,194,.035);
}

@media (max-width: 639px) {
  .ac-icon-shell::before { inset: -3px; }
  html[data-home="true"] main > section:first-child.bg-premium-layer .grid > a {
    border-radius: 3px 15px 3px 15px !important;
  }
  .btn-primary,
  .btn-secondary,
  main button[type="submit"] { border-radius: 3px 12px 3px 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ac-icon-glyph,
  .ac-icon-shell,
  .btn-primary::before,
  .btn-secondary::before,
  main button[type="submit"]::before { transition: none !important; }
}

/* Integración completa de las páginas interiores */
html:not([data-page="home"]) main {
  background: #fff;
}
html:not([data-page="home"]) main > .ac-section {
  position: relative;
}
html:not([data-page="home"]) main > .ac-section:not(:last-child) {
  border-bottom: 1px solid rgba(0,95,115,.08) !important;
}
html:not([data-page="home"]) main h1 {
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -.035em !important;
  line-height: 1.02 !important;
}
html:not([data-page="home"]) main h1 span {
  color: var(--ac-climate) !important;
}

/* Sobre nosotros: relato, valores y equipo en una misma dirección editorial */
html[data-page="sobre-nosotros"] main > section:first-child {
  padding-top: clamp(138px, 15vw, 210px) !important;
  padding-bottom: clamp(88px, 10vw, 132px) !important;
  background:
    radial-gradient(circle at 78% 22%, rgba(24,169,194,.2), transparent 27%),
    linear-gradient(118deg, #071f2d 0%, #063743 52%, #005c6d 100%) !important;
  color: white;
}
html[data-page="sobre-nosotros"] main > section:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background:
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px) 0 0 / 92px 100%,
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px) 0 0 / 100% 92px;
  mask-image: linear-gradient(90deg, transparent, black 55%, black);
}
html[data-page="sobre-nosotros"] main > section:first-child > div.absolute {
  display: block !important;
  left: auto !important;
  right: 0 !important;
  width: 45% !important;
  opacity: .11 !important;
  filter: saturate(.55) contrast(1.08);
  mask-image: linear-gradient(90deg, transparent, black 45%);
}
html[data-page="sobre-nosotros"] main > section:first-child > div.absolute img {
  filter: grayscale(1) contrast(1.08) !important;
}
html[data-page="sobre-nosotros"] main > section:first-child .max-w-3xl {
  position: relative;
  max-width: 860px;
  margin-bottom: clamp(54px, 7vw, 88px) !important;
}
html[data-page="sobre-nosotros"] main > section:first-child .max-w-3xl::before {
  content: "AC · TENERIFE";
  display: block;
  width: max-content;
  margin: 0 auto 22px;
  padding: 7px 12px 7px 14px;
  border: 1px solid rgba(126,224,236,.28);
  color: #8fe0ec;
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
}
html[data-page="sobre-nosotros"] main > section:first-child .max-w-3xl > span {
  color: #8fe0ec !important;
  letter-spacing: .24em !important;
}
html[data-page="sobre-nosotros"] main > section:first-child h1 {
  color: white !important;
  font-size: clamp(2.8rem, 5.5vw, 5.1rem) !important;
  max-width: 13ch;
  margin-inline: auto;
}
html[data-page="sobre-nosotros"] main > section:first-child .max-w-3xl > p {
  color: rgba(255,255,255,.72) !important;
  max-width: 680px;
  margin-inline: auto;
}
html[data-page="sobre-nosotros"] main > section:first-child .max-w-7xl > .grid {
  position: relative;
  z-index: 2;
  gap: 1px !important;
  padding: 1px;
  background: rgba(130,224,236,.22);
  box-shadow: 0 32px 80px rgba(0,13,19,.3);
}
html[data-page="sobre-nosotros"] main > section:first-child .max-w-7xl > .grid > div {
  position: relative;
  margin: 0;
  padding: clamp(28px, 4vw, 46px) !important;
  border: 0 !important;
  background: rgba(255,255,255,.97) !important;
  box-shadow: none !important;
  overflow: hidden;
}
html[data-page="sobre-nosotros"] main > section:first-child .max-w-7xl > .grid > div::after {
  position: absolute;
  right: 18px;
  top: 12px;
  color: rgba(0,95,115,.08);
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  line-height: 1;
}
html[data-page="sobre-nosotros"] main > section:first-child .max-w-7xl > .grid > div:nth-child(1)::after { content: "01"; }
html[data-page="sobre-nosotros"] main > section:first-child .max-w-7xl > .grid > div:nth-child(2)::after { content: "02"; }
html[data-page="sobre-nosotros"] main > section:first-child .max-w-7xl > .grid > div:nth-child(3)::after { content: "03"; }
html[data-page="sobre-nosotros"] main > section:first-child .grid h3 { color: var(--ac-night) !important; }
html[data-page="sobre-nosotros"] main > section:first-child .grid p { color: #52666c !important; }

html[data-page="sobre-nosotros"] main > section:nth-child(2) {
  padding-block: clamp(92px, 11vw, 150px) !important;
  background:
    radial-gradient(circle at 8% 88%, rgba(24,169,194,.09), transparent 28%),
    linear-gradient(180deg, #fff, #f5fafb) !important;
}
html[data-page="sobre-nosotros"] main > section:nth-child(2) > div::before {
  width: 58px;
  background: linear-gradient(90deg, var(--ac-technical) 0 68%, transparent 68% 80%, var(--ac-climate) 80%);
}
html[data-page="sobre-nosotros"] main > section:nth-child(2) .grid {
  gap: clamp(48px, 7vw, 96px) !important;
}
html[data-page="sobre-nosotros"] main > section:nth-child(2) .grid > div:first-child {
  position: relative;
  padding: 12px 0 0 12px;
}
html[data-page="sobre-nosotros"] main > section:nth-child(2) .grid > div:first-child::before {
  content: "";
  position: absolute;
  inset: 0 26px 26px 0;
  background: linear-gradient(145deg, #daf3f6, #0a7185);
  transform: translate(-12px, -12px);
  opacity: .88;
}
html[data-page="sobre-nosotros"] main > section:nth-child(2) .aspect-\[4\/3\] {
  position: relative;
  border: 8px solid white;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  box-shadow: 0 30px 70px rgba(0,55,69,.18) !important;
}
html[data-page="sobre-nosotros"] main > section:nth-child(2) .aspect-\[4\/3\] img {
  filter: saturate(.88) contrast(1.03);
}
html[data-page="sobre-nosotros"] main > section:nth-child(2) .space-y-8 {
  padding-left: clamp(0px, 2.5vw, 36px);
}
html[data-page="sobre-nosotros"] main > section:nth-child(2) .space-y-8 > div:first-child {
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0,95,115,.12);
}
html[data-page="sobre-nosotros"] main > section:nth-child(2) h2 {
  font-size: clamp(2.25rem, 4vw, 3.4rem) !important;
}
html[data-page="sobre-nosotros"] main > section:nth-child(2) li {
  align-items: flex-start;
  gap: 16px !important;
  padding: 15px 16px;
  border: 1px solid rgba(0,95,115,.08);
  background: rgba(255,255,255,.72);
  transition: transform .35s var(--ac-ease), border-color .3s ease, background-color .3s ease;
}
html[data-page="sobre-nosotros"] main > section:nth-child(2) li > div {
  min-width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  color: var(--ac-technical) !important;
  background: #e9f7f9 !important;
  border-radius: 3px 9px 3px 9px !important;
}
@media (hover: hover) {
  html[data-page="sobre-nosotros"] main > section:nth-child(2) li:hover {
    transform: translateX(7px);
    border-color: rgba(24,169,194,.28);
    background: white;
  }
}

/* Servicios: misma secuencia visual en climatización, electricidad y solar */
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child {
  background:
    radial-gradient(circle at 12% 28%, rgba(24,169,194,.08), transparent 23%),
    linear-gradient(180deg, #fff 0%, #fbfdfd 100%) !important;
}
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child h1 {
  max-width: 11ch;
}
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) {
  background:
    linear-gradient(rgba(0,103,122,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,103,122,.025) 1px, transparent 1px),
    #f5fafb !important;
  background-size: 54px 54px !important;
}
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) .grid > div {
  position: relative;
  border-top: 2px solid var(--ac-climate) !important;
  outline: 1px solid rgba(0,95,115,.04);
  outline-offset: -7px;
}
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) .grid > div:nth-child(2) { border-top-color: var(--ac-electric) !important; }
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) .grid > div:nth-child(3) { border-top-color: var(--ac-solar) !important; }
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(3) .grid > div {
  padding: 22px 0;
  border-bottom: 1px solid rgba(0,95,115,.11);
}
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(4) {
  background:
    radial-gradient(circle at 82% 22%, rgba(24,169,194,.16), transparent 26%),
    linear-gradient(120deg, #071f2d, #004d5d) !important;
}
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(4) h2 { color: white !important; }
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(4) p { color: rgba(255,255,255,.7) !important; }

/* Contacto: bloque de confianza y formulario unidos visualmente */
html[data-page="contacto"] main > section:first-child {
  background:
    radial-gradient(circle at 85% 10%, rgba(24,169,194,.12), transparent 24%),
    linear-gradient(180deg, #fff, #f3f9fa) !important;
}
html[data-page="contacto"] main > section:first-child > div > .text-center {
  position: relative;
  margin-bottom: clamp(56px, 7vw, 86px) !important;
}
html[data-page="contacto"] main > section:first-child > div > .text-center::before {
  content: "RESPUESTA PERSONAL · TENERIFE";
  display: block;
  margin-bottom: 18px;
  color: var(--ac-technical);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .25em;
}
html[data-page="contacto"] main form,
html[data-page="contacto"] main .lg\:col-span-1 > div {
  border-color: rgba(0,95,115,.11) !important;
  box-shadow: 0 24px 64px rgba(0,61,74,.1) !important;
}
html[data-page="contacto"] main form {
  border-top: 3px solid var(--ac-climate) !important;
  border-radius: 3px 20px 3px 20px !important;
}
html[data-page="contacto"] main .lg\:col-span-1 > div:first-child {
  border-radius: 3px 18px 3px 18px !important;
}
html[data-page="contacto"] main .lg\:col-span-1 > div:last-child {
  background: linear-gradient(135deg, #071f2d, #064c5c) !important;
  border-radius: 3px 18px 3px 18px !important;
}

/* Noticias: el estado vacío también se siente terminado */
html[data-page="noticias"] main > section:first-child {
  min-height: 72vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(24,169,194,.1), transparent 23%),
    linear-gradient(180deg, #fff, #f6fafb) !important;
}
html[data-page="noticias"] main > section:first-child .py-20 {
  position: relative;
  padding: clamp(70px, 10vw, 120px) 24px !important;
  border: 1px solid rgba(0,95,115,.1) !important;
  border-radius: 3px 22px 3px 22px !important;
  background:
    linear-gradient(90deg, rgba(0,103,122,.03) 1px, transparent 1px),
    linear-gradient(rgba(0,103,122,.03) 1px, transparent 1px),
    white !important;
  background-size: 42px 42px !important;
  box-shadow: 0 24px 70px rgba(0,61,74,.08);
}
html[data-page="noticias"] main > section:first-child .py-20::before {
  content: "AC";
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  color: white;
  background: var(--ac-technical);
  border-radius: 3px 15px 3px 15px;
  font-family: "Cinzel", serif;
  letter-spacing: .08em;
  box-shadow: 0 12px 26px rgba(0,95,115,.2);
}

/* Legales: lectura editorial y navegación visualmente integrada */
:is(html[data-page="aviso-legal"], html[data-page="privacidad"], html[data-page="cookies"]) main > section:first-child {
  margin-inline: auto;
  padding-top: clamp(138px, 15vw, 205px) !important;
  padding-bottom: clamp(80px, 10vw, 130px) !important;
}
:is(html[data-page="aviso-legal"], html[data-page="privacidad"], html[data-page="cookies"]) main > section:first-child > h1 {
  position: relative;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0,95,115,.13);
}
:is(html[data-page="aviso-legal"], html[data-page="privacidad"], html[data-page="cookies"]) main > section:first-child > h1::before {
  content: "DOCUMENTACIÓN · AC SERVICIOS";
  display: block;
  margin-bottom: 14px;
  color: var(--ac-technical);
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
}
:is(html[data-page="aviso-legal"], html[data-page="privacidad"], html[data-page="cookies"]) main .prose h2 {
  padding-top: 20px;
  color: var(--ac-night) !important;
  font-size: clamp(1.55rem, 3vw, 2rem) !important;
}
:is(html[data-page="aviso-legal"], html[data-page="privacidad"], html[data-page="cookies"]) main .prose h2::after {
  width: 42px;
  margin-top: 12px;
}
:is(html[data-page="aviso-legal"], html[data-page="privacidad"], html[data-page="cookies"]) main .prose strong {
  color: var(--ac-technical);
}

@media (max-width: 767px) {
  html[data-page="sobre-nosotros"] main > section:first-child {
    padding-top: 118px !important;
  }
  html[data-page="sobre-nosotros"] main > section:first-child > div.absolute { display: none !important; }
  html[data-page="sobre-nosotros"] main > section:first-child .max-w-7xl > .grid {
    gap: 10px !important;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  html[data-page="sobre-nosotros"] main > section:first-child .max-w-7xl > .grid > div {
    border-radius: 3px 16px 3px 16px !important;
  }
  html[data-page="sobre-nosotros"] main > section:nth-child(2) .grid > div:first-child {
    padding: 8px 0 0 8px;
  }
  html[data-page="sobre-nosotros"] main > section:nth-child(2) .space-y-8 { padding-left: 0; }
  html[data-page="sobre-nosotros"] main > section:nth-child(2) h2::after { margin-left: 0; }
  html[data-page="sobre-nosotros"] main > section:nth-child(2) li { text-align: left; }
  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(3) .grid > div {
    padding: 18px 0;
  }
}

/* Prioridad final de la paleta luminosa sobre los fondos editoriales */
html[data-page="sobre-nosotros"] main > section:first-child {
  background:
    radial-gradient(circle at 78% 22%, rgba(69,226,241,.27), transparent 28%),
    linear-gradient(118deg, #062b38 0%, #005267 56%, #00778e 100%) !important;
}
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(4) {
  background:
    radial-gradient(circle at 82% 20%, rgba(69,226,241,.2), transparent 24%),
    radial-gradient(circle at 10% 82%, rgba(0,143,179,.15), transparent 26%),
    linear-gradient(120deg, #062c39 0%, #00536a 55%, #00748c 100%) !important;
}
html[data-page="contacto"] main .lg\:col-span-1 > div:last-child {
  background:
    radial-gradient(circle at 88% 16%, rgba(69,226,241,.22), transparent 29%),
    linear-gradient(135deg, #062d3a, #007087) !important;
}
header.is-scrolled .navbar-architecture {
  background: linear-gradient(110deg, rgba(4,42,52,.98), rgba(0,88,105,.97)) !important;
  box-shadow: 0 14px 40px rgba(0,72,88,.22) !important;
}
header.is-scrolled .navbar-architecture::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(84,224,239,.72), transparent);
}

/* Prioridad absoluta del navbar azul, sin dominante verde. */
header.is-scrolled .navbar-architecture {
  background: linear-gradient(110deg, rgba(5,20,35,.985), rgba(7,47,73,.98)) !important;
  box-shadow: 0 12px 34px rgba(4,18,33,.22) !important;
}

/* ========================================================================== */
/* PAGINAS INTERIORES V5 — SISTEMA VISUAL AC SERVICIOS                        */
/* ========================================================================== */

/* Base editorial compartida: clara, técnica y con ritmo más compacto. */
:is(
  html[data-page="sobre-nosotros"],
  html[data-page="aire-acondicionado"],
  html[data-page="electricidad"],
  html[data-page="fotovoltaica"],
  html[data-page="noticias"]
) main {
  color: #10283d;
  background: #fff !important;
}

:is(
  html[data-page="sobre-nosotros"],
  html[data-page="aire-acondicionado"],
  html[data-page="electricidad"],
  html[data-page="fotovoltaica"],
  html[data-page="noticias"]
) main h1,
:is(
  html[data-page="sobre-nosotros"],
  html[data-page="aire-acondicionado"],
  html[data-page="electricidad"],
  html[data-page="fotovoltaica"],
  html[data-page="noticias"]
) main h2,
:is(
  html[data-page="sobre-nosotros"],
  html[data-page="aire-acondicionado"],
  html[data-page="electricidad"],
  html[data-page="fotovoltaica"],
  html[data-page="noticias"]
) main h3,
:is(
  html[data-page="sobre-nosotros"],
  html[data-page="aire-acondicionado"],
  html[data-page="electricidad"],
  html[data-page="fotovoltaica"],
  html[data-page="noticias"]
) main h4 {
  font-family: "Outfit", system-ui, sans-serif !important;
  font-style: normal !important;
  text-wrap: balance;
}

:is(
  html[data-page="sobre-nosotros"],
  html[data-page="aire-acondicionado"],
  html[data-page="electricidad"],
  html[data-page="fotovoltaica"],
  html[data-page="noticias"]
) main h2::after {
  width: 42px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #18b8d2 !important;
  filter: none !important;
  box-shadow: none !important;
}

/* -------------------------------------------------------------------------- */
/* SOBRE NOSOTROS — cabecera de marca y valores en una sola composición       */
/* -------------------------------------------------------------------------- */
html[data-page="sobre-nosotros"] main > section:first-child {
  padding-top: clamp(142px, 15vw, 188px) !important;
  padding-bottom: 84px !important;
  background:
    radial-gradient(circle at 82% 10%, rgba(24,184,210,.2), transparent 27%),
    linear-gradient(120deg, #06172a 0%, #0a2d4b 57%, #0d5676 100%) !important;
}

html[data-page="sobre-nosotros"] main > section:first-child > div.absolute {
  display: block !important;
  width: 48% !important;
  opacity: .24 !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}

html[data-page="sobre-nosotros"] main > section:first-child > div.absolute img {
  filter: grayscale(.15) saturate(.72) contrast(1.08) !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .text-center.max-w-3xl {
  max-width: 780px !important;
  margin: 0 0 58px !important;
  text-align: left !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .text-center.max-w-3xl > span {
  display: inline-flex !important;
  width: auto;
  margin-bottom: 18px !important;
  padding: 7px 11px;
  border: 1px solid rgba(119,222,235,.28);
  border-radius: 4px;
  color: #9de8f0 !important;
  background: rgba(255,255,255,.055);
  font-size: 11px !important;
  letter-spacing: .18em !important;
}

html[data-page="sobre-nosotros"] main > section:first-child h1 {
  max-width: 13ch !important;
  margin: 0 0 22px !important;
  color: #fff !important;
  font-size: clamp(3.15rem, 5.8vw, 5.65rem) !important;
  font-weight: 720 !important;
  line-height: .97 !important;
  letter-spacing: -.055em !important;
}

html[data-page="sobre-nosotros"] main > section:first-child h1 span {
  color: #76deea !important;
  font-style: normal !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .text-center.max-w-3xl p {
  max-width: 58ch;
  color: rgba(235,247,250,.8) !important;
  font-size: clamp(1rem, 1.5vw, 1.18rem) !important;
  line-height: 1.68 !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 {
  gap: 18px !important;
  margin-bottom: 0 !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 > div {
  position: relative;
  min-height: 230px;
  padding: 30px !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-top: 3px solid #18b8d2 !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.075) !important;
  box-shadow: 0 18px 44px rgba(0,8,18,.18) !important;
  backdrop-filter: blur(14px);
  text-align: left !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 > div:nth-child(2) {
  border-top-color: #2f6fed !important;
}
html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 > div:nth-child(3) {
  border-top-color: #f46f4c !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 > div::after {
  right: 22px !important;
  top: 22px !important;
  color: rgba(255,255,255,.13) !important;
  font-family: "Outfit", sans-serif !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 .ac-icon-shell {
  width: 48px !important;
  height: 48px !important;
  margin: 0 0 24px !important;
  border: 1px solid rgba(122,224,236,.22) !important;
  border-radius: 9px !important;
  color: #8fe4ed !important;
  background: rgba(24,184,210,.1) !important;
  box-shadow: none !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 .ac-icon-shell::before,
html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 .ac-icon-shell::after {
  display: none !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 h3 {
  color: #fff !important;
  font-size: 1.2rem !important;
  font-weight: 650 !important;
}
html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 p {
  color: rgba(229,243,247,.68) !important;
  line-height: 1.62 !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) {
  padding: 92px 0 !important;
  background: #fbfaf7 !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) .grid {
  gap: clamp(46px, 7vw, 92px) !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) .grid > div:first-child {
  padding: 0 !important;
}
html[data-page="sobre-nosotros"] main > section:nth-child(2) .grid > div:first-child::before {
  display: none !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) .aspect-\[4\/3\] {
  border: 1px solid rgba(9,40,63,.1);
  border-radius: 16px 16px 54px 16px !important;
  box-shadow: 0 28px 64px rgba(9,40,63,.14) !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) .aspect-\[4\/3\] img {
  clip-path: none !important;
  filter: saturate(.82) contrast(1.03) !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) .grid > div:first-child > div.absolute {
  display: none !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) .space-y-8 {
  padding: 0 !important;
  border: 0 !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) .space-y-8 > div:first-child {
  padding: 0 0 28px !important;
  border-bottom: 1px solid rgba(9,40,63,.1) !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) h2 {
  color: #0a2238 !important;
  font-size: clamp(2rem, 3.4vw, 3rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.04em !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) h2::after {
  margin-left: 0 !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) li {
  align-items: flex-start;
  padding: 15px 16px !important;
  border: 1px solid rgba(9,40,63,.08) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.74) !important;
  box-shadow: 0 8px 22px rgba(9,40,63,.035);
}

/* -------------------------------------------------------------------------- */
/* SERVICIOS — estructura común con personalidad por especialidad             */
/* -------------------------------------------------------------------------- */
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) {
  --page-accent: #18b8d2;
  --page-accent-strong: #087e9c;
  --page-soft: #eaf9fc;
  --page-soft-rgb: 234,249,252;
}
html[data-page="electricidad"] {
  --page-accent: #2f6fed;
  --page-accent-strong: #174eb5;
  --page-soft: #eef3ff;
  --page-soft-rgb: 238,243,255;
}
html[data-page="fotovoltaica"] {
  --page-accent: #f46f4c;
  --page-accent-strong: #c94829;
  --page-soft: #fff0ec;
  --page-soft-rgb: 255,240,236;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child {
  min-height: min(860px, 100svh);
  padding-top: clamp(132px, 14vw, 188px) !important;
  padding-bottom: 84px !important;
  background:
    radial-gradient(circle at 90% 8%, var(--page-soft) 0%, transparent 34%),
    linear-gradient(180deg, #fff 0%, #f7fafc 100%) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child > div.absolute {
  display: none !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .grid.lg\:grid-cols-2 {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 6vw, 82px) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child h1 {
  max-width: 13ch !important;
  margin: 0 0 22px !important;
  color: #091f34 !important;
  font-size: clamp(3.1rem, 5.1vw, 5rem) !important;
  font-weight: 720 !important;
  line-height: .96 !important;
  letter-spacing: -.052em !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child h1 + div {
  width: 50px !important;
  height: 3px !important;
  margin: 0 0 24px !important;
  background: var(--page-accent) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child p {
  color: #536575 !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .btn-primary {
  background: var(--page-accent-strong) !important;
  border-color: var(--page-accent-strong) !important;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--page-accent) 24%, transparent) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .btn-secondary {
  color: #10283d !important;
  border-color: rgba(9,40,63,.16) !important;
  background: #fff !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .aspect-video {
  border: 1px solid rgba(9,40,63,.1);
  border-radius: 16px 16px 56px 16px !important;
  box-shadow: 0 30px 70px rgba(9,40,63,.18) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .aspect-video img {
  clip-path: none !important;
  filter: saturate(.86) contrast(1.04) !important;
  transform: none !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .aspect-video + div {
  right: 18px !important;
  bottom: 18px !important;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-left: 3px solid var(--page-accent) !important;
  border-radius: 7px !important;
  background: rgba(6,23,42,.9) !important;
  box-shadow: 0 12px 28px rgba(0,8,18,.2) !important;
  backdrop-filter: blur(12px);
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .aspect-video + div p {
  margin: 0 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-style: normal !important;
  letter-spacing: .12em !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .aspect-video + div p:first-child {
  color: var(--page-accent) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

/* Beneficios */
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) {
  padding: 86px 0 !important;
  background: var(--page-soft) !important;
  background-size: auto !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) .text-center {
  margin-bottom: 48px !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) .text-center > span {
  color: var(--page-accent-strong) !important;
  text-decoration: none !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) h2 {
  color: #0a2238 !important;
  font-size: clamp(2.35rem, 4vw, 3.5rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.045em !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) h2 span {
  color: var(--page-accent-strong) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) h2::after {
  content: none !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) .grid {
  gap: 18px !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) .grid > div {
  padding: 30px !important;
  border: 1px solid rgba(9,40,63,.08) !important;
  border-top: 3px solid var(--page-accent) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.86) !important;
  box-shadow: 0 14px 34px rgba(9,40,63,.06) !important;
  outline: 0 !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) .grid > div > div:first-child {
  width: 42px !important;
  height: 42px !important;
  margin-bottom: 24px !important;
  border-radius: 8px !important;
  color: var(--page-accent-strong) !important;
  background: color-mix(in srgb, var(--page-accent) 12%, white) !important;
  font-size: 1rem !important;
  font-style: normal !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) .grid h3 {
  color: #10283d !important;
  font-size: 1.25rem !important;
  font-weight: 680 !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em !important;
  text-transform: none !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) .grid p {
  color: #5c6c79 !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.62 !important;
}

/* Lista de trabajos */
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(3) {
  padding: 84px 0 !important;
  background: #fff !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(3) .grid {
  max-width: 1040px !important;
  gap: 16px !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(3) .grid > div {
  min-height: 150px;
  padding: 24px !important;
  border: 1px solid rgba(9,40,63,.09) !important;
  border-radius: 11px !important;
  background: #fbfcfd !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(3) .grid > div > div:first-child > div {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  color: var(--page-accent-strong) !important;
  background: var(--page-soft) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(3) h4 {
  color: #10283d !important;
  font-size: 1.12rem !important;
  font-weight: 670 !important;
  line-height: 1.22 !important;
  letter-spacing: -.02em !important;
  text-transform: none !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(3) p {
  color: #60717f !important;
  font-weight: 400 !important;
  line-height: 1.62 !important;
}

/* CTA final */
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(4) {
  padding: 62px 0 !important;
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--page-accent) 20%, transparent), transparent 30%),
    linear-gradient(115deg, #06172a 0%, #0a2e4c 100%) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(4) h2 {
  margin-bottom: 18px !important;
  color: #fff !important;
  font-size: clamp(2rem, 3.5vw, 3rem) !important;
  font-weight: 680 !important;
  letter-spacing: -.035em !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(4) h2::after {
  margin-inline: auto !important;
  background: var(--page-accent) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(4) p {
  max-width: 650px;
  margin: 0 auto 30px !important;
  color: rgba(232,244,248,.72) !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(4) .btn-primary {
  background: var(--page-accent-strong) !important;
  border-color: var(--page-accent) !important;
}

/* Calculadora de climatización */
html[data-page="aire-acondicionado"] main > section#calculadora {
  padding: 80px 0 !important;
  background: #f5f8fa !important;
}
html[data-page="aire-acondicionado"] main > section#calculadora .text-center.mb-12 {
  margin-bottom: 40px !important;
}
html[data-page="aire-acondicionado"] main > section#calculadora h2 {
  color: #0a2238 !important;
  font-size: clamp(2.15rem, 4vw, 3.15rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.04em !important;
}
html[data-page="aire-acondicionado"] main > section#calculadora h2::after {
  margin-inline: auto !important;
}
html[data-page="aire-acondicionado"] main > section#calculadora .overflow-hidden.grid {
  border: 1px solid rgba(9,40,63,.09) !important;
  border-radius: 14px !important;
  box-shadow: 0 22px 54px rgba(9,40,63,.11) !important;
}
html[data-page="aire-acondicionado"] main > section#calculadora .bg-zinc-900 {
  background:
    radial-gradient(circle at 90% 5%, rgba(24,184,210,.2), transparent 32%),
    #071d32 !important;
}

/* -------------------------------------------------------------------------- */
/* NOTICIAS — portada editorial y tarjetas preparadas para contenido          */
/* -------------------------------------------------------------------------- */
html[data-page="noticias"] main > section:first-child {
  position: relative;
  min-height: 72svh;
  padding-top: clamp(142px, 15vw, 188px) !important;
  padding-bottom: 92px !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 5%, rgba(47,111,237,.11), transparent 30%),
    radial-gradient(circle at 8% 78%, rgba(244,111,76,.08), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%) !important;
}

html[data-page="noticias"] main > section:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  right: 8%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(47,111,237,.16), transparent);
}

html[data-page="noticias"] main > section:first-child .text-center.max-w-3xl {
  max-width: 850px !important;
  margin: 0 0 56px !important;
  text-align: left !important;
}

html[data-page="noticias"] main > section:first-child .text-center.max-w-3xl::before {
  content: "CONSEJOS · PROYECTOS · ACTUALIDAD";
  display: block;
  margin-bottom: 18px;
  color: #2f6fed;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .2em;
}

html[data-page="noticias"] main > section:first-child h1 {
  max-width: 12ch;
  margin-bottom: 20px !important;
  color: #091f34 !important;
  font-size: clamp(3.2rem, 6vw, 5.6rem) !important;
  font-weight: 720 !important;
  line-height: .96 !important;
  letter-spacing: -.055em !important;
}

html[data-page="noticias"] main > section:first-child h1 span {
  color: #2f6fed !important;
  font-style: normal !important;
}

html[data-page="noticias"] main > section:first-child .text-center.max-w-3xl p {
  max-width: 64ch;
  color: #536575 !important;
  line-height: 1.7 !important;
}

html[data-page="noticias"] main > section:first-child .text-center.py-20 {
  position: relative;
  padding: 64px 28px !important;
  border: 1px solid rgba(9,40,63,.09) !important;
  border-top: 3px solid #2f6fed !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: 0 18px 44px rgba(9,40,63,.065);
}

html[data-page="noticias"] main > section:first-child .text-center.py-20::before {
  content: "AC";
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 10px;
  color: #fff;
  background: #0a2d4b;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
}

html[data-page="noticias"] main > section:first-child .text-center.py-20 p {
  color: #61717f !important;
  font-style: normal !important;
}

html[data-page="noticias"] main > section:first-child > .max-w-7xl > .grid {
  gap: 22px !important;
}

html[data-page="noticias"] main article {
  border: 1px solid rgba(9,40,63,.09) !important;
  border-top: 3px solid #18b8d2 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 14px 36px rgba(9,40,63,.075) !important;
  outline: 0 !important;
}
html[data-page="noticias"] main article:nth-child(2) { border-top-color: #2f6fed !important; }
html[data-page="noticias"] main article:nth-child(3n) { border-top-color: #f46f4c !important; }

html[data-page="noticias"] main article > div:first-child {
  border-radius: 10px 10px 0 0;
}
html[data-page="noticias"] main article > div:first-child img {
  clip-path: none !important;
  filter: saturate(.84) contrast(1.04) !important;
}
html[data-page="noticias"] main article > div:first-child > div {
  border-radius: 5px !important;
  color: #174eb5 !important;
  box-shadow: 0 6px 20px rgba(9,40,63,.1) !important;
}
html[data-page="noticias"] main article > div:last-child {
  padding: 26px !important;
}
html[data-page="noticias"] main article h2 {
  color: #10283d !important;
  font-weight: 680 !important;
  letter-spacing: -.03em !important;
}
html[data-page="noticias"] main article h2::after {
  content: none !important;
}
html[data-page="noticias"] main article p,
html[data-page="noticias"] main article .whitespace-pre-wrap {
  color: #5c6c79 !important;
  font-style: normal !important;
  line-height: 1.68 !important;
}

/* Responsive conjunto */
@media (max-width: 1023px) {
  html[data-page="sobre-nosotros"] main > section:first-child,
  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child,
  html[data-page="noticias"] main > section:first-child {
    padding-top: 112px !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child > div.absolute {
    display: none !important;
  }

  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child {
    min-height: 0;
    padding-bottom: 64px !important;
  }

  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .grid.lg\:grid-cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .aspect-video + div {
    right: 12px !important;
    bottom: 12px !important;
  }
}

@media (max-width: 767px) {
  html[data-page="sobre-nosotros"] main > section:first-child,
  html[data-page="noticias"] main > section:first-child {
    padding-bottom: 58px !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child .text-center.max-w-3xl,
  html[data-page="noticias"] main > section:first-child .text-center.max-w-3xl {
    margin-bottom: 36px !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child h1,
  html[data-page="noticias"] main > section:first-child h1 {
    max-width: 11ch !important;
    font-size: clamp(2.75rem, 13vw, 3.65rem) !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84%, 84%);
    gap: 14px !important;
    margin-right: -16px;
    padding: 3px 16px 16px 0;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3::-webkit-scrollbar {
    display: none;
  }
  html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 > div {
    min-height: 220px;
    scroll-snap-align: start;
  }

  html[data-page="sobre-nosotros"] main > section:nth-child(2),
  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2),
  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(3),
  html[data-page="aire-acondicionado"] main > section#calculadora {
    padding-top: 58px !important;
    padding-bottom: 58px !important;
  }

  html[data-page="sobre-nosotros"] main > section:nth-child(2) .grid {
    gap: 40px !important;
  }

  html[data-page="sobre-nosotros"] main > section:nth-child(2) .aspect-\[4\/3\] {
    border-radius: 12px 12px 34px 12px !important;
  }

  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child h1 {
    font-size: clamp(2.55rem, 12vw, 3.45rem) !important;
    line-height: .98 !important;
  }

  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .aspect-video {
    border-radius: 12px 12px 34px 12px !important;
  }

  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .flex.flex-col.sm\:flex-row {
    gap: 10px !important;
  }

  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(2) .grid > div,
  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(3) .grid > div {
    min-height: 0;
    padding: 22px !important;
  }

  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:nth-child(4) {
    padding: 48px 0 !important;
  }

  html[data-page="noticias"] main > section:first-child .text-center.py-20 {
    padding: 46px 20px !important;
  }

  html[data-page="noticias"] main article > div:last-child {
    padding: 22px !important;
  }
}

/* Portada más luminosa: sombra localizada bajo el texto, fotografía visible. */
html[data-home="true"] main > section:first-child.bg-premium-layer::before {
  opacity: 1 !important;
  background-image:
    linear-gradient(90deg,
      rgba(5,17,31,.76) 0%,
      rgba(6,23,40,.62) 34%,
      rgba(7,30,49,.27) 58%,
      rgba(7,30,49,.08) 78%,
      rgba(5,17,31,.1) 100%),
    url('/images/hero-corporativo-2026.webp') !important;
  background-position: center !important;
  filter: brightness(1.12) saturate(.82) contrast(1.02) !important;
}

html[data-home="true"] main > section:first-child.bg-premium-layer::after {
  background: linear-gradient(180deg, transparent, rgba(5,20,35,.18)) !important;
}

@media (max-width: 1023px) {
  html[data-home="true"] main > section:first-child.bg-premium-layer::before {
    background-image:
      linear-gradient(180deg,
        rgba(5,17,31,.4) 0%,
        rgba(6,24,41,.5) 48%,
        rgba(5,17,31,.68) 100%),
      url('/images/hero-corporativo-2026.webp') !important;
    background-position: 58% center !important;
    filter: brightness(1.13) saturate(.8) contrast(1.01) !important;
  }
}

/* ========================================================================== */
/* SOBRE NOSOTROS V6 — relato compacto, legible y completamente responsive    */
/* ========================================================================== */

html[data-page="sobre-nosotros"] .fixed.left-0.top-\[15\%\] {
  display: none !important;
}

/* Se retira la etiqueta flotante "AC · Tenerife": no aportaba jerarquía. */
html[data-page="sobre-nosotros"] main > section:first-child .max-w-3xl::before {
  content: none !important;
  display: none !important;
}

html[data-page="sobre-nosotros"] main > section:first-child {
  min-height: 0 !important;
  padding-top: clamp(136px, 10vw, 158px) !important;
  padding-bottom: 72px !important;
}

html[data-page="sobre-nosotros"] main > section:first-child::before {
  background:
    linear-gradient(90deg,
      rgba(5,17,31,.78) 0%,
      rgba(6,24,42,.66) 43%,
      rgba(6,24,42,.31) 70%,
      rgba(5,17,31,.24) 100%) !important;
}

html[data-page="sobre-nosotros"] main > section:first-child > div.absolute img {
  object-position: center 45% !important;
  filter: brightness(1.035) saturate(.82) contrast(1.025) !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .text-center.max-w-3xl {
  max-width: 820px !important;
  margin: 0 0 42px !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .text-center.max-w-3xl > span {
  margin-bottom: 16px !important;
  padding: 7px 11px !important;
  border-radius: 3px 11px 3px 11px !important;
  background: rgba(5,27,46,.46) !important;
  box-shadow: 0 8px 22px rgba(0,15,27,.1);
}

html[data-page="sobre-nosotros"] main > section:first-child h1 {
  max-width: 14ch !important;
  margin-bottom: 20px !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: clamp(3.15rem, 4.8vw, 4.85rem) !important;
  font-style: normal !important;
  font-weight: 720 !important;
  line-height: 1.015 !important;
  letter-spacing: -.047em !important;
  text-wrap: balance;
  text-shadow: 0 3px 20px rgba(0,8,18,.38) !important;
}

html[data-page="sobre-nosotros"] main > section:first-child h1 span {
  color: #76deea !important;
  font-style: normal !important;
  text-shadow: 0 2px 16px rgba(0,25,39,.28) !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .text-center.max-w-3xl p {
  max-width: 60ch !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  color: rgba(244,250,252,.91) !important;
  font-size: clamp(1rem, 1.3vw, 1.12rem) !important;
  line-height: 1.62 !important;
  text-shadow: 0 2px 12px rgba(0,9,18,.28);
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 {
  gap: 16px !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 > div {
  min-height: 198px !important;
  padding: 25px 26px !important;
  border: 1px solid rgba(123,224,236,.2) !important;
  border-top: 3px solid #18b8d2 !important;
  border-radius: 4px 21px 4px 21px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), transparent 46%),
    rgba(5,27,46,.88) !important;
  box-shadow: 0 22px 48px rgba(0,10,20,.24) !important;
  backdrop-filter: blur(15px) saturate(1.05);
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 > div:nth-child(2) {
  border-top-color: #5f8ff0 !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), transparent 46%),
    rgba(6,31,54,.9) !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 > div:nth-child(3) {
  border-top-color: #f46f4c !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), transparent 46%),
    rgba(8,34,49,.9) !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 > div::after {
  top: 18px !important;
  right: 21px !important;
  color: rgba(255,255,255,.12) !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: 2rem !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 .ac-icon-shell {
  width: 46px !important;
  height: 46px !important;
  margin-bottom: 18px !important;
  border-radius: 3px 14px 3px 14px !important;
  color: #83e3ec !important;
  background: rgba(24,184,210,.12) !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 h3 {
  margin-bottom: 9px !important;
  color: #fff !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: 1.12rem !important;
  font-style: normal !important;
  font-weight: 680 !important;
}

html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 p {
  color: rgba(229,243,247,.78) !important;
  font-size: .94rem !important;
  line-height: 1.58 !important;
}

/* Misión y motivos: bloque editorial más ligero y coherente. */
html[data-page="sobre-nosotros"] main > section:nth-child(2) {
  padding: 80px 0 86px !important;
  background:
    radial-gradient(circle at 8% 82%, rgba(24,184,210,.075), transparent 27%),
    linear-gradient(180deg, #fbfaf7 0%, #fff 100%) !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) > div::before {
  content: none !important;
  display: none !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) .grid {
  gap: clamp(40px, 6vw, 76px) !important;
  align-items: center !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) .aspect-\[4\/3\] {
  overflow: hidden;
  border: 1px solid rgba(9,40,63,.1) !important;
  border-radius: 4px 32px 4px 32px !important;
  box-shadow: 0 28px 68px rgba(9,40,63,.15) !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) .aspect-\[4\/3\] img {
  object-position: center 42%;
  filter: saturate(.88) contrast(1.025) !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) .space-y-8 {
  display: grid;
  gap: 28px;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) .space-y-8 > * {
  margin-top: 0 !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) .space-y-8 > div:first-child {
  padding: 0 0 26px !important;
  border-bottom: 1px solid rgba(9,40,63,.11) !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) h2 {
  margin-bottom: 17px !important;
  color: #0a263b !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: clamp(2rem, 3vw, 2.75rem) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) h2::after {
  width: 48px !important;
  height: 2px !important;
  margin-top: 14px !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) p {
  color: #596b76 !important;
  line-height: 1.7 !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) li {
  min-height: 64px;
  padding: 14px 16px !important;
  border: 1px solid rgba(9,55,74,.085) !important;
  border-radius: 3px 14px 3px 14px !important;
  background: linear-gradient(145deg, #fff, #f7fbfc) !important;
  box-shadow: 0 9px 24px rgba(9,40,63,.045) !important;
}

html[data-page="sobre-nosotros"] main > section:nth-child(2) li > div:first-child {
  color: #087f9d !important;
  border-radius: 3px 10px 3px 10px !important;
  background: #eaf8fb !important;
}

@media (max-width: 767px) {
  html[data-page="sobre-nosotros"] main > section:first-child {
    min-height: 0 !important;
    padding-top: 104px !important;
    padding-bottom: 48px !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child::before {
    background: linear-gradient(180deg,
      rgba(5,17,31,.38) 0%,
      rgba(5,19,34,.7) 43%,
      rgba(5,17,31,.94) 100%) !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child > div.absolute img {
    object-position: 58% center !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child .text-center.max-w-3xl {
    margin-bottom: 30px !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child h1 {
    max-width: 11ch !important;
    font-size: clamp(2.55rem, 12vw, 3.25rem) !important;
    line-height: 1.01 !important;
    letter-spacing: -.043em !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child .text-center.max-w-3xl p {
    font-size: .96rem !important;
    line-height: 1.58 !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    margin-right: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 > div {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 15px;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 18px 20px !important;
    border-radius: 3px 19px 3px 19px !important;
    scroll-snap-align: none !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 .ac-icon-shell {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 h3,
  html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 p {
    grid-column: 2;
    margin-right: 24px !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 h3 {
    align-self: end;
    margin-bottom: 4px !important;
    font-size: 1rem !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 p {
    align-self: start;
    font-size: .84rem !important;
    line-height: 1.48 !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child .grid.md\:grid-cols-3 > div::after {
    top: 16px !important;
    right: 16px !important;
    font-size: 1.3rem !important;
  }

  html[data-page="sobre-nosotros"] main > section:nth-child(2) {
    padding: 56px 0 62px !important;
  }

  html[data-page="sobre-nosotros"] main > section:nth-child(2) .grid {
    gap: 34px !important;
  }

  html[data-page="sobre-nosotros"] main > section:nth-child(2) .aspect-\[4\/3\] {
    border-radius: 3px 24px 3px 24px !important;
  }

  html[data-page="sobre-nosotros"] main > section:nth-child(2) h2 {
    font-size: clamp(1.9rem, 9vw, 2.3rem) !important;
  }

  html[data-page="sobre-nosotros"] main > section:nth-child(2) li {
    padding: 13px 14px !important;
  }
}

/* ========================================================================== */
/* CONTACTO V6 — formulario técnico, compacto y alineado con la marca         */
/* ========================================================================== */

html[data-page="contacto"] .fixed.left-0.top-\[15\%\] {
  display: none !important;
}

html[data-page="contacto"] main > section:first-child {
  padding-bottom: 104px !important;
  background:
    radial-gradient(circle at 88% 72%, rgba(24,184,210,.1), transparent 27%),
    linear-gradient(180deg, #eef5f8 0%, #f8fbfc 72%, #fff 100%) !important;
}

html[data-page="contacto"] main > section:first-child .text-center.max-w-3xl {
  margin-bottom: 64px !important;
}

html[data-page="contacto"] main > section:first-child .grid.lg\:grid-cols-3 {
  align-items: start;
  gap: 28px !important;
}

html[data-page="contacto"] main > section:first-child .lg\:col-span-1.space-y-8 > * + * {
  margin-top: 22px !important;
}

/* Tarjeta de datos directos. */
html[data-page="contacto"] main > section:first-child .lg\:col-span-1 > div:first-child {
  padding: 18px 28px !important;
  overflow: hidden;
  border: 1px solid rgba(9,72,93,.12) !important;
  border-top: 3px solid var(--ac-cyan-bright) !important;
  border-radius: 4px 24px 4px 24px !important;
  background: linear-gradient(155deg, rgba(255,255,255,.99), rgba(244,250,252,.98)) !important;
  box-shadow: 0 24px 64px rgba(6,35,52,.12) !important;
}

html[data-page="contacto"] main > section:first-child .lg\:col-span-1 > div:first-child > .flex {
  gap: 15px !important;
  align-items: center !important;
  margin-bottom: 0 !important;
  padding: 17px 0;
  border-bottom: 1px solid rgba(7,48,67,.09);
}

html[data-page="contacto"] main > section:first-child .lg\:col-span-1 > div:first-child > .flex:last-child {
  border-bottom: 0;
}

html[data-page="contacto"] main > section:first-child .lg\:col-span-1 > div:first-child > .flex > div:first-child {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  color: #087f9d !important;
  border: 1px solid rgba(24,184,210,.18);
  border-radius: 3px 15px 3px 15px !important;
  background: linear-gradient(145deg, #e9f8fb, #f6fcfd) !important;
}

html[data-page="contacto"] main > section:first-child .lg\:col-span-1 h4 {
  margin-bottom: 2px !important;
  color: #071f2d !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

html[data-page="contacto"] main > section:first-child .lg\:col-span-1 > div:first-child p {
  margin: 0 0 3px !important;
  color: #60717b !important;
  font-size: .78rem !important;
  line-height: 1.35 !important;
}

html[data-page="contacto"] main > section:first-child .lg\:col-span-1 > div:first-child a,
html[data-page="contacto"] main > section:first-child .lg\:col-span-1 > div:first-child .font-bold {
  color: #0a2a3c !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: .98rem !important;
  font-weight: 680 !important;
}

/* Cobertura insular: contrapunto oscuro del mismo sistema visual. */
html[data-page="contacto"] main > section:first-child .lg\:col-span-1 > div:nth-child(2) {
  min-height: 176px;
  padding: 28px !important;
  border: 1px solid rgba(112,227,239,.19) !important;
  border-radius: 4px 22px 4px 22px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), transparent 46%),
    linear-gradient(125deg, #071c30 0%, #083a50 62%, #087f9d 100%) !important;
  box-shadow: 0 22px 52px rgba(5,24,38,.18) !important;
}

html[data-page="contacto"] main > section:first-child .lg\:col-span-1 > div:nth-child(2) h4 {
  color: #fff !important;
  font-size: 1.15rem !important;
}

html[data-page="contacto"] main > section:first-child .lg\:col-span-1 > div:nth-child(2) p {
  max-width: 27ch;
  color: rgba(231,247,250,.78) !important;
  line-height: 1.65 !important;
}

html[data-page="contacto"] main > section:first-child .lg\:col-span-1 > div:nth-child(2) > .absolute {
  color: #6ce2ed !important;
  opacity: .16 !important;
}

/* Formulario principal. */
html[data-page="contacto"] main > section:first-child form {
  position: relative;
  padding: 38px 40px 34px !important;
  overflow: hidden;
  border: 1px solid rgba(9,72,93,.12) !important;
  border-top: 3px solid var(--ac-cyan-bright) !important;
  border-radius: 4px 28px 4px 28px !important;
  background: linear-gradient(160deg, #fff 0%, #fbfdfe 62%, #f4fafc 100%) !important;
  box-shadow: 0 30px 82px rgba(6,35,52,.14) !important;
}

html[data-page="contacto"] main > section:first-child form::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  pointer-events: none;
  background: radial-gradient(circle at 100% 0, rgba(24,184,210,.13), transparent 68%);
}

html[data-page="contacto"] main > section:first-child form > .grid {
  position: relative;
  z-index: 1;
  gap: 18px 20px !important;
  margin-bottom: 20px !important;
}

html[data-page="contacto"] main > section:first-child form label {
  margin-bottom: 7px !important;
  color: #17384a !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: .045em;
  text-transform: uppercase;
}

html[data-page="contacto"] main > section:first-child form :is(input, select, textarea) {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px !important;
  color: #0a293a !important;
  border: 1px solid rgba(15,72,92,.17) !important;
  border-radius: 3px 14px 3px 14px !important;
  outline: 0;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 5px 16px rgba(7,40,57,.035) inset !important;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease !important;
}

html[data-page="contacto"] main > section:first-child form textarea {
  min-height: 132px;
  resize: vertical;
}

html[data-page="contacto"] main > section:first-child form :is(input, select, textarea):focus {
  border-color: #18a9c2 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(24,169,194,.1), 0 8px 24px rgba(7,77,99,.08) !important;
}

html[data-page="contacto"] main > section:first-child form :is(input, textarea)::placeholder {
  color: #94a3aa !important;
  opacity: 1;
}

html[data-page="contacto"] main > section:first-child form .sm\:col-span-2.flex.justify-center.py-4 {
  min-height: 82px;
  padding-block: 2px !important;
  overflow: hidden;
  align-items: center;
  border: 1px dashed rgba(9,72,93,.12);
  border-radius: 3px 14px 3px 14px;
  background: rgba(238,247,250,.5);
}

html[data-page="contacto"] main > section:first-child form > button[type="submit"] {
  min-height: 56px;
  border: 1px solid rgba(108,226,237,.3) !important;
  border-radius: 3px 15px 3px 15px !important;
  background: linear-gradient(105deg, #006c84 0%, #079db9 56%, #1bc4d5 100%) !important;
  box-shadow: 0 16px 34px rgba(0,126,155,.2) !important;
}

html[data-page="contacto"] main > section:first-child form > button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0,126,155,.27) !important;
}

html[data-page="contacto"] main > section:first-child form > p:last-child {
  max-width: 66ch;
  margin: 18px auto 0 !important;
  color: #72818a !important;
  line-height: 1.55 !important;
}

@media (max-width: 1023px) {
  html[data-page="contacto"] main > section:first-child {
    padding-bottom: 72px !important;
  }

  html[data-page="contacto"] main > section:first-child .grid.lg\:grid-cols-3 {
    gap: 24px !important;
  }

  html[data-page="contacto"] main > section:first-child form {
    padding: 28px !important;
  }
}

@media (max-width: 639px) {
  html[data-page="contacto"] main > section:first-child {
    padding-top: 104px !important;
    padding-bottom: 56px !important;
  }

  html[data-page="contacto"] main > section:first-child::before,
  html[data-page="contacto"] main > section:first-child::after {
    height: 470px;
  }

  html[data-page="contacto"] main > section:first-child .text-center.max-w-3xl {
    margin-bottom: 42px !important;
  }

  html[data-page="contacto"] main > section:first-child h1 {
    max-width: 10ch;
    font-size: clamp(2.65rem, 13vw, 3.35rem) !important;
    line-height: 1 !important;
  }

  html[data-page="contacto"] main > section:first-child .text-center.max-w-3xl p {
    font-size: .96rem !important;
    line-height: 1.58 !important;
  }

  html[data-page="contacto"] main > section:first-child form {
    padding: 23px 20px 24px !important;
    border-radius: 3px 21px 3px 21px !important;
  }

  html[data-page="contacto"] main > section:first-child form > .grid {
    gap: 15px !important;
    margin-bottom: 17px !important;
  }

  html[data-page="contacto"] main > section:first-child form :is(input, select, textarea) {
    min-height: 52px;
    font-size: 1rem !important;
  }

  html[data-page="contacto"] main > section:first-child form textarea {
    min-height: 118px;
  }

  html[data-page="contacto"] main > section:first-child form .sm\:col-span-2.flex.justify-center.py-4 > div {
    transform: scale(.92);
    transform-origin: center;
  }

  html[data-page="contacto"] main > section:first-child .lg\:col-span-1 > div:first-child {
    padding: 12px 20px !important;
    border-radius: 3px 21px 3px 21px !important;
  }

  html[data-page="contacto"] main > section:first-child .lg\:col-span-1 > div:nth-child(2) {
    min-height: 0;
    padding: 24px !important;
    border-radius: 3px 20px 3px 20px !important;
  }
}

/* Titular de Inicio: dos líneas independientes para evitar solapes en cualquier ancho. */
html[data-home="true"] main > section:first-child.bg-premium-layer h1 {
  max-width: 12ch !important;
  font-size: clamp(3.15rem, 4.6vw, 4.45rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.042em !important;
  text-shadow: 0 3px 18px rgba(0,8,18,.44), 0 1px 2px rgba(0,8,18,.42) !important;
}

html[data-home="true"] main > section:first-child.bg-premium-layer h1 br {
  display: none !important;
}

html[data-home="true"] main > section:first-child.bg-premium-layer h1 span {
  display: block !important;
  margin-top: .08em;
  line-height: 1.04 !important;
  letter-spacing: -.035em !important;
  text-shadow: 0 2px 16px rgba(0,18,31,.34) !important;
}

@media (max-width: 1023px) {
  html[data-home="true"] main > section:first-child.bg-premium-layer h1 {
    max-width: 11ch !important;
    font-size: clamp(2.65rem, 11vw, 3.45rem) !important;
    line-height: 1.03 !important;
  }
}

/* ========================================================================== */
/* HERO FOTOGRAFICO EN TODAS LAS RUTAS PRINCIPALES — patrón AC Encanto        */
/* ========================================================================== */

/* Sobre nosotros reutiliza su fotografía existente a sangre completa. */
html[data-page="sobre-nosotros"] main > section:first-child {
  position: relative;
  min-height: 76svh;
  isolation: isolate;
  background: #07192b !important;
}

html[data-page="sobre-nosotros"] main > section:first-child::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(5,17,31,.84) 0%,
    rgba(6,24,42,.7) 42%,
    rgba(6,24,42,.34) 70%,
    rgba(5,17,31,.28) 100%);
}

html[data-page="sobre-nosotros"] main > section:first-child > div.absolute {
  display: block !important;
  z-index: 0 !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  filter: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

html[data-page="sobre-nosotros"] main > section:first-child > div.absolute img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: brightness(1.02) saturate(.78) contrast(1.03) !important;
}

html[data-page="sobre-nosotros"] main > section:first-child > .max-w-7xl {
  position: relative;
  z-index: 2 !important;
}

/* Las páginas de servicio usan su imagen actual como fondo real del hero. */
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child {
  position: relative;
  display: flex;
  min-height: clamp(620px, 76svh, 780px) !important;
  align-items: flex-end;
  isolation: isolate;
  padding-top: 150px !important;
  padding-bottom: 78px !important;
  background: #07192b !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child > .max-w-7xl {
  position: relative;
  z-index: 2;
  width: 100%;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .grid.lg\:grid-cols-2 {
  display: block !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .grid.lg\:grid-cols-2 > div:first-child {
  position: relative;
  z-index: 3;
  width: min(100%, 720px);
  padding: 0 !important;
  text-align: left !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .grid.lg\:grid-cols-2 > div:last-child {
  position: absolute !important;
  z-index: -2 !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .aspect-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .aspect-video img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  clip-path: none !important;
  filter: brightness(.92) saturate(.84) contrast(1.04) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .aspect-video > div {
  opacity: 1 !important;
  background: linear-gradient(90deg,
    rgba(5,17,31,.9) 0%,
    rgba(6,23,40,.78) 37%,
    rgba(6,23,40,.42) 65%,
    rgba(5,17,31,.22) 100%) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .aspect-video + div {
  display: none !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child h1 {
  max-width: 12ch !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  color: #fff !important;
  text-shadow: 0 3px 22px rgba(0,7,16,.25) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child p {
  max-width: 62ch !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  color: rgba(238,247,250,.82) !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .flex.flex-col.sm\:flex-row {
  justify-content: flex-start !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .btn-secondary {
  color: #fff !important;
  border-color: rgba(255,255,255,.48) !important;
  background: rgba(5,23,40,.24) !important;
  backdrop-filter: blur(10px);
}

/* Noticias no tenía imagen en el componente: se incorpora la foto corporativa. */
html[data-page="noticias"] main > section:first-child {
  position: relative;
  min-height: 64svh;
  isolation: isolate;
  background-color: #07192b !important;
  background-image:
    linear-gradient(90deg,
      rgba(5,17,31,.88) 0%,
      rgba(6,24,42,.7) 44%,
      rgba(6,24,42,.32) 72%,
      rgba(5,17,31,.23) 100%),
    url('/images/hero-corporativo-2026.webp') !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

html[data-page="noticias"] main > section:first-child::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  width: auto;
  height: 110px;
  background: linear-gradient(transparent, rgba(5,17,31,.34));
}

html[data-page="noticias"] main > section:first-child > .max-w-7xl {
  position: relative;
  z-index: 2;
}

html[data-page="noticias"] main > section:first-child .text-center.max-w-3xl::before {
  color: #8de3ed !important;
}

html[data-page="noticias"] main > section:first-child h1,
html[data-page="noticias"] main > section:first-child h1 span {
  color: #fff !important;
  text-shadow: 0 3px 22px rgba(0,7,16,.25) !important;
}

html[data-page="noticias"] main > section:first-child .text-center.max-w-3xl p {
  color: rgba(238,247,250,.8) !important;
}

/* Navbar transparente sobre todas las nuevas cabeceras fotográficas. */
html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture {
  background: linear-gradient(180deg, rgba(4,16,29,.55), rgba(4,16,29,.12)) !important;
  border-bottom-color: rgba(255,255,255,.12) !important;
  box-shadow: none !important;
  backdrop-filter: blur(6px);
}

@media (max-width: 1023px) {
  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child {
    min-height: 680px !important;
    align-items: flex-end;
    padding-top: 116px !important;
    padding-bottom: 58px !important;
  }

  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .grid.lg\:grid-cols-2 > div:first-child {
    width: min(100%, 620px);
    text-align: left !important;
  }

  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .aspect-video > div {
    background: linear-gradient(180deg,
      rgba(5,17,31,.32) 0%,
      rgba(5,19,34,.5) 42%,
      rgba(5,17,31,.9) 100%) !important;
  }

  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .aspect-video img {
    object-position: center !important;
    filter: brightness(.9) saturate(.84) contrast(1.03) !important;
  }

  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child h1 {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  :is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .flex.flex-col.sm\:flex-row {
    align-items: stretch;
  }

  html[data-page="sobre-nosotros"] main > section:first-child {
    min-height: 720px;
  }

  html[data-page="sobre-nosotros"] main > section:first-child > div.absolute {
    display: block !important;
  }

  html[data-page="sobre-nosotros"] main > section:first-child::before {
    background: linear-gradient(180deg,
      rgba(5,17,31,.44) 0%,
      rgba(5,19,34,.68) 44%,
      rgba(5,17,31,.92) 100%);
  }

  html[data-page="noticias"] main > section:first-child {
    min-height: 68svh;
    background-image:
      linear-gradient(180deg,
        rgba(5,17,31,.4) 0%,
        rgba(5,19,34,.58) 48%,
        rgba(5,17,31,.88) 100%),
      url('/images/hero-corporativo-2026.webp') !important;
    background-position: 58% center !important;
  }
}

/* Correcciones de apilado: la fotografía ocupa todo el ancho del hero. */
:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child > .max-w-7xl {
  position: static !important;
  z-index: auto !important;
}

:is(html[data-page="aire-acondicionado"], html[data-page="electricidad"], html[data-page="fotovoltaica"]) main > section:first-child .grid.lg\:grid-cols-2 > div:last-child {
  z-index: 0 !important;
}

/* En Noticias la imagen forma una cabecera, no el fondo de artículos largos. */
html[data-page="noticias"] main > section:first-child {
  background: #eef4f8 !important;
}

html[data-page="noticias"] main > section:first-child::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 560px;
  pointer-events: none;
  background: url('/images/hero-corporativo-2026.webp') center / cover no-repeat;
  filter: brightness(1.03) saturate(.78) contrast(1.03);
}

html[data-page="noticias"] main > section:first-child::before {
  z-index: 1;
  inset: 0 0 auto;
  width: auto;
  height: 560px;
  background: linear-gradient(90deg,
    rgba(5,17,31,.88) 0%,
    rgba(6,24,42,.7) 44%,
    rgba(6,24,42,.32) 72%,
    rgba(5,17,31,.23) 100%);
}

@media (max-width: 1023px) {
  html[data-page="noticias"] main > section:first-child::after,
  html[data-page="noticias"] main > section:first-child::before {
    height: 510px;
  }

  html[data-page="noticias"] main > section:first-child::after {
    background-position: 58% center;
  }

  html[data-page="noticias"] main > section:first-child::before {
    background: linear-gradient(180deg,
      rgba(5,17,31,.42) 0%,
      rgba(5,19,34,.62) 48%,
      rgba(5,17,31,.9) 100%);
  }
}

/* Contacto adopta la misma cabecera fotográfica y evita el salto del navbar. */
html[data-page="contacto"] main > section:first-child {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(142px, 15vw, 188px) !important;
  padding-bottom: 88px !important;
  background: #f3f7fa !important;
}

html[data-page="contacto"] main > section:first-child::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 560px;
  pointer-events: none;
  background: url('/images/about-equipo-ac-2026.webp') 62% 34% / cover no-repeat;
  filter: brightness(.94) saturate(.76) contrast(1.03);
}

html[data-page="contacto"] main > section:first-child::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 560px;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(5,17,31,.9) 0%,
    rgba(6,24,42,.72) 45%,
    rgba(6,24,42,.34) 72%,
    rgba(5,17,31,.22) 100%);
}

html[data-page="contacto"] main > section:first-child > .max-w-7xl {
  position: relative;
  z-index: 2;
}

html[data-page="contacto"] main > section:first-child .text-center.max-w-3xl {
  max-width: 780px !important;
  margin: 0 0 76px !important;
  text-align: left !important;
}

html[data-page="contacto"] main > section:first-child h1 {
  max-width: 12ch;
  margin-bottom: 20px !important;
  color: #fff !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: clamp(3.1rem, 5.6vw, 5.2rem) !important;
  font-style: normal !important;
  font-weight: 720 !important;
  line-height: .97 !important;
  letter-spacing: -.052em !important;
  text-wrap: balance;
  text-shadow: 0 3px 22px rgba(0,7,16,.26);
}

html[data-page="contacto"] main > section:first-child h1 span {
  color: #80e2ec !important;
  font-style: normal !important;
}

html[data-page="contacto"] main > section:first-child .text-center.max-w-3xl p {
  max-width: 60ch;
  color: rgba(238,247,250,.82) !important;
  line-height: 1.68 !important;
}

html[data-page="contacto"] main > section:first-child .grid.lg\:grid-cols-3 {
  position: relative;
  z-index: 3;
}

/* Geometría estable: todas las rutas fotográficas comparten el mismo navbar. */
html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture,
html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture .lg\:h-24 {
  height: 96px !important;
}

html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(4,16,29,.58), rgba(4,16,29,.14)) !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: none !important;
  backdrop-filter: blur(7px) saturate(1.04);
}

@media (max-width: 1023px) {
  html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture,
  html[data-dark-hero="true"] header:not(.is-scrolled) .navbar-architecture .lg\:h-24 {
    height: 80px !important;
  }

  html[data-page="contacto"] main > section:first-child {
    padding-top: 112px !important;
    padding-bottom: 62px !important;
  }

  html[data-page="contacto"] main > section:first-child::before,
  html[data-page="contacto"] main > section:first-child::after {
    height: 500px;
  }

  html[data-page="contacto"] main > section:first-child::after {
    background-position: 58% 30%;
  }

  html[data-page="contacto"] main > section:first-child::before {
    background: linear-gradient(180deg,
      rgba(5,17,31,.42) 0%,
      rgba(5,19,34,.64) 50%,
      rgba(5,17,31,.91) 100%);
  }

  html[data-page="contacto"] main > section:first-child .text-center.max-w-3xl {
    margin-bottom: 50px !important;
  }

  html[data-page="contacto"] main > section:first-child h1 {
    max-width: 11ch;
    font-size: clamp(2.7rem, 12vw, 3.6rem) !important;
  }
}

/* Portada premium recuperada: vivienda moderna, fotovoltaica y climatización. */
html[data-home="true"] main > section:first-child.bg-premium-layer::before {
  background-image:
    linear-gradient(90deg,
      rgba(5,17,31,.6) 0%,
      rgba(6,23,40,.48) 39%,
      rgba(7,30,49,.22) 53%,
      rgba(7,30,49,.04) 66%,
      rgba(5,17,31,.02) 100%),
    url('/images/hero-corporativo-2026.webp') !important;
  background-position: center center !important;
  filter: brightness(1.08) saturate(.92) contrast(1.015) !important;
}

/* Wordmark limpio: se retiran el mapa y la señal decorativa lateral. */
.navbar-architecture img[src*="canary-islands-map"] {
  display: none !important;
}

.navbar-architecture a[aria-label="Volver al inicio"]::before,
.navbar-architecture a[aria-label="Volver al inicio"]::after {
  content: none !important;
  display: none !important;
}

.navbar-architecture > .max-w-7xl > div > div:first-child {
  gap: 0 !important;
}

@media (max-width: 1023px) {
  html[data-home="true"] main > section:first-child.bg-premium-layer::before {
    background-image:
      linear-gradient(180deg,
        rgba(5,17,31,.4) 0%,
        rgba(6,24,41,.43) 45%,
        rgba(5,17,31,.65) 100%),
      url('/images/hero-corporativo-2026.webp') !important;
    background-position: 68% center !important;
    filter: brightness(1.09) saturate(.92) contrast(1.015) !important;
  }
}
