/*
Theme Name: SPR Revisores
Theme URI: https://sprrevisores.cl
Author: SPR Revisores
Description: Tema WordPress rediseñado para la verificación de subdivisiones de predios rústicos (SAG Res. 5462/2026).
Version: 3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: spr-revisores
*/

@import url('https://fonts.googleapis.com/css2?family=ADLaM+Display&display=swap');

:root {
  /* Colors */
  --forest-dark: #0D2B1D;
  --forest-emerald: #1B4D3E;
  --forest-mid: #275945;
  --forest-light: #3D7A62;
  --sag-gold: #C69214;
  --sag-gold-bright: #E5B224;
  --sag-gold-bg: rgba(198, 146, 20, 0.09);
  --sag-gold-border: rgba(198, 146, 20, 0.35);
  --spring-accent: #749E34;
  --spring-light: #F0F6E8;
  --surface-white: #FFFFFF;
  --bg-sand: #F7F9F6;
  --bg-sand-alt: #ECF2EA;
  --ink-dark: #121E17;
  --ink-muted: #4F6056;
  --line-subtle: #D5E0D3;
  --line-focus: #749E34;
  
  /* Glassmorphism & Effects */
  --glass-bg: rgba(255, 255, 255, 0.90);
  --glass-border: rgba(13, 43, 29, 0.09);
  --shadow-sm: 0 4px 14px rgba(13, 43, 29, 0.05);
  --shadow-md: 0 12px 32px rgba(13, 43, 29, 0.08);
  --shadow-lg: 0 24px 54px rgba(13, 43, 29, 0.13);
  
  /* Layout & Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1200px;
  
  /* Fonts */
  --font-body: 'ADLaM Display', cursive, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'ADLaM Display', cursive, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* -------------------------------------------------------------
   1. RESET & BASE STYLES
------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: 90px;
}

body.admin-bar {
  scroll-padding-top: 125px;
}

body {
  margin: 0;
  background: var(--bg-sand);
  color: var(--ink-dark);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: 0.015em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

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

button, input, select, textarea {
  font: inherit;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 20px;
  top: 20px;
  z-index: 9999;
  background: var(--surface-white);
  padding: 14px 22px;
  color: var(--forest-dark);
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  outline: 3px solid var(--spring-accent);
}

/* -------------------------------------------------------------
   2. HEADER & NAVIGATION
------------------------------------------------------------- */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(13, 43, 29, 0.08);
}

.nav-wrap, .page-width {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 84px;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: min-height 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled .nav-wrap {
  min-height: 74px;
  padding: 10px 0;
}

.brand img {
  height: 48px;
  max-height: 48px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.site-header.is-scrolled .brand img {
  height: 42px;
}

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

.primary-nav a {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  color: var(--ink-dark);
  padding: 8px 0;
  position: relative;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--spring-accent);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--forest-dark);
}

.primary-nav a:hover::after,
.primary-nav a:focus::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--forest-dark);
  color: var(--surface-white);
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(13, 43, 29, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  background: var(--forest-emerald);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 43, 29, 0.3);
}

.menu-toggle {
  display: none;
  background: var(--surface-white);
  border: 1px solid var(--line-subtle);
  color: var(--forest-dark);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}

/* -------------------------------------------------------------
   3. HERO SECTION
------------------------------------------------------------- */
.hero {
  padding: 0 0 64px;
  background: radial-gradient(circle at 85% 15%, rgba(116, 158, 52, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(13, 43, 29, 0.04) 0%, transparent 60%),
              var(--bg-sand);
}

/* Espacio de Video Destacado 100% Ancho de Pantalla (Pegado al Menú Superior) */
.hero-video-banner-full {
  position: relative;
  width: 100%;
  min-height: 320px;
  max-height: 420px;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--forest-dark), var(--forest-emerald));
  box-shadow: var(--shadow-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.hero-banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-placeholder-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--surface-white);
  padding: 40px 24px;
  background: rgba(13, 43, 29, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-play-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--spring-accent);
  color: var(--surface-white);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(116, 158, 52, 0.4);
  animation: pulse-dot 2s infinite;
}

