/* Skip navigation — WCAG 2.1 AA / Ley 11/2023 */
.skip-link{position:absolute;top:-100%;left:1rem;background:#0b4f79;color:#fff;padding:.5rem 1rem;border-radius:0 0 6px 6px;font-size:.88rem;font-weight:700;text-decoration:none;z-index:9999;transition:top .15s}
.skip-link:focus{top:0}

:root {
  --bg0: #e9f4fc;
  --bg1: #d9ebf9;
  --bg2: #c4ddf1;
  --line: rgba(24, 96, 148, 0.28);
  --line-soft: rgba(24, 96, 148, 0.18);
  --text: #12364f;
  --muted: #4a6a80;
  --title: #0f4b73;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.97);
  --brand0: #0b4f79;
  --brand1: #1570a6;
  --cta0: #1083bf;
  --cta1: #2ec4da;
  --radius: 16px;
  --shadow: 0 24px 64px rgba(15, 64, 96, 0.16);
}

@font-face {
  font-family: "Highland";
  src: url("../fonts/HighlandGothicFLF.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Days";
  src: url("../fonts/Days.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 12%, rgba(43, 152, 215, 0.22) 0%, transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(22, 119, 178, 0.2) 0%, transparent 30%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 44%, var(--bg2) 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(42, 128, 183, 0.08) 1px, transparent 1px) 0 0 / 100% 54px,
    linear-gradient(90deg, rgba(42, 128, 183, 0.07) 1px, transparent 1px) 0 0 / 54px 100%;
  mask-image: radial-gradient(circle at 50% 44%, #000 48%, transparent 100%);
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(16px, 3vw, 42px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
  background: linear-gradient(180deg, rgba(8, 57, 88, 0.94) 0%, rgba(10, 74, 114, 0.78) 100%);
  backdrop-filter: blur(10px) saturate(130%);
}

.brand img {
  width: clamp(120px, 14vw, 180px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.menu {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.menu a {
  color: #e6f6ff;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
  transition: 180ms ease;
}

.menu a:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.15);
}

.menu a.is-active {
  border-color: rgba(46, 196, 218, 0.72);
  background: rgba(46, 196, 218, 0.16);
  color: #ffffff;
}

.menu .menu-cta {
  color: #f6fdff;
  border-color: rgba(255, 255, 255, 0.52);
  background: linear-gradient(125deg, var(--cta0), var(--cta1));
  font-weight: 700;
}

.menu-btn {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: transparent;
  color: #e7f6ff;
  padding: 8px 14px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #e6f6ff;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 180ms;
}
.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.15);
}
.search-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.search-box {
  display: flex;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width .28s ease, opacity .22s ease;
}
.search-box.is-open {
  max-width: 210px;
  opacity: 1;
}

.search-input {
  width: 190px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #ffffff;
  padding: 7px 16px;
  font-size: .88rem;
  outline: none;
  transition: background .18s, border-color .18s;
}
.search-input::placeholder { color: rgba(255, 255, 255, .5); }
.search-input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(46, 196, 218, 0.7);
}

@media (max-width: 760px) {
  .search-box.is-open { max-width: 150px; }
  .search-input { width: 130px; }
}
@media (max-width: 520px) {
  .search-wrap { display: none; }
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 118px clamp(18px, 3.5vw, 56px) 70px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: end;
  overflow: hidden;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 850ms ease, transform 3400ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.01);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.2) contrast(1.06) saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(98deg, rgba(5, 31, 49, 0.68) 8%, rgba(7, 45, 70, 0.34) 52%, rgba(5, 31, 49, 0.58) 100%),
    radial-gradient(circle at 18% 78%, rgba(62, 193, 223, 0.2) 0%, transparent 42%),
    radial-gradient(circle at 84% 18%, rgba(103, 197, 232, 0.2) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(880px, 96%);
}

.eyebrow {
  margin: 0 0 10px;
  color: #d6f0ff;
  letter-spacing: 0.16em;
  font-size: 0.79rem;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Days", "Highland", "Trebuchet MS", sans-serif;
  color: #f8fdff;
  font-size: clamp(2rem, 6.6vw, 5.5rem);
  line-height: 0.94;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(8, 50, 78, 0.28);
}

.hero-copy {
  margin: 18px 0 0;
  color: #ebf8ff;
  line-height: 1.6;
  max-width: 74ch;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.94rem;
  transition: 200ms ease;
}

.btn-primary {
  color: #f5fdff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(125deg, var(--cta0), var(--cta1));
}

.btn-secondary {
  color: #f0fbff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(13, 98, 147, 0.36);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(5, 34, 52, 0.35);
}

.hero-tags {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 13px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-tags-label {
  width: 100%;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin: 0 0 2px;
}

.hero-tags span {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(11, 82, 124, 0.36);
  color: #f2fcff;
  padding: 7px 11px;
  font-size: 0.8rem;
}

.hero-panel {
  position: relative;
  z-index: 2;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(165deg, rgba(10, 76, 114, 0.86) 0%, rgba(7, 53, 81, 0.84) 100%);
  box-shadow: var(--shadow);
  padding: 16px;
}

.hero-panel h2 {
  margin: 0;
  color: #f2fcff;
  font-family: "Highland", "Arial Narrow", sans-serif;
  font-size: 1.24rem;
}

.hero-panel ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.hero-panel li {
  color: #e7f7ff;
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.9rem;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel strong {
  color: #ffffff;
}

.hero-panel-list {
  margin: 10px 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.hero-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  padding: 9px 11px;
}

.hp-icon {
  width: 18px;
  height: 18px;
  color: #7de8ff;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-panel-item strong {
  display: block;
  color: #ffffff;
  font-size: .83rem;
  line-height: 1.2;
}

.hero-panel-item span {
  display: block;
  color: #c0e8ff;
  font-size: .73rem;
  line-height: 1.35;
  margin-top: 2px;
}

.hp-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7de8ff;
  font-size: .81rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 232, 255, 0.38);
}
.hp-cta:hover { color: #ffffff; }

.hero-panel.is-pulse {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 22px rgba(184, 235, 255, 0.28),
    var(--shadow);
}

.section,
.trust-bar {
  width: min(1300px, 96%);
  margin: 0 auto;
}

.trust-bar {
  margin-top: -26px;
  margin-bottom: 24px;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-bar article {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.trust-icon {
  width: 26px;
  height: 26px;
  color: var(--brand1);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 7px;
  flex-shrink: 0;
}

.trust-bar strong {
  display: block;
  color: #126ca2;
  font-family: "Days", "Highland", sans-serif;
  font-size: clamp(1.4rem, 3.7vw, 2.4rem);
}

.trust-bar span {
  color: #385c74;
  font-size: 0.9rem;
}

.section {
  padding: 28px 0 20px;
}

.section-alt {
  border-top: 2px solid rgba(46, 196, 218, 0.48);
  border-bottom: 1px solid var(--line-soft);
}

.section-head h2 {
  margin: 0;
  color: var(--title);
  font-family: "Highland", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.12;
}

.factory-grid,
.capacity-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.factory-card,
.capacity-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.factory-card h3,
.capacity-card h3 {
  margin: 0;
  color: #145884;
  font-size: 1.08rem;
}

.factory-card p,
.capacity-card p {
  margin: 10px 0;
  color: #3f637b;
  line-height: 1.52;
}

.factory-card a {
  color: #0f6da4;
  border-bottom: 1px dashed rgba(15, 109, 164, 0.5);
}

.capacity-card .cap-icon {
  width: 38px;
  height: 38px;
  color: var(--brand1);
  margin-bottom: 10px;
}
.capacity-card .cap-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.capacity-card > a {
  color: #0f6da4;
  font-size: .85rem;
  border-bottom: 1px dashed rgba(15, 109, 164, 0.5);
  text-decoration: none;
  align-self: flex-start;
}
.capacity-card > a:hover { color: var(--brand1); }

.cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  transition: 220ms ease;
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 107, 160, 0.4);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card p {
  margin: 0;
  padding: 0 12px 12px;
  color: #3f637b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.card h3 {
  margin: 0;
  padding: 12px 12px 6px;
  color: #1a5277;
  font-size: 0.98rem;
}

.sector-list {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sector-list span {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: #2a5f85;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.ia-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ia-card {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.ia-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ia-card figcaption {
  margin: 0;
  padding: 10px 12px;
  color: #3f637b;
  font-size: 0.88rem;
}

.mosaic {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}

.mosaic a {
  position: relative;
  min-height: 175px;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mosaic a:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.mosaic a:nth-child(2) { grid-column: span 4; grid-row: span 1; }
.mosaic a:nth-child(3) { grid-column: span 4; grid-row: span 1; }
.mosaic a:nth-child(4) { grid-column: span 3; grid-row: span 1; }
.mosaic a:nth-child(5) { grid-column: span 3; grid-row: span 1; }
.mosaic a:nth-child(6) { grid-column: span 6; grid-row: span 1; }

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transition: transform 380ms ease;
}

.mosaic a:hover img {
  transform: scale(1.08);
}

.mosaic a {
  transition: box-shadow 280ms ease, border-color 280ms ease;
}
.mosaic a:hover {
  border-color: rgba(46, 196, 218, 0.6);
  box-shadow: 0 6px 24px rgba(15, 64, 96, 0.28);
}

.mosaic span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 10px;
  background: rgba(8, 52, 80, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #f1fbff;
  padding: 8px 10px;
  font-size: 0.88rem;
}

.network-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.domain-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 6px;
  transition: 180ms ease;
}

.domain-card strong {
  font-size: 1.03rem;
  color: #154f76;
}

.domain-card span {
  color: #45667c;
  font-size: 0.9rem;
}

.domain-card:hover {
  transform: translateY(-3px);
}

.link-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.link-grid article {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-grid h3 {
  margin: 0 0 8px;
  color: #1f658f;
  font-size: 1rem;
}

.link-grid a {
  color: #355c74;
  font-size: 0.92rem;
  line-height: 1.38;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(29, 95, 138, 0.2);
}

.link-grid a:hover {
  color: #0f6da4;
}

.contact {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 14px;
}

.contact h2 {
  margin: 0;
  color: var(--title);
  font-family: "Highland", "Arial Narrow", sans-serif;
  font-size: clamp(1.6rem, 3.7vw, 2.7rem);
}

.contact p {
  color: #3e647c;
  line-height: 1.56;
}

.video-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

/* miniatura YouTube cuando el embed está bloqueado */
.yt-thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-decoration: none;
}
.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.yt-thumb:hover img { transform: scale(1.04); }
.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.38);
  transition: background .2s ease;
}
.yt-thumb:hover .yt-play { background: rgba(0,0,0,.55); }
.yt-play-icon {
  width: 64px;
  height: 64px;
  background: #ff0000;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: transform .2s ease;
}
.yt-thumb:hover .yt-play-icon { transform: scale(1.1); }
.yt-play-icon::after {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.video-card p {
  margin: 0;
  padding: 12px;
}

.footer {
  margin-top: 28px;
  padding: 24px clamp(16px, 3vw, 42px) 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(180deg, rgba(11, 74, 113, 0.93) 0%, rgba(8, 56, 87, 0.95) 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ddf3ff;
}

.footer-brand img {
  width: 110px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #f0fbff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 7px 12px;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  font-size: .8rem;
}
.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #c8eeff;
  text-decoration: none;
}
.footer-contact a:hover { color: #ffffff; }
.footer-contact svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.footer-contact .fc-addr {
  color: rgba(200, 238, 255, .55);
  font-size: .74rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 440ms ease, transform 440ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FONT LOADING OPTIMIZATION =====
   When WOFF2 files are generated, update src to:
   src: url("../fonts/NombreFont.woff2") format("woff2"),
        url("../fonts/NombreFont.ttf") format("truetype");
   Generar con: https://cloudconvert.com/ttf-to-woff2
   ======================================== */

/* ===== TRUST BAR COUNTER ===== */
.stat-count {
  display: block;
  color: #126ca2;
  font-family: "Days", "Highland", sans-serif;
  font-size: clamp(1.4rem, 3.7vw, 2.4rem);
}

/* ===== FACTORY SPLIT ===== */
.factory-split {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.factory-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.factory-image img {
  width: 100%;
  min-height: 340px;
  object-fit: cover;
}

.factory-cards {
  display: grid;
  gap: 12px;
}

/* ===== IA / DIGITALIZACIÓN SECTION ===== */
.ia-split {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.ia-split-content {
  display: flex;
  flex-direction: column;
}

.ia-intro {
  margin: 0 0 18px;
  color: #3a617b;
  font-size: 1.05rem;
  line-height: 1.58;
}

.ia-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ia-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(15, 64, 96, 0.08);
}

.ia-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand1);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ia-list strong {
  display: block;
  color: #1a5880;
  font-size: 0.97rem;
  margin-bottom: 3px;
}

.ia-list p {
  margin: 0;
  color: #3f637b;
  font-size: 0.88rem;
  line-height: 1.44;
}

.btn-ia {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--brand0);
  border: 2px solid var(--brand1);
  transition: 200ms ease;
  background: transparent;
  align-self: flex-start;
}

.btn-ia:hover {
  background: var(--brand0);
  color: #f5fdff;
  transform: translateY(-2px);
}

.ia-split-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.ia-split-image img {
  width: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

.ia-badge {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 10px;
  background: rgba(8, 46, 70, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 10px 14px;
}

.ia-badge span {
  color: #e8f8ff;
  font-size: 0.86rem;
  line-height: 1.38;
}

/* ===== SECTORS SECTION ===== */
.sector-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.sector-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 22px 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: #1a5880;
  text-decoration: none;
  transition: 200ms ease;
}

.sector-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 107, 160, 0.52);
  background: rgba(218, 242, 255, 0.98);
}

.sector-svg {
  width: 38px;
  height: 38px;
  color: #1570a6;
  flex-shrink: 0;
}

.sector-card span {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1a4d6e;
  line-height: 1.22;
}

/* ===== QUALITY SECTION ===== */
.quality-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quality-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: 200ms ease;
}

.quality-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 107, 160, 0.42);
}

