/* ============================================================
   AKUARELA TERAPIAS — Design System
   Fuente: Plus Jakarta Sans (Google Fonts)
   ============================================================ */

/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --brand:        #00B5FF;
  --brand-dark:   #008ECC;
  --teal:         #00C7A9;
  --teal-dark:    #009E87;
  --brand2:       #6A00FF;          /* compat JS existente */

  /* Gradients */
  --grad-brand:   linear-gradient(135deg, #00B5FF 0%, #00C7A9 100%);
  --grad-subtle:  linear-gradient(135deg, #E8F8FF 0%, #E0FFF8 100%);

  /* Neutrals */
  --ink:          #0F172A;
  --ink-2:        #1E293B;
  --muted:        #64748B;
  --border:       #E2E8F0;
  --soft-bg:      #F0F9FF;
  --body-bg:      #FAFCFF;
  --card-bg:      #FFFFFF;
  --light:        #FFFFFF;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(15,23,42,.06), 0 1px 6px rgba(15,23,42,.04);
  --shadow:       0 4px 16px rgba(15,23,42,.08), 0 1px 4px rgba(15,23,42,.04);
  --shadow-lg:    0 12px 40px rgba(15,23,42,.10), 0 3px 10px rgba(15,23,42,.06);
  --shadow-brand: 0 8px 24px rgba(0,181,255,.25);

  /* Radii */
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  /* Layout */
  --maxw:   1200px;
  --navw:   1440px;
  --navh:   76px;
}

/* ── 2. RESET + BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--body-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Fondo con gradientes sutiles */
body {
  background:
    radial-gradient(1000px 600px at 0% 0%,   rgba(0,181,255,.06) 0%, transparent 60%),
    radial-gradient(800px  500px at 100% 10%, rgba(0,199,169,.05) 0%, transparent 55%),
    radial-gradient(600px  400px at 60% 100%, rgba(0,181,255,.04) 0%, transparent 55%),
    var(--body-bg);
}

a    { text-decoration: none; color: inherit; }
img  { max-width: 100%; display: block; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

section[id] { scroll-margin-top: calc(var(--navh) + 8px); }

/* ── 3. TIPOGRAFÍA ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.section__title {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 8px;
}
.section__subtitle {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  margin-bottom: 48px;
  font-weight: 400;
}
.muted { color: var(--muted); }

/* ── 4. BOTONES ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { box-shadow: 0 12px 32px rgba(0,181,255,.35); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink-2);
}
.btn--outline:hover { border-color: var(--brand); color: var(--brand); background: rgba(0,181,255,.04); }

.btn--ghost {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,.25); }

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover { background: var(--ink-2); }

/* compat clases antiguas */
.btn--light { background: var(--ink); color: #fff; }

/* ── 5. HEADER / NAV ────────────────────────────────────────── */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  color: var(--light);
  transition: background .2s ease, box-shadow .2s ease, backdrop-filter .2s ease;
}

header.site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(15,23,42,.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navh);
  max-width: var(--navw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* Logo */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand .logo { height: 44px; width: auto; display: block; transition: opacity .2s; }
.brand .logo--dark  { display: none; }
.brand .logo--light { display: block; }
header.site-header.scrolled .logo--light { display: none; }
header.site-header.scrolled .logo--dark  { display: block; }

/* Links centrados en desktop */
.nav__links {
  display: flex;
  gap: 4px;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav {
    position: relative;
    justify-content: flex-start;
  }
  .nav__links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav__links a {
  position: relative;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  color: var(--light);
  transition: color .15s, background .15s;
}
.nav__links a:hover { background: rgba(255,255,255,.12); }
header.site-header.scrolled .nav__links a { color: var(--ink); }
header.site-header.scrolled .nav__links a:hover { background: rgba(0,181,255,.07); color: var(--brand); }

/* Indicador activo */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

/* Burger */
.burger {
  display: none;
  border: 1.5px solid rgba(255,255,255,.4);
  background: transparent;
  color: inherit;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  line-height: 1;
  transition: background .15s;
}
.burger:hover { background: rgba(255,255,255,.1); }
header.site-header.scrolled .burger { border-color: var(--border); color: var(--ink); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .burger     { display: inline-flex; align-items: center; }
}

/* Drawer móvil */
.drawer {
  display: none;
  position: fixed;
  inset: var(--navh) 0 0 auto;
  width: min(88vw, 320px);
  background: var(--ink);
  box-shadow: -8px 0 40px rgba(0,0,0,.25);
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  z-index: 99;
  overflow-y: auto;
}
@media (max-width: 900px) { .drawer { display: block; } }
.drawer.open { transform: none; }

.drawer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  color: #E2E8F0;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .15s, background .15s;
}
.drawer a:hover { color: var(--brand); background: rgba(0,181,255,.06); }

/* ── 6. HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

/* Slideshow fondo */
.slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slideshow span {
  position: absolute;
  inset: 0;
  background: var(--bg) center / cover no-repeat;
  opacity: 0;
  animation: heroFade 15s infinite;
  will-change: opacity;
}
.slideshow span:nth-of-type(1) { animation-delay: 0s; }
.slideshow span:nth-of-type(2) { animation-delay: 5s; }
.slideshow span:nth-of-type(3) { animation-delay: 10s; }
@keyframes heroFade {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  38%  { opacity: 1; }
  46%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5,15,35,.50) 0%,
    rgba(5,15,35,.35) 50%,
    rgba(5,15,35,.60) 100%
  );
  z-index: 1;
}

/* Contenido hero */
.hero__inner {
  position: relative;
  z-index: 2;
  padding: calc(var(--navh) + 48px) 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

/* Puntos de colores del logo antes del eyebrow */
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    #E53935 0%, #F57C00 20%, #7CB342 40%,
    #26C6DA 60%, #3949AB 80%, #E91E63 100%
  );
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(36px, 6.5vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero__title span {
  color: #fff;
}

.hero__sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(255,255,255,.82);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}

/* Onda inferior hero */
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 120px;
  z-index: 3;
  pointer-events: none;
}
.hero-wave,
.hero-wave::before,
.hero-wave::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% 100%;
}
.hero-wave {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path d='M0,60 C360,120 720,0 1080,60 C1260,90 1380,80 1440,72 L1440,120 L0,120 Z' fill='%23F0F9FF'/></svg>");
}
.hero-wave::before {
  transform: translateY(8px);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path d='M0,70 C300,110 600,20 900,65 C1100,95 1300,50 1440,80 L1440,120 L0,120 Z' fill='%23E0FFF8' opacity='.9'/></svg>");
}
.hero-wave::after {
  transform: translateY(18px);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path d='M0,80 C240,120 480,30 720,68 C960,106 1200,50 1440,90 L1440,120 L0,120 Z' fill='%23FAFCFF' opacity='.95'/></svg>");
}

