/*
Theme Name: Cuidado y Vida
Theme URI: https://www.cuidadoyvida.cl
Author: Cuidado y Vida
Author URI: https://www.cuidadoyvida.cl
Description: Tema profesional para servicios de enfermería a domicilio. Diseño moderno, responsive y optimizado para SEO.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cuidado-vida
Tags: medical, healthcare, nursing, responsive, one-page, custom-colors, custom-menu, featured-images
*/

/* ==========================================
   VARIABLES CSS
   ========================================== */
:root {
  /* Colores */
  --color-primary: #0f5597;
  --color-secondary: #0a3c68;
  --color-accent: #f6b73c;
  --color-bg: #f5f9fc;
  --color-text: #1a2a3a;
  --color-text-secondary: rgba(26, 42, 58, 0.9);
  --color-text-muted: rgba(26, 42, 58, 0.75);

  /* Sombras - Sistema de elevación */
  --shadow-sm: 0 2px 8px rgba(15, 85, 151, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 85, 151, 0.1);
  --shadow-lg: 0 16px 48px rgba(15, 85, 151, 0.12);
  --shadow-xl: 0 24px 60px rgba(15, 85, 151, 0.15);
  --shadow-2xl: 0 32px 80px rgba(15, 85, 151, 0.2);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 999px;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Transiciones */
  --transition-fast: 150ms;
  --transition-base: 200ms;
  --transition-slow: 300ms;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  color-scheme: light;
}

/* ==========================================
   RESET Y BASE
   ========================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Mejoras de accesibilidad para navegación por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Reducir movimiento para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 3rem;
}

section {
  padding: 0 1.5rem;
}

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  transition: transform var(--transition-base) var(--ease-smooth),
              box-shadow var(--transition-base) var(--ease-smooth);
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.grid {
  display: grid;
  gap: 2rem;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 85, 151, 0.1);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-container {
  display: flex;
  align-items: center;
  width: 50px;
  height: 50px;
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  line-height: 1.1;
}

.menu-toggle {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.2s ease;
}

.nav-links {
  position: fixed;
  inset: 70px 1.5rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 85, 151, 0.15);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links.nav-links-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav-link {
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

/* ==========================================
   HERO CAROUSEL
   ========================================== */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #0f5597;
  color: #fff;
  padding: clamp(3rem, 8vw, 4.5rem) 1.5rem clamp(4rem, 10vw, 5.5rem);
  height: clamp(520px, 70vh, 620px);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  will-change: opacity;
}

.hero-image-active {
  opacity: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 85, 151, 0.5) 0%, rgba(15, 85, 151, 0.7) 30%, rgba(15, 85, 151, 0.95) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* ==========================================
   REFINAMIENTO VISUAL DEL HOME
   ========================================== */
.container {
  width: min(1180px, 100%);
}

.navbar {
  box-shadow: 0 8px 30px rgba(10, 60, 104, 0.06);
}

.nav-content {
  min-height: 76px;
}

.brand-text strong {
  color: var(--color-secondary);
  font-size: 0.95rem;
}

.brand-text small {
  margin-top: 0.2rem;
  max-width: 190px;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.nav-link {
  position: relative;
  padding-block: 0.45rem;
  font-size: 0.88rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  transition: right 0.2s ease, left 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  right: 0;
  left: 0;
}

.hero {
  min-height: 570px;
  height: min(72vh, 680px);
}

.hero-image {
  transform: scale(1.015);
  transition: opacity 0.75s ease-in-out, transform 6s ease-out;
}

.hero-image-active {
  transform: scale(1.06);
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1 {
  letter-spacing: -0.035em;
}

.hero-copy .btn-primary {
  min-height: 52px;
  padding-inline: 2rem;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

.hero-copy .btn-primary:hover {
  background: #f4f9fd;
}

.coverage-section {
  position: relative;
  z-index: 3;
  margin-top: -5rem;
  padding-top: 0;
  padding-bottom: 3.5rem;
}

.coverage-card {
  border-top: 4px solid var(--color-primary);
  box-shadow: 0 28px 70px rgba(10, 60, 104, 0.14);
}

.coverage-areas span {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.coverage-areas span:hover {
  color: #fff;
  background: var(--color-primary);
  transform: translateY(-2px);
}

#quienes-somos,
.services,
.professionals,
.contact {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

#quienes-somos {
  background: #fff;
}

.about-text {
  max-width: 820px;
}

.about-text h2,
.header h2,
.heading h2 {
  letter-spacing: -0.025em;
}

.about-text p:first-of-type {
  color: var(--color-secondary);
  font-size: 1.12rem;
}

.about-cards article {
  position: relative;
  overflow: hidden;
  border-top: 3px solid rgba(15, 85, 151, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-cards article:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(15, 85, 151, 0.13);
}

.services {
  background: linear-gradient(180deg, #f4f9fd 0%, #edf6fc 100%);
}

.services-grid {
  gap: 1.75rem;
}

.services-grid article {
  border-color: rgba(15, 85, 151, 0.1);
  box-shadow: 0 14px 35px rgba(15, 85, 151, 0.08);
}

.services-grid article:hover {
  border-color: rgba(15, 85, 151, 0.22);
}

.icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 85, 151, 0.08), rgba(15, 85, 151, 0.16));
  font-size: 1.65rem;
}

.services-grid h3 {
  color: var(--color-secondary);
  font-size: 1.22rem;
}

.service-card-actions {
  grid-template-columns: 1fr 1.15fr;
}

.service-detail-link,
.btn-reserve {
  min-height: 48px;
}

.service-whatsapp {
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.22);
}

.services-more {
  max-width: 900px;
  margin-top: 3rem;
  border-color: rgba(15, 85, 151, 0.12);
}

.care-finder {
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

.care-finder-shell {
  max-width: 900px;
  border: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.care-finder-form select {
  border-width: 2px;
}

.faq-section {
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.faq-list details {
  background: #f7fbfe;
}

.faq-list summary {
  padding-block: 1.3rem;
}

.faq-list details[open] {
  background: #fff;
}

.professionals {
  background: linear-gradient(180deg, #f4f9fd, #edf6fc);
}

.cards {
  max-width: 980px;
}

.cards article {
  padding: 2.75rem;
  border-top: 4px solid var(--color-primary);
}

.avatar-image {
  width: 132px;
  height: 132px;
  border-width: 5px;
}

.contact {
  background: #fff;
}

.contact-card {
  max-width: 960px;
  border: 0;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  box-shadow: 0 24px 60px rgba(10, 60, 104, 0.2);
}

.contact-copy h2,
.contact-copy p {
  color: #fff;
}

.contact-card .btn-primary {
  background: #fff;
  color: var(--color-primary);
}

@media (max-width: 680px) {
  .service-card-actions {
    grid-template-columns: 1fr;
  }

  .coverage-section {
    margin-top: -2rem;
  }

  .coverage-card {
    border-top-width: 3px;
  }
}

/* Estabilización y mejora visual del menú de servicios */
.nav-links > li {
  margin: 0;
  list-style: none;
}

.nav-dropdown-trigger > .nav-link {
  flex: 1;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  background: rgba(15, 85, 151, 0.08);
}

.services-submenu {
  border-top: 3px solid var(--color-primary);
}

.services-submenu-label {
  color: var(--color-primary);
}

.services-submenu-help {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
  padding: 0.85rem 1rem !important;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary)) !important;
  color: #fff !important;
}

.services-submenu-help strong {
  white-space: nowrap;
  font-size: 0.78rem;
}

.services-submenu-help:hover,
.services-submenu-help:focus-visible {
  color: #fff !important;
  transform: none !important;
}

@media (max-width: 899px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-trigger {
    min-height: 44px;
  }

  .nav-dropdown-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    background: rgba(15, 85, 151, 0.06);
  }

  .services-submenu {
    gap: 0.3rem;
    margin: 0.4rem 0 0;
    padding: 0.7rem;
    border-top-width: 2px;
    box-shadow: inset 0 0 0 1px rgba(15, 85, 151, 0.04);
  }

  .services-submenu a {
    min-height: 46px;
  }

  .services-submenu-help {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (min-width: 900px) {
  .nav-dropdown {
    padding-bottom: 0.75rem;
    margin-bottom: -0.75rem;
  }

  .services-submenu {
    top: 100%;
    width: min(660px, 86vw);
    gap: 0.25rem 0.5rem;
    padding: 1rem;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 26px 65px rgba(10, 60, 104, 0.2);
  }

  .services-submenu::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 0.75rem;
  }

  .services-submenu-help {
    grid-column: 1 / -1;
  }
}

/* Navegación móvil: panel único y servicios en acordeón */
@media (max-width: 899px) {
  .navbar .nav-content {
    min-height: 72px;
    padding: 0.65rem 1rem;
  }

  .navbar .logo-container {
    width: 46px;
    height: 46px;
  }

  .navbar .menu-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(15, 85, 151, 0.1);
    border-radius: 13px;
    background: rgba(15, 85, 151, 0.055);
    transition: background var(--transition-base) var(--ease-smooth), border-color var(--transition-base) var(--ease-smooth);
  }

  .navbar .menu-toggle[aria-expanded="true"] {
    border-color: rgba(15, 85, 151, 0.2);
    background: rgba(15, 85, 151, 0.1);
  }

  .navbar .menu-toggle-bar {
    position: absolute;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    transition: opacity 0.2s ease, transform 0.25s var(--ease-smooth);
  }

  .navbar .menu-toggle-bar:nth-child(1) {
    transform: translateY(-7px);
  }

  .navbar .menu-toggle-bar:nth-child(3) {
    transform: translateY(7px);
  }

  .navbar .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
    transform: rotate(45deg);
  }

  .navbar .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .navbar .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
    transform: rotate(-45deg);
  }

  .navbar .nav-links {
    position: fixed;
    inset: 72px 0 0;
    width: 100%;
    max-height: none;
    gap: 0.25rem;
    padding: 1rem max(1rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-top: 1px solid rgba(15, 85, 151, 0.08);
    border-radius: 0;
    background: rgba(248, 251, 254, 0.985);
    box-shadow: 0 28px 55px rgba(10, 60, 104, 0.16);
    opacity: 1;
    visibility: hidden;
    transform: translateX(100%);
    pointer-events: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s ease;
  }

  .navbar .nav-links.nav-links-open {
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  .navbar .nav-links::before {
    content: "NAVEGACIÓN";
    display: block;
    padding: 0.25rem 0.75rem 0.5rem;
    color: rgba(26, 42, 58, 0.55);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
  }

  .navbar .nav-links > li {
    width: 100%;
  }

  .navbar .nav-links > .nav-link,
  .navbar .nav-links > li > .nav-link,
  .navbar .nav-links > li > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem;
    border-radius: 11px;
    color: var(--color-secondary);
    font-size: 0.96rem;
    font-weight: 700;
  }

  .navbar .nav-links > .nav-link:hover,
  .navbar .nav-links > .nav-link:focus-visible,
  .navbar .nav-links > li > .nav-link:hover,
  .navbar .nav-links > li > .nav-link:focus-visible,
  .navbar .nav-links > li > a:hover,
  .navbar .nav-links > li > a:focus-visible {
    background: rgba(15, 85, 151, 0.065);
    color: var(--color-primary);
  }

  .navbar .nav-link::after {
    display: none;
  }

  .navbar .nav-dropdown {
    width: 100%;
    margin: 0.2rem 0;
    overflow: hidden;
    border: 1px solid rgba(15, 85, 151, 0.1);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 85, 151, 0.06);
  }

  .navbar .nav-dropdown-trigger {
    min-height: 54px;
    padding: 0.25rem 0.4rem 0.25rem 0.15rem;
  }

  .navbar .nav-dropdown-trigger > .nav-link {
    min-height: 46px;
    padding: 0.75rem 0.65rem;
    color: var(--color-secondary);
    font-size: 0.96rem;
    font-weight: 750;
  }

  .navbar .nav-dropdown-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin: 0;
    border-radius: 11px;
    background: rgba(15, 85, 151, 0.08);
    color: var(--color-primary);
  }

  .navbar .nav-dropdown-open .nav-dropdown-toggle {
    background: var(--color-primary);
    color: #fff;
  }

  .navbar .services-submenu {
    max-height: none;
    gap: 0.15rem;
    margin: 0;
    padding: 0.45rem 0.45rem 0.55rem;
    overflow: visible;
    border: 0;
    border-top: 1px solid rgba(15, 85, 151, 0.09);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(245, 249, 252, 0.95), #fff);
    box-shadow: none;
  }

  .navbar .nav-dropdown-open .services-submenu {
    animation: mobileServicesReveal 0.24s var(--ease-smooth) both;
  }

  .navbar .services-submenu-label {
    padding: 0.65rem 0.65rem 0.45rem;
    color: rgba(26, 42, 58, 0.58);
    font-size: 0.64rem;
    letter-spacing: 0.11em;
  }

  .navbar .services-submenu a:not(.services-submenu-help) {
    min-height: 46px;
    gap: 0.65rem;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 650;
  }

  .navbar .services-submenu a:not(.services-submenu-help):active {
    background: rgba(15, 85, 151, 0.1);
    transform: scale(0.99);
  }

  .navbar .services-submenu-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 9px;
    background: rgba(15, 85, 151, 0.075);
    font-size: 0.92rem;
  }

  .navbar .services-submenu-help {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 62px;
    margin: 0.45rem 0 0;
    padding: 0.75rem 0.85rem;
    border-radius: 11px;
    font-size: 0.78rem;
  }

  .navbar .services-submenu-help strong {
    font-size: 0.74rem;
  }
}

