/* ==========================================================================
   ESTILOS PRINCIPALES - ABOGADO FAMILIAR GUADALAJARA (abogado-gdl.com)
   Diseño fiel a la identidad corporativa original, optimizado en código limpio
   Voran Marketing · Alto rendimiento & Conversión
   ========================================================================== */

:root {
  /* Paleta Corporativa Oficial */
  --primary: #f4a950;
  --primary-dark: #df9133;
  --primary-light: #fef5ea;
  --secondary: #02112e;
  --secondary-light: #162544;
  --navy-dark: #0f1c33;
  --navy-heading: #223645;
  --text-main: #3c4b62;
  --text-muted: #6e7d91;
  --text-light: #94a3b8;
  --bg-light: #f8fafd;
  --bg-alt: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  
  /* WhatsApp & Acentos */
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --star-gold: #ffb800;

  /* Tipografía y Espaciado */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  /* Sombras elegantes */
  --shadow-sm: 0 2px 6px rgba(2, 17, 46, 0.05);
  --shadow-md: 0 10px 25px rgba(2, 17, 46, 0.08);
  --shadow-lg: 0 18px 40px rgba(2, 17, 46, 0.12);
  --shadow-gold: 0 8px 20px rgba(244, 169, 80, 0.35);

  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
}

/* Reset Universal */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Desplazamiento suave con margen para barra fija */
section[id], div[id], footer[id] {
  scroll-margin-top: 85px;
}

img, svg, iframe, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  box-sizing: border-box;
}

/* Tipografía Semántica con salvaguarda anti-desbordamiento */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy-heading);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { 
  margin-bottom: 1rem; 
  overflow-wrap: break-word;
  word-wrap: break-word;
}
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ==========================================================================
   TOP BAR SUPERIOR
   ========================================================================== */
.top-header {
  background-color: var(--secondary);
  color: #cbd5e1;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

@media (min-width: 992px) {
  .top-header {
    display: block;
  }
}

.top-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
}

.top-header-contact {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.top-header-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.top-header-contact-item svg,
.top-header-contact-item i {
  color: var(--primary);
  flex-shrink: 0;
}

.top-header-contact-item a:hover {
  color: var(--primary);
}

.top-header-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

.top-header-social a:hover {
  background: var(--primary);
  color: var(--secondary);
}

/* ==========================================================================
   NAVBAR PRINCIPAL FIJA
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 4px 18px rgba(2, 17, 46, 0.08);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
  width: 100%;
  box-sizing: border-box;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  max-width: 60%;
}

.logo-img {
  height: 52px;
  max-height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .navbar {
    height: 68px;
  }
  .logo-img {
    height: 42px;
    max-height: 42px;
    max-width: 165px;
  }
}

@media (max-width: 380px) {
  .logo-img {
    height: 36px;
    max-height: 36px;
    max-width: 135px;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--navy-heading);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .nav-actions {
    gap: 0.5rem;
  }
  .nav-actions .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .nav-actions .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.74rem;
  }
}

/* Botones con reglas de copy conciso */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  line-height: 1.2;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 576px) {
  .btn {
    white-space: normal;
    word-break: normal;
  }
}

.btn-primary {
  background-color: var(--primary);
  color: var(--secondary);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(223, 145, 51, 0.4);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
}

/* Hamburguesa móvil */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 992px) {
  .hamburger-btn {
    display: none;
  }
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--navy-heading);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menú móvil desplegable */
.mobile-nav {
  display: block;
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid var(--border);
  transition: max-height 0.35s ease-in-out;
}

.mobile-nav.open {
  max-height: 380px;
  box-shadow: var(--shadow-md);
}