/* ── 7. NOTICE CAROUSEL ─────────────────────────────────────── */
.notice-carousel {
  position: relative;
  z-index: 4;
  padding: 32px 20px 80px;
  display: grid;
  justify-items: center;
  text-align: center;
  color: #fff;
  width: 100%;
}

.nc-track {
  position: relative;
  width: min(100%, 860px);
}

/* Slides ocultos por defecto, sin ocupar espacio */
.nc-slide {
  display: none;
  padding: 0 20px 4px;
}

/* Slide activo visible con animación de entrada */
.nc-slide.is-active {
  display: grid;
  place-content: center;
  animation: ncSlideIn .35s ease forwards;
}

@keyframes ncSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.nc-inner {
  display: grid;
  gap: 14px;
  justify-items: center;
  align-content: center;
  padding: 32px 28px;
  min-height: 180px;
  border-radius: var(--radius-lg);
  background: rgba(5,15,35,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}

/* Slide con imagen */
.nc-inner.has-media {
  padding: 0;
  min-height: unset;
  gap: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* Texto flotante sobre la imagen */
.nc-inner.has-media .nc-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 40px;
  z-index: 4;
  text-align: center;
  /* No bloquear clicks cuando el copy está vacío */
  pointer-events: none;
}
/* Permitir clicks en elementos hijos con contenido */
.nc-inner.has-media .nc-copy > * {
  pointer-events: auto;
}

.nc-inner.has-media .nc-title {
  font-size: clamp(22px, 3.5vw, 38px);
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.nc-inner.has-media .nc-sub {
  font-size: clamp(14px, 1.8vw, 18px);
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.nc-inner.has-media .nc-foot {
  font-size: clamp(13px, 1.5vw, 16px);
  opacity: .88;
  max-width: 480px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* Imagen ocupa todo el ancho, sin borde propio */
.nc-inner.has-media .nc-media {
  border-radius: 0;
  width: 100%;
}

/* Imagen cubre el contenedor */
.nc-inner.has-media .nc-media img {
  max-height: 460px;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}

.nc-title { margin: 0; font-weight: 900; font-size: clamp(22px, 3.5vw, 34px); color: #fff; }
.nc-sub   { margin: 0; font-style: italic; font-size: clamp(14px, 1.8vw, 18px); line-height: 1.5; opacity: .9; }
.nc-foot  { margin: 0; font-size: clamp(13px, 1.6vw, 16px); opacity: .85; }

.nc-prev, .nc-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.5);
  background: rgba(0,0,0,.32);
  color: #fff;
  font-size: 22px;
  display: grid;
  place-items: center;
  transition: background .15s;
  /* JS recalcula top cuando cambia la altura del slide activo */
}
.nc-prev { left: 6px; }
.nc-next { right: 6px; }
.nc-prev:hover, .nc-next:hover { background: rgba(0,0,0,.52); }

.nc-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}
.nc-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background .2s, width .2s;
}
.nc-dot.is-active { background: #fff; width: 24px; }

/* Imagen en slide */
.nc-media {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,181,255,.12) 0%, rgba(0,199,169,.10) 100%),
    #0d1a2a;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagen siempre completa, sin recortes, respetando su proporción */
.nc-media img {
  display: block;
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
  position: relative;
  z-index: 1;
}

/* Gradiente inferior para slides sin texto (solo badge/cta) */
.nc-media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
  pointer-events: none;
  z-index: 2;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Overlay completo cuando hay texto sobre la imagen */
.nc-inner.has-media .nc-media::after {
  height: 100%;
  background: rgba(5,12,28,.40);
  border-radius: 0;
}

.nc-media__cta {
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 6;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-brand);
  transition: transform .12s;
}
.nc-media__cta:hover { transform: translateY(-1px); }

