/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --blue:       #1B4F8A;
  --blue-dark:  #143d6d;
  --blue-light: #3A7BD5;
  --gold:       #F5C518;
  --gold-dark:  #d4a812;
  --white:      #FFFFFF;
  --bg-alt:     #F7F9FC;
  --ink:        #1a2533;
  --ink-soft:   #3a4a5c;
  --ink-mute:   #6b7c93;
  --line:       rgba(27,79,138,0.12);
  --shadow:     0 4px 24px rgba(27,79,138,0.10);
  --shadow-lg:  0 12px 48px rgba(27,79,138,0.18);
  --radius:     12px;
  --radius-lg:  20px;
  --gutter:     clamp(1rem, 4vw, 2rem);
  --max-w:      1200px;

  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1,h2,h3,h4 { text-wrap: balance; font-family: var(--serif); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1.2rem; background: var(--blue); color: var(--white);
  border-radius: 8px; font-weight: 600; transition: top .25s;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-lead { margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: var(--blue-dark);
  border: 2px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline-blue:hover { background: var(--blue); color: var(--white); }

.btn-sm {
  padding: .55rem 1.25rem;
  font-size: .875rem;
}

/* =============================================================
   4. Reveal animation system
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

/* Safety: no JS = all visible */
.no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   5. Header / Nav
   ============================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(27,79,138,0.1);
  transition: box-shadow .35s;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 24px rgba(27,79,138,0.15);
}
.site-header.is-scrolled .header-inner { padding-block: .75rem; }
.site-header.is-scrolled .nav-link { color: var(--ink); }
.site-header.is-scrolled .nav-link:hover { color: var(--blue-light); }
.site-header.is-scrolled .nav-phone { color: var(--blue); }
.site-header.is-scrolled .header-logo { color: var(--blue); }
.site-header.is-scrolled .burger span { background: var(--blue); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
  transition: padding .35s;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}
.header-logo img { height: 78px !important; width: auto !important; display: block; }
.header-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.header-logo-text strong { display: block; font-size: 1rem; }
.header-logo-text span { display: block; font-size: .7rem; font-family: var(--sans); font-weight: 400; opacity: .8; }

.main-nav {
  display: none;
  flex: 1;
  justify-content: center;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: .1rem;
}
.nav-link {
  display: block;
  padding: .4rem .65rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--gold); }
.nav-link.is-active { color: var(--gold); }

.header-right {
  display: none;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-phone {
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.nav-phone:hover { color: var(--gold); }

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: .4rem;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 100vw);
  height: 100vh;
  background: var(--blue-dark);
  z-index: 950;
  padding: 5rem 2rem 2rem;
  transition: right .35s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { right: 0; }
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 940;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.mobile-menu-overlay.is-open { opacity: 1; pointer-events: all; }

.mobile-nav a {
  display: block;
  padding: .9rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color .2s, padding-left .2s;
}
.mobile-nav a:hover { color: var(--gold); padding-left: .5rem; }
.mobile-menu-phone {
  display: block;
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}
.mobile-menu-btn { margin-top: 1.5rem; width: 100%; justify-content: center; }
.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: rgba(255,255,255,.7);
  padding: .4rem;
  cursor: pointer;
  transition: color .2s;
}
.mobile-menu-close:hover { color: var(--white); }

/* =============================================================
   6. Hero (index)
   ============================================================= */
