/* ==========================================================================
   FRAGILMSCARE - FRAGILMENTALSPORTCARE S.L.
   Modern Medical & Sports Care Stylesheet
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary-navy: #0F172A;
  --primary-dark: #0A0F1D;
  --primary-blue: #0284C7;
  --primary-blue-hover: #0369A1;
  --primary-blue-light: #E0F2FE;
  
  /* Brand Palette from Official Logo - WCAG AA Contrast Enhanced */
  --brand-orange: #C2410C;
  --brand-orange-light: #FFEDD5;
  --brand-green: #15803D;
  --brand-green-light: #DCFCE7;

  --accent-teal: #0D9488;
  --accent-teal-light: #CCFBF1;
  --accent-cyan: #06B6D4;
  --accent-emerald: #10B981;
  --accent-amber: #D97706;

  /* Neutrals - High Contrast for Medical & Fragile Patients (WCAG AA/AAA) */
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #0A0F1D;
  --text-muted: #334155;
  --text-light: #475569;
  --border-light: #CBD5E1;
  --border-medium: #94A3B8;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --container-max-w: 1200px;
  --header-height: 76px;
  --topbar-height: 0px;

  /* Transitions & Shadows */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 30px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* CSS Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  overflow-x: hidden;
}

/* Compensación de desplazamiento nativa para anclajes directos y accesibilidad */
section[id],
#inicio,
#presentacion,
#equipo,
#servicios,
#productos,
#contacto,
#cuestionario,
.section-products,
.section-team,
.hero-section {
  scroll-margin-top: 88px;
  position: relative;
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  section[id],
  #inicio,
  #presentacion,
  #equipo,
  #servicios,
  #productos,
  #contacto,
  #cuestionario,
  .section-products,
  .section-team,
  .hero-section {
    scroll-margin-top: 80px;
  }
  body {
    padding-top: var(--header-height, 70px);
  }
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-main);
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  padding-top: var(--header-height, 76px);
}

main {
  max-width: 100%;
  overflow-x: hidden;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 16px;
}

input, select, textarea, .form-input, .triage-input {
  font-size: 16px !important; /* Cero auto-zoom en iPhone / iOS Safari */
}

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

/* Accessibility Focus-Visible Global Ring (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid #059669 !important;
  outline-offset: 3px !important;
}

/* Skip-to-content Link (WCAG 2.4.1 Bypass Blocks) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background-color: var(--primary-navy);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 2px solid #10B981;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 2px solid #10B981 !important;
  outline-offset: 2px !important;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect Prefers-Reduced-Motion (WCAG 2.3.3 Animation from Interactions) */
@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;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-xl { margin-top: 3.5rem; }
.hidden { display: none !important; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
  background-color: #0A0F1D;
  color: #94A3B8;
  font-size: 0.8rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 60;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--topbar-height);
  padding-top: 6px;
  padding-bottom: 6px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.top-bar-icon {
  color: #38BDF8;
  flex-shrink: 0;
}

.top-bar-sep {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
}

.top-bar-left a {
  color: #E2E8F0;
}

.top-bar-left a:hover {
  color: #38BDF8;
}

.top-bar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: #CBD5E1;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height, 76px);
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

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

