/* =========================
   RIVOTEC - styles.css
   Tema claro + corporativo
   ========================= */

:root{
  --bg: #f6f7fb;
  --bg2: #ffffff;

  --surface: rgba(255,255,255,.88);
  --surface-solid: #ffffff;
  --surface-2: rgba(15,23,42,.03);

  --text: #0b1020;
  --muted: #4b5675;

  --border: rgba(15,23,42,.12);
  --shadow: 0 18px 55px rgba(2,6,23,.12);

  --primary: #0000ff;
  --primary-2: #0070cc;
  --accent: #53008b;

  --radius: 18px;
  --radius-sm: 14px;
  --container: 1100px;
  --header-offset: 72px;
  --logo-height: 54px;
  --logo-height-sm: 42px;
  --logo-stroke: drop-shadow(0 0 1px #ffffff) drop-shadow(0 0 2px #ffffff);
}


*{ box-sizing: border-box; }
html, body{ height: 100%; }

/* Scrollbar (corporate color) */
*{
  scrollbar-color: var(--primary-2) rgba(15,23,42,.08);
  scrollbar-width: thin;
}
*::-webkit-scrollbar{
  width: 10px;
}
*::-webkit-scrollbar-track{
  background: rgba(15,23,42,.08);
}
*::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  border-radius: 999px;
  border: 2px solid rgba(15,23,42,.08);
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  line-height: 1.5;
  background:
    radial-gradient(1200px 700px at 12% 0%, rgba(0,112,204,.18), transparent 60%),
    radial-gradient(1200px 700px at 88% 0%, rgba(83,0,139,.14), transparent 60%),
    radial-gradient(1200px 900px at 50% 115%, rgba(0,0,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 45%, var(--bg) 100%);
}

body.intro-lock{
  overflow: hidden;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,.015) 0px,
      rgba(0,0,0,.015) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity: .28;
  mix-blend-mode: multiply;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 4px; }

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

.container{ width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }

.skip-link{
  position: absolute;
  left: -999px;
  top: 8px;
  padding: .6rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.skip-link:focus{ left: 1rem; z-index: 9999; }

/* Intro screen (full-page welcome) */
.intro-screen{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1100px 680px at 20% 0%, rgba(0,112,204,.20), rgba(246,248,252,1) 60%),
    radial-gradient(1000px 640px at 85% 10%, rgba(83,0,139,.18), rgba(246,248,252,1) 60%),
    radial-gradient(900px 720px at 50% 120%, rgba(0,0,255,.14), rgba(246,248,252,1) 60%),
    linear-gradient(160deg, #f8f9fd 0%, #eef2f9 48%, #f8f9fd 100%);
  transition: opacity .55s ease, visibility .55s ease;
  will-change: transform, clip-path, opacity;
}

.intro-screen::before,
.intro-screen::after{
  content:"";
  position: absolute;
  inset: -55%;
  pointer-events: none;
  opacity: .55;
  filter: blur(26px);
  background:
    radial-gradient(820px 820px at 18% 18%, rgba(0,112,204,.75), transparent 60%),
    radial-gradient(900px 900px at 82% 28%, rgba(0,0,255,.65), transparent 60%),
    radial-gradient(860px 860px at 55% 78%, rgba(83,0,139,.70), transparent 60%);
  animation: introOrbs 10s ease-in-out infinite;
}

.intro-screen::after{
  opacity: .38;
  filter: blur(34px);
  animation-duration: 16s;
  animation-direction: alternate;
}

@media (min-width: 900px){
  .intro-screen{
    background:
      radial-gradient(1500px 900px at 18% 0%, rgba(0,112,204,.30), rgba(246,248,252,1) 58%),
      radial-gradient(1400px 860px at 88% 12%, rgba(83,0,139,.26), rgba(246,248,252,1) 58%),
      radial-gradient(1200px 980px at 50% 120%, rgba(0,0,255,.24), rgba(246,248,252,1) 60%),
      linear-gradient(160deg, #f5f7fd 0%, #e9eff8 48%, #f5f7fd 100%);
  }

  .intro-screen::before,
  .intro-screen::after{
    opacity: .7;
  }

  .intro-screen::after{
    opacity: .5;
  }
}

.intro-screen--hide{
  pointer-events: none;
  animation: introWipe .8s ease forwards;
}

.intro-screen__panel{
  width: min(520px, 86vw);
  text-align: center;
  display: grid;
  gap: 1rem;
  padding: 2.2rem 2.4rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #f5f5f5, #d9dde4);
  border: 1px solid rgba(15,23,42,.18);
  box-shadow: 0 24px 60px rgba(2,6,23,.22);
}

.intro-screen__logo-wrap{
  display: grid;
  place-items: center;
  padding: .9rem 1.3rem;
  border-radius: 20px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.intro-screen__logo{
  width: min(360px, 80vw);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(2,6,23,.16));
}

.intro-screen__title{
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(0,112,204,.95), rgba(0,0,255,.95), rgba(83,0,139,.95));
  border-radius: 999px;
  padding: .45rem 1.2rem;
  box-shadow: 0 12px 30px rgba(2,6,23,.22);
}

.intro-screen__spinner{
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 999px;
  border: 3px solid rgba(15,23,42,.14);
  border-top-color: var(--primary-2);
  border-right-color: var(--primary);
  border-bottom-color: var(--accent);
  animation: introSpin 1s linear infinite;
}

@keyframes introSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

@keyframes introWipe{
  0%{
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
  65%{
    opacity: .45;
    clip-path: inset(0 0 55% 0);
    transform: translateY(-3%);
  }
  100%{
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(-6%);
    visibility: hidden;
  }
}

@keyframes introOrbs{
  0%{ transform: translate3d(0, 0, 0) scale(1); }
  35%{ transform: translate3d(-8%, 6%, 0) scale(1.08); }
  70%{ transform: translate3d(7%, -5%, 0) scale(1.12); }
  100%{ transform: translate3d(0, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce){
  .intro-screen__spinner{ animation: none; }
  .intro-screen::before,
  .intro-screen::after{ animation: none; }
}

/* Header */
header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,247,251,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: .6rem 0;
  gap: 1rem;
  position: relative;
}

.brand{
  display:flex;
  align-items:center;
  gap:.75rem;
  min-width: 260px;
}

.brand img{
  /* Wide logo: keep ratio and prevent deformation */
  height: auto;
  width: auto;
  max-height: var(--logo-height);
  max-width: 380px;
  object-fit: contain;
  filter: var(--logo-stroke);
}

.brand .name{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand .name strong{
  letter-spacing:.2px;
  font-size: 1.02rem;
}

.brand .name span{
  color: var(--muted);
  font-size: .86rem;
}

nav ul{
  display:flex;
  align-items:center;
  gap: .9rem;
  list-style:none;
  padding:0;
  margin:0;
}

/* Nav buttons */
header .nav nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255,255,255,.70), rgba(255,255,255,.70)) padding-box,
    linear-gradient(90deg, rgba(0,112,204,.95), rgba(0,0,255,.95), rgba(83,0,139,.90)) border-box;
  color: var(--muted);
  text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease, background .15s ease, filter .15s ease;
}

header .nav nav a:hover,
header .nav nav a:focus-visible{
  background:
    linear-gradient(rgba(15,23,42,.16), rgba(15,23,42,.16)) padding-box,
    linear-gradient(90deg, rgba(0,112,204,1), rgba(0,0,255,1), rgba(83,0,139,1)) border-box;
  color: #fff;
  box-shadow: 0 10px 26px rgba(2,6,23,.22);
  transform: translateY(-1px);
  text-decoration:none;
}

header .nav nav a.active,
header .nav nav a.is-active,
header .nav nav a[aria-current="page"]{
  background:
    linear-gradient(90deg, rgba(0,112,204,1), rgba(0,0,255,1), rgba(83,0,139,1)) padding-box,
    linear-gradient(90deg, rgba(0,112,204,1), rgba(0,0,255,1), rgba(83,0,139,1)) border-box;
  color: #fff;
  box-shadow: 0 12px 30px rgba(2,6,23,.18);
}

.hamburger{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.16);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(2,6,23,.18);
  cursor: pointer;
}

