@font-face {
  font-family: Gotham;
  src: url('../fonts/Gotham-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Gotham;
  src: url('../fonts/Gotham-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Gotham;
  src: url('../fonts/Gotham-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Gotham;
  src: url('../fonts/Gotham-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0e56d8;
  --indigo: #1d1a59;
  --green: #00d000;
  --text: #080808;
  --muted: #333;
  --grad: linear-gradient(105deg, #1d1a59 0%, #0e56d8 100%);
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; font-family: Gotham, Arial, sans-serif; color: var(--text); background: #fff; }
a { text-decoration: none; color: inherit }
img { max-width: 100%; display: block }

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--grad);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.brand img { width: 185px }
.nav { display: flex; gap: 30px; align-items: center; color: #fff; font-size: 15px }
.nav a { opacity: .96 }
.nav a:hover { opacity: 1; color: #fff; text-decoration: underline; text-underline-offset: 7px }
.hamb { display: none; background: none; border: 0; color: #fff; font-size: 30px }

.section { padding: 86px 7vw }
.container { max-width: 1280px; margin: auto }
.title { font-size: clamp(28px, 5.5vw, 54px); line-height: .95; font-weight: 900; letter-spacing: -2px; margin: 0 0 22px }
.lead { font-size: clamp(16px, 2vw, 20px); line-height: 1.35; max-width: 660px; margin: 0; color: #111 }

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
  margin-top: -70px;
  background: #fff;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.78) 40%, rgba(255,255,255,.25) 68%, rgba(255,255,255,0) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 620px; margin-left: 8vw; padding-top: 50px }
.hero h1 { font-size: clamp(36px, 7.5vw, 68px); line-height: .88; margin: 0 0 22px; font-weight: 900; letter-spacing: -3px }
.hero p { font-size: clamp(16px, 2.5vw, 22px); line-height: 1.32; margin: 0 0 30px; max-width: 540px }

.btns { display: flex; gap: 18px; flex-wrap: wrap }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 11px;
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  transition: .25s;
}
.btn.green { background: var(--green) }
.btn.blue { background: var(--blue) }
.btn:hover { transform: translateY(-3px) }

.page-hero { padding: 120px 7vw; background: var(--grad); color: #fff; text-align: center }
.page-hero h1 { font-size: clamp(30px, 6vw, 56px); margin: 0; font-weight: 900 }
.breadcrumb { font-size: 15px; margin: 0 0 14px; opacity: .92 }
.breadcrumb a { color: #fff; opacity: .8 }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px }
.breadcrumb span { font-weight: 700 }

.page-hero-light { background: #fff; color: var(--text); padding: 34px 7vw 24px }
.page-hero-light h1 { color: var(--text) }
.page-hero-light .breadcrumb { text-align: left; color: var(--blue); opacity: 1; margin: 0 0 26px }
.page-hero-light .breadcrumb a { color: var(--blue); opacity: 1 }
.content-page { padding: 80px 7vw; max-width: 1100px; margin: auto }

.footer { background: var(--grad); color: #fff; padding: 54px 7vw 22px }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; max-width: 1280px; margin: auto }
.footer-logo { width: 220px; margin-bottom: 16px }
.footer a { display: block; color: #fff; margin: 8px 0; opacity: .9 }
.footer-ig { display: inline-flex; width: fit-content; margin-top: 12px; transition: .25s }
.footer-ig img { width: 34px; height: 34px; border-radius: 9px }
.footer-ig:hover { opacity: 1; transform: translateY(-2px) }
.footer h4 { font-size: 20px; margin: 0 0 12px }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,.2); margin-top: 36px; padding-top: 20px; font-size: 14px }
.small { font-size: 14px; opacity: .8 }

.float-lucy {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 180px;
  height: auto;
  background: transparent;
  box-shadow: none;
  z-index: 1000;
  transition: .25s;
}
.float-lucy:hover { transform: translateY(-4px) scale(1.04) }
.float-lucy img { width: 100%; height: auto; object-fit: contain }

.fade-word { opacity: 0; transform: translateY(12px) }
.reveal { opacity: 0; transform: translateY(30px); transition: .7s }
.reveal.in-view { opacity: 1; transform: none }

@media (max-width: 900px) {
  .topbar { padding: 0 20px }
  .hamb { display: block }
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #0e56d8;
    flex-direction: column;
    padding: 22px;
  }
  .nav.open { display: flex }
  .hero { min-height: 640px }
  .hero-content { margin: 0 24px }
  .about-grid { grid-template-columns: 1fr }
  .footer-grid { grid-template-columns: 1fr }
}

@media (max-width: 768px) {
  .hero::before {
    background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.6) 100%);
  }
}

@media (max-width: 580px) {
  .section { padding: 60px 24px }
  .float-lucy { width: 90px }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100svh }
  .hero-content { padding-top: 20px }
  .nav { max-height: calc(100vh - 70px); overflow-y: auto }
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 32px));
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.16);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 9999;
}
.cookie-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); flex: 1 }
.cookie-btns { display: flex; align-items: center; gap: 12px; flex-shrink: 0 }
.cookie-accept { border: 0; cursor: pointer; font-family: inherit; padding: 12px 26px; font-size: 15px }
.cookie-reject {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  color: var(--muted);
  text-decoration: underline;
  padding: 12px 6px;
}

@media (max-width: 580px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; gap: 14px }
  .cookie-btns { justify-content: center }
}

/* Banner "Servicios brindados en vivo" — barra fija al fondo (en todas las páginas).
   Oculto por defecto; el JS agrega body.sv-on SOLO cuando hay datos reales del API. */
.sv-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: linear-gradient(90deg, #12341b 0%, #6a8620 100%);
  color: #fff;
  display: none;
}
body.sv-on .sv-bar { display: block }
.sv-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 12px 7vw;
  flex-wrap: wrap;
}
.sv-count { text-align: right; line-height: 1.15 }
.sv-title { margin: 0; font-weight: 900; font-size: 18px }
.sv-fecha { margin: 2px 0 0; font-size: 13px; opacity: .9 }
.sv-num { margin: 2px 0 0; font-size: 28px; font-weight: 900; letter-spacing: .14em }
.sv-detail { border-left: 2px solid rgba(255,255,255,.5); padding-left: 30px; line-height: 1.55 }
.sv-detail p { margin: 0; font-size: 15px }
.sv-detail strong { text-transform: uppercase; letter-spacing: .02em }