.quality-icon {
  width: 42px;
  height: 42px;
  color: #1570a6;
  flex-shrink: 0;
}

.quality-icon svg {
  width: 100%;
  height: 100%;
}

.quality-card h3 {
  margin: 0;
  color: #145884;
  font-size: 0.99rem;
}

.quality-card p {
  margin: 0;
  color: #3f637b;
  font-size: 0.87rem;
  line-height: 1.5;
  flex-grow: 1;
}

.quality-card a {
  color: #0f6da4;
  font-size: 0.87rem;
  border-bottom: 1px dashed rgba(15, 109, 164, 0.5);
  align-self: flex-start;
  text-decoration: none;
}

.quality-card a:hover {
  color: var(--brand1);
}

/* ===== SECTION LEAD ===== */
.section-lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.56;
  max-width: 72ch;
}

/* ===== NETWORK / RED EMPRESAS ===== */
.network-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.domain-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 16px 14px;
  display: grid;
  gap: 4px;
  transition: 180ms ease;
  text-decoration: none;
  color: inherit;
}

.domain-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 107, 160, 0.44);
}

.domain-icon {
  width: 28px;
  height: 28px;
  color: #1570a6;
  margin-bottom: 6px;
}

.domain-card strong {
  font-size: 0.95rem;
  color: #154f76;
}

