/* ================================
   HIDROFONT — Global CSS
   Variables, reset y utilidades
================================ */

:root {
  /* Colores del logo */
  --color-primary:     #1e3a5f;
  --color-primary-mid: #4a6d8c;
  --color-primary-light: #8aa5bc;
  --color-primary-xlight: #dde8f4;

  /* Fondos */
  --color-bg:          #ffffff;
  --color-bg-soft:     #f4f7fb;
  --color-bg-hero:     linear-gradient(160deg, #e8f0f8 0%, #f0f5fb 40%, #ffffff 100%);

  /* Texto */
  --color-text-main:   #0d1f33;
  --color-text-body:   #3a4a5c;
  --color-text-muted:  #7a95b0;

  /* Bordes */
  --color-border:      #e0eaf4;
  --color-border-soft: #eaeff4;

  /* Tipografía */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espaciados */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.75rem;
  --space-lg:  3rem;
  --space-xl:  5rem;

  /* Bordes redondeados */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
}

/* ================================
   RESET
================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-body);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ================================
   TIPOGRAFÍA
================================ */
h1, h2, h3, h4 {
  color: var(--color-text-main);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }

p {
  color: var(--color-text-body);
  line-height: 1.75;
}

/* ================================
   UTILIDADES
================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-lg) 0;
}

.text-muted  { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
  font-family: var(--font-main);
}

.btn:hover  { opacity: 0.9; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ================================
   RESPONSIVE — base
================================ */
@media (max-width: 768px) {
  :root {
    --space-md: 1.25rem;
    --space-lg: 2rem;
  }
}

/* ================================
   WHATSAPP FLOTANTE
================================ */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: transform 0.2s;
}

.wa-float:hover {
  transform: scale(1.08);
}
/* ================================
   HERO OSCURO — Global
   Disponible en todas las páginas
================================ */
.hz-dark {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hz-dark-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1825 0%, #132840 100%);
  z-index: 0;
}
.hz-dark-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image:
    repeating-linear-gradient(0deg,transparent,transparent 40px,rgba(255,255,255,.5) 40px,rgba(255,255,255,.5) 41px),
    repeating-linear-gradient(90deg,transparent,transparent 40px,rgba(255,255,255,.5) 40px,rgba(255,255,255,.5) 41px);
}
.hz-dark-glow {
  position: absolute;
  bottom: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,.15) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}