@media (max-width: 420px) {
  .navbar .brand-text strong {
    font-size: 0.88rem;
  }

  .navbar .brand-text small {
    max-width: 155px;
    font-size: 0.68rem;
  }
}

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

/* CTA refinados para las tarjetas de servicios */
.services-grid article .service-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.services-grid article .service-card-actions > a {
  min-width: 0;
  min-height: 50px;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition:
    color var(--transition-base) var(--ease-smooth),
    background var(--transition-base) var(--ease-smooth),
    border-color var(--transition-base) var(--ease-smooth),
    box-shadow var(--transition-base) var(--ease-smooth),
    transform var(--transition-base) var(--ease-smooth);
}

.services-grid article .service-detail-link {
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid rgba(15, 85, 151, 0.13);
  background: rgba(15, 85, 151, 0.055);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.service-action-arrow,
.service-action-whatsapp {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 9px;
}

.service-action-arrow {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 3px 10px rgba(15, 85, 151, 0.1);
}

.services-grid article .service-detail-link:hover,
.services-grid article .service-detail-link:focus-visible {
  border-color: rgba(15, 85, 151, 0.3);
  background: rgba(15, 85, 151, 0.09);
  box-shadow: 0 8px 18px rgba(15, 85, 151, 0.1);
  transform: translateY(-2px);
}

.services-grid article .service-detail-link:hover .service-action-arrow svg,
.services-grid article .service-detail-link:focus-visible .service-action-arrow svg {
  transform: translateX(2px);
}

.service-action-arrow svg {
  transition: transform var(--transition-base) var(--ease-smooth);
}

.services-grid article .service-whatsapp {
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, #1263a8 0%, var(--color-primary) 58%, var(--color-secondary) 100%);
  color: #fff;
  box-shadow: 0 9px 20px rgba(10, 60, 104, 0.2);
}

.service-action-whatsapp {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.services-grid article .service-whatsapp:hover,
.services-grid article .service-whatsapp:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #1470bb 0%, #0f5597 52%, #082f54 100%);
  box-shadow: 0 13px 26px rgba(10, 60, 104, 0.28);
  transform: translateY(-2px);
}

.services-grid article .service-whatsapp:hover .service-action-whatsapp,
.services-grid article .service-whatsapp:focus-visible .service-action-whatsapp {
  background: #25d366;
}

@media (max-width: 680px) {
  .services-grid article .service-card-actions {
    grid-template-columns: 1fr;
  }

  .services-grid article .service-card-actions > a {
    width: 100%;
    min-height: 52px;
  }
}

/* ==========================================
   PÁGINA DE PREGUNTAS FRECUENTES
   ========================================== */
.faq-page {
  gap: 0;
  padding-bottom: 0;
  background: var(--color-bg);
}

.faq-page-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.25rem, 6vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.14), transparent 23rem),
    linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 72%, #1674b9 100%);
  color: #fff;
}

.faq-page-hero::after {
  content: "";
  position: absolute;
  right: -9rem;
  bottom: -13rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255, 255, 255, 0.035), 0 0 0 8rem rgba(255, 255, 255, 0.025);
}