.domain-card span {
  color: #45667c;
  font-size: 0.86rem;
  line-height: 1.36;
}

.domain-card-main {
  border-color: rgba(21, 112, 166, 0.4);
  background: linear-gradient(145deg, rgba(210, 240, 255, 0.9), rgba(255,255,255,0.98));
}

/* ===== PRODUCTS MORE CTA ===== */
.products-more {
  margin-top: 18px;
  text-align: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--brand1);
  border: 2px solid var(--brand1);
  transition: 200ms ease;
  background: transparent;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--brand0);
  color: #f5fdff;
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .factory-grid,
  .capacity-grid,
  .ia-grid {
    grid-template-columns: 1fr;
  }

  .factory-split {
    grid-template-columns: 1fr;
  }

  .factory-image img {
    min-height: 240px;
  }

  .ia-split {
    grid-template-columns: 1fr;
  }

  .ia-split-image {
    order: -1;
  }

  .ia-split-image img {
    min-height: 280px;
  }

  .sector-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .menu-btn {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(7, 58, 89, 0.98);
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
  }

  .trust-bar {
    margin-top: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic a {
    min-height: 230px;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-grid {
    grid-template-columns: 1fr;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 148px;
  right: 24px;
  z-index: 8998;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 60, 95, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #c8eeff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .22s, transform .22s, background .16s;
  backdrop-filter: blur(6px);
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: rgba(11, 60, 95, 1);
  color: #ffffff;
}
.scroll-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 480px) {
  .scroll-top { bottom: 144px; right: 18px; }
}

/* Telegram floating button */
.tg-btn{position:fixed;bottom:82px;right:24px;z-index:9000;display:flex;align-items:center;gap:8px;background:#229ED9;color:#fff;border-radius:999px;padding:10px 16px 10px 12px;font-size:.84rem;font-weight:600;text-decoration:none;box-shadow:0 4px 16px rgba(34,158,217,.4);transition:transform .18s,box-shadow .18s}
.tg-btn svg{width:20px;height:20px;flex-shrink:0}
.tg-btn:hover{transform:translateY(-3px) scale(1.04);box-shadow:0 8px 24px rgba(34,158,217,.55);text-decoration:none;color:#fff}
@media(max-width:480px){.tg-btn span{display:none}.tg-btn{padding:11px;border-radius:50%;bottom:76px}}

/* WhatsApp floating button */
.wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px 12px 14px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.wa-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(37, 211, 102, .55);
}
@media (max-width: 480px) {
  .wa-btn span { display: none; }
  .wa-btn { padding: 13px; border-radius: 50%; }
}

/* ===== MEJORA 1: HERO 100svh + KEN BURNS ===== */
@keyframes kenburns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.07) translate(-1%, -1%); }
}
.hero-slide.is-active { animation: kenburns 8s ease-out forwards; }
@media (min-width: 900px) {
  .hero { min-height: 100svh; }
}