.hz-dark-con {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem var(--space-md);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}
.hz-dark-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: .03em;
}
.hz-dark-dot {
  width: 6px;
  height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  flex-shrink: 0;
}
.hz-dark h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.03em;
  max-width: 680px;
}
.hz-dark h1 .hl { color: #60a5fa; }
.hz-dark-sub {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.75;
  max-width: 500px;
}
.hz-dark-btns {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-hz-w {
  background: #fff;
  color: #0a1825;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.btn-hz-g {
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
}
/* ================================
   CTA FINAL — Global
   Disponible en todas las páginas
================================ */
.cta-dark {
  background: linear-gradient(135deg, #0a1825 0%, #0f2d50 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-dark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(59,130,246,.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-dark-con {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
}
.cta-dark h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.cta-dark h2 span { color: #60a5fa; }
.cta-dark p {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 2.5rem;
}
.cta-dark-btns {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-dark-btns .btn-hz-w {
  background: #fff;
  color: #0a1825;
  padding: 15px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.cta-dark-btns .btn-hz-g {
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 15px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.15);
}
.cta-dark-tel {
  color: #475569;
  font-size: 13.5px;
  margin-top: 1.75rem;
}
.cta-dark-tel strong {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  display: block;
  margin-top: 4px;
  letter-spacing: .03em;
}
/* ================================
   COMPONENTES GLOBALES
   Reutilizables en todas las páginas
================================ */

/* LABEL SECCIÓN */
.zona-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #3b82f6;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .65rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.zona-lbl::before {
  content: '';
  width: 18px;
  height: 2px;
  background: #3b82f6;
  border-radius: 2px;
  display: block;
}

/* STRIP DIFERENCIADORES */
.dif-strip {
  background: #1e3a5f;
  padding: 1.5rem 0;
}
.dif-strip-in {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.dif-item {
  padding-right: 1.5rem;
  border-right: 1px solid rgba(255,255,255,.1);
  margin-right: 1.5rem;
}
.dif-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.dif-val {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}
.dif-lbl { color: #5a85a8; font-size: 12px; }

/* ZONA TAGS */
.zona-ztags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.zona-ztag {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1e3a5f;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.zona-ztag:hover {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

/* INFO CARD */
.zona-icard {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.03);
}
.zona-icard-h {
  background: #0f2238;
  padding: 1.25rem 1.5rem;
}
.zona-icard-h strong {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: block;
}
.zona-icard-h span { color: #4a6a8a; font-size: 12.5px; }
.zona-ir {
  padding: .85rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.zona-ir:last-child { border-bottom: none; }
.zona-ir-l {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.zona-ir-v {
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
}
.zona-ir-v a {
  color: #1e3a5f;
  text-decoration: none;
  font-weight: 600;
}
.zona-icard-btn {
  display: block;
  margin: 1.25rem 1.5rem;
  background: #1e3a5f;
  color: #fff;
  padding: 13px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  letter-spacing: -.01em;
}

@media (max-width: 900px) {
  .dif-strip-in { grid-template-columns: repeat(2, 1fr); }
  .dif-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 0 0 1rem;
    margin: 0 0 1rem;
  }
  .dif-item:last-child { border-bottom: none; padding: 0; margin: 0; }
}
@media (max-width: 560px) {
  .dif-strip-in { grid-template-columns: 1fr; }
}
/* ================================
   COOKIE BANNER
================================ */

#cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 40, .75);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
#cookie-overlay.cookie-show {
  opacity: 1;
  pointer-events: all;
}
#cookie-overlay.cookie-hide {
  opacity: 0;
  pointer-events: none;
}

#cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60px);
  z-index: 9999;
  max-width: 600px;
  width: calc(100% - 3rem);
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
#cookie-banner.cookie-show {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: all;
}
#cookie-banner.cookie-hide {
  opacity: 0;
  transform: translate(-50%, -40px);
  pointer-events: none;
}

.cb-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25), 0 4px 16px rgba(0,0,0,.1);
  overflow: hidden;
}
.cb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}
.cb-logo { display: flex; align-items: center; gap: 8px; }
.cb-logo-ico { font-size: 18px; }
.cb-logo-txt { color: #0d1f33; font-size: 13px; font-weight: 700; }
.cb-back {
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all .15s;
  font-family: inherit;
}
.cb-back:hover { background: #e2e8f0; color: #1e3a5f; }
.cb-body { padding: 1.5rem; }
.cb-title { color: #0d1f33; font-size: 16px; font-weight: 700; margin-bottom: .6rem; }
.cb-desc { color: #64748b; font-size: 13.5px; line-height: 1.7; margin-bottom: 1rem; }
.cb-link { color: #3b82f6; font-size: 12.5px; font-weight: 500; text-decoration: none; }
.cb-link:hover { text-decoration: underline; }
.cb-actions {
  display: flex;
  gap: .5rem;
  padding: 1.1rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  background: #f8fafc;
}
.cb-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
}
.cb-btn-accept { background: #1e3a5f; color: #fff; flex: 1; }
.cb-btn-accept:hover { background: #132840; }
.cb-btn-reject { background: #1e3a5f; color:  #fff; border: 1.5px solid #e2e8f0; }
.cb-btn-reject:hover { border-color:  #fff; }
.cb-btn-prefs { background: #1e3a5f; color: #fff; border: 1.5px solid #e2e8f0; }
.cb-btn-prefs:hover { border-color: #fff; }

.cb-prefs-list {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.cb-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.cb-pref-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cb-pref-nombre { color: #0d1f33; font-size: 14px; font-weight: 600; }
.cb-pref-desc { color: #64748b; font-size: 12px; line-height: 1.5; }

.cb-toggle-wrap { display: flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.cb-toggle-wrap input { display: none; }
.cb-toggle {
  width: 44px;
  height: 26px;
  background: #e2e8f0;
  border-radius: 20px;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.cb-toggle span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.cb-toggle-wrap input:checked + .cb-toggle { background: #1e3a5f; }
.cb-toggle-wrap input:checked + .cb-toggle span { transform: translateX(18px); }
.cb-toggle-on { background: #1e3a5f; }
.cb-toggle-on span { transform: translateX(18px); }
.cb-toggle-disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 520px) {
  #cookie-banner {
    top: auto;
    bottom: 0;
    left: 0;
    transform: translateY(40px);
    width: 100%;
    max-width: 100%;
    opacity: 0;
  }
  #cookie-banner.cookie-show { transform: translateY(0); opacity: 1; }
  #cookie-banner.cookie-hide { transform: translateY(40px); opacity: 0; }
  .cb-wrap { border-radius: 16px 16px 0 0; }
  .cb-actions { flex-direction: column; }
  .cb-btn-accept { flex: none; }
}

.hz-dark-kpis{
  display:flex ;
}
/* ================================
   PÁGINA 404
================================ */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem var(--space-md);
  text-align: center;
}
.error-404-inner {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.error-404-num {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 900;
  color: #e2e8f0;
  letter-spacing: -.05em;
  line-height: 1;
}
.error-404-titulo {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #0d1f33;
  letter-spacing: -.02em;
}
.error-404-titulo span { color: #3b82f6; }
.error-404-desc {
  color: #64748b;
  font-size: 15px;
  line-height: 1.75;
}
.error-404-btns {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .5rem;
}
.error-404-btns .btn-hz-w {
  background: #1e3a5f;
  color: #fff;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.error-404-btns .btn-hz-g {
  background: #fff;
  color: #1e3a5f;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid #e2e8f0;
}
.error-404-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .5rem;
}
.error-404-links a {
  color: #3b82f6;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.error-404-links a:hover { text-decoration: underline; }