.mobile-nav-inner {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-heading);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   HERO / PORTADA PRINCIPAL (Bosa Finance Style)
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--secondary);
  color: var(--white);
  padding: 5.5rem 0 4.5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(2, 17, 46, 0.94) 0%, rgba(22, 37, 68, 0.88) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(244, 169, 80, 0.15);
  color: var(--primary);
  border: 1px solid rgba(244, 169, 80, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.08rem;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-desc b {
  color: var(--white);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 576px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hero-cta-group .btn {
    width: 100%;
    padding: 0.75rem 1.15rem !important;
    font-size: 0.92rem !important;
  }
}

/* ==========================================================================
   CARDS DE TRAYECTORIA Y VALOR (Debajo del Hero)
   ========================================================================== */
.feature-badges-section {
  position: relative;
  margin-top: -2.5rem;
  z-index: 10;
  margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
  .feature-badges-section {
    margin-top: -1.5rem;
    margin-bottom: 2rem;
  }
}

.badges-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .badges-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.badge-card {
  background: var(--white);
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
  min-width: 0;
  box-sizing: border-box;
}

.badge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 480px) {
  .badge-card {
    padding: 1.15rem 1.15rem;
    gap: 0.85rem;
  }
  .badge-card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .badge-card-title {
    font-size: 0.95rem;
  }
}

.badge-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.badge-card-sub {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.badge-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-heading);
  line-height: 1.3;
}

/* ==========================================================================
   SECCIÓN: ¿POR QUÉ ELEGIRNOS? Y CONTADORES
   ========================================================================== */
.about-section {
  padding: 3.5rem 0 4.5rem;
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-image-wrap img {
    height: 280px;
  }
}

.about-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  background: var(--bg-light);
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  box-sizing: border-box;
}

.counter-item {
  min-width: 0;
  overflow: hidden;
}

.counter-item-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.counter-item-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy-heading);
  margin-top: 0.35rem;
  text-transform: uppercase;
  word-break: normal;
}

@media (max-width: 480px) {
  .about-counters {
    gap: 0.35rem;
    padding: 0.9rem 0.35rem;
  }
  .counter-item-num {
    font-size: 1.35rem;
  }
  .counter-item-label {
    font-size: 0.65rem;
    line-height: 1.25;
    letter-spacing: 0;
  }
}

.section-label {
  display: inline-block;
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.3rem);
  font-weight: 700;
  color: var(--navy-heading);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.section-title-center {
  text-align: center;
}

.section-desc-center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  color: var(--text-muted);
}

/* ==========================================================================
   GRID DE SERVICIOS (12 Servicios con Enlaces Individuales)
   ========================================================================== */
.services-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(244, 169, 80, 0.4);
}

.service-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--secondary);
}

.service-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card:hover .service-card-img-wrap img {
  transform: scale(1.06);
}

.service-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(2, 17, 46, 0.85);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.service-card-body {
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-heading);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.service-card-title a:hover {
  color: var(--primary-dark);
}

.service-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.service-card-actions .btn {
  flex: 1;
}

/* ==========================================================================
   TASA DE EFECTIVIDAD (Progress Bars)
   ========================================================================== */
.effectiveness-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.effectiveness-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .effectiveness-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.progress-group {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.progress-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-heading);
  margin-bottom: 0.4rem;
}

.progress-bar-wrap {
  width: 100%;
  height: 9px;
  background-color: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-pill);
}

.effectiveness-card {
  background: var(--secondary);
  color: var(--white);
  padding: 2.75rem 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.effectiveness-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(244, 169, 80, 0.25) 0%, transparent 70%);
}

.effectiveness-card h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.effectiveness-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   RESEÑAS REALES DE GOOGLE (Clientes Reales de Lic. David)
   ========================================================================== */
.reviews-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

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

.review-stars {
  color: var(--star-gold);
  font-size: 1rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 2px;
}

.review-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: #475569;
  font-weight: 500;
  margin-left: auto;
}

.review-quote {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 1.4rem;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-heading);
}

.review-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ Accordion Ligero)
   ========================================================================== */
.faq-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.4rem;
  background: transparent;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-heading);
  cursor: pointer;
  gap: 1rem;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .faq-question {
    padding: 1rem 1.1rem;
    font-size: 0.94rem;
  }
}

.faq-question:hover {
  color: var(--primary-dark);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-dark);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.4rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 380px;
  padding-bottom: 1.25rem;
}