.video-badge-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #A3D154;
  margin-bottom: 8px;
  display: block;
}

.video-placeholder-overlay h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.9vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
  max-width: 36ch;
  color: var(--surface-white);
}

.video-placeholder-overlay small {
  font-size: 0.9rem;
  letter-spacing: 0.015em;
  color: #C3D5CB;
}

.banner-caption-badge {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 3;
  background: rgba(13, 43, 29, 0.85);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 100px;
  color: var(--surface-white);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.authorization-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 10px;
  margin-bottom: 24px;
  background: var(--surface-white);
  border: 1px solid var(--sag-gold-border);
  border-radius: 100px;
  box-shadow: 0 6px 20px rgba(198, 146, 20, 0.08);
}

.authorization-badge__seal {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sag-gold-bright), var(--sag-gold));
  color: var(--surface-white);
  box-shadow: 0 2px 8px rgba(198, 146, 20, 0.3);
}

.authorization-badge__text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--forest-dark);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.authorization-badge__text small {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--sag-gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.14;
  color: var(--forest-dark);
  letter-spacing: 0.01em;
  margin: 0 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--spring-accent);
  background: linear-gradient(135deg, #749E34, #275945);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  font-size: 1.14rem;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 0 32px;
  line-height: 1.7;
  letter-spacing: 0.015em;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.button-primary {
  background: var(--forest-dark);
  color: var(--surface-white);
  border: 2px solid var(--forest-dark);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: var(--forest-emerald);
  border-color: var(--forest-emerald);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button-secondary {
  background: var(--surface-white);
  color: var(--forest-dark);
  border: 2px solid var(--line-subtle);
}

.button-secondary:hover {
  border-color: var(--forest-dark);
  background: var(--bg-sand);
  transform: translateY(-2px);
}

.button-sag {
  background: var(--sag-gold-bg);
  color: var(--forest-dark);
  border: 2px solid var(--sag-gold-border);
  font-size: 0.88rem;
}

.button-sag:hover {
  background: rgba(198, 146, 20, 0.18);
  border-color: var(--sag-gold);
  transform: translateY(-2px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line-subtle);
}

.fact strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--forest-dark);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.fact span {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sag-gold-border);
  background: var(--forest-dark);
  display: flex;
  flex-direction: column;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 460px;
  min-height: 460px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  z-index: 1;
  background: var(--forest-dark);
}

.carousel-slide.is-current {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* FOTOS 100% LIMPIAS EN PRIMER PLANO SIN TEXTOS NI OVERLAYS */
.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  display: block;
}