/* ===== MEJORA 3: PRODUCT CARDS HOVER OVERLAY ===== */
.card { position: relative; }
.card img { transition: transform .4s ease; }
.card:hover img { transform: scale(1.04); }
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4,18,34,.92) 0%, rgba(4,18,34,.5) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem; opacity: 0; transition: opacity .3s;
}
.card:hover .card-overlay { opacity: 1; }
.card-overlay h3 { color: #fff; font-size: .95rem; font-weight: 700; margin: 0 0 .3rem; }
.card-overlay p  { color: rgba(255,255,255,.88); font-size: .8rem; margin: 0; line-height: 1.5; }

/* ===== MEJORA 4: SECTOR CARDS CON FOTO DE FONDO ===== */
.sector-card { position: relative; overflow: hidden; }
.sector-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(4,18,34,.58), rgba(15,75,115,.46));
  transition: opacity .3s;
}
.sector-card:hover::before { opacity: .3; }
.sector-card.padel-sector::before {
  background: linear-gradient(160deg, rgba(4,18,34,.38), rgba(15,75,115,.26));
}
.sector-card.padel-sector:hover::before { opacity: .16; }
.sector-card .sector-svg, .sector-card span { position: relative; z-index: 1; }
.sector-card span { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.sector-card.is-main span { color: #fff !important; text-shadow: 0 1px 5px rgba(0,0,0,.7); }
.sector-card.is-main .sector-svg { color: #fff !important; }
.sector-card.is-main:hover { background: transparent; }
.sector-card.is-main:hover span { color: #fff !important; }

/* ===== MEJORA 5: FOOTER 4 COLUMNAS ===== */
.footer-expanded { padding: 0; background: #041222; display: block; width: 100%; box-sizing: border-box; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 3rem 2rem 2rem; }
.footer-col-brand img { height: 48px; margin-bottom: .8rem; display: block; }
.footer-col-brand p { font-size: .82rem; color: rgba(255,255,255,.6); line-height: 1.6; margin: 0 0 .9rem; }
.footer-certs { display: flex; gap: .4rem; flex-wrap: wrap; }
.footer-cert { background: rgba(46,196,218,.12); border: 1px solid rgba(46,196,218,.3); color: #2ec4da; font-size: .68rem; font-weight: 800; padding: .2rem .55rem; border-radius: 4px; letter-spacing: .06em; }
.footer-col h4 { color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .9rem; }
.footer-col a { display: block; color: rgba(255,255,255,.58); font-size: .82rem; text-decoration: none; margin-bottom: .45rem; transition: color .15s; }
.footer-col a:hover { color: #2ec4da; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: .3rem .6rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.1); }
.footer-legal-links a { font-size: .74rem; margin: 0; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom span { font-size: .78rem; color: rgba(255,255,255,.35); }
.footer-bottom a { font-size: .78rem; color: rgba(255,255,255,.35); text-decoration: none; }
.footer-bottom a:hover { color: #2ec4da; }
@media(max-width:900px){ .footer-inner { grid-template-columns: 1fr 1fr; } }
@media(max-width:550px){ .footer-inner { grid-template-columns: 1fr; } }

/* ===== MEJORA 6: STICKY HEADER COMPACTO + ACTIVE NAV ===== */
.topbar { transition: padding .3s, box-shadow .3s; }
.topbar.is-scrolled { padding-top: .4rem; padding-bottom: .4rem; box-shadow: 0 2px 20px rgba(4,18,34,.18); }
.topbar.is-scrolled .brand img { transform: scale(0.82); transition: transform .3s; }

/* ── SCROLL PROGRESS BAR ──────────────────────────────── */
#scroll-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #1083bf, #2ec4da);
  transition: width .08s linear;
  pointer-events: none;
  z-index: 91;
}

/* ── SCROLL-TOP BOUNCE + TOOLTIP ─────────────────────── */
@keyframes gc-bounce {
  0%,100% { transform: translateY(0); }
  30%      { transform: translateY(-6px); }
  60%      { transform: translateY(-2px); }
}
.scroll-top.is-visible { animation: gc-bounce .55s ease .1s 1; }
.scroll-top[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 8px);
  top: 50%; transform: translateY(-50%);
  background: rgba(4,18,34,.88);
  color: #e0f4f8;
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
  padding: .22rem .55rem;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.scroll-top:hover::after { opacity: 1; }

/* ── OBRAS RECIENTES ──────────────────────────────────── */
.obras-recientes { padding: 3rem 5%; background: #f4f9fd; border-top: 1px solid #d8eaf6; }
.obras-recientes-head { text-align: center; margin-bottom: 1.8rem; }
.obras-recientes-head .eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #1570a6; display: block; margin-bottom: .4rem; }
.obras-recientes-head h2 { font-size: clamp(1.3rem,3vw,1.8rem); font-weight: 800; color: #0d3a5e; margin: 0; }
.obras-recientes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto 1.6rem; }
.obra-card { border-radius: 12px; overflow: hidden; box-shadow: 0 6px 22px rgba(12,49,79,.12); position: relative; display: block; text-decoration: none; }
.obra-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .4s; }
.obra-card:hover img { transform: scale(1.04); }
.obra-card-body { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(0deg, rgba(4,18,34,.92) 0%, transparent 100%); padding: .9rem 1rem .7rem; }
.obra-card-tipo { display: inline-block; background: #2ec4da; color: #041222; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 3px; margin-bottom: .3rem; }
.obra-card-name { display: block; color: #fff; font-size: .88rem; font-weight: 700; line-height: 1.3; }
.obra-card-place { display: block; color: rgba(255,255,255,.65); font-size: .74rem; margin-top: .15rem; }
.obras-recientes-cta { text-align: center; }
.obras-recientes-cta a { display: inline-flex; align-items: center; gap: .4rem; color: #1570a6; font-size: .88rem; font-weight: 700; text-decoration: none; border: 1.5px solid #1570a6; padding: .6rem 1.4rem; border-radius: 8px; transition: background .15s, color .15s; }
.obras-recientes-cta a:hover { background: #1570a6; color: #fff; }
@media (max-width: 700px) { .obras-recientes-grid { grid-template-columns: 1fr; } }

/* ── HERO VIDEO (desktop) ─────────────────────────────── */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video-wrap.is-playing video { opacity: 1; }
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .hero-video-wrap { display: none; }
}

.menu a { position: relative; }
.menu a.is-active::after { content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 2px; background: #2ec4da; border-radius: 1px; }