.nc-badge {
  position: absolute;
  bottom: 14px; right: 14px;
  z-index: 3;
  background: #F59E0B;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nc-cta {
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-brand);
}

/* ── 8. SECCIONES GENERALES ─────────────────────────────────── */
.section { padding: 80px 0; }
.section h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 8px;
}

/* ── 9. SERVICIOS (nueva sección) ───────────────────────────── */
#servicios {
  background: var(--soft-bg);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 0;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px 22px 24px;
  text-align: center;
  border: 1px solid rgba(0,181,255,.1);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,181,255,.25);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: var(--grad-subtle);
  margin: 0 auto 16px;
}
.service-icon svg {
  width: 32px; height: 32px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── 10. SUCURSALES ─────────────────────────────────────────── */
#sucursales {
  position: relative;
  z-index: 0;
}
#sucursales::before {
  content: "";
  position: absolute;
  inset: -48px -24px -24px -24px;
  border-radius: 40px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(800px 280px at 10% 0%,  rgba(0,181,255,.12)  0%, transparent 65%),
    radial-gradient(800px 280px at 90% 0%,  rgba(0,199,169,.10)  0%, transparent 65%),
    radial-gradient(1000px 400px at 50% 110%, rgba(0,181,255,.08) 0%, transparent 70%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 920px) { .grid { grid-template-columns: 1fr; } }