/* CONTROLES PEQUEÑOS Y ESTILIZADOS DEBAJO DE LA FOTO */
.hero-carousel-controls-bottom {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(13, 43, 29, 0.95);
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-carousel-controls-bottom .carousel-prev,
.hero-carousel-controls-bottom .carousel-next {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #A3D154;
  font-size: 1.1rem;
  line-height: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-carousel-controls-bottom .carousel-prev:hover,
.hero-carousel-controls-bottom .carousel-next:hover {
  background: #A3D154;
  color: var(--forest-dark);
  transform: scale(1.08);
}

.hero-carousel-controls-bottom .carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.hero-carousel-controls-bottom .carousel-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.hero-carousel-controls-bottom .carousel-dots button.is-current {
  width: 18px;
  border-radius: 100px;
  background: #A3D154;
}

.carousel-prev,
.carousel-next {
  background: transparent;
  border: none;
  color: var(--surface-white);
  font-size: 1.4rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.carousel-dots button.is-current {
  width: 20px;
  border-radius: 100px;
  background: #A3D154;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 480px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--forest-dark);
}

.carousel-slide.is-current {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.carousel-slide img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 480px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-slide-content {
  width: 100%;
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 32px 84px;
  color: var(--surface-white);
  position: relative;
}

.slide-1 {
  background: linear-gradient(180deg, rgba(13, 43, 29, 0.15) 0%, rgba(13, 43, 29, 0.88) 100%),
              url('assets/img/logo-spr.png') center/cover;
  background-color: var(--forest-dark);
}

.slide-2 {
  background: linear-gradient(180deg, rgba(27, 77, 62, 0.15) 0%, rgba(13, 43, 29, 0.88) 100%),
              url('assets/img/logo-spr.png') center/cover;
  background-color: var(--forest-emerald);
}

.slide-3 {
  background: linear-gradient(180deg, rgba(39, 89, 69, 0.15) 0%, rgba(13, 43, 29, 0.88) 100%),
              url('assets/img/logo-spr.png') center/cover;
  background-color: var(--forest-mid);
}

.slide-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #A3D154;
  background: rgba(13, 43, 29, 0.85);
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 8px;
  width: fit-content;
}

.hero-slide-content h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0;
  color: var(--surface-white);
}

.carousel-placeholder-box {
  width: 100%;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px 80px;
  color: var(--surface-white);
  background: linear-gradient(135deg, var(--forest-emerald), var(--spring-accent));
}

.carousel-placeholder-box svg {
  color: #A3D154;
  margin-bottom: 12px;
}

.carousel-placeholder-box strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 6px;
  display: block;
}

.carousel-placeholder-box small {
  font-size: 0.88rem;
  color: #E2EFE0;
  max-width: 32ch;
  line-height: 1.5;
}

.hero-carousel-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 43, 29, 0.75);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-carousel-controls button {
  background: transparent;
  border: 0;
  color: var(--surface-white);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
}

.hero-carousel-controls button:hover {
  color: #A3D154;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dots button.is-current {
  width: 22px;
  border-radius: 100px;
  background: #A3D154;
}

.visual-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--spring-accent);
  color: var(--forest-dark);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow-md);
}

.visual-caption small {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 500;
  margin-top: 3px;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--spring-accent);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(116, 158, 52, 0.3);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(116, 158, 52, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(116, 158, 52, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(116, 158, 52, 0); }
}

/* -------------------------------------------------------------
   4. DEPARTMENTS / SERVICES STRIP
------------------------------------------------------------- */
.service-strip {
  background: var(--forest-dark);
  color: var(--surface-white);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.service-strip::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 158, 52, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  color: var(--spring-accent);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.eyebrow-light {
  color: #A3D154;
}

.service-intro {
  max-width: 680px;
  margin-bottom: 52px;
}

.service-intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--surface-white);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.service-intro p {
  font-size: 1.12rem;
  color: #C3D5CB;
  line-height: 1.7;
  letter-spacing: 0.015em;
  margin: 0;
}

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