.faq-page-hero-inner {
  position: relative;
  z-index: 1;
}

.faq-page-breadcrumbs {
  margin-bottom: clamp(2rem, 5vw, 4rem);
  color: rgba(255, 255, 255, 0.72);
}

.faq-page-breadcrumbs a {
  color: #fff;
}

.faq-page-hero-copy {
  max-width: 760px;
}

.faq-page-hero .section-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.faq-page-hero h1 {
  max-width: 750px;
  margin: 1rem 0;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.faq-page-hero p {
  max-width: 650px;
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.faq-page-hero .btn-primary {
  background: #fff;
  color: var(--color-secondary);
  box-shadow: 0 15px 35px rgba(4, 31, 55, 0.25);
}

.faq-page-hero .btn-primary:hover {
  background: #f5fbff;
  transform: translateY(-2px);
}

.faq-page-hero-mark {
  display: none;
  position: absolute;
  right: 3%;
  bottom: -1rem;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.faq-directory {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.faq-directory-inner {
  max-width: 940px;
}

.faq-search-card {
  position: relative;
  z-index: 2;
  margin-top: clamp(-5.75rem, -8vw, -4.25rem);
  margin-bottom: 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(15, 85, 151, 0.08);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xl);
}

.faq-search-card label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--color-secondary);
  font-weight: 700;
}

.faq-search-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(15, 85, 151, 0.2);
  border-radius: 12px;
  background: var(--color-bg);
  color: var(--color-primary);
  transition: border-color var(--transition-base) var(--ease-smooth), box-shadow var(--transition-base) var(--ease-smooth);
}

.faq-search-control:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(15, 85, 151, 0.1);
}

.faq-search-control input {
  width: 100%;
  padding: 1rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
}

.faq-search-control input::placeholder {
  color: rgba(26, 42, 58, 0.55);
}