/* Hero */
.hero-bleed{
  position: relative;
  overflow: hidden;
}

.hero-bleed > section{
  position: relative;
  z-index: 1;
}

.hero{
  position: relative;
  /* el vídeo de fondo vive en .hero-bleed */
  padding: 3.1rem 0 2.3rem;
}

.hero .container{
  position: relative;
  z-index: 1;
}

.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}

.hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 65% 25%, rgba(0,112,204,.20), transparent 60%),
    radial-gradient(900px 420px at 15% 20%, rgba(83,0,139,.14), transparent 55%),
    /* Capa clara suave: deja ver el vídeo sin perder legibilidad */
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.66));
}

.hero-video{
  width:100%;
  height:100%;
  object-fit:cover;
  /* Más "vivo" sin oscurecer el contenido */
  opacity:.42;
  filter: saturate(1.35) contrast(1.15) brightness(1.06);
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items:center;
}

.hero-grid > *, .two-col > *, .contact > * { min-width: 0; }

.badge{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .88rem;
  width: fit-content;
}

.badge--process{
  position: relative;
  z-index: 1;
}
.badge--process::before{
  content:"";
  position: absolute;
  inset: -6px -10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 50%, rgba(0,112,204,.18), rgba(83,0,139,.10));
  z-index: -1;
}

.process-step{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
}
.process-icon{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-2);
  background: rgba(0,112,204,.10);
  border: 1px solid rgba(0,112,204,.18);
}
.process-icon svg{
  width: 18px;
  height: 18px;
}

.badge .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-2), var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(0,112,204,.20);
}

h1{
  margin: .9rem 0 .8rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero h1{
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.lead{
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

.hero-actions{
  display:flex;
  gap:.8rem;
  flex-wrap:wrap;
  margin-top: 1.2rem;
}

.hero-actions .btn{
  width: 160px;
  height: 44px;
  padding: 0 1rem;
  line-height: 1;
  white-space: nowrap;
}


/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding: .65rem .95rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, filter .15s ease;
  user-select: none;
}

.btn:hover{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.18);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(2,6,23,.12);
  text-decoration:none;
}

.btn-primary{
  color: #fff;
  border-color: rgba(0,112,204,.28);
  background: linear-gradient(90deg, rgba(0,112,204,1), rgba(0,0,255,1), rgba(83,0,139,1));
}

.btn-primary:hover{
  background: linear-gradient(90deg, rgba(0,112,204,1), rgba(0,0,255,1), rgba(83,0,139,1));
  filter: brightness(1.06);
}

.btn-ghost{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
  color: #ffffff;
}

.btn-ghost:hover{
  background: rgba(255,255,255,.22);
  color: #ffffff;
}

/* Floating actions (WhatsApp + audio) */
.floating-actions{
  position: fixed;
  right: 1.2rem;
  bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.floating-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.16);
  background: rgba(255,255,255,.9);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(2,6,23,.18);
  cursor: pointer;
}
.floating-toggle span{
  display: inline-block;
  transform: rotate(0deg);
  transition: transform .2s ease;
}
.floating-actions.is-collapsed .floating-toggle span{
  transform: rotate(180deg);
}
.floating-actions.is-collapsed .whatsapp-float,
.floating-actions.is-collapsed .audio-toggle{
  display: none;
}

.floating-actions .whatsapp-float,
.floating-actions .audio-toggle{
  min-height: 42px;
}

.whatsapp-float{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  width: 132px;
  padding: .6rem .9rem;
  border-radius: 999px;
  font-weight: 700;
  background: #1EBE5D;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(2,6,23,.18);
  border: 1px solid rgba(15,23,42,.08);
}

.whatsapp-float:hover{
  background: #17a750;
  color: #ffffff;
  text-decoration: none;
}

/* Floating audio toggle */
.audio-toggle{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 120px;
  width: 132px;
  padding: .6rem .9rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(15,23,42,.16);
  background: rgba(255,255,255,.88);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(2,6,23,.18);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.audio-toggle__label{
  font-size: .9rem;
}

.audio-toggle__state{
  font-size: .72rem;
  letter-spacing: .18em;
  min-width: 3ch;
  text-align: center;
  padding: .2rem .5rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(0,112,204,.95), rgba(0,0,255,.95), rgba(83,0,139,.95));
}

.audio-toggle.is-off .audio-toggle__state{
  background: rgba(15,23,42,.15);
  color: var(--text);
}

.audio-toggle:focus-visible{
  outline: 2px solid rgba(0,112,204,.45);
  outline-offset: 3px;
}

@media (max-width: 520px){
  .floating-actions{
    right: .85rem;
    gap: .5rem;
  }

  .floating-toggle{
    display: inline-grid;
    place-items: center;
  }

  .whatsapp-float,
  .audio-toggle{
    min-width: 108px;
    width: 118px;
    padding: .5rem .75rem;
    font-size: .88rem;
  }

  .audio-toggle__state{
    font-size: .66rem;
    padding: .18rem .4rem;
  }
}

/* Cards */
.hero-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.stats{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-top:.8rem;
}

.stat{
  display:grid;
  gap:.2rem;
  padding:.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
}

.stat strong{ font-size: 1.2rem; }
.stat span{ color: var(--muted); font-size: .92rem; }

section{ padding: 2.5rem 0; }

.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-title h2{
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}