.hero {
  position: relative;
  height: clamp(300px, 31.25vw, 600px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(20,61,109,0.85) 0%,
    rgba(27,79,138,0.70) 50%,
    rgba(20,61,109,0.60) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem var(--gutter) 1.5rem;
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  color: var(--white);
  max-width: 14ch;
  margin-bottom: .75rem;
  line-height: 1.1;
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem 1rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  font-size: .8rem;
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
}
.hero-badge .check { color: var(--gold); font-weight: 700; }

/* ── Hero Slider ─────────────────────────────────────────────── */
.hero-slider { padding: 0; }

.hs-track {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
  display: flex;
  align-items: center;
}
.hs-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hs-slide.is-leaving {
  opacity: 0;
  visibility: visible;
  z-index: 0;
}

/* Content animates in when slide becomes active */
.hs-slide.is-active .hs-content > * {
  animation: hsFadeUp .7s ease both;
}
.hs-slide.is-active .hs-content > *:nth-child(1) { animation-delay: .15s; }
.hs-slide.is-active .hs-content > *:nth-child(2) { animation-delay: .27s; }
.hs-slide.is-active .hs-content > *:nth-child(3) { animation-delay: .38s; }
.hs-slide.is-active .hs-content > *:nth-child(4) { animation-delay: .48s; }
.hs-slide.is-active .hs-content > *:nth-child(5) { animation-delay: .56s; }

@keyframes hsFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Override reveal system — slides handle their own animation */
.hs-content > * { opacity: 1 !important; transform: none; }

/* Arrows */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  background: rgba(20,61,109,.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s, transform .2s;
}
.hs-arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-50%) scale(1.1);
}
.hs-prev { left: clamp(1rem, 3vw, 2.5rem); }
.hs-next { right: clamp(1rem, 3vw, 2.5rem); }

/* Dots */
.hs-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: .6rem;
}
.hs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .25s, border-color .25s, transform .25s;
}
.hs-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.3);
}

/* Progress bar */
.hs-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.2);
  z-index: 10;
}
.hs-progress-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width linear;
}

@media (max-width: 600px) {
  .hs-arrow { width: 40px; height: 40px; }
  .hs-prev { left: .75rem; }
  .hs-next { right: .75rem; }
}

/* =============================================================
   7. Trust bar
   ============================================================= */
.trust-bar {
  background: var(--blue);
  padding: 1.25rem var(--gutter);
}
.trust-bar-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}
.trust-item .trust-icon { color: var(--gold); font-size: 1rem; }

/* Mobile fixes: hero was overflowing/cropping, trust bar stacked into 5 tall rows */
@media (max-width: 719px) {
  .hero {
    height: auto;
    min-height: 0;
    padding: 0;
  }
  .hero-content {
    padding: 6rem 1.25rem 2.25rem;
  }
  .hero-eyebrow { margin-bottom: .85rem; font-size: .72rem; }
  .hero-title { font-size: clamp(1.6rem, 7vw, 2.1rem); max-width: none; margin-bottom: .6rem; }
  .hero-sub { font-size: .95rem; margin-bottom: 1.75rem; max-width: none; }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    margin-bottom: 0;
  }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .trust-bar { padding: 1rem 1.25rem; }
  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem .75rem;
    justify-content: stretch;
  }
  .trust-item { font-size: .78rem; gap: .4rem; line-height: 1.25; }
  .trust-item .trust-icon { font-size: .95rem; flex-shrink: 0; }
}

/* =============================================================
   8. Sections
   ============================================================= */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section-alt { background: var(--bg-alt); }
.section-blue {
  background: var(--blue);
  color: var(--white);
}
.section-blue .section-title { color: var(--white); }
.section-blue .section-lead { color: rgba(255,255,255,.85); }
.section-dark {
  background: var(--blue-dark);
  color: var(--white);
}