.header-logo-icon {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.brand-logo:hover .header-logo-icon {
  transform: scale(1.06);
}

.color-orange {
  color: var(--brand-orange);
}

.color-green {
  color: var(--brand-green);
}

.pill-logo-mini {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.card-icon-circle.brand-icon-circle {
  background: var(--brand-orange-light);
}

.card-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.about-logo-badge {
  text-align: center;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.about-official-logo {
  max-width: 100%;
  height: 135px;
  object-fit: contain;
}

.footer-logo-badge {
  background: #FFFFFF;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.footer-logo-img {
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.brand-names {
  display: flex;
  flex-direction: column;
}

.brand-acronym {
  font-size: clamp(1.15rem, 2vw + 0.35rem, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-navy);
  line-height: 1.1;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: clamp(0.6rem, 1vw + 0.2rem, 0.72rem);
  font-weight: 600;
  color: var(--primary-navy);
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.desktop-nav .nav-menu,
.desktop-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 2rem;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2.5px;
  margin: 4px 0;
  background-color: var(--primary-navy);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-toggle.open .bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.mobile-menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Drawer - Fixed Overlay (cero desplazamiento del contenido de la página) */
.mobile-drawer,
.mobile-nav-drawer {
  display: none;
  background-color: #FFFFFF;
  border-bottom: 2px solid var(--border-light);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  padding: 1.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  position: fixed;
  top: var(--header-height, 70px);
  left: 0;
  right: 0;
  z-index: 99;
  width: 100%;
  max-height: calc(100dvh - var(--header-height, 70px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open,
.mobile-nav-drawer.open {
  display: block;
}

.mobile-menu,
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.mobile-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  padding: 0.85rem 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.drawer-contact-info {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-height: 44px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 44px;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  min-height: 48px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
  background-color: #1E293B;
  border-color: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--primary-navy);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--primary-navy);
  transform: translateY(-2px);
}

.btn-white {
  background-color: #FFFFFF;
  color: var(--primary-navy);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-blue);
}

.link-arrow:hover {
  color: var(--primary-blue-hover);
  transform: translateX(3px);
}

/* ==========================================================================
   Hero Section - Executive Healthcare & Sports Care
   ========================================================================== */
.hero-section {
  position: relative;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 4.5rem 0 5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.institutional-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 5px 14px;
  background-color: #F8FAFC;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #0284C7;
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  font-size: clamp(1.45rem, 2.5vw + 0.75rem, 2.65rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin-bottom: 1.35rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-title-main {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-brand-tag {
  display: inline-flex;
  align-items: center;
  font-size: clamp(0.85rem, 1.2vw + 0.35rem, 1.35rem);
  font-weight: 800;
  color: var(--brand-orange);
  background: var(--brand-orange-light);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: normal;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-lead {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-features-strip {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
}

.feature-strip-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.feature-strip-item svg {
  color: var(--accent-teal);
}

/* Corporate Dossier Card */
.corporate-dossier-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.dossier-card-top {
  padding: 1.75rem 2rem 1.25rem;
  background-color: #F8FAFC;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dossier-logo-box {
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.dossier-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.dossier-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.775rem;
  font-weight: 600;
  color: #334155;
}

.dossier-body {
  padding: 2rem;
}

.dossier-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.dossier-commercial {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.dossier-table {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dossier-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  font-size: 0.875rem;
  line-height: 1.5;
}

.dossier-label {
  font-weight: 700;
  color: var(--text-muted);
}

.dossier-val {
  font-weight: 600;
  color: var(--primary-navy);
}

.dossier-val a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.dossier-footer {
  padding: 1.25rem 2rem;
  background-color: #F8FAFC;
  border-top: 1px solid var(--border-light);
}

.dossier-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-navy);
  transition: var(--transition);
}

.dossier-link:hover {
  color: var(--primary-blue);
  transform: translateX(4px);
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
.section-padding {
  padding: 5.5rem 0;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0369A1;
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.align-center {
  align-items: center;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.section-about {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-card-stack {
  position: relative;
}

.accent-backdrop {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0284C7 0%, #0D9488 100%);
  opacity: 0.25;
  z-index: 1;
}

.about-main-box {
  position: relative;
  z-index: 2;
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.badge-tag {
  display: inline-block;
  background: #F1F5F9;
  color: var(--primary-navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-main-box h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
}

.about-box-tagline {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2rem;
  border-left: 3px solid var(--accent-teal);
  padding-left: 0.85rem;
}

.about-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.meta-cell {
  display: flex;
  flex-direction: column;
}

.meta-title {
  font-size: 0.725rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.meta-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.highlight-val {
  color: var(--primary-blue);
  font-size: 1.1rem;
}

.text-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--primary-navy);
  margin-bottom: 1.25rem;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EFF6FF;
  color: #0284C7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.value-item p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.service-category-block {
  margin-top: 3.5rem;
}

.category-header {
  margin-bottom: 2rem;
}

.category-pill {
  display: inline-block;
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-pill.sport-pill {
  background-color: var(--accent-teal-light);
  color: var(--accent-teal);
}

.category-header h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.category-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 750px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.services-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #BAE6FD;
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.service-card.sport-theme:hover {
  border-color: #99F6E4;
}

.service-icon.sport-icon {
  background: var(--accent-teal-light);
  color: var(--accent-teal);
}

.service-card h4 {
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--primary-navy);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-points {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-points li {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--primary-navy);
  position: relative;
  padding-left: 1.1rem;
}

.service-points li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}

.service-card.sport-theme .service-points li::before {
  color: var(--accent-teal);
}

/* ==========================================================================
   Coberturas Asistenciales y Eventos
   ========================================================================== */
.section-coberturas {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-top: 1px solid var(--border-light);
}

.coberturas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.cobertura-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}

.cobertura-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.cobertura-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #F1F5F9;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.cobertura-card h4 {
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--primary-navy);
  margin-bottom: 0.65rem;
}

.cobertura-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cobertura-card.featured-cobertura {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-color: #334155;
  box-shadow: var(--shadow-xl);
}

.featured-cobertura .cobertura-icon-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #38BDF8;
}

.featured-cobertura h4 {
  color: #FFFFFF;
}

.featured-cobertura p {
  color: #CBD5E1;
}

.special-badge {
  display: inline-block;
  background: #0284C7;
  color: #FFFFFF;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Commitment Banner
   ========================================================================== */
.commitment-banner {
  background: linear-gradient(135deg, #0F172A 0%, #0369A1 100%);
  color: #FFFFFF;
  padding: 3.5rem 0;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.banner-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.banner-text p {
  font-size: 1.05rem;
  color: #E2E8F0;
}

/* ==========================================================================
   Contact Section & Form
   ========================================================================== */
.section-contact {
  background-color: var(--bg-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2.25rem;
  align-items: start;
  margin-top: 3rem;
  width: 100%;
}

.contact-info-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-card-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
}

.contact-intro {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.contact-method-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.method-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: #F8FAFC;
  border: 1px solid var(--border-medium);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.method-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.method-label {
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 2px;
}

.method-value {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.45;
}

.method-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.highlight-mail {
  color: var(--primary-blue);
}

.highlight-mail:hover {
  text-decoration: underline;
}

.status-note {
  color: var(--accent-amber);
  font-weight: 500;
}

.link-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-box-summary {
  margin-top: auto;
  padding: 1.35rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.legal-box-summary h4 {
  font-size: 0.85rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-navy);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Fiscal Grid - Balanced 135px + 1fr */
.fiscal-grid {
  display: grid;
  grid-template-columns: 135px 1fr;
  row-gap: 0.65rem;
  column-gap: 0.85rem;
  font-size: 0.865rem;
  align-items: baseline;
  line-height: 1.5;
}

.fiscal-label {
  color: var(--text-muted);
  font-weight: 500;
}

.fiscal-val {
  color: var(--text-main);
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.fiscal-subnote {
  display: block;
  font-size: 0.8rem;
  color: #334155;
  margin-top: 0.15rem;
  line-height: 1.35;
  font-weight: 500;
}

@media (max-width: 560px) {
  .fiscal-grid {
    grid-template-columns: 1fr;
    row-gap: 0.25rem;
  }
  .fiscal-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 0.45rem;
  }
  .fiscal-label:first-child {
    margin-top: 0;
  }
}

/* Contact Form Wrapper & Card */
.contact-form-wrapper {
  min-width: 0;
  width: 100%;
}

.form-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.form-card-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
}

.form-subtitle {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  width: 100%;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  color: var(--text-main);
  transition: var(--transition);
  font-size: 16px;
  line-height: 1.5;
}

.form-group input,
.form-group select {
  min-height: 48px;
}

.form-group label {
  display: block;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-group select {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #EF4444;
}

.error-msg {
  font-size: 0.85rem;
  color: #B91C1C;
  font-weight: 600;
  min-height: 1.15rem;
  margin-top: 0.25rem;
  display: block;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary-blue);
}

.form-feedback {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.form-feedback.success {
  background-color: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.form-feedback.error {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* Map Card */
.map-card-container {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  gap: 1rem;
}

.map-title-info h4 {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--primary-navy);
  margin-bottom: 0.2rem;
}

.map-title-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.map-frame-holder iframe {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--primary-dark);
  color: #CBD5E1;
  padding-top: 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 4fr 3fr 5fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-brand {
  min-width: 0;
}

.footer-col-nav {
  min-width: 0;
}

.footer-col-contact {
  min-width: 0;
}

.footer-desc {
  font-size: 0.9rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin: 1rem 0;
}

.footer-nif {
  font-size: 0.85rem;
  color: #E2E8F0;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 750;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: #94A3B8;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #38BDF8;
  transform: translateX(3px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 0.875rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: #10B981;
}

.footer-contact-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.footer-contact-text {
  line-height: 1.5;
  color: #CBD5E1;
}

.footer-contact-label {
  color: #F8FAFC;
  font-weight: 600;
  margin-right: 0.35rem;
}

.footer-contact-val {
  color: #CBD5E1;
}

.footer-contact-link {
  color: #F8FAFC;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: #38BDF8;
}

.footer-whatsapp-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.footer-contact-subnote {
  display: block;
  font-size: 0.8rem;
  color: #CBD5E1;
  margin-top: 0.2rem;
  line-height: 1.4;
}

.whitespace-nowrap {
  white-space: nowrap !important;
}

.footer-bottom {
  padding: 1.75rem 0;
  font-size: 0.825rem;
  color: #94A3B8;
}

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

.legal-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.legal-link-btn {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 0.825rem;
  padding: 0;
  transition: var(--transition);
}

.legal-link-btn:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ==========================================================================
   Modal Legal & Privacy
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-sizing: border-box;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .modal-overlay {
    padding: 0.5rem;
  }
  .modal-container {
    max-height: 92dvh;
    border-radius: var(--radius-md);
  }
  .modal-header {
    padding: 1rem 1rem 0;
  }
  .modal-body {
    padding: 1rem;
  }
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-subtle);
}

.modal-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.modal-tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0;
  scrollbar-width: none;
}
.modal-tabs-nav::-webkit-scrollbar {
  display: none;
}

.modal-tab-btn {
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 0.65rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.modal-tab-btn:hover {
  color: var(--primary-navy);
}

.modal-tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

.modal-body {
  padding: 1.75rem 2rem;
  overflow-y: auto;
  font-size: 0.925rem;
  color: var(--text-main);
  line-height: 1.65;
}

.modal-tab-panel {
  display: none;
}

.modal-tab-panel.active {
  display: block;
}

.modal-body h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body h5 {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--primary-navy);
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.modal-body p {
  color: #334155;
  margin-bottom: 0.85rem;
}

.modal-body ul {
  list-style: disc;
  padding-left: 1.35rem;
  margin-bottom: 1rem;
  color: #334155;
}

.modal-body li {
  margin-bottom: 0.4rem;
}

/* Legal Tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.legal-table th,
.legal-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-light);
  text-align: left;
}

@media (max-width: 520px) {
  .legal-table, 
  .legal-table tbody, 
  .legal-table tr, 
  .legal-table th, 
  .legal-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
  .legal-table tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  .legal-table th {
    border: none;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-subtle);
    padding: 0.45rem 0.65rem;
  }
  .legal-table td {
    border: none;
    padding: 0.45rem 0.65rem;
  }
}

.legal-table th {
  background-color: var(--bg-subtle);
  font-weight: 700;
  color: var(--primary-navy);
  width: 30%;
}

.legal-table td {
  color: #334155;
}

.legal-badge-alert {
  display: inline-block;
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* RGPD Layer 1 Box for Forms */
.rgpd-layer1-box {
  background-color: #F8FAFC;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.825rem;
}

.rgpd-layer1-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 750;
  color: var(--primary-navy);
  margin-bottom: 0.6rem;
}

.rgpd-layer1-table {
  width: 100%;
  border-collapse: collapse;
}

.rgpd-layer1-table tr {
  border-bottom: 1px solid #E2E8F0;
}
.rgpd-layer1-table tr:last-child {
  border-bottom: none;
}

.rgpd-layer1-table th {
  text-align: left;
  font-weight: 700;
  color: var(--primary-navy);
  padding: 0.35rem 0.5rem 0.35rem 0;
  vertical-align: top;
  width: 25%;
  white-space: nowrap;
}

.rgpd-layer1-table td {
  color: #475569;
  padding: 0.35rem 0;
  vertical-align: top;
}

/* Cookie Floating Banner - Fluid & Accessible (AEPD / WCAG) */
/* Default / Mobile & Minimized PC Windows (< 1024px): Stacked vertical, 100% width text block */
.cookie-banner {
  position: fixed;
  bottom: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  width: auto;
  max-width: calc(100vw - 1.7rem);
  margin: 0 auto;
  background-color: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.22), 0 6px 14px -2px rgba(15, 23, 42, 0.12);
  padding: 1.15rem 1.25rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
  max-height: 85dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: slideUp 0.3s ease-out;
}

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

.cookie-content {
  width: 100%;
  min-width: 0;
}

.cookie-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cookie-text {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  width: 100%;
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  flex-shrink: 0;
}

.cookie-actions .btn {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

/* En móvil muy estrecho (< 580px): orden táctil vertical */
@media (max-width: 579px) {
  #btnAcceptAllCookies { order: 1; }
  #btnRejectCookies { order: 2; }
  #btnConfigCookiesBanner { order: 3; }
}

/* En ventanas intermedias / minimizadas de PC y Tablets (580px a 1023px):
   Los 3 botones se colocan DEBAJO del texto en una fila horizontal compacta y alineada a la derecha */
@media (min-width: 580px) and (max-width: 1023px) {
  .cookie-banner {
    bottom: 1.25rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 860px;
    padding: 1.15rem 1.5rem;
    gap: 0.85rem;
  }

  .cookie-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.625rem;
  }

  .cookie-actions .btn {
    width: auto;
    min-height: 40px;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  #btnRejectCookies { order: 1; }
  #btnConfigCookiesBanner { order: 2; }
  #btnAcceptAllCookies { order: 3; }
}

/* En pantallas grandes (>= 1024px Desktop Completo):
   El banner puede usar fila horizontal porque el texto tiene suficiente espacio (> 550px) */
@media (min-width: 1024px) {
  .cookie-banner {
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 1080px;
    padding: 1.25rem 1.75rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .cookie-content {
    flex: 1;
    min-width: 0;
  }

  .cookie-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    flex-shrink: 0;
    gap: 0.65rem;
  }

  .cookie-actions .btn {
    width: auto;
    white-space: nowrap;
    padding: 0.6rem 1.15rem;
  }

  #btnRejectCookies { order: 1; }
  #btnConfigCookiesBanner { order: 2; }
  #btnAcceptAllCookies { order: 3; }
}

/* Cookie Switch Controls in Modal */
.cookie-switch-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
}

.cookie-switch-info h5 {
  font-size: 0.925rem;
  font-weight: 750;
  color: var(--primary-navy);
  margin-bottom: 0.2rem;
}

.cookie-switch-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 1rem;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-blue);
}

input:disabled + .slider {
  background-color: #10B981;
  cursor: not-allowed;
  opacity: 0.85;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  background-color: var(--bg-subtle);
}

/* ==========================================================================
   Navigation Highlight Items
   ========================================================================== */
.highlight-nav-link {
  color: var(--brand-orange) !important;
  font-weight: 700 !important;
}

.highlight-nav-link::after {
  background-color: var(--brand-orange) !important;
}

.highlight-mobile-link {
  color: var(--brand-orange) !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   Team Section Styles
   ========================================================================== */
.section-team {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.team-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: #BAE6FD;
  box-shadow: var(--shadow-lg);
}

.team-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #F8FAFC;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.35s ease;
}

.team-photo-oscar {
  object-position: center 30%;
}

.team-photo-aco {
  object-position: center 20%;
}

.team-photo-alex {
  object-position: center 20%;
}

.team-card:hover .team-photo {
  transform: scale(1.03);
}

.team-badge-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.team-content {
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.team-header-info {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.team-role {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: #0369A1;
  margin-bottom: 0.5rem;
  line-height: 1.375;
  white-space: normal;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0;
}

.team-alias {
  display: none;
}

.team-bio {
  display: none;
}

.team-audio-box {
  margin-top: auto;
  margin-bottom: 0;
  width: 100%;
}

.btn-team-audio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: #F0FDF4;
  color: #166534;
  border: 1.5px solid #86EFAC;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-team-audio:hover,
.btn-team-audio:focus-visible {
  background: #15803D;
  color: #FFFFFF;
  border-color: #15803D;
}

.btn-team-audio.playing {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}

.team-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.specialty-chip {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Presentation Visual Cards & Clinic Location Cards
   ========================================================================== */
.presentation-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.pres-visual-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.pres-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #BAE6FD;
}

.pres-visual-img-holder {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #F8FAFC;
}

.pres-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.pres-visual-card:hover .pres-visual-img {
  transform: scale(1.02);
}

.pres-visual-info {
  padding: 1.5rem 1.75rem;
}

.pres-visual-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0369A1;
  margin-bottom: 0.35rem;
}

.pres-visual-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.pres-visual-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.clinic-location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.clinic-door-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.clinic-door-card:hover {
  transform: translateY(-3px);
  border-color: #86EFAC;
  box-shadow: var(--shadow-md);
}

.clinic-door-img-holder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #F8FAFC;
}

.clinic-door-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.clinic-door-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.clinic-door-badge.badge-green {
  background: rgba(21, 128, 61, 0.95);
}

.clinic-door-caption {
  padding: 1.25rem 1.5rem;
}

.clinic-door-caption .caption-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.clinic-door-caption p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .presentation-visual-grid,
  .clinic-location-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ==========================================================================
   Products / Programs Section
   ========================================================================== */
.section-products {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.75rem;
}

.product-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-top: 3px solid var(--primary-navy);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.09);
  border-color: #94A3B8;
  border-top-color: var(--primary-blue);
}

.product-index-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary-blue);
  background-color: var(--primary-blue-light);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

.product-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.885rem;
}

.product-badge-top {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary-blue);
  color: #FFFFFF;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-taurino {
  background: var(--brand-orange) !important;
}

.product-header {
  margin-bottom: 1.25rem;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-blue);
  display: block;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--primary-navy);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.885rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.product-features-box {
  margin-top: auto;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px dashed var(--border-light);
}

.features-title {
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-navy);
  display: block;
  margin-bottom: 0.75rem;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.product-features li {
  font-size: 0.835rem;
  color: var(--text-main);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  line-height: 1.4;
}

.product-features li span {
  color: var(--brand-green);
  font-weight: 800;
  flex-shrink: 0;
}

.product-footer {
  margin-top: auto;
}

/* ==========================================================================
   Urgency Triage Questionnaire Section
   ========================================================================== */
.section-triage {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 50%, #F8FAFC 100%);
  border-top: 1px solid var(--border-light);
}

.triage-card-wrapper {
  max-width: 860px;
  width: 100%;
  box-sizing: border-box;
  margin: 3.5rem auto 0;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-xl);
}

.triage-form {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.triage-step {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.triage-step:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.step-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.step-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-blue);
  background: var(--primary-blue-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.step-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.step-header p {
  font-size: 0.885rem;
  color: var(--text-muted);
}

/* Urgency Selector Cards */
.urgency-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.urgency-option-card {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.urgency-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.urgency-card-content {
  background-color: #FFFFFF;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.15rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.urgency-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.urgency-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red { background-color: #DC2626; }
.dot-amber { background-color: #D97706; }
.dot-green { background-color: #16A34A; }

.urgency-badge-tag {
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.badge-red { background: #FEE2E2; color: #B91C1C; }
.badge-amber { background: #FEF3C7; color: #B45309; }
.badge-green { background: #DCFCE7; color: #15803D; }

.urgency-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.urgency-time {
  font-size: 0.785rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  display: block;
}

.urgency-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Checked States */
.urgency-option-card input[type="radio"]:checked + .urgency-card-content {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.urgency-red input[type="radio"]:checked + .urgency-card-content {
  border-color: #EF4444;
  background-color: #FFF5F5;
}

.urgency-amber input[type="radio"]:checked + .urgency-card-content {
  border-color: #F59E0B;
  background-color: #FFFDF0;
}

.urgency-green input[type="radio"]:checked + .urgency-card-content {
  border-color: #10B981;
  background-color: #F6FEF9;
}

.triage-submit-box {
  display: flex;
  flex-direction: column;
  padding-top: 1.5rem;
}

.triage-sla-preview {
  display: none !important;
}

.sla-icon {
  font-size: 1.25rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-card-col {
    max-width: 580px;
  }

  .grid-2-cols {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-col-contact {
    grid-column: span 2;
  }
}

@media (max-width: 1140px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .top-bar-content {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .top-bar-left {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .hero-title {
    font-size: clamp(1.4rem, 4vw, 1.95rem);
    gap: 0.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stat-separator {
    display: none;
  }

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

  .banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .services-grid-3 {
    grid-template-columns: 1fr;
  }

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

  .urgency-selector-grid {
    grid-template-columns: 1fr;
  }

  .triage-card-wrapper {
    padding: 1.75rem 1.25rem;
  }

  .about-meta-grid {
    grid-template-columns: 1fr;
  }

  .map-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-col-contact {
    grid-column: span 1;
  }

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

  .legal-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Prevent iOS zoom on input focus */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
  }

  .product-card {
    padding: 1.5rem 1.25rem;
    min-height: auto;
  }

  .dossier-body {
    padding: 1.5rem 1.25rem;
  }

  .dossier-row {
    grid-template-columns: 110px 1fr;
    font-size: 0.825rem;
  }
}

@media (max-width: 520px) {
  .hero-title {
    flex-direction: column;
    align-items: flex-start;
    font-size: clamp(1.15rem, 5vw, 1.35rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    gap: 0.4rem;
  }

  .hero-title-main {
    display: block;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .hero-brand-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    padding: 2px 8px;
    margin: 0;
  }

  .hero-lead {
    font-size: 0.975rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .form-card,
  .contact-info-card,
  .triage-card-wrapper {
    padding: 1.25rem 1rem !important;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .brand-acronym {
    font-size: 1.15rem;
    letter-spacing: -0.01em;
  }

  .brand-subtitle {
    font-size: 0.6rem;
  }

  .dossier-row {
    grid-template-columns: 100px 1fr;
    gap: 0.25rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.15rem;
  }
  .hero-brand-tag {
    font-size: 0.75rem;
    padding: 2px 6px;
  }
  .brand-acronym {
    font-size: 1.05rem;
  }
  .brand-subtitle {
    font-size: 0.55rem;
  }
}


/* ==========================================================================
   Video Presentation Section (AI Generated Presentation)
   ========================================================================== */
.section-video-presentation {
  background: linear-gradient(135deg, #0A192F 0%, #0F2A4A 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-card-presentation {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.video-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(43, 114, 186, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93C5FD;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.video-title {
  color: #FFFFFF;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.video-desc {
  color: #CBD5E1;
  font-size: 1.025rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.video-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.video-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #E2E8F0;
}

.highlight-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.video-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.video-actions .btn-outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}

.video-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
}

.video-player-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-frame-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #030712;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.fmscare-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-poster-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 42, 74, 0.75) 0%, rgba(10, 25, 47, 0.95) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
  padding: 1.5rem;
  text-align: center;
}

.video-poster-overlay.playing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.poster-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #F8FAFC;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.video-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #2563EB;
  color: #FFFFFF;
  border: 4px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 35px rgba(37, 99, 235, 0.7);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease, box-shadow 0.25s ease;
  padding-left: 4px;
}

.video-poster-overlay:hover .video-play-btn {
  transform: scale(1.12);
  background: #1D4ED8;
  box-shadow: 0 0 45px rgba(59, 130, 246, 0.9);
}

.poster-title-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.poster-brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}

.poster-sub {
  font-size: 0.85rem;
  color: #94A3B8;
}

.video-footer-caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #94A3B8;
}

/* ==========================================================================
   Specific Service Clinical Questionnaire Section
   ========================================================================== */
.specific-service-container {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.08);
  transition: all 0.3s ease;
}

.specific-service-container.hidden {
  display: none;
}

@keyframes questionnairePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
    border-color: #16A34A;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(22, 163, 74, 0);
    border-color: #15803D;
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.12);
    border-color: #86EFAC;
    transform: scale(1);
  }
}

.specific-service-container.highlight-pulse {
  animation: questionnairePulse 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.specific-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #BBF7D0;
  flex-wrap: wrap;
}

.specific-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.specific-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #16A34A;
  color: #FFFFFF;
  flex-shrink: 0;
}

.specific-header h4 {
  margin: 0;
  font-size: 1.075rem;
  font-weight: 800;
  color: #14532D;
}

.specific-badge {
  display: inline-block;
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #86EFAC;
}

.specific-questions-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.specific-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.specific-field-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.specific-field-label .req {
  color: #DC2626;
}

.specific-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.6rem;
}

.specific-option-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  min-height: 48px;
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.925rem;
  line-height: 1.5;
  color: #0A0F1D;
  transition: all 0.2s ease;
}

.specific-option-label input[type="radio"],
.specific-option-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  accent-color: #15803D;
  cursor: pointer;
}

.specific-option-label:hover {
  border-color: #15803D;
  background: #F8FAFC;
}

.specific-option-label input[type="radio"]:checked + span,
.specific-option-label input[type="checkbox"]:checked + span {
  font-weight: 700;
  color: #15803D;
}

.specific-option-label:has(input:checked) {
  border-color: #15803D;
  background: #ECFDF5;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.15);
}

.specific-help-text {
  font-size: 0.85rem;
  color: #334155;
  margin-top: 0.2rem;
}

@media (max-width: 900px) {
  .video-card-presentation {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem 1.25rem;
  }
  .video-title {
    font-size: 1.65rem;
  }
  .specific-options-grid {
    grid-template-columns: 1fr;
  }
}


.video-sound-bar {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 25;
}

.btn-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-sound-toggle:hover {
  background: #2563EB;
  border-color: #60A5FA;
  transform: translateY(-1px);
}

.btn-sound-toggle.unmuted {
  background: #16A34A;
  border-color: #86EFAC;
}

.btn-restart-video {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.92);
  color: #CBD5E1;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-restart-video:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}


/* ==========================================================================
   Service Audio Guide (Inside Specific Questionnaire)
   ========================================================================== */
.service-audio-guide-card {
  background: #FFFFFF;
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.audio-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.audio-guide-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.audio-pulse-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #86EFAC;
}

.audio-guide-texts {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.audio-guide-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #14532D;
}

.audio-guide-caption {
  font-size: 0.785rem;
  color: #475569;
}

.audio-pill-tag {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  color: #166534;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.audio-guide-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #F8FAFC;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid #E2E8F0;
}

.btn-audio-play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #16A34A;
  color: #FFFFFF;
  border: none;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.btn-audio-play:hover {
  background: #15803D;
  transform: translateY(-1px);
}

.btn-audio-play.playing {
  background: #0284C7;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.audio-track-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
}

.audio-track-bg {
  width: 100%;
  height: 6px;
  background: #CBD5E1;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
}

.audio-track-progress {
  height: 100%;
  width: 0%;
  background: #16A34A;
  border-radius: 9999px;
  transition: width 0.1s linear;
}

.audio-time-display {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748B;
  min-width: 75px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Service Card Audio Button */
.btn-card-audio-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  background: rgba(22, 163, 74, 0.08);
  color: #15803D;
  border: 1.5px solid rgba(22, 163, 74, 0.35);
  padding: 0.65rem 0.85rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.45rem;
  transition: all 0.2s ease;
}

.btn-card-audio-preview:hover,
.btn-card-audio-preview:focus-visible {
  background: #15803D;
  color: #FFFFFF;
  border-color: #15803D;
}

@media (max-width: 600px) {
  .audio-guide-controls {
    flex-wrap: wrap;
  }
  .audio-track-wrapper {
    order: 3;
    width: 100%;
    flex: auto;
  }
}

/* =========================================================================
   Final Production Additions (FMSCARE)
   ========================================================================= */

/* Section Title Prominent */
.section-title-prominent {
  font-size: 2.75rem !important;
  font-weight: 850 !important;
  letter-spacing: -0.025em;
  color: var(--color-navy);
}

@media (max-width: 768px) {
  .section-title-prominent {
    font-size: 2.15rem !important;
  }
}

/* Presentation Audio Player */
.presentation-audio-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.presentation-audio-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.4);
  color: #FFFFFF;
}

.presentation-audio-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.presentation-audio-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  border: 2px solid rgba(59, 130, 246, 0.4);
  color: #60A5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pres-audio-pill {
  display: inline-block;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93C5FD;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.35rem;
}

.pres-audio-heading {
  font-size: 1.4rem;
  font-weight: 750;
  color: #FFFFFF;
  margin: 0 0 0.25rem 0;
}

.pres-audio-sub {
  font-size: 0.88rem;
  color: #94A3B8;
  margin: 0;
}

.pres-audio-controls-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.btn-pres-play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-pres-play:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

.btn-pres-play.playing {
  background: #DC2626;
}

.btn-pres-play.playing:hover {
  background: #B91C1C;
}

.pres-track-wrapper {
  flex: 1;
  cursor: pointer;
  padding: 8px 0;
}

.pres-track-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.pres-track-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
  border-radius: 9999px;
  transition: width 0.1s linear;
}

.pres-time-display {
  font-size: 0.82rem;
  color: #CBD5E1;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.pres-video-badge-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #94A3B8;
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.pres-transcript-box {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.btn-pres-transcript-toggle {
  background: none;
  border: none;
  color: #93C5FD;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.btn-pres-transcript-toggle:hover {
  color: #BFDBFE;
}

.btn-pres-transcript-toggle .chevron-icon {
  transition: transform 0.2s ease;
}

.btn-pres-transcript-toggle[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.pres-transcript-text {
  margin-top: 0.85rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid #3B82F6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #E2E8F0;
}

.pres-transcript-text.hidden {
  display: none;
}

/* Service Selected Banner (Locked Service Navigation) */
.service-selected-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.service-banner-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.service-banner-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #16A34A;
  color: #FFFFFF;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.service-banner-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: #14532D;
  margin: 0;
}

.btn-change-service {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFFFFF;
  color: #166534;
  border: 1.5px solid #86EFAC;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-change-service:hover {
  background: #16A34A;
  color: #FFFFFF;
  border-color: #16A34A;
  transform: translateY(-1px);
}

/* WhatsApp Notice and Badges */
.dossier-subnote {
  display: block;
  font-size: 0.78rem;
  color: #047857;
  font-weight: 600;
  margin-top: 0.15rem;
}

.method-note-label {
  display: block;
  font-size: 0.78rem;
  color: #047857;
  font-weight: 600;
  margin-top: 0.2rem;
}

.footer-note-sub {
  font-size: 0.75rem;
  color: #94A3B8;
  display: block;
  margin-top: 0.2rem;
}

.highlight-whatsapp {
  color: #10B981 !important;
}

/* Other Symptom Detail input */
.other-symptom-field {
  margin-top: 0.65rem;
  padding-left: 1.5rem;
}

.other-symptom-field input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--radius-sm);
  background: #F9FAFB;
  transition: border-color 0.2s;
}

.other-symptom-field input:focus {
  outline: none;
  border-color: var(--color-green);
  background: #FFFFFF;
}

@media (max-width: 600px) {
  .service-selected-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .btn-change-service {
    width: 100%;
    justify-content: center;
  }
  .presentation-audio-card {
    padding: 1.5rem 1.25rem;
  }
  .pres-audio-controls-box {
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  .pres-track-wrapper {
    order: 3;
    width: 100%;
    flex: auto;
  }
}