.section-title p{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

#colaboraciones .section-title p{
  max-width: none;
  text-wrap: balance;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Proceso: subtle connector line between cards */
#proceso .grid-3{
  position: relative;
}
#proceso .grid-3::before{
  content:"";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 24px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,112,204,.25), rgba(83,0,139,.25));
  z-index: 0;
}
#proceso .grid-3 .card{
  position: relative;
  z-index: 1;
}

@media (max-width: 880px){
  #proceso .grid-3::before{
    display: none;
  }
}

.card{
  padding: 1.15rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 35px rgba(0,0,0,.08);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
  min-height: 170px;
}

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,112,204,.28);
  background: rgba(255,255,255,.93);
  box-shadow: 0 16px 45px rgba(2,6,23,.14);
}

.card h3{ margin: .75rem 0 .45rem; }
.card p{ margin: 0; color: var(--muted); }

.icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border: 1px solid var(--border);
  background:
    radial-gradient(25px 25px at 30% 30%, rgba(0,112,204,.20), transparent 70%),
    radial-gradient(22px 22px at 70% 70%, rgba(83,0,139,.16), transparent 70%),
    rgba(255,255,255,.8);
}

.icon svg{ width: 26px; height: 26px; }

.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.two-col.one-col{
  grid-template-columns: 1fr;
}

/* Optifibra highlight */
.optifibra-hero{
  position: relative;
  border-radius: 24px;
  padding: 2.2rem;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(124,54,146,.28), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(210,45,74,.26), transparent 55%),
    linear-gradient(135deg, rgba(120,52,144,.96), rgba(178,52,109,.96), rgba(208,45,74,.92));
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(2,6,23,.25);
  overflow: hidden;
}

.optifibra-hero::before{
  content:"";
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.20) 1.3px, transparent 2.6px);
  background-size: 12px 12px;
  opacity: .35;
  transform: rotate(12deg);
  pointer-events: none;
}

.optifibra-hero__grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}

.optifibra-hero__badge{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .85rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
}

.optifibra-hero__logo{
  margin: .2rem 0 .8rem;
  max-width: 360px;
  background: rgba(255,255,255,.92);
  border-radius: 16px;
  padding: .6rem .9rem;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 10px 28px rgba(2,6,23,.18);
}

.optifibra-hero__lead{
  margin-top: 0;
}

.optifibra-hero__logo img{
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.2));
}

.optifibra-hero__lead{
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255,255,255,.9);
  max-width: 60ch;
}

.optifibra-hero__highlights{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1.2rem;
}

.optifibra-hero__item{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: .75rem .85rem;
  position: relative;
  overflow: hidden;
}

.optifibra-hero__item--fibra{
  background: none;
}

.optifibra-hero__item--fibra::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/optifibra/fibra.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(0.6px);
  opacity: 0.85;
}

.optifibra-hero__item--fibra::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(90,38,120,0.65), rgba(128,36,86,0.7));
  opacity: 0.55;
}

.optifibra-hero__item--fibra > *{
  position: relative;
  z-index: 1;
}

.optifibra-hero__item--movil{
  background: none;
}

.optifibra-hero__item--movil::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/optifibra/movil.jpg?v=2");
  background-size: cover;
  background-position: center;
  filter: blur(0.6px);
  opacity: 0.85;
}

.optifibra-hero__item--movil::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(90,38,120,0.65), rgba(128,36,86,0.7));
  opacity: 0.55;
}

.optifibra-hero__item--movil > *{
  position: relative;
  z-index: 1;
}

.optifibra-hero__item--tv{
  background: none;
}

.optifibra-hero__item--tv::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/optifibra/tv.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(0.6px);
  opacity: 0.85;
}

.optifibra-hero__item--tv::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(90,38,120,0.65), rgba(128,36,86,0.7));
  opacity: 0.55;
}

.optifibra-hero__item--tv > *{
  position: relative;
  z-index: 1;
}

.optifibra-hero__item--soporte{
  background: none;
}

.optifibra-hero__item--soporte::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/optifibra/soporte.jpg");
  background-size: cover;
  background-position: center 60%;
  filter: blur(0.6px);
  opacity: 0.85;
}

.optifibra-hero__item--soporte::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(90,38,120,0.65), rgba(128,36,86,0.7));
  opacity: 0.55;
}

.optifibra-hero__item--soporte > *{
  position: relative;
  z-index: 1;
}

.optifibra-hero__item strong{
  display: block;
  font-size: .95rem;
  margin-bottom: .15rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

.optifibra-hero__item span{
  font-size: .88rem;
  color: rgba(255,255,255,.85);
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

.optifibra-hero__actions{
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  align-items: center;
}

.optifibra-hero__actions .btn{
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 10px 22px rgba(2,6,23,.18);
}

.optifibra-hero__actions .btn-wa{
  width: 160px;
  height: 44px;
  padding: 0 1rem;
  line-height: 1;
}

.optifibra-hero__tagline{
  margin-left: auto;
  font-weight: 700;
  font-size: 1.05rem;
  color: rgba(255,255,255,.95);
  letter-spacing: .01em;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 640px){
  .optifibra-hero__actions{
    justify-content: center;
    text-align: center;
    gap: 1.6rem;
  }
  .optifibra-hero__tagline{
    white-space: nowrap;
    text-align: center;
    margin-left: 0;
    font-size: .98rem;
  }
}

.optifibra-hero__cta{
  animation: optifibraPulse 1.8s ease-in-out infinite;
  box-shadow: 0 12px 26px rgba(2,6,23,.22);
}

@keyframes optifibraPulse{
  0%{ transform: translateY(0); box-shadow: 0 12px 26px rgba(2,6,23,.22); }
  50%{ transform: translateY(-3px); box-shadow: 0 18px 36px rgba(2,6,23,.28); }
  100%{ transform: translateY(0); box-shadow: 0 12px 26px rgba(2,6,23,.22); }
}

.optifibra-hero__card{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  position: relative;
  overflow: hidden;
}

.optifibra-hero__card::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/optifibra/optifibra-atencion.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(1.5px);
  opacity: 0.55;
  transform: scale(1.05);
}

.optifibra-hero__card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(90,38,120,0.55), rgba(128,36,86,0.7));
  opacity: 0.7;
}

.optifibra-hero__card > *{
  position: relative;
  z-index: 1;
}

.optifibra-hero__card-title{
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
}

.optifibra-hero__card-subtitle{
  font-size: 1.2rem;
  font-weight: 700;
  margin: .35rem 0 1rem;
}


.optifibra-hero__list{
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .5rem;
  color: rgba(255,255,255,.9);
}

.optifibra-hero__seal{
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  font-size: .82rem;
  white-space: nowrap;
}