/* ── 11. CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card__media {
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card__media img { transform: scale(1.03); }

.card__body { padding: 24px; }
.card__body h3 { font-size: 20px; margin-bottom: 6px; }

.card__kpis {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
}

.card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0,181,255,.1);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
}

/* ── 12. NOSOTROS ───────────────────────────────────────────── */
.about-hero {
  position: relative;
  background: linear-gradient(135deg, #00C7A9 0%, #00B5FF 55%, #0099CC 100%);
  padding: 88px 0 110px;
  color: #111;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-media { order: -1; }
}

.about-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}
.about-card h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.about-text {
  font-size: clamp(16px, 1.8vw, 19px);
  color: #2E7D61;
  line-height: 1.7;
}
.about-text strong { color: #1A6B52; }

.about-media {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.about-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.about-wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background:
    radial-gradient(120px 50px at 10% 20px, rgba(255,255,255,.2), transparent 60%),
    radial-gradient(120px 50px at 50% 35px, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(120px 50px at 88% 20px, rgba(255,255,255,.16), transparent 60%);
  pointer-events: none;
}

/* ── 13. GALERÍA ────────────────────────────────────────────── */
.gallery-grid {
  column-count: 3;
  column-gap: 14px;
  padding: 8px 0;
}
.gallery-grid img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 14px;
  break-inside: avoid;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}
@media (max-width: 900px) { .gallery-grid { column-count: 2; } }
@media (max-width: 560px) { .gallery-grid { column-count: 1; } }

/* Lightbox */
.lb {
  position: fixed; inset: 0;
  background: rgba(5,10,25,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lb.is-open { display: flex; }
.lb__stage {
  max-width: min(90vw, 1200px);
  max-height: 85vh;
  margin: 0 56px;
  text-align: center;
}
.lb__stage img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 60px rgba(0,0,0,.7);
}
.lb__stage figcaption {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  margin-top: 12px;
}
.lb__close {
  position: absolute; top: 16px; right: 20px;
  font-size: 36px; line-height: 1;
  background: transparent; color: rgba(255,255,255,.8); border: 0;
  transition: color .15s;
}
.lb__close:hover { color: #fff; }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  font-size: 28px; display: grid; place-items: center;
  transition: background .2s;
}
.lb__nav:hover { background: rgba(255,255,255,.22); }
.lb__prev { left: 12px; }
.lb__next { right: 12px; }

/* ── 14. TESTIMONIOS ────────────────────────────────────────── */
#testimonios .pretty-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 20px;
}
#testimonios .rating-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.03em;
}
#testimonios .rating-txt { color: var(--muted); font-size: 15px; }

.stars .star,
.review__stars .star {
  font-size: 18px;
  color: #E2E8F0;
}
.stars .star.is-full,
.review__stars .star.is-full { color: #F59E0B; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .reviews-grid { grid-template-columns: 1fr; } }

#testimonios .card {
  padding: 22px;
  border-radius: var(--radius-lg);
}
.review__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.review__head strong { font-weight: 700; font-size: 15px; }
.review__date { color: var(--muted); font-size: 13px; }
.review__for  { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.review__text { color: var(--ink-2); line-height: 1.6; font-size: 14px; }

.reviews-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.reviews-pager .pill {
  min-width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background .15s, border-color .15s;
}
.reviews-pager .pill:hover { border-color: var(--brand); color: var(--brand); }
.reviews-pager .pill:disabled { opacity: .35; cursor: not-allowed; }

/* ── 15. FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #CBD5E1;
  margin-top: 80px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 40px;
}
@media (max-width: 900px)  { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .footer__grid { grid-template-columns: 1fr; } }

.f-logo img {
  height: 32px; width: auto;
  filter: brightness(1.2);
  margin-bottom: 12px;
}
.f-tag  { color: #94A3B8; font-size: 14px; line-height: 1.65; margin-bottom: 20px; }

.f-address { margin: 14px 0 6px; }
.f-address strong { display: block; color: #F1F5F9; font-size: 13px; margin-bottom: 2px; }
.f-address p { color: #94A3B8; font-size: 13px; line-height: 1.5; margin: 0; }

.f-social { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.f-social a {
  width: 34px; height: 34px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  color: #CBD5E1;
  border: 1px solid rgba(255,255,255,.08);
  transition: background .15s, color .15s;
}
.f-social a:hover { background: var(--brand); color: #fff; border-color: transparent; }

.f-col h4 {
  color: #F1F5F9;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}
.f-col ul { display: grid; gap: 8px; }
.f-col a {
  color: #94A3B8;
  font-size: 14px;
  transition: color .15s;
}
.f-col a:hover { color: var(--brand); }

.footer__bar {
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.2);
}
.bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.bar__inner small { color: #64748B; font-size: 13px; }

/* ── 16. PÁGINA SUCURSAL ────────────────────────────────────── */
body.no-hero main { padding-top: var(--navh); }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: background .15s;
}
.back-btn:hover { background: var(--ink-2); }