.faq-search-card > p {
  margin: 0.65rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.faq-topic-nav {
  display: flex;
  gap: 0.65rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.faq-topic-nav a {
  flex: 0 0 auto;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(15, 85, 151, 0.14);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color var(--transition-base) var(--ease-smooth), background var(--transition-base) var(--ease-smooth), transform var(--transition-base) var(--ease-smooth);
}

.faq-topic-nav a:hover,
.faq-topic-nav a:focus-visible {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

.faq-groups {
  display: grid;
  gap: clamp(3rem, 7vw, 5rem);
}

.faq-group {
  scroll-margin-top: 7rem;
}

.faq-group[hidden],
.faq-list details[hidden] {
  display: none;
}

.faq-group-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.faq-group-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(15, 85, 151, 0.09);
  color: var(--color-primary);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.faq-group-header h2 {
  margin: 0 0 0.35rem;
  color: var(--color-secondary);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

.faq-group-header p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.faq-page .faq-list details {
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 85, 151, 0.045);
  scroll-margin-top: 7rem;
}

.faq-page .faq-list details:target {
  border-color: rgba(15, 85, 151, 0.42);
  box-shadow: 0 12px 32px rgba(15, 85, 151, 0.13);
}

.faq-page .faq-list summary {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.faq-answer {
  border-top: 1px solid rgba(15, 85, 151, 0.08);
}

.faq-answer p {
  padding-top: 1.1rem !important;
}

.faq-answer-link {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin: 0 1.25rem 1.25rem;
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(15, 85, 151, 0.3);
  text-underline-offset: 4px;
}

.faq-answer-link:hover,
.faq-answer-link:focus-visible {
  color: var(--color-secondary);
  text-decoration-color: currentColor;
}

.faq-no-results {
  padding: 3rem 1.5rem;
  border: 1px dashed rgba(15, 85, 151, 0.25);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
}

.faq-no-results > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(15, 85, 151, 0.09);
  color: var(--color-primary);
  font-size: 1.6rem;
  font-weight: 800;
}

.faq-no-results h2 {
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
}

.faq-no-results p {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
}

.faq-page-cta {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  background: #fff;
}

.faq-page-cta-card {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #edf7ff, #f9fcff);
  box-shadow: inset 0 0 0 1px rgba(15, 85, 151, 0.08);
}

.faq-page-cta h2 {
  max-width: 650px;
  margin: 0.9rem 0 0.65rem;
  color: var(--color-secondary);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.faq-page-cta p {
  max-width: 650px;
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq-page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.faq-all-questions {
  margin-top: 1.75rem;
  text-align: center;
}

@media (min-width: 760px) {
  .faq-page-cta-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .faq-page-cta-actions {
    align-items: flex-end;
    flex-direction: column;
  }
}

@media (min-width: 900px) {
  .faq-page-hero-mark {
    display: flex;
  }
}

/* Listbox personalizado del orientador */
.custom-listbox {
  position: relative;
  min-width: 0;
}

.custom-listbox-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 54px;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(15, 85, 151, 0.2);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(15, 85, 151, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.custom-listbox-trigger:hover {
  border-color: rgba(15, 85, 151, 0.5);
  background: #fbfdff;
}

.custom-listbox-trigger:focus-visible,
.custom-listbox-open .custom-listbox-trigger {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(15, 85, 151, 0.12);
}

.custom-listbox-has-value {
  color: var(--color-secondary);
  font-weight: 600;
}

.custom-listbox-trigger svg {
  flex: 0 0 auto;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.custom-listbox-open .custom-listbox-trigger svg {
  transform: rotate(180deg);
}

.custom-listbox-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: 0;
  z-index: 80;
  display: grid;
  gap: 0.2rem;
  max-height: 330px;
  padding: 0.55rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(15, 85, 151, 0.14);
  border-top: 3px solid var(--color-primary);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(10, 60, 104, 0.2);
}

.custom-listbox-options[hidden] {
  display: none;
}

.custom-listbox-options [role="option"] {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 2.5rem 0.7rem 0.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-secondary);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.custom-listbox-options [role="option"]:hover,
.custom-listbox-options [role="option"]:focus-visible {
  outline: none;
  color: var(--color-primary);
  background: rgba(15, 85, 151, 0.08);
  transform: translateX(2px);
}

.custom-listbox-options [role="option"][aria-selected="true"] {
  color: #fff;
  background: var(--color-primary);
  font-weight: 700;
}

.custom-listbox-options [role="option"][aria-selected="true"]::after {
  content: "✓";
  position: absolute;
  top: 50%;
  right: 0.9rem;
  transform: translateY(-50%);
}

.custom-listbox-invalid .custom-listbox-trigger {
  border-color: #c62828;
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
}

@media (max-width: 620px) {
  .custom-listbox-options {
    max-height: 42vh;
  }
}

@media (min-width: 900px) {
  .nav-links {
    gap: 1.4rem;
  }

  .overlay {
    background: linear-gradient(90deg, rgba(7, 45, 78, 0.92) 0%, rgba(15, 85, 151, 0.74) 42%, rgba(15, 85, 151, 0.28) 72%, rgba(15, 85, 151, 0.18) 100%);
  }

  .hero-content {
    justify-content: flex-start;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero-copy h1,
  .hero-copy p {
    max-width: 680px;
  }
}

/* Corrección estable del hero publicado */
.home-page .hero {
  min-height: 540px;
  height: clamp(540px, 70vh, 660px);
  isolation: isolate;
}

.home-page .hero .hero-background {
  overflow: hidden;
  background: var(--color-secondary);
}

.home-page .hero .hero-image,
.home-page .hero .hero-image-active {
  inset: -1%;
  width: 102%;
  height: 102%;
  max-width: none;
  filter: none;
  backface-visibility: hidden;
  transform: scale(1.035) translateZ(0);
  transition: opacity 0.95s ease-in-out;
  animation: none;
}

.home-page .hero .hero-image {
  z-index: 0;
  opacity: 0;
}

.home-page .hero .hero-image-active {
  z-index: 1;
  opacity: 1;
  animation: heroStableZoom 6.5s ease-out both;
}

.home-page .hero .overlay {
  z-index: 2;
}

.home-page .hero .hero-content {
  z-index: 3;
}

@keyframes heroStableZoom {
  from { transform: scale(1.075) translateZ(0); }
  to { transform: scale(1.035) translateZ(0); }
}

@media (max-width: 767px) {
  .home-page .hero {
    min-height: 600px;
    height: min(78svh, 700px);
  }

  .home-page .hero #hero-image-0 {
    object-position: 48% center;
  }

  .home-page .hero #hero-image-1 {
    object-position: 68% center;
  }

  .home-page .hero .hero-copy h1 {
    max-width: 18ch;
    font-size: clamp(2.15rem, 9vw, 3rem);
  }

  .home-page .hero .hero-copy p {
    max-width: 34ch;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero .hero-image-active {
    animation: none;
    transform: scale(1.035) translateZ(0);
  }
}

.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: clamp(28rem, 60vw, 48rem);
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(10, 60, 104, 0.28);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw + 1rem, 3.8rem);
  line-height: 1.1;
  max-width: clamp(22ch, 55vw, 30ch);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 4px 24px rgba(0, 0, 0, 0.3);
}

.hero-copy p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: clamp(48ch, 65vw, 68ch);
  margin-bottom: 1.8rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-dots {
  display: flex;
  gap: 0.4rem;
}

.hero-dot {
  width: 44px;
  height: 44px;
  padding: 16px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
}

.hero-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot-active::before {
  transform: translate(-50%, -50%) scale(1.35);
  background: #fff;
}

.play-pause-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.play-pause-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.9);
}

.play-pause-btn svg {
  flex-shrink: 0;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.about h2 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--color-primary);
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-cards {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.about-cards article {
  padding: 1.8rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 85, 151, 0.08);
  border: 1px solid rgba(15, 85, 151, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-cards h3 {
  margin: 0 0 0.75rem;
  color: var(--color-secondary);
  min-height: 3.5rem;
  display: flex;
  align-items: flex-start;
}

.about-cards p {
  margin: 0;
  color: rgba(26, 42, 58, 0.9);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-pill {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: rgba(15, 85, 151, 0.1);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.header h2 {
  margin-bottom: 1.2rem;
  color: var(--color-primary);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
}

.header p {
  margin: 0;
  color: rgba(26, 42, 58, 0.9);
  line-height: 1.7;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

.services-grid article {
  padding: 2.2rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(15, 85, 151, 0.08);
  box-shadow: 0 18px 50px rgba(15, 85, 151, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.services-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(15, 85, 151, 0.12);
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(15, 85, 151, 0.1);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.services-grid h3 {
  margin: 0 0 0.75rem;
}

.services-grid p {
  margin: 0 0 1.5rem;
  color: rgba(26, 42, 58, 0.75);
  line-height: 1.6;
  flex: 1;
}

.service-card-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
}

.service-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(15, 85, 151, 0.24);
  border-radius: 12px;
  color: var(--color-primary);
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.service-detail-link:hover,
.service-detail-link:focus-visible {
  border-color: var(--color-primary);
  background: rgba(15, 85, 151, 0.06);
}

.service-whatsapp {
  gap: 0.55rem;
  background: #25d366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.service-whatsapp:hover,
.service-whatsapp:focus-visible {
  background: #1fb457;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
}

.service-whatsapp svg {
  flex-shrink: 0;
}

.btn-reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 85, 151, 0.2);
}

.btn-reserve svg {
  flex-shrink: 0;
}

.btn-reserve:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 85, 151, 0.3);
}

/* ==========================================
   PROFESSIONALS SECTION
   ========================================== */
.professionals {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.heading h2 {
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.heading p {
  margin: 0;
  color: rgba(26, 42, 58, 0.9);
  line-height: 1.7;
}

.cards {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  justify-items: center;
}

.cards article {
  border-radius: 18px;
  background: #fff;
  padding: 2.5rem;
  box-shadow: 0 18px 45px rgba(15, 85, 151, 0.08);
  border: 1px solid rgba(15, 85, 151, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 420px;
}

.cards article:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(15, 85, 151, 0.12);
}

.avatar-container {
  margin: 0 auto 1.5rem;
}

.avatar-image {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-primary);
  box-shadow: 0 8px 20px rgba(15, 85, 151, 0.2);
}

.avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role {
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.summary {
  margin: 0;
  color: rgba(26, 42, 58, 0.85);
  line-height: 1.6;
  flex: 1;
}

.cards article p {
  margin: 0;
  color: rgba(26, 42, 58, 0.85);
  line-height: 1.6;
}

.link-more {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-primary);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.link-more:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

.link-more:focus {
  outline: none;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(15, 85, 151, 0.2) 20%,
    rgba(15, 85, 151, 0.2) 80%,
    transparent
  );
  margin: 1.5rem 0 1.5rem;
}

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: rgba(26, 42, 58, 0.5);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(26, 42, 58, 0.1);
  color: rgba(26, 42, 58, 0.9);
}

.modal-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(15, 85, 151, 0.1);
}

.modal-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-primary);
  box-shadow: 0 8px 20px rgba(15, 85, 151, 0.2);
}

.modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-header h3 {
  margin: 0 0 0.5rem;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.modal-role {
  margin: 0;
  font-weight: 600;
  color: var(--color-secondary);
  font-size: 1rem;
}

.modal-body {
  padding-top: 1.5rem;
}

.modal-body h4 {
  margin: 0 0 1rem;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.experience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  color: rgba(26, 42, 58, 0.9);
  line-height: 1.6;
  border-left: 2px solid rgba(15, 85, 151, 0.2);
}

.experience-list li:before {
  content: "✓";
  position: absolute;
  left: -0.75rem;
  top: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.services-more {
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 1.75rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 85, 151, 0.08);
  box-shadow: 0 18px 45px rgba(15, 85, 151, 0.08);
  text-align: center;
}

.services-more p {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.service-mini-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
}

.service-mini-links a {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(15, 85, 151, 0.16);
  border-radius: 999px;
  color: var(--color-primary);
  background: var(--color-bg);
  font-size: 0.78rem;
  font-weight: 700;
}

.service-mini-links a:hover {
  border-color: var(--color-primary);
}

.care-finder {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.care-finder-shell {
  max-width: 820px;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 85, 151, 0.08);
  box-shadow: 0 18px 45px rgba(15, 85, 151, 0.08);
}

.care-finder-form {
  display: grid;
  gap: 1rem;
}

.care-finder-form label {
  color: var(--color-secondary);
  font-weight: 700;
}

.care-finder-form select {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(15, 85, 151, 0.25);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
}

.care-finder-result {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 12px 12px 0;
  background: rgba(15, 85, 151, 0.06);
}

.care-finder-result p {
  margin: 0.35rem 0 1rem;
  color: var(--color-secondary);
  font-size: 1.15rem;
  font-weight: 700;
}

.coverage-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.coverage-card {
  display: grid;
  gap: 2rem;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid rgba(15, 85, 151, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 85, 151, 0.08);
}

.coverage-copy h2 {
  margin-top: 0;
  color: var(--color-primary);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.coverage-copy p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.coverage-home-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 750;
}

.coverage-home-link:hover,
.coverage-home-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.coverage-areas {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 0.65rem;
}

.coverage-areas span {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(15, 85, 151, 0.14);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 0.84rem;
  font-weight: 700;
}

/* Página editorial de cobertura local */
.coverage-page {
  min-height: 60vh;
  gap: 0;
  padding-bottom: 0;
  background: var(--color-bg);
}

.coverage-page + .footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.coverage-shell {
  max-width: 1120px;
}

.coverage-page > .content-breadcrumbs {
  padding-top: 1.5rem;
}

.coverage-page-hero,
.coverage-page-section,
.coverage-page-cta {
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
}

.coverage-page-hero {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(145deg, rgba(15, 85, 151, 0.08), rgba(255, 255, 255, 0.92));
}

.coverage-page-hero h1 {
  max-width: 850px;
  margin: 0.9rem 0 1rem;
  color: var(--color-secondary);
  font-size: clamp(2.15rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.coverage-page-hero .page-snippet-intro {
  max-width: 880px;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.75;
}

.coverage-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.5rem;
}

.coverage-secondary-link {
  padding: 0.75rem 0.4rem;
  color: var(--color-primary);
  font-weight: 750;
}

.coverage-section-header {
  max-width: 760px;
  margin-bottom: 1.75rem;
}

.coverage-section-header h2,
.coverage-map-layout h2,
.coverage-page-cta h2 {
  margin: 0 0 0.75rem;
  color: var(--color-secondary);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.16;
}

.coverage-section-header p,
.coverage-map-layout p,
.coverage-page-cta p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.coverage-commune-grid,
.coverage-condition-grid {
  display: grid;
  gap: 1rem;
}

.coverage-commune-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coverage-commune-grid article,
.coverage-condition-grid article {
  padding: 1.25rem;
  border: 1px solid rgba(15, 85, 151, 0.1);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(10, 60, 104, 0.06);
}

.coverage-commune-grid article {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.coverage-commune-grid article > span {
  color: var(--color-primary);
  font-size: 1.25rem;
}

.coverage-commune-grid h3,
.coverage-condition-grid h3 {
  margin: 0;
  color: var(--color-secondary);
  font-size: 1rem;
}

.coverage-condition-grid h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.coverage-condition-grid p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.coverage-page-section-muted {
  background: #eef6fb;
}

.coverage-map-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.coverage-confirmation-steps {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding-left: 1.3rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

.coverage-map-frame {
  overflow: hidden;
  border: 1px solid rgba(15, 85, 151, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(10, 60, 104, 0.12);
}

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

.coverage-page-cta {
  background: var(--color-secondary);
  color: #fff;
  text-align: center;
}

.coverage-page-cta .coverage-shell {
  max-width: 780px;
}

.coverage-page-cta h2,
.coverage-page-cta p {
  color: #fff;
}

.coverage-page-cta .btn-primary {
  margin-top: 0.75rem;
}

@media (min-width: 700px) {
  .coverage-commune-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .coverage-condition-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .coverage-map-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  }
}

.service-local-coverage {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(15, 85, 151, 0.06);
  color: var(--color-secondary);
  font-size: 0.86rem;
}

.service-detail-hero,
.service-detail-content {
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
}

.service-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.service-breadcrumbs a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-detail-hero { background: #fff; }
.service-detail-grid { display: grid; gap: 2rem; align-items: center; }
.service-detail-hero h1 { margin: 0.75rem 0 1rem; color: var(--color-primary); font-size: clamp(2.3rem, 6vw, 3.8rem); line-height: 1.1; }
.service-detail-lead { color: var(--color-secondary); font-size: 1.2rem; line-height: 1.65; }
.service-detail-hero p { max-width: 680px; line-height: 1.7; }
.service-back { display: block; margin-bottom: 1.5rem; color: var(--color-primary); font-size: 0.85rem; font-weight: 700; }
.service-detail-card { padding: 2rem; border-radius: 18px; background: var(--color-bg); box-shadow: 0 18px 45px rgba(15, 85, 151, 0.08); }
.service-detail-card > span { font-size: 2.5rem; }
.service-detail-card h2 { color: var(--color-secondary); font-size: 1.35rem; }
.service-steps { margin-top: 2rem; }
.service-specific-content {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.service-specific-content section {
  padding: 1.5rem;
  border: 1px solid rgba(15, 85, 151, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 85, 151, 0.08);
}

.service-specific-content h2,
.service-clinical-detail h2 {
  margin-top: 0;
  color: var(--color-secondary);
  font-size: 1.3rem;
}

.service-specific-content ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-specific-content li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.service-specific-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 800;
}

.service-clinical-detail {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(15, 85, 151, 0.06);
}

.service-clinical-detail p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.service-safety { margin-top: 2rem; padding: 1.25rem; border-left: 4px solid var(--color-accent); background: #fff8e8; line-height: 1.6; }

.service-section-note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 85, 151, 0.1);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.service-quote,
.service-professional-team,
.service-related-guides {
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid rgba(15, 85, 151, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 85, 151, 0.07);
}

.service-quote {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(135deg, #fff, rgba(15, 85, 151, 0.055));
}

.service-quote h2,
.service-professional-team h2,
.service-related-guides h2 {
  margin: 0.8rem 0 0.6rem;
  color: var(--color-secondary);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.service-quote p,
.service-professional-team p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.service-quote .btn-primary {
  justify-self: start;
}

.service-team-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.service-team-list article {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--color-bg);
}

.service-team-list img {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(15, 85, 151, 0.18);
  border-radius: 50%;
  object-fit: cover;
}

.service-team-list strong,
.service-team-list span {
  display: block;
}

.service-team-list strong { color: var(--color-secondary); }
.service-team-list span { margin-top: 0.2rem; color: var(--color-text-muted); font-size: 0.86rem; }

.service-registry-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.service-related-guides > div {
  display: grid;
  gap: 0.7rem;
}

.service-related-guides a {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--color-bg);
  color: var(--color-primary);
  font-weight: 700;
}

.faq-section {
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  background: #fff;
}

.faq-container {
  max-width: 900px;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  overflow: hidden;
  border: 1px solid rgba(15, 85, 151, 0.1);
  border-radius: 12px;
  background: var(--color-bg);
  transition: border-color var(--transition-base) var(--ease-smooth),
              box-shadow var(--transition-base) var(--ease-smooth);
}

.faq-list details[open] {
  border-color: rgba(15, 85, 151, 0.28);
  box-shadow: 0 8px 24px rgba(15, 85, 151, 0.08);
}

.faq-list summary {
  position: relative;
  padding: 1.15rem 3.25rem 1.15rem 1.25rem;
  color: var(--color-secondary);
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .care-finder-form { grid-template-columns: 1fr auto; align-items: end; }
  .care-finder-form label { grid-column: 1 / -1; }
  .service-detail-grid { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr); }
  .coverage-card { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr); align-items: center; }
  .service-specific-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-quote { grid-template-columns: minmax(0, 1fr) auto; }
  .service-team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================
   PLANTILLAS DE CONTENIDO WORDPRESS
   ========================================== */
.content-page {
  min-height: 55vh;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  background: var(--color-bg);
}

.content-shell {
  display: grid;
  gap: 2rem;
}

.narrow-shell {
  max-width: 860px;
}

.content-header {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.content-header h1,
.article-header h1,
.standard-page h1,
.error-page h1 {
  margin: 0.75rem 0 1rem;
  color: var(--color-primary);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.1;
}

.content-header p,
.article-header p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.post-grid,
.post-list {
  display: grid;
  gap: 1.5rem;
}

.post-card {
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid rgba(15, 85, 151, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 85, 151, 0.08);
}

.post-card:has(.post-card-image) {
  padding: 0;
}

.post-card-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-body {
  padding: 1.5rem;
}

.post-card time {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.post-card h2 {
  color: var(--color-secondary);
  font-size: 1.35rem;
  line-height: 1.3;
}

.post-card p {
  color: var(--color-text-muted);
  line-height: 1.65;
}

.content-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.content-breadcrumbs a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-header {
  padding: 1rem 0 2rem;
  text-align: center;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.article-meta span + span {
  padding-left: 1rem;
  border-left: 1px solid rgba(15, 85, 151, 0.14);
}

.article-cover {
  margin-top: 0;
  margin-bottom: 2rem;
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.article-content {
  padding-bottom: 2rem;
  font-size: 1.04rem;
  line-height: 1.85;
}

.article-content h2,
.article-content h3 {
  margin-top: 2rem;
  color: var(--color-secondary);
  line-height: 1.3;
}

.article-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.article-content img {
  max-width: 100%;
  height: auto;
}

.article-notice {
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 12px 12px 0;
  background: #fff8e8;
  line-height: 1.6;
}

.article-related-service,
.article-editorial-note {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(15, 85, 151, 0.1);
  border-radius: 16px;
  background: #fff;
}

.article-related-service h2 {
  margin: 0.75rem 0 0.6rem;
  color: var(--color-secondary);
  font-size: 1.45rem;
}

.article-related-service p,
.article-editorial-note {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.article-editorial-note {
  font-size: 0.9rem;
}

.article-related-guides {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(15, 85, 151, 0.1);
  border-radius: 16px;
  background: #fff;
}

.article-related-guides h2 {
  margin: 0.75rem 0 1rem;
  color: var(--color-secondary);
  font-size: 1.35rem;
}

.article-related-guides-list {
  display: grid;
  gap: 0.65rem;
}

.article-related-guides-list a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 85, 151, 0.1);
  border-radius: 12px;
  background: rgba(15, 85, 151, 0.035);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.45;
  transition: background var(--transition-base) var(--ease-smooth), border-color var(--transition-base) var(--ease-smooth), transform var(--transition-base) var(--ease-smooth);
}

.article-related-guides-list a:hover,
.article-related-guides-list a:focus-visible {
  border-color: rgba(15, 85, 151, 0.28);
  background: rgba(15, 85, 151, 0.075);
  transform: translateY(-1px);
}

.professional-registry-note {
  max-width: 760px;
  margin: 1.5rem auto 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  text-align: center;
}

.professional-registry-note a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty-content {
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 85, 151, 0.08);
  text-align: center;
}

.error-page {
  display: grid;
  place-items: center;
}

.error-code {
  display: block;
  color: rgba(15, 85, 151, 0.12);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pagination .nav-links {
  position: static;
  display: flex;
  flex-direction: row;
  justify-content: center;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  box-shadow: none;
  background: transparent;
}

.pagination .page-numbers {
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
}

.pagination .current {
  background: var(--color-primary);
  color: #fff;
}

@media (min-width: 720px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1050px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-grid {
  display: flex;
  justify-content: center;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 820px;
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 18px 45px rgba(15, 85, 151, 0.08);
  border: 1px solid rgba(15, 85, 151, 0.08);
}

.contact-copy {
  text-align: left;
}

.contact-copy h2 {
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-copy p {
  line-height: 1.7;
  color: rgba(26, 42, 58, 0.9);
  margin: 0;
}

.contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-cta {
  min-width: 220px;
  text-align: center;
}

@media (min-width: 768px) {
  .contact-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .contact-copy {
    max-width: 60%;
  }

  .contact-actions {
    justify-content: flex-end;
  }
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.contact-form .btn-primary-submit {
  font-size: 1.1rem;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--color-secondary);
  color: #fff;
  padding: 2rem 1.5rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand-text h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand-text p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.footer-info p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-info a {
  color: #fff;
  text-decoration: underline;
  transition: opacity var(--transition-base) var(--ease-smooth),
              text-decoration-thickness var(--transition-base) var(--ease-smooth);
  text-decoration-thickness: 1px;
}

.footer-info a:hover,
.footer-info a:focus-visible {
  opacity: 0.9;
  text-decoration-thickness: 2px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background var(--transition-base) var(--ease-smooth),
              transform var(--transition-base) var(--ease-smooth);
}

.social-link:hover,
.social-link:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
  line-height: 1.5;
}

.footer-credit {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer-credit-label {
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.footer-credit-link {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  opacity: 0.9;
  transition: opacity var(--transition-base) var(--ease-smooth),
              transform var(--transition-base) var(--ease-smooth);
}

.footer-credit-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-credit-link:focus-visible {
  outline: 2px solid #16c5e8;
  outline-offset: 4px;
}

.footer-credit-logo {
  display: block;
  width: 108px;
  height: auto;
}

/* Contacto persistente sin ocupar el ancho de la pantalla. */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1000;
  display: inline-grid;
  width: 60px;
  height: 60px;
  border: 3px solid #fff;
  border-radius: 50%;
  place-items: center;
  background: linear-gradient(145deg, #2fdf70 0%, #1ebc59 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(10, 71, 36, 0.3), 0 3px 8px rgba(10, 71, 36, 0.18);
  text-decoration: none;
  touch-action: manipulation;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.whatsapp-float svg {
  display: block;
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #fff;
  box-shadow: 0 14px 34px rgba(10, 71, 36, 0.36), 0 4px 10px rgba(10, 71, 36, 0.2);
  transform: translateY(-3px) scale(1.03);
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(15, 85, 151, 0.7);
  outline-offset: 4px;
}

/* Evitar dos burbujas si el plugin QLWApp también está activo. */
a.qlwapp__button.qlwapp__button--bubble {
  display: none !important;
}

@media (max-width: 767px) {
  .whatsapp-float {
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
  }

  .whatsapp-float svg {
    width: 31px;
    height: 31px;
  }
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
  position: fixed;
  left: 2rem;
  bottom: 2rem;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f5597 0%, #1a6bb3 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 85, 151, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #1a6bb3 0%, #0f5597 100%);
  box-shadow: 0 6px 16px rgba(15, 85, 151, 0.4);
  transform: translateY(-3px);
}

.back-to-top:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(15, 85, 151, 0.3);
}

.back-to-top svg {
  flex-shrink: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (min-width: 768px) {
  section {
    padding: 0 2rem;
  }

  .hero {
    height: 500px;
  }

  .hero-content {
    justify-content: flex-start;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero-copy h1 {
    max-width: clamp(24ch, 45vw, 32ch);
  }

  .hero-copy p {
    max-width: clamp(50ch, 60vw, 70ch);
  }

  .carousel-controls {
    gap: 0.5rem;
  }

  .hero-dot {
    width: 32px;
    height: 32px;
  }

  .hero-dot::before {
    width: 8px;
    height: 8px;
  }

  .play-pause-btn {
    width: 40px;
    height: 40px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
  }

  .cards article {
    max-width: 100%;
  }

  .contact-grid {
    align-items: center;
  }

  .back-to-top {
    left: 1rem;
    bottom: 1rem;
    width: 45px;
    height: 45px;
  }
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 2rem;
    opacity: 1;
    transform: none;
    pointer-events: all;
  }

  .nav-link {
    color: var(--color-text);
    transition: color 0.2s ease;
  }

  .nav-link:hover {
    color: var(--color-primary);
  }

  .about {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .about-text h2 {
    margin-top: 0;
  }

  .about-cards {
    grid-template-columns: 1fr;
    align-self: start;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer-brand {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1rem;
  }

  .footer-brand-text {
    text-align: left;
  }

  .logo {
    width: 100px;
    height: 100px;
  }

  .footer-brand-text h2 {
    font-size: 1.3rem;
  }

  .footer-brand-text p {
    font-size: 0.9rem;
  }

  .footer-info {
    align-items: flex-start;
    text-align: left;
    flex: 1;
    max-width: 350px;
  }

  .footer-info p {
    font-size: 0.9rem;
  }

  .footer-social {
    margin-top: 0;
    align-items: flex-start;
  }

  .footer-bottom {
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-copy {
    font-size: 0.8rem;
  }

  .footer-credit-label {
    font-size: 0.72rem;
  }
}

@media (min-width: 960px) {
  .hero {
    height: 550px;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 0;
  }
}

@media (min-width: 1200px) {
  .about {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-cards h3 {
    min-height: 4rem;
  }

  .cards {
    max-width: 1000px;
  }
}

@media (min-width: 1400px) {
  .hero {
    height: 600px;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    left: 0.75rem;
    bottom: 0.75rem;
    width: 42px;
    height: 42px;
  }

  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* Prioridad final del refinamiento visual */
.home-page .coverage-section {
  padding-top: 0;
  padding-bottom: 3.5rem;
}

.home-page #quienes-somos,
.home-page .services,
.home-page .professionals,
.home-page .contact {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.home-page .services-grid {
  gap: 1.75rem;
}

.home-page .services-grid article {
  border-color: rgba(15, 85, 151, 0.1);
  box-shadow: 0 14px 35px rgba(15, 85, 151, 0.08);
}

.home-page .services-grid article:hover {
  border-color: rgba(15, 85, 151, 0.22);
  box-shadow: 0 25px 60px rgba(15, 85, 151, 0.14);
}

.home-page .care-finder-shell {
  max-width: 900px;
  border: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.home-page .faq-section {
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.home-page .cards {
  max-width: 980px;
}

.home-page .cards article {
  padding: 2.75rem;
  border-top: 4px solid var(--color-primary);
}

.home-page .avatar-image {
  width: 132px;
  height: 132px;
  border-width: 5px;
}

.home-page .contact-card {
  max-width: 960px;
  border: 0;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  box-shadow: 0 24px 60px rgba(10, 60, 104, 0.2);
}

.home-page .contact-copy h2,
.home-page .contact-copy p {
  color: #fff;
}

.home-page .contact-card .btn-primary {
  background: #fff;
  color: var(--color-primary);
}

@media (max-width: 680px) {
  .home-page .coverage-section {
    padding-bottom: 2.5rem;
  }
}

/* Transiciones refinadas del carrusel principal */
.home-page .hero-image {
  opacity: 0;
  filter: saturate(0.9) contrast(0.98);
  transform: scale(1.12) translate3d(0, 0, 0);
  transition:
    opacity 1.15s cubic-bezier(0.4, 0, 0.2, 1),
    transform 6.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.15s ease;
  backface-visibility: hidden;
}

.home-page #hero-image-0 {
  transform-origin: 35% 50%;
}

.home-page #hero-image-1 {
  transform-origin: 72% 45%;
}

.home-page .hero-image-active {
  opacity: 1;
  filter: saturate(1) contrast(1);
  transform: scale(1.025) translate3d(0, 0, 0);
}

/* La imagen LCP se pinta de inmediato; el movimiento comienza al cambiar de slide. */
.home-page .hero:not(.hero-transitions-enabled) #hero-image-0.hero-image-active {
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1.025) translate3d(0, 0, 0) !important;
  transition: none !important;
  animation: none !important;
  will-change: auto;
}

.home-page .hero-content-enter {
  animation: heroContentEnter 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-page #hero-description.hero-content-enter {
  animation-delay: 0.08s;
}

.home-page #hero-cta.hero-content-enter {
  animation-delay: 0.16s;
}

.home-page .hero-copy #hero-cta {
  position: relative;
  min-height: 56px;
  padding: 0.95rem 2.1rem;
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: var(--color-accent);
  color: #16324a;
  font-size: 1.02rem;
  font-weight: 800;
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.34),
    0 0 0 5px rgba(255, 255, 255, 0.12);
  text-shadow: none;
}

.home-page .hero-copy #hero-cta::after {
  content: "→";
  margin-left: 0.15rem;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.home-page .hero-copy #hero-cta:hover,
.home-page .hero-copy #hero-cta:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--color-primary);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.38),
    0 0 0 6px rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.home-page .hero-copy #hero-cta:hover::after,
.home-page .hero-copy #hero-cta:focus-visible::after {
  transform: translateX(4px);
}

.home-page .hero-copy #hero-cta:active {
  transform: translateY(-1px);
}

/* Menú desplegable de servicios */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 0.15rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
}

.nav-dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.nav-dropdown-open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.services-submenu {
  display: none;
  gap: 0.2rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(15, 85, 151, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(10, 60, 104, 0.16);
}

.nav-dropdown-open .services-submenu {
  display: grid;
}

.services-submenu-label {
  padding: 0.45rem 0.65rem 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.services-submenu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0.6rem 0.7rem;
  border-radius: 9px;
  color: var(--color-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.services-submenu a:hover,
.services-submenu a:focus-visible {
  color: var(--color-primary);
  background: rgba(15, 85, 151, 0.07);
  transform: translateX(2px);
}

.services-submenu-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background: rgba(15, 85, 151, 0.08);
  font-size: 0.9rem;
}

@media (max-width: 899px) {
  .nav-links {
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  .nav-dropdown-trigger {
    justify-content: space-between;
  }

  .services-submenu {
    max-height: 52vh;
    overflow-y: auto;
  }
}

@media (min-width: 900px) {
  .nav-dropdown-toggle {
    width: 28px;
    height: 28px;
  }

  .services-submenu {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 50%;
    z-index: 120;
    width: min(620px, 82vw);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .services-submenu-label {
    grid-column: 1 / -1;
  }

  .nav-dropdown:hover .services-submenu,
  .nav-dropdown:focus-within .services-submenu,
  .nav-dropdown-open .services-submenu {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

@keyframes heroContentEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-image,
  .home-page .hero-image-active {
    transform: none;
    filter: none;
    transition: opacity 0.01ms linear;
  }

  .home-page .hero-content-enter {
    animation: none;
  }
}

/* Prioridad final del menú desplegable */
.navbar .nav-links > li {
  margin: 0;
  list-style: none;
}

.navbar .services-submenu {
  border-top: 3px solid var(--color-primary);
}

.navbar .services-submenu-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1 / -1;
  gap: 1rem;
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: #fff;
}

@media (max-width: 899px) {
  .navbar .nav-dropdown {
    width: 100%;
  }

  .navbar .nav-dropdown-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    background: rgba(15, 85, 151, 0.06);
  }

  .navbar .services-submenu {
    max-height: 54vh;
    margin-top: 0.4rem;
    overflow-y: auto;
  }

  .navbar .services-submenu-help {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (min-width: 900px) {
  .navbar .nav-dropdown {
    padding-bottom: 0.75rem;
    margin-bottom: -0.75rem;
  }

  .navbar .nav-dropdown-toggle {
    display: none;
  }

  .navbar .services-submenu {
    top: 100%;
    width: min(660px, 86vw);
    gap: 0.25rem 0.5rem;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 26px 65px rgba(10, 60, 104, 0.2);
  }

  .navbar .services-submenu::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 0.75rem;
  }
}

/* Sobrescritura móvil final: evita scroll anidado en Servicios */
@media (max-width: 899px) {
  .navbar .nav-dropdown-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .navbar .services-submenu {
    max-height: none;
    margin: 0;
    padding: 0.45rem 0.45rem 0.55rem;
    overflow: visible;
    border-top: 1px solid rgba(15, 85, 151, 0.09);
  }

  .navbar .services-submenu-help {
    margin-top: 0.45rem;
    padding: 0.75rem 0.85rem;
  }

  .navbar .nav-links {
    top: 72px;
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 999;
    display: flex;
    width: 100%;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    min-height: calc(100vh - 72px);
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    padding-top: 0.75rem;
    background: #f8fbfe;
  }

  .navbar .nav-links.nav-links-open {
    visibility: visible;
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .navbar .nav-links::before {
    display: none;
    content: none;
  }

  .navbar .nav-links > * {
    flex: 0 0 auto;
    opacity: 1;
    visibility: visible;
  }
}

/* CTA de conversión dentro de cada guía */
.article-booking-cta {
  position: relative;
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  overflow: hidden;
  border: 1px solid rgba(15, 85, 151, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 85, 151, 0.11), transparent 16rem),
    linear-gradient(135deg, #fff 0%, #f2f8fd 100%);
  box-shadow: 0 20px 48px rgba(10, 60, 104, 0.11);
}

.article-booking-cta::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #25d366);
}

.article-booking-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: rgba(15, 85, 151, 0.09);
  color: var(--color-primary);
}

.article-booking-copy {
  min-width: 0;
}

.article-booking-kicker {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--color-primary);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.article-booking-copy h2 {
  margin: 0 0 0.55rem;
  color: var(--color-secondary);
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.article-booking-copy p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.article-booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.article-booking-primary,
.article-booking-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 13px;
  font-size: 0.86rem;
  font-weight: 750;
  white-space: nowrap;
  transition: color var(--transition-base) var(--ease-smooth), background var(--transition-base) var(--ease-smooth), border-color var(--transition-base) var(--ease-smooth), box-shadow var(--transition-base) var(--ease-smooth), transform var(--transition-base) var(--ease-smooth);
}

.article-booking-primary {
  gap: 0.55rem;
  padding: 0.65rem 1rem 0.65rem 0.7rem;
  background: linear-gradient(135deg, #1263a8, var(--color-secondary));
  color: #fff;
  box-shadow: 0 10px 22px rgba(10, 60, 104, 0.22);
}

.article-booking-whatsapp {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  transition: background var(--transition-base) var(--ease-smooth);
}

.article-booking-primary:hover,
.article-booking-primary:focus-visible {
  background: linear-gradient(135deg, #1470bb, #082f54);
  box-shadow: 0 14px 28px rgba(10, 60, 104, 0.28);
  transform: translateY(-2px);
}

.article-booking-primary:hover .article-booking-whatsapp,
.article-booking-primary:focus-visible .article-booking-whatsapp {
  background: #25d366;
}

.article-booking-secondary {
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(15, 85, 151, 0.18);
  background: #fff;
  color: var(--color-primary);
}

.article-booking-secondary:hover,
.article-booking-secondary:focus-visible {
  border-color: rgba(15, 85, 151, 0.35);
  background: rgba(15, 85, 151, 0.055);
  transform: translateY(-2px);
}

@media (min-width: 760px) {
  .article-booking-cta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .article-booking-actions {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .article-booking-actions,
  .article-booking-primary,
  .article-booking-secondary {
    width: 100%;
  }
}

/* Acceso a Booknetic al final de la navegación */
.nav-booknetic-login {
  color: var(--color-primary);
  transition: color var(--transition-base) var(--ease-smooth), background var(--transition-base) var(--ease-smooth), border-color var(--transition-base) var(--ease-smooth), box-shadow var(--transition-base) var(--ease-smooth), transform var(--transition-base) var(--ease-smooth);
}

.nav-booknetic-login svg {
  flex: 0 0 auto;
}

@media (min-width: 900px) {
  .navbar .menu-item-booknetic {
    display: flex;
    align-items: center;
  }

  .navbar .nav-booknetic-login {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 1px solid rgba(15, 85, 151, 0.14);
    border-radius: 12px;
    background: rgba(15, 85, 151, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  }

  .navbar .nav-booknetic-login span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .navbar .nav-booknetic-login:hover,
  .navbar .nav-booknetic-login:focus-visible {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 9px 20px rgba(15, 85, 151, 0.22);
    transform: translateY(-2px);
  }
}

@media (max-width: 899px) {
  .navbar .menu-item-booknetic {
    margin-top: 0.45rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(15, 85, 151, 0.1);
  }

  .navbar .nav-links > .nav-booknetic-login,
  .navbar .menu-item-booknetic > .nav-booknetic-login {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(15, 85, 151, 0.12);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 85, 151, 0.08), rgba(15, 85, 151, 0.04));
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 750;
  }

  .navbar .nav-booknetic-login svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
  }

  .navbar .nav-booknetic-login:hover,
  .navbar .nav-booknetic-login:focus-visible {
    border-color: rgba(15, 85, 151, 0.28);
    background: rgba(15, 85, 151, 0.1);
    color: var(--color-primary);
  }
}

/* Página de acceso Booknetic */
.signin-page {
  gap: 0;
  padding-bottom: 0;
}

.signin-section {
  position: relative;
  min-height: calc(100vh - 76px);
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.12), transparent 25rem),
    radial-gradient(circle at 92% 85%, rgba(37, 211, 102, 0.09), transparent 24rem),
    linear-gradient(135deg, #082f54 0%, var(--color-secondary) 48%, var(--color-primary) 100%);
}

.signin-container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
}

.signin-breadcrumbs {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  color: rgba(255, 255, 255, 0.66);
}

.signin-breadcrumbs a {
  color: #fff;
}

.signin-layout {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.signin-intro {
  color: #fff;
}

.signin-intro .section-pill {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.signin-intro h1 {
  max-width: 620px;
  margin: 1rem 0;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.signin-intro > p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
}

.signin-benefits {
  display: grid;
  gap: 0.7rem;
  max-width: 570px;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.signin-benefits li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(8px);
}

.signin-benefits li > span {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: rgba(37, 211, 102, 0.18);
  color: #76efa3;
  font-size: 0.76rem;
  font-weight: 800;
}

.signin-benefits strong,
.signin-benefits small {
  display: block;
}

.signin-benefits strong {
  margin-bottom: 0.25rem;
  color: #fff;
  font-size: 0.88rem;
}

.signin-benefits small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .signin-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  }
}

@media (max-width: 520px) {
  .signin-intro h1 {
    font-size: 2.35rem;
  }
}

/* Hero principal: jerarquía editorial y lectura rápida */
.home-page .hero {
  min-height: 610px;
  height: clamp(610px, 72vh, 700px);
  padding: clamp(3.5rem, 7vh, 5.5rem) 0 clamp(2.5rem, 5vh, 4rem);
}

.home-page .hero .hero-content {
  align-items: center;
}

.home-page .hero .hero-copy {
  max-width: 780px;
}

.home-page .hero .overlay {
  background:
    linear-gradient(180deg, rgba(4, 30, 52, 0.06) 0%, rgba(4, 30, 52, 0.3) 100%),
    linear-gradient(90deg, rgba(4, 31, 55, 0.96) 0%, rgba(7, 50, 84, 0.88) 37%, rgba(9, 59, 97, 0.48) 68%, rgba(8, 43, 72, 0.14) 100%);
}

.home-page .hero .hero-kicker {
  margin-bottom: 1rem;
  padding: 0.48rem 0.82rem;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(6, 37, 62, 0.32);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.095em;
  backdrop-filter: blur(8px);
}

.home-page .hero .hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 4.7vw, 4.65rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-page .hero .hero-copy > p {
  max-width: 680px;
  margin: 1.15rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.58;
  text-wrap: pretty;
}

.home-page .hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.home-page .hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(7, 37, 61, 0.34);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  backdrop-filter: blur(8px);
}

.home-page .hero-highlights li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffc247;
  box-shadow: 0 0 0 3px rgba(255, 194, 71, 0.16);
  content: "";
  flex: 0 0 auto;
}

.home-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  align-items: center;
  margin-top: 1.5rem;
}

.home-page .hero-copy #hero-cta {
  min-height: 52px;
  margin: 0;
  padding: 0.78rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(2, 25, 45, 0.25);
  font-size: 0.95rem;
}

.home-page .hero-copy #hero-cta:hover,
.home-page .hero-copy #hero-cta:focus-visible {
  box-shadow: 0 15px 32px rgba(2, 25, 45, 0.3);
  transform: translateY(-2px);
}

.home-page .hero-secondary-action {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.46);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.home-page .hero-secondary-action:hover,
.home-page .hero-secondary-action:focus-visible {
  border-color: #ffc247;
  color: #ffd172;
  transform: translateX(2px);
}

.home-page .hero .carousel-controls {
  margin-top: 1.25rem;
}

@media (max-width: 767px) {
  .home-page .hero {
    min-height: 690px;
    height: auto;
    padding: 3.25rem 0 2rem;
  }

  .home-page .hero .overlay {
    background:
      linear-gradient(180deg, rgba(4, 30, 52, 0.82) 0%, rgba(5, 43, 73, 0.9) 58%, rgba(4, 30, 52, 0.97) 100%),
      linear-gradient(90deg, rgba(4, 31, 55, 0.64), rgba(9, 59, 97, 0.24));
  }

  .home-page .hero .hero-copy h1 {
    max-width: 560px;
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    line-height: 1.02;
  }

  .home-page .hero .hero-copy > p {
    max-width: 590px;
    margin-top: 1rem;
    font-size: 0.97rem;
    line-height: 1.55;
  }

  .home-page .hero-highlights {
    gap: 0.45rem;
    margin-top: 1rem;
  }

  .home-page .hero-highlights li {
    min-height: 31px;
    padding: 0.36rem 0.62rem;
    font-size: 0.72rem;
  }

  .home-page .hero-actions {
    margin-top: 1.25rem;
  }
}

@media (max-width: 480px) {
  .home-page .hero {
    min-height: 720px;
    padding-top: 2.75rem;
  }

  .home-page .hero .hero-kicker {
    font-size: 0.65rem;
  }

  .home-page .hero .hero-copy h1 {
    font-size: clamp(2.2rem, 11.5vw, 2.85rem);
  }

  .home-page .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.5rem;
  }

  .home-page .hero-copy #hero-cta {
    justify-content: center;
    width: 100%;
  }

  .home-page .hero-secondary-action {
    align-self: flex-start;
  }
}

/* Hero de escritorio: controles siempre visibles sobre la imagen. */
@media (min-width: 900px) {
  .home-page .hero {
    min-height: 660px;
    height: clamp(660px, 75vh, 740px);
    padding: clamp(3rem, 6vh, 4.5rem) 0 clamp(4.75rem, 8vh, 6rem);
  }

  .home-page .hero .hero-copy {
    max-width: 760px;
  }

  .home-page .hero .hero-copy h1 {
    max-width: 720px;
    font-size: clamp(3rem, 4vw, 4.25rem);
  }

  .home-page .hero .hero-copy > p {
    max-width: 660px;
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.52;
  }

  .home-page .hero .carousel-controls {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-self: flex-start;
    gap: 0.2rem;
    min-height: 44px;
    margin-top: 1.2rem;
    padding: 0.3rem 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(3, 27, 47, 0.58);
    box-shadow: 0 8px 24px rgba(2, 20, 35, 0.24);
    backdrop-filter: blur(10px);
  }

  .home-page .hero .hero-dots {
    gap: 0;
  }

  .home-page .hero .hero-dot {
    width: 34px;
    height: 34px;
    padding: 0;
  }

  .home-page .hero .hero-dot::before {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.52);
  }

  .home-page .hero .hero-dot-active::before {
    width: 18px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
    transform: translate(-50%, -50%);
  }

  .home-page .hero .hero-dot:hover::before,
  .home-page .hero .hero-dot:focus-visible::before {
    background: #ffc247;
  }

  .home-page .hero .play-pause-btn {
    width: 34px;
    height: 34px;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
  }

  .home-page .hero .play-pause-btn svg {
    width: 16px;
    height: 16px;
  }

  .home-page .coverage-section {
    margin-top: -3rem;
  }
}