@media (max-width: 900px){
  .optifibra-hero{
    padding: 1.6rem;
  }
  .optifibra-hero__grid{
    grid-template-columns: 1fr;
  }
  .optifibra-hero__highlights{
    grid-template-columns: 1fr;
  }
  .optifibra-hero__card::before{
    background-position: 15% center;
    background-size: 115% auto;
  }
  .optifibra-hero__lead{
    margin-top: 1rem;
  }
  .optifibra-hero__seal{
    font-size: clamp(.62rem, 2.7vw, .74rem);
    padding: .25rem .5rem;
    white-space: nowrap;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

@media (min-width: 881px){
  .two-col .panel{
    height: 100%;
    display: flex;
    flex-direction: column;
  }
}

.panel{
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

.checklist{
  margin: .6rem 0 0;
  padding:0;
  list-style:none;
}
.checklist li{
  display:flex;
  gap:.6rem;
  align-items:flex-start;
  padding: .45rem 0;
  color: var(--muted);
}

.check{
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,112,204,1), rgba(0,0,255,1), rgba(83,0,139,1));
  display:grid;
  place-items:center;
  box-shadow: 0 0 18px rgba(0,112,204,.18);
  margin-top: .05rem;
}
.check svg{ width: 14px; height: 14px; }

.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.contact .small{
  color: var(--muted);
  font-size: .92rem;
  margin-top: .6rem;
}

/* Contact meta + map preview */
.contact-meta{
  margin-top: .9rem;
  display: grid;
  gap: .55rem;
}
.contact-meta .meta{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  text-decoration: none;
}
.contact-meta .meta:hover{ color: var(--text); }
.contact-meta .meta-ico{ width: 1.25rem; text-align: center; }

.map-embed{
  margin-top: .75rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.65);
  width: 100%;
  aspect-ratio: 16 / 10;
}
.map-embed iframe{
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Collaborations auto slider */
.collab-slider{
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.65);
  box-shadow: 0 16px 45px rgba(2,6,23,.08);
  overflow: hidden;
  padding: 1rem 0;
}

.collab-track{
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: max-content;
  padding: .25rem 1.25rem;
  animation: collabScroll 22s linear infinite;
}

.collab-slider:hover .collab-track{
  animation-play-state: paused;
}

.collab-item{
  flex: 0 0 auto;
  height: 74px;
  width: 210px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.86);
}

.collab-item img{
  height: 46px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  filter: saturate(1.02);
}

.collab-logo--orange{
  height: 74px;
  max-width: 210px;
  transform: scale(1.35);
  transform-origin: center;
}

.collab-slider::before,
.collab-slider::after{
  content:"";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52px;
  pointer-events: none;
  z-index: 2;
}
.collab-slider::before{
  left: 0;
  background: linear-gradient(90deg, rgba(246,247,251,1), rgba(246,247,251,0));
}
.collab-slider::after{
  right: 0;
  background: linear-gradient(-90deg, rgba(246,247,251,1), rgba(246,247,251,0));
}

@keyframes collabScroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 520px){
  .collab-item{ width: 180px; height: 68px; }
  .collab-item img{ height: 42px; max-width: 150px; }
}

@media (prefers-reduced-motion: reduce){
  .collab-track{ animation: none !important; }
}

/* Footer */
footer{
  padding: .6rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255,255,255,.6);
}

.footer-grid{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .6rem 1rem;
  text-align: center;
}

.footer-links{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: rgba(255,255,255,.9);
  font-size: .92rem;
  text-align: center;
  flex-wrap: wrap;
  justify-self: center;
}

.footer-links a{
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-sep{
  color: rgba(255,255,255,.45);
}

.footer-grid .fine{
  margin-left: 0;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  justify-self: end;
}

.footer-grid .mini-brand{
  justify-self: start;
}

@media (max-width: 820px){
  .footer-grid{
    grid-template-columns: 1fr;
  }
  .footer-grid .mini-brand,
  .footer-grid .fine{
    justify-self: center;
  }
}

.mini-brand{
  display:flex;
  align-items:center;
  gap:.6rem;
}

.mini-brand img{
  height: auto;
  width: auto;
  max-height: var(--logo-height);
  max-width: 380px;
  object-fit: contain;
  filter: var(--logo-stroke);
}
.fine{ font-size: .9rem; }

/* Responsive */
@media (max-width: 880px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }

  #contacto .hero-actions{
    justify-content: center;
  }

  nav{
    display:block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    overflow: hidden;
    transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
  }
  .hamburger{ display:inline-grid; place-items:center; }

  .brand img{ max-height: var(--logo-height-sm); max-width: 300px; }
  .mini-brand img{ max-height: var(--logo-height-sm); max-width: 300px; }

  .nav.is-open nav{
    display:block;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-main), var(--blue-light));
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    border-radius: 0 0 16px 16px;
    margin: 0 .8rem .6rem;
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.25);
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav.is-open nav ul{
    flex-direction: column;
    align-items: center;
    padding: .75rem;
    gap: .6rem;
  }

  .nav.is-open nav ul li{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav.is-open nav a{
    display: inline-flex;
    width: min(280px, 90%);
    justify-content: center;
    padding: .85rem .95rem;
    text-align: center;
  }

  .nav.is-open nav a{
    color: #ffffff;
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
  }

  .nav.is-open nav a:hover,
  .nav.is-open nav a:focus-visible{
    background: rgba(255,255,255,0.24);
    color: #ffffff;
  }

  header .nav nav#menu ul li:not(:last-child)::after{
    content: none !important;
    display: none !important;
  }
}

@media (max-width: 520px){
  .brand{ min-width: 0; }
  .brand .name strong{ font-size: .98rem; }
  .brand .name span{ font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce){
  * { scroll-behavior: auto !important; transition: none !important; }
}

html{ scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }

:where(section,div,main,footer)[id]{ scroll-margin-top: var(--header-offset); }


:root {
  --blue-dark: #0b3c5d;
  --blue-main: #1f6fa8;
  --blue-light: #4fa3d1;
}

/* HEADER */
header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-main), var(--blue-light));
  color: #ffffff;
}

header a {
  color: #ffffff;
}

header .btn,
header button {
  background-color: #ffffff;
  color: var(--blue-dark);
  border-radius: 6px;
}

/* FOOTER */
footer {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-main), var(--blue-light));
  color: #ffffff;
}

footer a {
  color: var(--blue-light);
}


/* HEADER BUTTONS - CLEAN STYLE */
header nav a,
header nav button {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

header nav a:hover,
header nav button:hover {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
}


/* OVERRIDE: make header nav pills clean (override previous gradient buttons) */
header .nav nav a{
  background: rgba(255,255,255,0.16);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: none;
  filter: none;
}

header .nav nav a:hover,
header .nav nav a:focus-visible{
  background: rgba(255,255,255,0.26);
  color: #ffffff;
  transform: none;
}

/* Optional: if there is an active/current state, keep it subtle */
header .nav nav a.active,
header .nav nav a[aria-current="page"]{
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.40);
  color: #ffffff;
}