/* =============================================================
   9. Service cards
   ============================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .3s var(--ease-out), box-shadow .3s;
  cursor: default;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(58,123,213,.25);
}
.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(27,79,138,.1), rgba(58,123,213,.15));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
  font-family: var(--serif);
}
.service-card p {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-light);
  transition: gap .2s;
}
.service-card:hover .card-link { gap: .6rem; }

/* =============================================================
   10. Why choose us
   ============================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.feature-item { text-align: center; }
.feature-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(27,79,138,.25);
}
.feature-item h3 {
  font-size: 1rem;
  margin-bottom: .4rem;
}
.feature-item p {
  font-size: .875rem;
  color: var(--ink-soft);
}

/* =============================================================
   11. Gallery grid
   ============================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.05); }

/* =============================================================
   12. Testimonials
   ============================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}
.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: .75rem;
  letter-spacing: .1em;
}
.testimonial-text {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.review-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-clamp.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.review-toggle {
  background: none;
  border: none;
  padding: 0;
  color: var(--blue-light);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: .5rem;
  font-family: var(--sans);
}
.review-toggle:hover { text-decoration: underline; }
}

/* ── Reviews carousel ─────────────────────────────────────── */
.reviews-carousel { user-select: none; }
.reviews-track-wrap { cursor: grab; }
.reviews-track-wrap:active { cursor: grabbing; }
.reviews-track { will-change: transform; }
.reviews-prev,
.reviews-next {
  transition: background .2s, color .2s, transform .15s;
}
.reviews-prev:hover,
.reviews-next:hover {
  background: var(--blue) !important;
  color: #fff !important;
  transform: scale(1.08);
}
.reviews-prev:disabled,
.reviews-next:disabled { opacity: .35; cursor: default; transform: none; }
.reviews-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-mute);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}
.reviews-dot.is-active {
  background: var(--blue);
  transform: scale(1.35);
}
@media (max-width: 719px) {
  .reviews-track > article { flex: 0 0 min(100%, 340px) !important; }
}
.testimonial-text::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--blue-light);
  opacity: .25;
  position: absolute;
  top: .75rem;
  right: 1.5rem;
  line-height: 1;
}
.testimonial-author strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.testimonial-author span {
  font-size: .8rem;
  color: var(--ink-mute);
}

/* =============================================================
   13. Asistencia highlight (home)
   ============================================================= */
.asistencia-highlight {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: 2.5rem;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.asistencia-highlight::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,197,24,.15), transparent 70%);
  pointer-events: none;
}
.asistencia-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.asistencia-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.asistencia-text {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.asistencia-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.asistencia-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================================
   14. Contact quick / map section
   ============================================================= */
.contact-quick-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--white);
}
.contact-info-item strong { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); }
.contact-info-item span { font-size: .9rem; color: var(--ink-soft); }
.contact-info-item a { color: var(--blue-light); }
.contact-info-item a:hover { text-decoration: underline; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  border: 2px solid var(--line);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =============================================================
   15. CTA band
   ============================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='rgba(245,197,24,.15)'/%3E%3C/svg%3E");
  opacity: .5;
}
.cta-band-inner { position: relative; max-width: 700px; margin-inline: auto; }
.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: .75rem;
}
.cta-band p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
}
.cta-band .btn-primary { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* =============================================================
   16. Page hero (interior pages)
   ============================================================= */
.page-hero {
  position: relative;
  padding: 8rem var(--gutter) 4rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  overflow: hidden;
  text-align: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(245,197,24,.12)'/%3E%3C/svg%3E");
}
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; margin-inline: auto; }
.page-hero-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.5rem;
  justify-content: center;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: .5; }

/* =============================================================
   17. Content sections (interior pages)
   ============================================================= */
.content-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}
.content-section:last-child { border-bottom: none; }

.content-two-col {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.content-block h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
  color: var(--blue);
}
.content-block h3 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
  color: var(--ink);
}
.content-block p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.content-block ul li {
  color: var(--ink-soft);
  padding: .35rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
  font-size: .95rem;
}
.content-block ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-light);
  font-weight: 700;
}

.info-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.info-box strong { color: var(--ink); }

.warning-box {
  background: #fff8e1;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.warning-box p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* =============================================================
   18. FAQ accordion
   ============================================================= */
.faq-list {
  margin-top: 2rem;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  cursor: pointer;
  font-size: .975rem;
  font-weight: 600;
  color: var(--ink);
  gap: 1rem;
  transition: color .2s;
}
.faq-question:hover { color: var(--blue-light); }
.faq-icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
  color: var(--blue);
  transition: transform .3s var(--ease-out), background .2s;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-out);
}
.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* =============================================================
   19. Pricing tables
   ============================================================= */
.pricing-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .3s, border-color .3s;
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}
.pricing-card.featured {
  border-color: var(--blue);
  position: relative;
}
.pricing-card.featured::before {
  content: "Más solicitado";
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 50px;
}
.pricing-header {
  background: var(--blue);
  color: var(--white);
  padding: 1.5rem;
}
.pricing-header h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: .25rem;
}
.pricing-header p { font-size: .85rem; color: rgba(255,255,255,.8); }
.pricing-body { padding: 1.5rem; }
.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row .price {
  font-weight: 700;
  color: var(--blue);
}
.pricing-note {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: .875rem;
  color: var(--ink-soft);
}
.pricing-note strong { color: var(--ink); }