.department {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.department:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(163, 209, 84, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.department-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(163, 209, 84, 0.15);
  color: #A3D154;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.department h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--surface-white);
  margin: 0 0 12px;
}

.department p {
  color: #C3D5CB;
  font-size: 0.98rem;
  line-height: 1.68;
  letter-spacing: 0.015em;
  margin: 0 0 24px;
  flex-grow: 1;
}

.department-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.department-pills span {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #A3D154;
  background: rgba(163, 209, 84, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
}

/* -------------------------------------------------------------
   5. CAROUSEL & MEDIA
------------------------------------------------------------- */
.media-carousel-section {
  padding: 80px 0;
  background: var(--surface-white);
}

.carousel {
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-sand-alt);
  box-shadow: var(--shadow-md);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.carousel-slide.is-current {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.carousel-controls > button {
  border: 1px solid var(--line-subtle);
  background: var(--surface-white);
  color: var(--forest-dark);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-controls > button:hover {
  background: var(--forest-dark);
  color: var(--surface-white);
  border-color: var(--forest-dark);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-subtle);
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dots button.is-current {
  background: var(--forest-dark);
  transform: scale(1.3);
}

/* -------------------------------------------------------------
   6. ABOUT US SECTION
------------------------------------------------------------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-sand-alt);
}

.section-head {
  max-width: 740px;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  font-weight: 800;
  color: var(--forest-dark);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
}

.section-lead {
  font-size: 1.14rem;
  color: var(--ink-muted);
  line-height: 1.7;
  letter-spacing: 0.015em;
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.about-copy {
  font-size: 1.12rem;
  color: var(--ink-muted);
  line-height: 1.75;
  letter-spacing: 0.015em;
  margin: 0 0 28px;
}

.about-badges {
  display: grid;
  gap: 12px;
}

.about-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--forest-dark);
  font-size: 1rem;
}

.about-badge-item svg {
  color: var(--spring-accent);
}

.principles {
  display: grid;
  gap: 20px;
}

.principle {
  background: var(--surface-white);
  padding: 32px;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--spring-accent);
  box-shadow: var(--shadow-sm);
}

.principle-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.principle-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--spring-light);
  color: var(--spring-accent);
}

.principle-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.principle h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--forest-dark);
  margin: 0;
}

.principle p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.68;
  letter-spacing: 0.015em;
}

/* -------------------------------------------------------------
   7. PROCESS TIMELINE SECTION
------------------------------------------------------------- */
.proceso-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.proceso-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--spring-accent);
}

.legend-mark.start {
  background: var(--sag-gold);
  border-radius: 50%;
}

.legend-mark.decision {
  background: #3B82F6;
  border-radius: 2px;
}

.flow {
  position: relative;
  padding-left: 10px;
}

.flow::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 24px;
  bottom: 24px;
  width: 3px;
  background: var(--line-subtle);
  border-radius: 3px;
}

.flow-step {
  position: relative;
  padding-left: 84px;
  margin-bottom: 28px;
}

.marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--surface-white);
  border: 2px solid var(--spring-accent);
  color: var(--spring-accent);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: all 0.25s ease;
}

.flow-step.start .marker {
  background: var(--sag-gold);
  border-color: var(--sag-gold);
  color: var(--surface-white);
  border-radius: 50%;
}

.flow-step.decision .marker {
  background: #3B82F6;
  border-color: #3B82F6;
  color: var(--surface-white);
  border-radius: var(--radius-sm);
}

.flow-card {
  background: var(--surface-white);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flow-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.flow-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--forest-dark);
  margin: 0 0 6px;
}

.flow-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.68;
  letter-spacing: 0.015em;
}

.branch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.branch {
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.6;
  letter-spacing: 0.015em;
}

.branch-yes {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
}