@media (max-width: 480px) {
  .faq-answer {
    padding: 0 1.1rem;
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   BANNER DE LLAMADO A LA ACCIÓN (CTA Banner)
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.cta-banner-content {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #e2e8f0;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

@media (max-width: 576px) {
  .cta-banner {
    padding: 2.25rem 1.15rem;
    margin: 1.5rem 0 3.5rem;
  }
  .cta-banner .btn {
    width: 100%;
    padding: 0.75rem 1.15rem !important;
    font-size: 0.92rem !important;
  }
}

/* ==========================================================================
   CONTACTO & MAPA (Chapalita Guadalajara)
   ========================================================================== */
.contact-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--white);
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  box-sizing: border-box;
}

.contact-card-item > div:last-child {
  min-width: 0;
  flex: 1;
  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-card-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.contact-card-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-heading);
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  .contact-card-item {
    padding: 1rem 1.15rem;
    gap: 0.85rem;
  }
  .contact-card-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  .contact-card-value {
    font-size: 0.92rem;
  }
}

.map-container {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-box {
  background: var(--white);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact-form-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-form-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-heading);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 169, 80, 0.2);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* ==========================================================================
   ESTILOS DE PÁGINA INDIVIDUAL DE SERVICIO (Plantilla de Servicio SEO)
   ========================================================================== */
.service-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.service-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
  text-align: center;
  word-break: break-word;
}

.service-breadcrumbs a:hover {
  color: var(--primary);
}

.service-hero-title {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.85rem);
  margin-bottom: 1rem;
  word-break: break-word;
}

.service-hero-subtitle {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 600;
  max-width: 650px;
  margin: 0 auto;
}

.service-detail-section {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .service-detail-section {
    padding: 3rem 0;
  }
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.service-detail-content,
.service-sidebar {
  min-width: 0;
  width: 100%;
}

@media (min-width: 992px) {
  .service-detail-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.service-detail-content h2 {
  font-size: 1.65rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.service-detail-content h2:first-child {
  margin-top: 0;
}

.service-detail-content p {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.service-requirements-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
}

.service-requirements-box h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.service-requirements-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-requirements-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.service-requirements-list li svg {
  color: var(--whatsapp);
  flex-shrink: 0;
  margin-top: 3px;
}

.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-box-gold {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: var(--white);
  border: none;
}

.sidebar-box-gold h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.sidebar-box-gold p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.sidebar-services-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-service-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-heading);
  transition: var(--transition);
}

.sidebar-service-link:hover,
.sidebar-service-link.active {
  background: var(--primary);
  color: var(--secondary);
}

/* ==========================================================================
   FOOTER (Con Espaciado Obligatorio Anti-Corte de WhatsApp)
   ========================================================================== */
.site-footer {
  background-color: var(--secondary);
  color: #94a3b8;
  padding-top: 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

/* Regla obligatoria: padding-bottom 6.5rem en móvil para que el botón flotante no tape enlaces */
@media (max-width: 768px) {
  .site-footer {
    padding-bottom: 6.5rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-widget h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list a {
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-schedule {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #e2e8f0;
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-bottom a {
  color: #cbd5e1;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP (Elevación Obligatoria Anti-Cortes)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--whatsapp);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-whatsapp 2.5s infinite;
  text-decoration: none;
  max-width: calc(100vw - 28px);
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float:hover {
  background-color: #20ba59;
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Reglas de Elevación por Pantalla */
@media (max-width: 479px) {
  .whatsapp-float {
    bottom: calc(85px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    padding: 0.6rem 0.95rem;
    font-size: 0.82rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .whatsapp-float {
    bottom: calc(75px + env(safe-area-inset-bottom, 0px));
    right: 18px;
    padding: 0.65rem 1.1rem;
  }
}

@media (min-width: 768px) {
  .whatsapp-float {
    bottom: 45px;
    right: 24px;
    padding: 0.75rem 1.35rem;
    font-size: 0.9rem;
  }
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ==========================================================================
   VENTANA MODAL INTERACTIVA DE WHATSAPP
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 17, 46, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  box-sizing: border-box;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .modal-backdrop {
    padding: 0.75rem;
  }
  .modal-card {
    border-radius: var(--radius-md);
    max-height: 92vh;
  }
  .modal-header {
    padding: 1.15rem 1.15rem;
  }
  .modal-title {
    font-size: 1.05rem;
  }
  .modal-form {
    padding: 1.25rem 1.15rem;
  }
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: rotate(90deg);
}

.modal-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: var(--white);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  background: rgba(37, 211, 102, 0.2);
  color: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.modal-title {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.modal-subtitle {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0;
}

.modal-form {
  padding: 1.75rem;
}

.modal-submit-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.modal-privacy-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.85rem;
  margin-bottom: 0;
}