/* COUNTERS (Nosotros) */
.counters{
  margin: 1.25rem 0 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
@media (max-width: 900px){
  .counters{ grid-template-columns: 1fr; }
}
.counter-card{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.counter-value{
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: .2rem;
}
.counter-suffix{
  font-size: 1.25rem;
  font-weight: 800;
  opacity: .9;
}
.counter-label{
  margin-top: .2rem;
  color: var(--muted);
  font-weight: 600;
}


/* COUNTERS - BIG NUMBERS */
.stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  flex: 1;
}

.stat .number {
  font-size: 64px;
  font-weight: 800;
  color: var(--blue-main);
  line-height: 1;
}

.stat .label {
  margin-top: 8px;
  font-size: 15px;
  color: #5a6b85;
}


/* CONTACT - align panels to same height */
.contact{
  align-items: stretch;
}
.contact .panel{
  height: 100%;
  display: flex;
  flex-direction: column;
}
.contact .map-embed{
  margin-top: 1rem;
  flex: 1 1 auto;
}
.contact-bullets{
  margin: .85rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.contact-bullets li{
  margin: .25rem 0;
}


/* CONTACT - better spacing inside panels */
.contact .panel{ justify-content: space-between; }
.contact .panel .contact-meta{ margin-top: auto; }
.contact .panel .hero-actions{ margin-top: 1rem; }

/* WhatsApp mini badge icon */
.contact-meta .meta-ico.wa{
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #25D366;
  color: #ffffff;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: .02em;
}

/* Hours block styling */
.hours-block{ margin-top: .6rem; }
.pill{
  display:inline-flex;
  align-items:center;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .82rem;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.hours-line{ color: var(--muted); margin: .55rem 0 0; }
.hours-closed{ margin: .55rem 0 0; color: var(--text); }
.hours-note{ margin: .65rem 0 0; color: var(--muted); font-size: .92rem; }


/* CONTACT - balance panels without "dead space" */
.contact{
  align-items: stretch;
}
.contact .contact-panel{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  gap: .75rem;
}
.contact .panel-top{
  display: grid;
  gap: .75rem;
}

/* Make the map not force excessive height */
.contact .map-embed{
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  max-height: 280px;
}

.contact .contact-panel .map-embed{
  margin-top: .5rem;
  max-height: 360px;
  aspect-ratio: 16 / 9;
}

.panel-top--hours{
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1 1 auto;
  text-align: left;
  align-items: stretch;
  padding-top: 0;
}

.panel-top--hours h3,
.panel-top--hours .mini-note{
  text-align: left;
  margin-top: 0;
}

.panel-top--hours .hours-block{
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
}

.maps-stack{
  display: grid;
  gap: .6rem;
}

.maps-stack .map-embed{
  max-height: 220px;
}

.maps-stack--bottom{
  margin-top: auto;
}


.map-links{
  display: flex;
  justify-content: center;
}

.btn-apple{
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  gap: .55rem;
}

.btn-apple__icon{
  width: 22px;
  height: 22px;
  display: block;
  filter: invert(1);
}

.btn-apple:hover{
  background: #000000;
  color: #ffffff;
}

/* Hours highlight */
.hours-block{
  display: grid;
  gap: .5rem;
}
.hours-line, .hours-closed{
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .65rem .8rem;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.18);
  background: linear-gradient(90deg, rgba(0,112,204,.08), rgba(255,255,255,.92));
  text-align: center;
  gap: 1rem;
  box-shadow: 0 10px 26px rgba(2,6,23,.08);
}

.hours-closed{
  background: linear-gradient(90deg, rgba(176,28,28,.10), rgba(255,255,255,.92));
}
.hours-label{
  color: var(--muted);
  font-weight: 600;
}
.hours-time{
  font-weight: 800;
  color: var(--blue-dark);
  width: 12ch;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: .25rem .6rem;
}
.hours-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12ch;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .02em;
  background: rgba(255, 70, 70, .12);
  border: 1px solid rgba(255, 70, 70, .25);
  color: #b42318;
}


/* WhatsApp CTA button */
.btn-wa{
  background: #1EBE5D;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  border: none;
}
.btn-wa:hover{
  background: #17a750;
  color: #ffffff;
}

.mini-note{
  margin: .25rem 0 .5rem;
  color: var(--muted);
  font-size: 1rem;
}


/* Contact left stack: split into two cards */
.contact-left{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Contact layout: stacked full-width panels in requested order */
.contact{
  grid-template-columns: 1fr;
}
.contact > .contact-left{
  order: 1;
  width: 100%;
}
.contact > aside{
  order: 2;
  width: 100%;
}
.contact > .panel{
  order: 3;
  width: 100%;
}
.contact-left .panel{
  width: 100%;
}

/* Emphasize "Horario y ubicacion" panel */
.contact > aside.panel,
.contact-panel--budget,
.contact-panel--social{
  background:
    radial-gradient(600px 200px at 10% 0%, rgba(0,112,204,.10), transparent 60%),
    radial-gradient(700px 240px at 95% 0%, rgba(83,0,139,.10), transparent 60%),
    rgba(255,255,255,.98);
  border-color: rgba(0,112,204,.28);
  box-shadow: 0 18px 45px rgba(2,6,23,.18);
}

.contact-panel--budget{
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(0,112,204,.16), rgba(83,0,139,.12) 55%, rgba(255,255,255,.7));
}
.contact-panel--budget::after{
  content:"";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.8), rgba(255,255,255,.5) 55%, rgba(255,255,255,.2)),
    radial-gradient(60% 60% at 0% 0%, rgba(255,255,255,.85), transparent 70%),
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.06) 0px,
      rgba(255,255,255,.06) 1px,
      transparent 1px,
      transparent 4px
    );
  pointer-events: none;
}
.contact-panel--budget > *{
  position: relative;
  z-index: 1;
}
.contact-panel--budget h3,
.contact-panel--budget p,
.contact-panel--budget li{
  color: #0b3c5d;
}
.contact-panel--budget .muted{
  color: #31405f;
}
.contact > aside.panel .panel-top--hours h3,
.contact-panel--budget h3,
.contact-panel--social h3{
  color: #0b3c5d;
}
.contact > aside.panel .mini-note,
.contact-panel--budget .muted,
.contact-panel--social .muted{
  color: #31405f;
}

/* Social links */
.social-links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.social-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  font-weight: 700;
  text-decoration: none;
}
.social-link:hover{
  background: rgba(255,255,255,.95);
}


/* Social brand colors */
.social-link.fb{
  background:#1877F2;
  color:#ffffff;
  border-color:#1877F2;
}
.social-link.fb:hover{
  background:#0f5fd6;
  color:#ffffff;
}