/* Equipo */
.team-section { padding: 48px 0 0; }
.team-title {
  text-align: center;
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 32px;
}

.team-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.pro-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pro-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pro-photo {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  border: 3px solid transparent;
  background: var(--grad-brand);
  box-shadow: 0 6px 20px rgba(0,181,255,.2);
  cursor: pointer;
  margin-bottom: 16px;
  position: relative;
}
.pro-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
}

.pro-body { text-align: center; width: 100%; }
.pro-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.pro-role { color: var(--muted); font-size: 13px; font-style: italic; margin-bottom: 12px; }

.pro-social {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.pro-ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0,181,255,.08);
  color: var(--brand);
  border: 1px solid rgba(0,181,255,.12);
  transition: background .15s, transform .15s;
}
.pro-ico:hover { background: rgba(0,181,255,.15); transform: translateY(-1px); }
.pro-ico.ig { color: #E1306C; background: rgba(225,48,108,.07); border-color: rgba(225,48,108,.12); }
.pro-ico.in { color: #0A66C2; background: rgba(10,102,194,.07); border-color: rgba(10,102,194,.12); }
.pro-ico.wa { color: #25D366; background: rgba(37,211,102,.07); border-color: rgba(37,211,102,.12); }

/* Modal profesional */
.pro-modal {
  border: none;
  border-radius: var(--radius-xl);
  padding: 0;
  width: min(840px, 92vw);
  box-shadow: 0 40px 100px rgba(0,0,0,.3);
  overflow: hidden;
}
.pro-modal::backdrop { background: rgba(5,15,35,.65); backdrop-filter: blur(4px); }
.pro-close {
  position: absolute;
  top: 12px; right: 16px;
  border: 0; background: rgba(0,0,0,.06);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 22px; line-height: 1;
  cursor: pointer; color: var(--muted);
  display: grid; place-items: center;
  transition: background .15s;
}
.pro-close:hover { background: rgba(0,0,0,.12); }
.pro-modal__content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
}
.pro-modal__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.pro-modal__text {
  padding: 28px 28px 24px;
  overflow-y: auto;
  max-height: 520px;
}
.pro-modal__text h3 { font-size: 22px; margin-bottom: 4px; }
.pro-bio p { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin-bottom: 12px; }

@media (max-width: 640px) {
  .pro-modal__content { grid-template-columns: 1fr; }
  .pro-modal__photo { aspect-ratio: 4/3; }
  .pro-modal__text { max-height: none; }
}

/* FAB WhatsApp */
.fab-wsp {
  position: fixed;
  right: 22px; bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 200;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.2));
}
.fab-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  transition: transform .15s;
  flex-shrink: 0;
}
.fab-label {
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(37,211,102,.3);
}
.fab-wsp:hover .fab-icon  { transform: scale(1.06); }
.fab-wsp:hover .fab-label { filter: brightness(1.05); }
@media (max-width: 680px) {
  .fab-label { display: none; }
  .fab-wsp   { right: 16px; bottom: 16px; }
}

/* ── 17. BOTÓN VOLVER ARRIBA ────────────────────────────────── */
.backtop {
  position: fixed;
  right: 22px; bottom: 96px;
  width: 42px; height: 42px;
  border: none; border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px) scale(.9);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 190;
  display: grid; place-items: center;
}
.backtop.show { opacity: 1; transform: none; }
.backtop:hover { background: var(--ink-2); }

/* ── 18. ANIMACIONES SCROLL ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
  animation: revealFallback 0s 2s forwards;
}
@keyframes revealFallback { to { opacity: 1; transform: none; } }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  animation: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── 19. CHIPS / BADGES (página sucursal) ───────────────────── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip {
  background: rgba(255,255,255,.85);
  color: var(--ink);
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.chip--soon { background: #FDE68A; }

/* ── 20. RESPONSIVO GLOBAL ──────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { min-height: 90vh; }
  .notice-carousel { padding: 28px 0 60px; }
  .footer__grid { padding: 40px 0 28px; }
  .about-hero { padding: 60px 0 80px; }
  .about-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: 100%; max-width: 300px; justify-content: center; }
  .card__actions { flex-direction: column; }
  .card__actions .btn { width: 100%; justify-content: center; }
}