/* Transición tipo ticker: el servicio/provincia entra deslizándose desde la derecha */
@keyframes svSlide { from { opacity: 0; transform: translateX(26px) } to { opacity: 1; transform: translateX(0) } }
.sv-detail.sv-anim { animation: svSlide .5s cubic-bezier(.22, .61, .36, 1) }
.sv-num { display: inline-block }

/* Estado de carga: barras "shimmer" en los campos dinámicos hasta que llega el dato */
@keyframes svShimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
.sv-loading .sv-fecha,
.sv-loading .sv-num,
.sv-loading .sv-detail strong {
  color: transparent;
  display: inline-block;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,.12) 25%, rgba(255,255,255,.45) 50%, rgba(255,255,255,.12) 75%);
  background-size: 200% 100%;
  animation: svShimmer 1.3s linear infinite;
}
.sv-loading .sv-fecha { width: 180px; height: 14px }
.sv-loading .sv-num { width: 80px; height: 26px }
.sv-loading .sv-detail strong { width: 130px; height: 15px; vertical-align: middle }

@media (prefers-reduced-motion: reduce) {
  .sv-detail.sv-anim { animation: none }
  .sv-loading .sv-fecha, .sv-loading .sv-num, .sv-loading .sv-detail strong { animation: none }
}

/* Solo cuando hay datos (body.sv-on): reservar espacio y subir los flotantes */
body.sv-on { padding-bottom: 104px }
body.sv-on .float-lucy { bottom: 104px }
body.sv-on .cookie-banner { bottom: 104px }

@media (max-width: 580px) {
  .sv-inner { gap: 12px 18px; padding: 10px 20px }
  .sv-count { text-align: center }
  .sv-title { font-size: 15px }
  .sv-num { font-size: 20px }
  .sv-detail { padding-left: 18px }
  .sv-detail p { font-size: 13px }
  body.sv-on { padding-bottom: 150px }
  body.sv-on .float-lucy { bottom: 150px }
  body.sv-on .cookie-banner { bottom: 150px }
}