.social-link.ig{
  background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4);
  color:#ffffff;
  border:none;
}
.social-link.ig:hover{
  filter: brightness(1.05);
}


/* HERO KEYWORDS - brand accents */
x0;
}
.kw-telecom{
  background: linear-gradient(90deg, #0b3c5d, #1f6fa8, #4fa3d1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kw-elec{
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kw-it{
  background: linear-gradient(90deg, #4f46e5, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* Obra civil badge */
.service .badge{
  display:inline-block;
  margin-top:6px;
  padding:4px 10px;
  font-size:12px;
  font-weight:600;
  border-radius:999px;
  background: rgba(31,111,168,.12);
  color: var(--blue-dark);
}


/* Make service cards more compact */
.services-grid .service-card{
  padding: 18px;
  min-height: 160px;
}
.services-grid .service-card h3{
  font-size: 18px;
}
.services-grid .service-card p{
  font-size: 14px;
}

/* Compact hero service pills */
.service{
  padding: 14px;
}


/* SERVICIOS GRID 4 */
.grid-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
#servicios .card{
  padding: 18px;
  min-height: 180px;
}
#servicios .card h3{
  font-size: 18px;
  margin-top: 10px;
}
#servicios .card p{
  font-size: 14px;
}
@media (max-width: 980px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .grid-4{ grid-template-columns: 1fr; }
}


/* === PATCH 002 · Header & Footer dotted texture === */

header::before,
footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgba(255,255,255,0.15) 1px,
        transparent 1px
    );
    background-size: 18px 18px;
    opacity: 0.25;
    pointer-events: none;
}

header,
footer {
    position: relative;
    overflow: hidden;
}


/* === PATCH 003 · Servicios en horizontal === */

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-item {
    height: 100%;
}

@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr;
    }
}


/* ===============================
   HEADER · DOT MATRIX SUBTLE
   Inspired by globe video
================================ */

header {
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.18) 1px, transparent 1.6px);
    background-size: 22px 22px;
    opacity: 0.25;
    pointer-events: none;
}

header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0) 60%
    );
    pointer-events: none;
}


/* ===============================
   HEADER · DOT MATRIX REFINED
   Denser · Light gray · Fade out
================================ */

header {
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(200,200,200,0.45) 1.6px, transparent 2.4px);
    background-size: 14px 14px;
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.6) 40%,
        rgba(0,0,0,0.15) 70%,
        rgba(0,0,0,0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.6) 40%,
        rgba(0,0,0,0.15) 70%,
        rgba(0,0,0,0) 100%
    );
    pointer-events: none;
}


/* ===============================
   HEADER · DOT MATRIX FINAL
   Almost touching · Slightly larger
================================ */

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(200,200,200,0.45) 2.2px, transparent 2.8px);
    background-size: 11px 11px;
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.7) 35%,
        rgba(0,0,0,0.25) 65%,
        rgba(0,0,0,0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.7) 35%,
        rgba(0,0,0,0.25) 65%,
        rgba(0,0,0,0) 100%
    );
    pointer-events: none;
}


/* ===============================
   HEADER · DOT MATRIX ULTRA DENSE + SOFT ROTATION
   - Dots almost touching
   - Subtle rotation (noticeable, not annoying)
================================ */

@keyframes rivotecHeaderDotsRotate {
    from { transform: rotate(0deg) scale(1.15); }
    to   { transform: rotate(360deg) scale(1.15); }
}

/* Ensure header is a clipping context */
header {
    position: relative;
    overflow: hidden;
}

/* Override previous header::before with denser grid and rotation */
header::before {
    content: "";
    position: absolute;
    /* Oversize so rotation doesn't reveal corners */
    inset: -35%;
    background-image:
        radial-gradient(circle, rgba(200,200,200,0.45) 2.2px, transparent 2.9px);
    background-size: 9px 9px; /* ultra dense, almost touching */
    /* Fade from stronger to weaker downwards */
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.75) 30%,
        rgba(0,0,0,0.25) 65%,
        rgba(0,0,0,0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.75) 30%,
        rgba(0,0,0,0.25) 65%,
        rgba(0,0,0,0) 100%
    );
    opacity: 0.22;
    transform-origin: 50% 50%;
    animation: rivotecHeaderDotsRotate 42s linear infinite;
    pointer-events: none;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    header::before { animation: none; }
}


/* ===============================
   HEADER · DOT MATRIX (FULL COVER ROTATION)
   Fix: fills entire header while rotating
   - ultra-dense dots (almost touching)
   - rotation applied to full overlay (scaled) so no center-only feel
================================ */

@keyframes rivotecHeaderDotsRotateFullCover {
    from { transform: translateZ(0) scale(2.25) rotate(0deg); }
    to   { transform: translateZ(0) scale(2.25) rotate(360deg); }
}

/* Override previous header::before */
header::before {
    content: "";
    position: absolute;
    inset: 0;                 /* exactly header bounds */
    transform-origin: 50% 50%;
    /* Ultra dense dot matrix */
    background-image:
        radial-gradient(circle, rgba(200,200,200,0.45) 2.2px, transparent 2.6px);
    background-size: 7px 7px; /* almost touching */
    background-position: center;
    opacity: 0.22;
    /* Fade intensity top->bottom */
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.75) 30%,
        rgba(0,0,0,0.25) 65%,
        rgba(0,0,0,0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.75) 30%,
        rgba(0,0,0,0.25) 65%,
        rgba(0,0,0,0) 100%
    );

    /* Rotate the whole overlay, but keep coverage via scale() */
    animation: rivotecHeaderDotsRotateFullCover 40s linear infinite;
    pointer-events: none;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    header::before { animation: none; transform: none; }
}


/* ===============================
   HEADER · DOT MATRIX STATIC
   Same density & size · No rotation
================================ */

header::before {
    animation: none !important;
    transform: none !important;
}


/* ===============================
   HEADER · DOT MATRIX (LARGER & FEWER)
   - Bigger dots
   - Less quantity (more spacing)
   - Static
================================ */

header::before {
    background-image:
        radial-gradient(circle, rgba(200,200,200,0.45) 3.2px, transparent 4.2px);
    background-size: 16px 16px; /* fewer dots */
    opacity: 0.24;
}


/* ===============================
   HEADER & FOOTER · CLEAN SEPARATION
   - Remove dot patterns
   - Add subtle shadow at page cut
================================ */

/* Subtle separation shadow */
header {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 10;
}

footer {
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 10;
}


/* ===============================
   HEADER & FOOTER · ULTRA SOFT EDGE SHADOW
   Reference: subtle top/bottom fade, almost imperceptible
================================ */

/* Header bottom edge */
header {
    box-shadow: 
        0 1px 0 rgba(255,255,255,0.15),
        0 8px 24px rgba(0,0,0,0.08);
}