.branch-yes strong {
  color: #92400E;
  display: block;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.branch-no {
  background: var(--spring-light);
  border: 1px solid #D5E8C4;
}

.branch-no strong {
  color: var(--forest-dark);
  display: block;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

/* -------------------------------------------------------------
   7.5 FAQ SECTION (PREGUNTAS FRECUENTES)
------------------------------------------------------------- */
.faq-grid {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-accordion-item {
  background: var(--surface-white);
  border: 1.5px solid var(--line-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(13, 43, 29, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
  overflow: hidden;
}

.faq-accordion-item:hover {
  border-color: #B2CBB0;
  box-shadow: 0 8px 24px rgba(13, 43, 29, 0.07);
}

.faq-accordion-item[open] {
  border-color: var(--spring-accent);
  box-shadow: 0 12px 32px rgba(13, 43, 29, 0.1);
}

.faq-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  outline: none;
  background: transparent;
  transition: background-color 0.25s ease;
}

.faq-accordion-header::-webkit-details-marker {
  display: none;
}

.faq-accordion-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin: 0;
  line-height: 1.45;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

.faq-accordion-item:hover .faq-accordion-header h3 {
  color: var(--forest-emerald);
}

.faq-accordion-item[open] .faq-accordion-header h3 {
  color: var(--forest-dark);
  font-weight: 800;
}

.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--spring-light);
  color: var(--forest-dark);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(116, 158, 52, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease;
}

.faq-accordion-item:hover .faq-icon {
  background: var(--spring-accent);
  color: var(--surface-white);
}

.faq-accordion-item[open] .faq-icon {
  transform: rotate(135deg);
  background: var(--forest-dark);
  color: var(--surface-white);
  box-shadow: none;
}

.faq-accordion-content {
  padding: 0 24px 24px 24px;
}

.faq-answer-box {
  background: linear-gradient(180deg, #F0F6E8 0%, #F7FAF4 100%);
  border: 1px solid #D4E5CE;
  border-left: 4px solid var(--spring-accent);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  color: var(--ink-dark);
  font-size: 1rem;
  line-height: 1.72;
  letter-spacing: 0.015em;
  box-shadow: inset 0 2px 6px rgba(13, 43, 29, 0.02);
  animation: faqExpand 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes faqExpand {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer-box p {
  margin: 0 0 1rem;
  color: var(--ink-dark);
}

.faq-answer-box p:last-child {
  margin-bottom: 0;
}

.faq-answer-box ul {
  margin: 14px 0 16px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.faq-answer-box li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-dark);
  font-size: 0.96rem;
  line-height: 1.55;
  font-weight: 500;
}

.faq-answer-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  background: var(--spring-accent);
  color: var(--surface-white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* -------------------------------------------------------------
   8. CONTACT SECTION & MAP
------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--surface-white);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 24px;
}

.contact-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest-dark);
  margin-bottom: 6px;
}

.contact-item-head svg {
  color: var(--spring-accent);
}

.contact-item-head strong {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list a, .contact-list span {
  display: block;
  color: var(--forest-dark);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.contact-phones-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.contact-phone-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.contact-phone-link svg {
  color: #25D366;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.contact-phone-link:hover svg {
  transform: scale(1.12);
}

.contact-address-link {
  display: inline-block;
  color: var(--forest-dark);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-address-link:hover {
  color: var(--spring-accent);
}

.contact-list a:hover {
  color: var(--spring-accent);
}

.address-note {
  font-size: 0.9rem !important;
  color: var(--ink-muted) !important;
  font-weight: 500 !important;
  letter-spacing: 0.015em !important;
  margin-top: 4px;
}

.button-full {
  width: 100%;
}

.map-wrap {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-md);
  background: var(--bg-sand-alt);
}

.map-click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
  text-decoration: none;
  background: transparent;
  transition: background 0.25s ease;
}

.map-click-overlay:hover {
  background: rgba(13, 40, 24, 0.04);
}

.map-click-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 40, 24, 0.85);
  color: #ffffff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 7px 14px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  pointer-events: none;
}

.map-click-overlay:hover .map-click-hint {
  background: var(--forest-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* -------------------------------------------------------------
   9. FOOTER
------------------------------------------------------------- */
.site-footer {
  background: var(--forest-dark);
  color: #C3D5CB;
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand img {
  height: 176px;
  width: auto;
  margin-bottom: 16px;
  background: var(--surface-white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.68;
  letter-spacing: 0.015em;
}

.site-footer h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--surface-white);
  margin: 0 0 20px;
}

.site-footer a {
  display: block;
  color: #C3D5CB;
  font-family: var(--font-heading);
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  margin-bottom: 10px;
}

.site-footer a:hover {
  color: var(--surface-white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-backtop {
  color: var(--surface-white) !important;
  font-weight: 700;
}

/* -------------------------------------------------------------
   10. WHATSAPP FAB & VIRTUAL ASSISTANT
------------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFF;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: var(--forest-dark);
  color: var(--surface-white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.whatsapp-fab:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Assistant Trigger Button */
.assistant-trigger {
  position: fixed;
  right: 28px;
  bottom: 102px;
  z-index: 89;
  background: var(--forest-dark);
  color: var(--surface-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 11px 20px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(13, 43, 29, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}

.assistant-trigger:hover {
  background: var(--forest-emerald);
  transform: translateY(-2px);
}

.assistant-trigger-dot {
  width: 8px;
  height: 8px;
  background: var(--spring-accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

/* Assistant Chat Modal */
.spr-assistant {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 120;
  width: min(390px, calc(100vw - 36px));
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(13, 43, 29, 0.3);
  border: 1px solid var(--line-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.spr-assistant.is-open {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.spr-assistant[hidden] {
  display: none;
}

.assistant-header {
  background: var(--forest-dark);
  color: var(--surface-white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.assistant-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest-emerald);
  border: 2px solid var(--spring-accent);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: #25D366;
  border: 2px solid var(--forest-dark);
  border-radius: 50%;
}

.assistant-title-group h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--surface-white);
}

.assistant-kicker {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--spring-accent);
  font-weight: 800;
}

.assistant-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: transparent;
  border: 0;
  color: #C3D5CB;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.assistant-close:hover {
  color: var(--surface-white);
}

.assistant-body {
  padding: 24px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--bg-sand);
}

.assistant-intro {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.assistant-options {
  display: grid;
  gap: 8px;
}

.assistant-opt-btn {
  background: var(--surface-white);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--forest-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.assistant-opt-btn:hover,
.assistant-opt-btn.is-selected {
  background: var(--spring-light);
  border-color: var(--spring-accent);
  color: var(--forest-dark);
}

.assistant-answer {
  margin-top: 16px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.assistant-answer-bubble {
  background: var(--surface-white);
  border-left: 4px solid var(--spring-accent);
  padding: 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.assistant-selected-q {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--forest-dark);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line-subtle);
}

.assistant-answer-bubble strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--spring-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.assistant-answer-bubble p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-dark);
  line-height: 1.65;
  letter-spacing: 0.015em;
}

.assistant-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 11px 16px;
  background: var(--surface-white);
  border: 1.5px solid var(--forest-dark);
  color: var(--forest-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.assistant-back-btn:hover {
  background: var(--forest-dark);
  color: var(--surface-white);
}

.assistant-footer {
  padding: 16px 24px;
  background: var(--surface-white);
  border-top: 1px solid var(--line-subtle);
}

.assistant-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: var(--surface-white);
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: background 0.2s ease;
}

.assistant-whatsapp:hover {
  background: #1EBE5D;
}

/* -------------------------------------------------------------
   11. SCROLL REVEAL ANIMATIONS
------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .snap-section {
    opacity: 0.85;
    transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .snap-section.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero.snap-section {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------
   12. RESPONSIVE BREAKPOINTS (MULTIPLATAFORMA & MÓVIL)
------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* En móviles y tablets, el texto con los botones se mantiene arriba y el carrusel abajo */
  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: 360px;
  }

  .hero-slide-content,
  .carousel-placeholder-box,
  .carousel-track {
    min-height: 360px;
    height: 360px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .hero-video-banner-full {
    min-height: 240px;
    max-height: 320px;
    margin-bottom: 28px;
  }

  .video-placeholder-overlay {
    padding: 24px 16px;
  }

  .video-play-badge {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    background: var(--surface-white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--line-subtle);
    box-shadow: var(--shadow-md);
    z-index: 100;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .primary-nav li {
    width: 100%;
    border-bottom: 1px solid var(--line-subtle);
  }

  .primary-nav a {
    display: block;
    padding: 14px 0;
  }

  .nav-cta {
    display: none;
  }

  .branch-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .hero {
    padding: 0 0 36px;
  }

  .hero-video-banner-full {
    min-height: 200px;
    max-height: 260px;
    margin-bottom: 24px;
  }

  .banner-caption-badge {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-slide-content,
  .carousel-placeholder-box,
  .carousel-track {
    min-height: 300px;
    height: 300px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .flow-step {
    padding-left: 56px;
  }

  .marker {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .flow::before {
    left: 19px;
  }

  .spr-assistant {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 12px;
    border-radius: var(--radius-md);
  }
}