/* =============================================================
   20. Team cards
   ============================================================= */
.team-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-photo {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-info { padding: 1.5rem; }
.team-info h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.team-role {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: .6rem;
}
.team-info p { font-size: .875rem; color: var(--ink-soft); line-height: 1.65; }

/* =============================================================
   21. Types of assistance dogs (perros asistencia page)
   ============================================================= */
.types-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.type-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s, box-shadow .2s;
}
.type-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow); }
.type-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--white);
}
.type-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.type-card p { font-size: .875rem; color: var(--ink-soft); line-height: 1.6; }

/* =============================================================
   22. Contact form
   ============================================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 4px rgba(58,123,213,.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7c93' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
.form-submit { margin-top: .5rem; }
.form-success {
  display: none;
  padding: 1.25rem;
  background: #e6f4ea;
  border: 1px solid #34a853;
  border-radius: var(--radius);
  color: #1a6b2f;
  font-weight: 500;
  text-align: center;
}

/* =============================================================
   23. WhatsApp floating button
   ============================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 800;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .25s var(--ease-out), box-shadow .25s;
  cursor: pointer;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* =============================================================
   24. Footer
   ============================================================= */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.8);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 1.5rem;
}
.footer-top {
  display: grid;
  gap: 2.5rem;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-logo img { height: 92px !important; width: auto !important; display: block; }
.footer-logo .logo-icon {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.footer-desc {
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(255,255,255,.65);
  margin-bottom: 1rem;
  max-width: 34ch;
}
.footer-nucleozoologico {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
}
.footer-nucleozoologico > div {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.footer-nucleozoologico .nz-icon { color: var(--gold); }

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .6rem;
}
.footer-contact-item a { color: rgba(255,255,255,.65); }
.footer-contact-item a:hover { color: var(--white); }
.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  transition: background .2s, transform .2s, color .2s;
}
.footer-social a svg { display: block; }
.footer-social a:hover { background: var(--blue-light); transform: translateY(-2px); }

.footer-bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
}
.footer-copyright { font-size: .8rem; color: rgba(255,255,255,.45); }
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a { font-size: .8rem; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.75); }

/* =============================================================
   25. Page-specific: Instalaciones gallery
   ============================================================= */
.inst-gallery { margin-top: 2.5rem; }
.inst-gallery-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--blue-light);
  color: var(--blue);
  display: inline-block;
}
.inst-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
.inst-item { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; }
.inst-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.inst-item:hover img { transform: scale(1.05); }
.inst-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(20,61,109,.85));
  padding: 1rem;
  color: white;
  font-size: .8rem;
}

/* =============================================================
   26. Sobre nosotros: values
   ============================================================= */
.values-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.value-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.value-num {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  color: var(--blue-dark);
  flex-shrink: 0;
}
.value-item h3 { font-size: 1rem; margin-bottom: .3rem; }
.value-item p { font-size: .875rem; color: var(--ink-soft); line-height: 1.65; }

/* =============================================================
   27. Schema / accreditation badge
   ============================================================= */
.accreditation-bar {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2.5rem;
}
.accred-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
}
.accred-icon {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

/* =============================================================
   28. Sticky nav active state (from URL)
   ============================================================= */
.nav-link[aria-current="page"] { color: var(--gold) !important; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .inst-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .main-nav { display: flex; }
  .header-right { display: flex; }
  .burger { display: none; }

  .content-two-col { grid-template-columns: 1fr 1fr; }
  .asistencia-highlight { grid-template-columns: 1fr 1fr; }
  .contact-quick-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .map-frame { height: 360px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .types-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .inst-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .main-nav ul { gap: .2rem; }
  .nav-link { padding: .45rem .75rem; font-size: .85rem; }
}

/* =============================================================
   9. Reduced-motion (only intrusive)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
}