/* Footer top edge */
footer {
    box-shadow: 
        0 -1px 0 rgba(255,255,255,0.12),
        0 -8px 24px rgba(0,0,0,0.08);
}


/* ===============================
   HEADER & FOOTER · VISIBLE SOFT SHADOW
   Goal: noticeable separation without heavy look
================================ */

/* Header bottom shadow (clearly visible) */
header {
    box-shadow:
        0 2px 0 rgba(255,255,255,0.18),
        0 14px 36px rgba(0,0,0,0.18);
}

/* Footer top shadow (clearly visible) */
footer {
    box-shadow:
        0 -2px 0 rgba(255,255,255,0.16),
        0 -14px 36px rgba(0,0,0,0.18);
}


/* ===============================
   HEADER & FOOTER · PRONOUNCED SHADOW
   Stronger, clearly visible separation
================================ */

header {
    box-shadow:
        0 4px 0 rgba(255,255,255,0.25),
        0 26px 60px rgba(0,0,0,0.32);
}

footer {
    box-shadow:
        0 -4px 0 rgba(255,255,255,0.25),
        0 -26px 60px rgba(0,0,0,0.32);
}


/* ===============================
   HEADER & FOOTER · RESET TO ORIGINAL
   Remove all added shadows / separation
================================ */

header,
footer {
    box-shadow: none !important;
}


/* ===============================
   SECTIONS · BACKGROUND CUTS
   Goal: each section has its own soft base so the global body gradient
   doesn't look disproportionate between blocks.
   - No extra spacing
   - Just a subtle "cut" via inset lines + gentle section wash
================================ */

#servicios,
#nosotros,
#proceso,
#colaboraciones,
#contacto{
  position: relative;
  /* soft wash that keeps current palette but normalizes the backdrop */
  background: linear-gradient(
    180deg,
    rgba(246,247,251,0.55) 0%,
    rgba(246,247,251,0.78) 35%,
    rgba(246,247,251,0.90) 100%
  );
  /* subtle cuts (no separation / no displacement) */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(15,23,42,0.08);
}

/* Keep the hero untouched (it has its own video/bleed) */
#inicio{
  background: none;
  box-shadow: none;
}


/* ===============================
   SECTION TITLES · STRONGER EMPHASIS
   More weight + subtle contrast
================================ */

/* Main section headings */
section h2,
.section-title {
    font-weight: 700;          /* stronger emphasis */
    letter-spacing: -0.02em;   /* tighter, more corporate */
    color: #0f172a;            /* darker for contrast */
}

/* Optional subtle underline accent */
section h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 8px;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        rgba(37,99,235,0.9),
        rgba(99,102,241,0.9)
    );
}


/* ===============================
   SECTION TITLES · SPACING NORMALIZATION
   More breathing room between title, underline and description
================================ */

section h2,
.section-title {
    margin-bottom: 18px; /* more separation */
}

section h2::after {
    margin-top: 10px;
    margin-bottom: 14px;
}

/* Subtitle / description under titles */
section h2 + p,
.section-subtitle {
    margin-top: 0;
    margin-bottom: 28px; /* consistent spacing */
}


/* ===============================
   CONTACTO · TIGHTER TITLE SPACING
   Only here: remove extra gap shown in capture
================================ */

/* Reduce spacing only in Contact section */
#contacto h2,
#contacto .section-title {
    margin-bottom: 20px;
}

#contacto h2::after {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 12px;
}

/* Keep rest of site unchanged */


/* ===============================
   HERO → SERVICIOS · REMOVE GAP
   Make both sections feel like one continuous piece
================================ */

/* Remove bottom spacing from hero */
#inicio {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove top spacing from Servicios */
#servicios {
    padding-top: 32px !important; /* minimal breathing, not a separation */
    margin-top: 0 !important;
}


/* ===============================
   GLOBAL BACKGROUND · CONTINUOUS
   Goal: remove visible "cuts" / seams between sections
   - Make section backgrounds transparent
   - Remove inset separator lines
   - Let the global page background flow continuously
================================ */

/* Ensure body background paints the whole page smoothly */
html, body {
    background-attachment: fixed; /* keeps gradient continuous while scrolling */
}

/* Remove section-level washes/separators that create seams */
#servicios,
#nosotros,
#proceso,
#colaboraciones,
#contacto {
    background: transparent !important;
    box-shadow: none !important;
}

/* Also remove any accidental top/bottom borders that could appear as lines */
#servicios::before, #servicios::after,
#nosotros::before, #nosotros::after,
#proceso::before, #proceso::after,
#colaboraciones::before, #colaboraciones::after,
#contacto::before, #contacto::after {
    content: none !important;
}


/* ===============================
   HERO → SERVICIOS · EXTRA BREATHING
   Slightly more space so CTA and title don't feel overlapped
================================ */

/* Add controlled spacing after hero content */
#inicio {
    padding-bottom: 56px !important;
}

/* Keep Servicios visually connected but not cramped */
#servicios {
    padding-top: 48px !important;
}


/* ===============================
   HERO HIGHLIGHT WORDS · SLIGHTLY BOLDER
   Goal: a touch more presence without changing colors
================================ */

/* Target highlighted words inside hero headline */
.hero-title span,
.hero-title strong {
    font-weight: 600; /* was lighter, now slightly thicker */
}


/* ===============================
   HERO HIGHLIGHT WORDS · MORE WEIGHT (VISIBLE)
   Still elegant, but clearly thicker
================================ */

.hero-title span,
.hero-title strong {
    font-weight: 700; /* clearly visible increase */
}


/* ===============================
   HEADER MENU · SMALLER + TIGHTER + VERTICAL SEPARATORS + HOVER SHADOW
   Requested: items less big, closer, separated with vertical dividers (like "|"),
   and subtle shadow on hover.
================================ */

header .nav nav#menu ul{
  gap: .35rem; /* tighter */
}

header .nav nav#menu ul li{
  display:flex;
  align-items:center;
}

/* Vertical separator between items */
header .nav nav#menu ul li:not(:last-child)::after{
  content:"";
  display:inline-block;
  width: 1px;
  height: 18px;
  margin-left: .45rem;
  background: rgba(255,255,255,0.28);
  border-radius: 1px;
}

/* Make pills smaller (keep current colors) */
header .nav nav#menu a{
  padding: .38rem .70rem;
  font-size: .98rem;
  line-height: 1.1;
  border-radius: 999px;
}

/* Subtle shadow on hover/focus */
header .nav nav#menu a:hover,
header .nav nav#menu a:focus-visible{
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  transform: translateY(-1px);
}


/* ===============================
   CONTACT · OPENING HOURS ALIGNMENT
   Same height, same visual weight
================================ */

/* Wrapper for each schedule row */
.horario-item {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Ensure status badge doesn't change row height */
.horario-item .estado {
    padding: 6px 14px;
    font-size: 0.85rem;
    line-height: 1;
}


/* ===============================
   CONTACT · OPENING HOURS PERFECT ALIGNMENT
   Fix vertical offset between rows
================================ */

/* Ensure identical vertical metrics */
.horario-item {
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 1.2;
}

/* Normalize text baseline */
.horario-item span,
.horario-item strong,
.horario-item .estado {
    line-height: 1.2;
    display: flex;
    align-items: center;
}


/* ===============================
   CONTACT · OPENING HOURS BADGE SIZE MATCH
   Make time range pill match CLOSED pill size
================================ */

/* Time range badge (Lunes a viernes) */
.horario-item .hora {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 0.85rem;
    line-height: 1;
    border-radius: 999px;
    background: rgba(15,23,42,0.05);
    color: #0f172a;
}


/* ===============================
   CONTACT · HOURS ROWS (SAME HEIGHT)
   Fix: "8:00 – 15:30" row looked shorter than "CERRADO"
   - Make both rows flex with same min-height
   - Style .hours-time as a pill with same vertical padding as .hours-badge
================================ */

.hours-line,
.hours-closed{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;          /* forces same row height */
  padding: 8px 0;            /* equal vertical rhythm */
}

/* Keep label baseline consistent */
.hours-label{
  display: inline-flex;
  align-items: center;
}

/* Make time range visually same "height" as CLOSED badge */
.hours-time{
  display: inline-flex;
  align-items: center;
  padding: .25rem .55rem;    /* match .hours-badge padding */
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  background: rgba(15, 23, 42, .06);
  border: 1px solid rgba(15, 23, 42, .10);
  color: var(--blue-dark);
}

/* Ensure badge baseline matches too */
.hours-badge{
  line-height: 1;
}


/* ===============================
   CONTACT · HOURS ROWS SIDE MARGINS
   Add comfortable left/right breathing room
================================ */

.hours-line,
.hours-closed {
    padding-left: 18px;
    padding-right: 18px;
}



/* ===============================
   CONTACT · CARD TITLES BOLD
================================ */

/* Titles inside contact cards */
.contact-card h3,
.contact-card h4 {
    font-weight: 700;
}


/* ===============================
   CONTACT · FORCE BOLD TITLES (FIX)
   Target real markup used in cards
================================ */

/* Generic safety: all first headings in contact cards */
#contacto h3,
#contacto h4,
#contacto .card h3,
#contacto .card h4,
#contacto .contact-card-title {
    font-weight: 800 !important;
}


/* ===============================
   CONTACT · SOCIAL EMBEDS (FB + IG)
   - Fits inside existing card
   - Responsive (2 cols desktop, stacked mobile)
   - Fixed height with safe containment
================================ */

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

.social-embed{
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  overflow: hidden;
  height: 420px;
}

.social-embed iframe{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.social-fallback{
  display: block;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--blue-dark);
  text-decoration: none;
  border-top: 1px solid rgba(15,23,42,0.08);
}

.social-fallback:hover{
  text-decoration: underline;
}

@media (max-width: 900px){
  .social-embeds{
    grid-template-columns: 1fr;
  }
  .social-embed{
    height: auto;
    min-height: 340px;
  }
}


/* ===============================
   CONTACT · SOCIAL EMBEDS CLEANUP
   Remove fallback button styling (no buttons used)
================================ */

.social-fallback{
  display:none;
}


/* ===============================
   REDES SOCIALES · REMOVE LEGACY BUTTONS
================================ */
#contacto .social-buttons,
#contacto .btn-facebook,
#contacto .btn-instagram{
  display: none !important;
}


/* ===============================
   REDES SOCIALES · REMOVE LEGACY FACEBOOK/INSTAGRAM BUTTONS (FINAL)
================================ */
#contacto .social-links,
#contacto a.social-link{
  display: none !important;
}


/* ===============================
   HEADER · SAFE AREA + ANCHOR OFFSET
   - Ensures sticky header isn't hidden by device UI (iOS notch)
   - Works with --header-offset calculated in JS
================================ */

header{ padding-top: env(safe-area-inset-top, 0px); }

/* ===============================
   PRIVACY BANNER
   Bottom entry, single-line to two-line
================================ */

.privacy-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  display: none;
  padding: 0 1rem;
}

/* Legal modal */
.legal-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1500;
}
.legal-modal.is-visible{
  display: grid;
  place-items: center;
}
.legal-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.45);
  backdrop-filter: blur(6px);
}
.legal-modal__panel{
  position: relative;
  width: min(920px, calc(100% - 2rem));
  max-height: 80vh;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.18);
  box-shadow: 0 30px 70px rgba(2,6,23,.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.legal-modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(15,23,42,.12);
  background: linear-gradient(90deg, rgba(0,112,204,.08), rgba(255,255,255,.9));
}
.legal-modal__header h3{
  margin: 0;
  font-size: 1.1rem;
}
.legal-modal__close{
  appearance: none;
  border: 0;
  background: rgba(15,23,42,.08);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
}
.legal-modal__close:hover{
  background: rgba(15,23,42,.16);
}
.legal-modal__body{
  padding: 1.2rem;
  overflow: auto;
}
.legal-modal__body h4{
  margin: 0 0 .4rem;
}
.legal-modal__body p{
  margin: 0 0 1rem;
  color: var(--muted);
}

.privacy-banner.is-visible{
  display: block;
}

body.privacy-open .floating-actions{
  display: none;
}

:root{
  --footer-overlap: 0px;
}

.floating-actions{
  bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px) + var(--footer-overlap));
}

.privacy-banner__panel{
  width: min(var(--container), 100%);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11,60,93,.96), rgba(31,111,168,.96));
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 40px rgba(2,6,23,.28);
}

.privacy-banner__text{
  font-size: .95rem;
  text-align: center;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-banner__actions{
  display: inline-flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: center;
}

.privacy-banner__actions .btn{
  height: 38px;
  padding: 0 1.35rem;
  flex: 0 0 auto;
  width: 170px;
  justify-content: center;
  font-size: .95rem;
  font-family: inherit;
}

@media (max-width: 720px){
  .privacy-banner__panel{
    flex-direction: column;
    align-items: stretch;
  }
  .privacy-banner__actions{
    justify-content: center;
  }
}

/* ===============================
   HEADER & FOOTER - DOTTED FADE
   Soft dots, denser on edge, fading inward
================================ */

header,
footer{
  position: relative;
  overflow: hidden;
}

header.is-open{
  overflow: visible;
}

header::before,
footer::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.45) 1.6px, transparent 2.6px);
  background-size: 11px 11px;
  background-position: center;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

header::before,
footer::before{
  mask-image: none !important;
  -webkit-mask-image: none !important;
}


.nav,
.footer-grid{
  position: relative;
  z-index: 1;
}

