/* ==========================================================================
   1. ATOMIC DESIGN TOKENS (Variables CSS Vanguardistas)
   ========================================================================== */
:root {
  /* Color Palette */
  --color-slate-900: #0F172A;
  --color-slate-800: #1E293B;
  --color-slate-600: #475569;
  --color-slate-500: #64748B;
  
  --color-teal-500: #0EA5E9;
  --color-teal-600: #0284C7;
  --color-teal-50: #F0F9FF;
  
  --color-emerald-500: #10B981;
  --color-emerald-50: #ECFDF5;
  
  --color-surface-white: #FFFFFF;
  --color-bg-light: #F8FAFC;
  --color-glass: rgba(255, 255, 255, 0.85);

  /* Typography */
  --font-title: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --font-hero: clamp(2.2rem, 4vw, 3.5rem);
  --font-h1: clamp(1.8rem, 3vw, 2.5rem);
  --font-h2: clamp(1.4rem, 2.2vw, 1.85rem);
  --font-body-md: 1.05rem;
  --font-sm: 0.9rem;
  --font-xs: 0.78rem;

  /* Borders & Layout */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* Shadows & Effects */
  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 12px 32px -4px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 20px 40px -10px rgba(14, 165, 233, 0.25);
  --glass-border: 1px solid rgba(226, 232, 240, 0.8);

  --transition-normal: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* scroll-behavior es manejado por Lenis.js para evitar conflictos */
}

body {
  font-family: var(--font-body);
  color: var(--color-slate-800);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  font-size: var(--font-body-md);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   2. ÁTOMOS (Atoms)
   ========================================================================== */

/* Typography Atoms */
.a-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-family: var(--font-title);
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal-600);
  background-color: var(--color-teal-50);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.a-badge--emerald {
  color: var(--color-emerald-500);
  background-color: var(--color-emerald-50);
  border-color: rgba(16, 185, 129, 0.2);
}

.a-title {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Theme Toggle Atom */
.a-theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-600);
  transition: var(--transition-normal);
}
.a-theme-toggle:hover {
  color: var(--color-teal-500);
  background-color: var(--color-teal-50);
}
.a-theme-toggle svg {
  width: 22px;
  height: 22px;
}
.moon-icon { display: none; }

/* Button Atoms */
.a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-title);
  font-size: var(--font-sm);
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Shimmer Light Reflection Effect on Buttons */
.a-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.a-btn:hover::after {
  left: 140%;
}

.a-btn:active {
  transform: translateY(0) scale(0.98);
}

.a-btn--primary, .a-btn--primary:visited {
  background-color: var(--color-teal-500);
  color: var(--color-surface-white);
  box-shadow: var(--shadow-glow);
}

.a-btn--primary:hover {
  background-color: var(--color-teal-600);
  transform: translateY(-2px);
  box-shadow: 0 25px 45px -10px rgba(14, 165, 233, 0.35);
}

.a-btn--dark, .a-btn--dark:visited {
  background-color: var(--color-slate-900);
  color: var(--color-surface-white);
}

.a-btn--dark:hover {
  background-color: var(--color-slate-800);
  transform: translateY(-2px);
}

.a-btn--outline, .a-btn--outline:visited {
  border-color: #E2E8F0;
  color: var(--color-slate-800);
  background: var(--color-surface-white);
}

.a-btn--outline:hover {
  border-color: var(--color-teal-500);
  color: var(--color-teal-600);
  transform: translateY(-2px);
}

/* Icon Box Atom */
.a-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-teal-50), #E0F2FE);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal-600);
  margin-bottom: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.35s ease,
              color 0.35s ease,
              box-shadow 0.35s ease;
}

.a-icon-box svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
}

/* Input Atoms */
.a-input, .a-select, .a-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  background-color: #F1F5F9;
  font-family: inherit;
  font-size: var(--font-sm);
  color: var(--color-slate-900);
  transition: var(--transition-normal);
}

.a-input:focus, .a-select:focus, .a-textarea:focus {
  outline: none;
  border-color: var(--color-teal-500);
  background-color: var(--color-surface-white);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

/* ==========================================================================
   3. MOLÉCULAS (Molecules)
   ========================================================================== */

/* Header Navigation Item */
.m-nav-link, .m-nav-link:visited {
  color: var(--color-slate-600);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--font-sm);
  transition: var(--transition-normal);
}

.m-nav-link:hover {
  color: var(--color-teal-500);
}

/* Section Header Molecule */
.m-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.m-section-header .a-badge {
  margin-bottom: 0.75rem;
}

.m-section-header .a-title {
  font-size: var(--font-h1);
  margin-bottom: 0.75rem;
}

.m-section-header p {
  color: var(--color-slate-500);
}

/* Card Service Molecule (Procedimientos) */
.m-card-service {
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: var(--glass-border);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.m-card-service:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(14, 165, 233, 0.15),
              0 4px 12px rgba(15, 23, 42, 0.04);
  border-color: rgba(14, 165, 233, 0.4);
}

.m-card-service:hover .a-icon-box {
  transform: scale(1.08) rotate(3deg);
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

.m-card-service__title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.m-card-service__desc {
  color: var(--color-slate-500);
  font-size: var(--font-sm);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.m-card-service__list {
  list-style: none;
  margin-bottom: 1.8rem;
}

.m-card-service__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--font-sm);
  color: var(--color-slate-600);
  margin-bottom: 0.5rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.m-card-service:hover .m-card-service__list li {
  color: var(--color-slate-800);
}

.m-card-service__check {
  color: var(--color-teal-500);
  font-weight: bold;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.m-card-service:hover .m-card-service__check {
  transform: scale(1.25);
}

/* Testimonial Card Molecule */
.m-card-testimonial {
  background: var(--color-surface-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  border: var(--glass-border);
}

.m-card-testimonial__stars {
  color: #F59E0B;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.m-card-testimonial__quote {
  color: var(--color-slate-600);
  font-size: var(--font-sm);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.m-card-testimonial__quote p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.m-card-testimonial__author {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--color-slate-900);
  font-size: var(--font-sm);
}

/* Center Card Molecule (Ubicación y Horarios) */
.m-card-center {
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  display: flex; /* Use flexbox for internal alignment */
  flex-direction: column; /* Stack children vertically */
  border: 1px solid #E2E8F0; /* Modern touch: subtle border */
  transition: var(--transition-normal);
}

.m-card-center:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px -8px rgba(15, 23, 42, 0.12); /* Slightly stronger shadow on hover */
  border-color: rgba(14, 165, 233, 0.3);
}

.m-card-center__image-wrapper {
  margin-bottom: 1.5rem; /* Spacing below the image */
  overflow: hidden; /* To contain the zoom effect */
  border-radius: var(--radius-md); /* Rounded corners for the image container */
}

.m-card-center__image-wrapper img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--color-bg-light);
  transition: transform 0.4s ease;
}

.m-card-center:hover .m-card-center__image-wrapper img {
  transform: scale(1.05);
}

.m-card-center__title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.m-card-center__address {
  color: var(--color-slate-500);
  font-size: var(--font-sm);
  margin-bottom: 1.5rem;
}

.m-card-center__details {
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: 1.5rem; /* Increased padding */
  margin-bottom: 0; /* Remove margin-bottom, actions will handle spacing */
  text-align: left;
  font-size: var(--font-sm);
  flex-grow: 1; /* This will make the details box expand, pushing the button to the bottom */
  border: 1px solid #EDF2F7; /* Subtle inner border */
}

.m-card-center__details-title {
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 0.75rem;
}

.m-card-center__details-title + .m-card-center__details-title {
  margin-top: 1.25rem;
}

.m-card-center__details p:not(.m-card-center__details-title) {
  margin-bottom: 0.5rem;
  color: var(--color-slate-600);
}

/* New actions container */
.m-card-center__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.8rem; /* Space between details and buttons */
}

/* Form Group Molecule */
.m-form-group {
  margin-bottom: 1rem;
}

.m-form-group__label {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--font-sm);
  color: var(--color-slate-800);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   PLUGINS & INTEGRATIONS
   ========================================================================== */

/* Contact Form 7 Custom Styles */
.wpcf7-form p {
  margin: 0; /* CF7 wraps fields in <p>, remove its margin */
}

.wpcf7-form .wpcf7-submit {
  width: 100%; /* Make button full-width */
}

/* General response message styling */
.wpcf7-response-output {
  margin: 1.5rem 0 0 0 !important;
  padding: 1rem 1.5rem !important;
  border-radius: var(--radius-sm) !important;
  font-size: var(--font-sm);
  font-family: var(--font-body);
  border-width: 1px !important;
  border-style: solid !important;
}

/* Error / Spam Message */
.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-spam-blocked {
  background: #FEF2F2 !important;
  color: #991B1B !important;
  border-color: #FCA5A5 !important;
}

/* Success Message */
.wpcf7-response-output.wpcf7-mail-sent-ok {
  background: var(--color-emerald-50) !important;
  color: #065F46 !important;
  border-color: #A7F3D0 !important; /* emerald-200 */
}

/* Individual field error tip */
span.wpcf7-not-valid-tip {
  color: #DC2626 !important;
  font-size: var(--font-xs) !important;
  font-weight: 500;
  margin-top: 0.3rem;
}

/* ==========================================================================
   4. ORGANISMOS (Organisms)
   ========================================================================== */

/* Glass Navbar Organism */
.o-navbar {
  position: sticky;
  top: 1rem;
  z-index: 1000;
  margin-bottom: 2rem;
}

.o-navbar__inner {
  background: var(--color-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: var(--glass-border);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

/* Scroll Progress Bar across navbar */
.o-navbar__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-teal-500) 0%, var(--color-emerald-500) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: var(--radius-pill);
  transition: transform 0.08s linear;
  pointer-events: none;
  z-index: 10;
}

.o-navbar__brand {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-slate-900);
  text-decoration: none;
}

.o-navbar__brand img {
  height: 32px; /* Ajusta la altura del logo */
  filter: invert(1); /* Por defecto, el logo (blanco) se invierte a negro para el modo claro */
  transition: filter 0.3s ease-in-out; /* Transición suave para el cambio de color */
}

.o-navbar__brand span {
  color: var(--color-teal-500);
}

/* Hero Section Organism */
.o-hero {
  padding: 3rem 0 5rem 0;
}

.o-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .o-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.o-hero__content .a-title {
  font-size: var(--font-hero);
  margin: 1.2rem 0;
}

.o-hero__subtitle {
  color: var(--color-slate-500);
  font-size: 1.15rem;
  margin-bottom: 2.2rem;
  max-width: 540px;
}

.o-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Floating Image Card Effect */
.o-hero__media {
  position: relative;
}

.o-hero__img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.o-hero__floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  border: var(--glass-border);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 260px;
}

/* ==========================================================================
   ORGANISMO: Barra de Respaldo y Credenciales Médicas (Trust Credentials Bar)
   ========================================================================== */
.o-trust-bar {
  background: var(--color-surface-white);
  border-bottom: 1px solid #E2E8F0;
  padding: 1.6rem 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
}

.o-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.m-trust-item {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.m-trust-item:hover {
  transform: translateY(-2px);
}

.m-trust-item__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.08));
  color: var(--color-teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(14, 165, 233, 0.2);
  transition: all 0.3s ease;
}

.m-trust-item:hover .m-trust-item__icon-wrap {
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
  color: #FFFFFF;
  transform: scale(1.08);
  box-shadow: 0 8px 18px -4px rgba(14, 165, 233, 0.35);
}

.m-trust-item__content {
  display: flex;
  flex-direction: column;
}

.m-trust-item__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--color-slate-900);
  line-height: 1.2;
}

.m-trust-item__desc {
  font-size: 0.78rem;
  color: var(--color-slate-500);
  line-height: 1.35;
  margin-top: 0.15rem;
}

/* ==========================================================================
   ORGANISMO: Sobre Mí & Perfil Profesional (Corporate Medical Layout)
   ========================================================================== */
.o-about-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 4rem;
  align-items: center;
}

.o-about__media {
  position: relative;
  display: flex;
  justify-content: center;
}

.o-about__media-backdrop {
  position: absolute;
  inset: -14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(16, 185, 129, 0.1));
  border-radius: calc(var(--radius-lg) + 8px);
  transform: rotate(-2.5deg);
  z-index: 0;
  border: 1px solid rgba(14, 165, 233, 0.2);
  transition: transform 0.4s ease;
}

.o-about__media:hover .o-about__media-backdrop {
  transform: rotate(-3.5deg) scale(1.02);
}

.o-about__img-wrapper {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.9);
  width: 100%;
  max-width: 440px;
}

.o-about__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.9;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.o-about__media:hover .o-about__img {
  transform: scale(1.03);
}

.o-about__floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--color-slate-900);
}

.o-about__floating-badge svg {
  color: var(--color-teal-600);
  flex-shrink: 0;
}

.o-about__floating-badge strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.2;
}

.o-about__floating-badge span {
  display: block;
  font-size: 0.74rem;
  color: var(--color-slate-600);
  margin-top: 0.1rem;
}

.o-about__title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.18;
  font-weight: 800;
  color: var(--color-slate-900);
  letter-spacing: -0.02em;
  margin: 0.8rem 0 1rem 0;
}

.o-about__lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--color-slate-600);
  margin-bottom: 2rem;
}

.o-about__pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}

.m-about-pillar {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--color-surface-white);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
}

.m-about-pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.08);
}

.m-about-pillar__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.08));
  color: var(--color-teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.m-about-pillar__text strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 0.25rem;
}

.m-about-pillar__text p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-slate-600);
  line-height: 1.45;
}

.o-about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem;
}

/* ==========================================================================
   ORGANISMO: Protocolo Quirúrgico (Surgical Care Protocol)
   ========================================================================== */
.o-protocol-section {
  background: linear-gradient(180deg, var(--color-surface-white) 0%, #F8FAFC 100%);
}

.o-protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.m-protocol-card {
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-protocol-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  border-color: rgba(14, 165, 233, 0.35);
}

.m-protocol-card--highlight {
  border-color: rgba(14, 165, 233, 0.4);
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%);
  box-shadow: 0 16px 32px -8px rgba(14, 165, 233, 0.15);
}

.m-protocol-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.m-protocol-card__step {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(14, 165, 233, 0.3);
  letter-spacing: -0.04em;
  line-height: 1;
}

.m-protocol-card--highlight .m-protocol-card__step {
  color: var(--color-teal-500);
}

.m-protocol-card__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-teal-50), #E0F2FE);
  color: var(--color-teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-protocol-card__title {
  font-family: var(--font-title);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.m-protocol-card__desc {
  color: var(--color-slate-600);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.m-protocol-card__list {
  list-style: none;
  padding: 0;
  margin: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px dashed #E2E8F0;
  padding-top: 1.2rem;
}

.m-protocol-card__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--color-slate-700);
  font-weight: 600;
}

.m-protocol-check {
  color: var(--color-emerald-500);
  font-weight: 800;
}

/* Centers Section Organism */
.o-centers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  align-items: stretch;
}

/* Contact Form Organism */
.o-contact-wrapper {
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  border: var(--glass-border);
  box-shadow: var(--shadow-card);
}

.o-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 992px) {
  .o-contact-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.o-contact-title {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1.2;
  margin: 0.8rem 0 1rem 0;
}

.o-contact-desc {
  color: var(--color-slate-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Convenios Quirúrgicos en Contacto */
.o-convenios-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.m-convenio-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--color-surface-white);
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.2s ease;
}

.m-convenio-item:hover {
  border-color: rgba(14, 165, 233, 0.35);
}

.m-convenio-item__icon {
  color: var(--color-emerald-500);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.m-convenio-item strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 0.15rem;
}

.m-convenio-item p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-slate-600);
  line-height: 1.4;
}

.o-contact-direct-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.m-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--radius-pill);
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-teal-600);
}

.m-form-container-header {
  margin-bottom: 1.5rem;
}

.m-form-container-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin: 0 0 0.35rem 0;
}

.m-form-container-subtitle {
  font-size: 0.85rem;
  color: var(--color-slate-500);
  margin: 0;
}

/* Layout Sections */
.s-padding {
  padding: 5rem 0;
}

.s-bg-alt {
  background-color: #F1F5F9;
}

/* Footer Organism */
.o-footer {
  background-color: var(--color-slate-900);
  color: var(--color-slate-500);
  padding: 2.5rem 0;
  text-align: center;
  font-size: var(--font-sm);
}

/* ==========================================================================
   5. LIBRERÍAS Y EFECTOS EXTRAS
   ========================================================================== */

/* Skeleton Loader Atom */
.a-skeleton {
  background-color: var(--color-bg-light);
  background-image: linear-gradient(
    90deg,
    var(--color-bg-light) 0px,
    #E2E8F0 40px,
    var(--color-bg-light) 80px
  );
  background-size: 600px;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-lg); /* Match image radius */
}

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* Helper para imágenes cargadas dentro del skeleton */
.a-skeleton img {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.a-skeleton img.is-loaded {
  opacity: 1;
}

/* --- Estilos para Modales --- */
/* --- Estilos para Modales con Scroll Habilitado --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  align-items: center;
  justify-content: center;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  padding: 1.5rem;
  box-sizing: border-box;
  overscroll-behavior: contain;
}

.modal.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-surface-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 85vh; /* Límite de altura para forzar la barra */
  max-height: 85dvh;
  position: relative;
  box-shadow: var(--shadow-card);
  border: var(--glass-border);
  
  /* Habilita el scroll interno */
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; /* Scroll fluido en iOS */
  
  animation: modal-fade-in 0.3s ease-out;
}

/* Barra de scroll personalizada y limpia */
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-track {
  background: var(--color-bg-light);
  border-radius: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 8px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-teal-500);
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-modal {
  color: var(--color-slate-500);
  position: sticky;
  top: 0;
  float: right;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  transition: color 0.2s ease, transform 0.2s ease;
  background: var(--color-surface-white);
  border-radius: 50%;
  padding: 0.2rem;
  margin-top: -0.5rem;
  margin-right: -0.5rem;
}

.close-modal:hover {
  color: var(--color-slate-900);
  transform: scale(1.1);
}

/* Estilos para el contenido del modal */
.modal-content h3 {
  font-family: var(--font-title);
  font-size: var(--font-h2);
  color: var(--color-slate-900);
  margin-bottom: 1.5rem;
}

.modal-content h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-slate-800);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.modal-content p, .modal-content li {
  color: var(--color-slate-600);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.modal-content ul {
  list-style-position: inside;
  padding-left: 0.5rem;
}

/* ==========================================================================
   6. RESPONSIVE & MOBILE NAVIGATION
   ========================================================================== */

/* Default (Desktop) Navigation Styles */
.o-navbar__menu {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

/* Mobile Bottom Navigation Organism */
.o-bottom-nav {
  display: none; /* Hidden on desktop */
}

/* Styles for screens smaller than 992px */
@media (max-width: 991px) {
  body {
    padding-bottom: 70px; /* Space for bottom nav */
  }

  /* Hide desktop nav elements on mobile */
  .o-navbar__menu,
  .o-navbar__inner .a-btn { 
    display: none; 
  }

  /* Show and style bottom nav on mobile */
  .o-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding-top: 8px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--color-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: var(--glass-border);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.05);
    z-index: 1000;
  }

  .m-bottom-nav-link, .m-bottom-nav-link:visited {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--color-slate-600);
    font-size: 0.7rem;
    font-family: var(--font-title);
    font-weight: 600;
    transition: color 0.25s ease-in-out, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .m-bottom-nav-link svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
    margin-bottom: 2px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .m-bottom-nav-link:hover,
  .m-bottom-nav-link.is-active {
    color: var(--color-teal-500);
    transform: translateY(-2px);
  }

  .m-bottom-nav-link.is-active svg {
    transform: scale(1.15);
  }

  .m-bottom-nav-link:active svg {
    transform: scale(0.85);
    transition-duration: 0.1s;
  }

  .m-bottom-nav-link.is-primary {
    color: var(--color-surface-white);
    transform: translateY(-18px);
    background-color: var(--color-teal-500);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.3s ease;
  }

  .m-bottom-nav-link.is-primary:hover,
  .m-bottom-nav-link.is-primary.is-active {
    background-color: var(--color-teal-600);
    color: var(--color-surface-white);
    transform: translateY(-20px) scale(1.04);
  }

  .m-bottom-nav-link.is-primary:active {
    transform: translateY(-16px) scale(0.95);
  }

  .m-bottom-nav-link.is-primary span {
    font-size: 0.65rem;
  }

  .m-bottom-nav-link.is-primary svg {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
  }

  /* General mobile adjustments */
  .s-padding { padding: 3.5rem 0; }
  .o-hero { padding: 1rem 0 4rem 0; }
  .o-hero__floating-card { left: 10px; bottom: -25px; max-width: 220px; padding: 0.8rem; }
  .o-contact-wrapper { padding: 2rem; }
}

/* ==========================================================================
   HERO CAROUSEL (Aesthetic & Modern Refinement)
   ========================================================================== */
.o-hero-slider {
  position: relative;
  background-color: var(--color-bg-light);
  background-image: 
    radial-gradient(ellipse 65% 50% at 85% 40%, rgba(14, 165, 233, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 70%, rgba(16, 185, 129, 0.08), transparent 70%);
  color: var(--color-slate-800);
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}

/* Ambient Glowing Background Orbs */
.o-hero__ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.6;
}

.o-hero__ambient-glow--1 {
  width: 420px;
  height: 420px;
  top: -100px;
  right: -50px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 70%);
}

.o-hero__ambient-glow--2 {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: 5%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0) 70%);
}

.o-hero-slider__track {
  position: relative;
  width: 100%;
  min-height: 620px;
  z-index: 1;
}

/* Transición tipo Fade y Stagger Reveal entre slides */
.o-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
  display: flex;
  align-items: center;
  padding: 3.5rem 0;
}

.o-hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.o-hero-slide.is-active .a-badge--hero {
  animation: heroFadeDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.o-hero-slide.is-active .o-hero__title {
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.o-hero-slide.is-active .o-hero__subtitle {
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.o-hero-slide.is-active .o-hero__actions {
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.o-hero-slide.is-active .o-hero__media {
  animation: heroScaleIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroScaleIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Grilla interna */
.o-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  width: 100%;
}

.o-hero__content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Insignia / Badge con Pulso Activo */
.o-hero__badge-wrap {
  margin-bottom: 1.25rem;
}

.a-badge--hero {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-teal-600);
  background: rgba(14, 165, 233, 0.1);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(14, 165, 233, 0.25);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Títulos y Subtítulos */
.o-hero__title {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.14;
  font-weight: 800;
  color: var(--color-slate-900);
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem 0;
}

.o-hero__subtitle {
  font-size: 1.12rem;
  line-height: 1.68;
  color: var(--color-slate-600);
  margin-bottom: 2.25rem;
  max-width: 560px;
}

.o-hero__subtitle p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Botones de acción */
.o-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem;
}

.a-btn--white, .a-btn--white:visited {
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
  color: var(--color-surface-white);
  font-weight: 700;
  font-size: var(--font-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 28px -4px rgba(14, 165, 233, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.a-btn--white:hover {
  background: linear-gradient(135deg, var(--color-teal-600), #0369A1);
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -6px rgba(14, 165, 233, 0.45);
  color: var(--color-surface-white);
}

.a-btn--hero-outline, .a-btn--hero-outline:visited {
  border: 2px solid rgba(14, 165, 233, 0.4);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-slate-800);
  font-weight: 700;
  font-size: var(--font-sm);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.a-btn--hero-outline:hover {
  background: var(--color-surface-white);
  border-color: var(--color-teal-500);
  color: var(--color-teal-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08);
}

/* Media / Contenedor de Imagen */
.o-hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Decorative Layered Backdrop */
.o-hero__media-backdrop {
  position: absolute;
  inset: -12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(16, 185, 129, 0.12));
  border-radius: calc(var(--radius-lg) + 6px);
  transform: rotate(2.5deg);
  z-index: 0;
  border: 1px solid rgba(14, 165, 233, 0.2);
  transition: transform 0.4s ease;
}

.o-hero__media:hover .o-hero__media-backdrop {
  transform: rotate(3.5deg) scale(1.02);
}

.o-hero__media-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.8);
  width: 100%;
  max-width: 460px;
}

.o-hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.o-hero__media:hover .o-hero__img {
  transform: scale(1.03);
}

/* Tarjeta Flotante (Glassmorphism con Levitación) */
.o-hero__floating-card {
  position: absolute;
  bottom: 25px;
  left: -20px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--color-slate-900);
  padding: 1rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(14, 165, 233, 0.1);
  display: flex;
  gap: 0.85rem;
  align-items: center;
  max-width: 290px;
  animation: heroFloat 5s ease-in-out infinite;
}

.o-hero__floating-badge-wrap {
  flex-shrink: 0;
}

.o-hero__floating-card .a-badge--emerald {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
}

.o-hero__floating-text {
  display: flex;
  flex-direction: column;
}

.o-hero__floating-card .floating-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--color-slate-900);
  line-height: 1.25;
}

.o-hero__floating-card .floating-desc {
  margin: 0.15rem 0 0 0;
  font-size: 0.76rem;
  color: var(--color-slate-600);
  line-height: 1.35;
}

/* Flechas de Navegación (Glass Circles) */
.o-hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: var(--color-slate-700);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.o-hero-slider__arrow:hover {
  background: var(--color-teal-500);
  border-color: var(--color-teal-500);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 14px 28px -4px rgba(14, 165, 233, 0.35);
}

.o-hero-slider__arrow svg {
  transition: transform 0.2s ease;
}

.o-hero-slider__arrow--prev { left: 24px; }
.o-hero-slider__arrow--next { right: 24px; }

.o-hero-slider__arrow--prev:hover svg { transform: translateX(-2px); }
.o-hero-slider__arrow--next:hover svg { transform: translateX(2px); }

/* Indicadores / Dots (Glass Capsule) */
.o-hero-slider__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.o-hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.o-hero-slider__dot:hover {
  background: var(--color-teal-500);
}

.o-hero-slider__dot.is-active {
  background: linear-gradient(90deg, var(--color-teal-500), var(--color-emerald-500));
  width: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* Responsivo */
@media (max-width: 991px) {
  .o-hero-slider {
    min-height: auto;
    padding-top: 1rem;
  }

  .o-hero-slide {
    padding: 3rem 0 4.5rem 0;
    min-height: auto;
  }

  .o-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .o-hero__title {
    font-size: clamp(2rem, 6vw, 2.75rem);
  }

  .o-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .o-hero__actions {
    justify-content: center;
  }

  .o-hero__media-frame {
    max-width: 360px;
    margin: 0 auto;
  }

  .o-hero__floating-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    animation: none;
    max-width: 90%;
    width: 280px;
  }

  .o-hero-slider__arrow {
    display: none;
  }
}

/* Dark Mode para Hero Carousel */
[data-theme="dark"] .o-hero-slider {
  background-color: #0B1120;
  background-image: 
    radial-gradient(ellipse 70% 55% at 85% 35%, rgba(14, 165, 233, 0.22), transparent 70%),
    radial-gradient(ellipse 55% 45% at 15% 75%, rgba(16, 185, 129, 0.15), transparent 70%),
    radial-gradient(circle at 50% 50%, #0F172A 0%, #0B1120 100%);
  color: #F8FAFC;
}

[data-theme="dark"] .o-hero__ambient-glow--1 {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, rgba(14, 165, 233, 0) 70%);
  opacity: 0.85;
}

[data-theme="dark"] .o-hero__ambient-glow--2 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(16, 185, 129, 0) 70%);
  opacity: 0.85;
}

[data-theme="dark"] .o-hero__title {
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .o-hero__subtitle {
  color: #94A3B8;
}

[data-theme="dark"] .a-badge--hero {
  background: rgba(14, 165, 233, 0.18);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.2);
}

[data-theme="dark"] .a-btn--white,
[data-theme="dark"] .a-btn--white:visited {
  background: linear-gradient(135deg, #0EA5E9, #0284C7);
  color: #FFFFFF;
  box-shadow: 0 12px 28px -4px rgba(14, 165, 233, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .a-btn--white:hover {
  background: linear-gradient(135deg, #38BDF8, #0EA5E9);
  box-shadow: 0 16px 36px -4px rgba(14, 165, 233, 0.6);
}

[data-theme="dark"] .a-btn--hero-outline,
[data-theme="dark"] .a-btn--hero-outline:visited {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(56, 189, 248, 0.4);
  color: #F1F5F9;
}

[data-theme="dark"] .a-btn--hero-outline:hover {
  background: #38BDF8;
  border-color: #38BDF8;
  color: #0F172A;
  box-shadow: 0 10px 25px -4px rgba(56, 189, 248, 0.35);
}

[data-theme="dark"] .o-hero__media-backdrop {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(16, 185, 129, 0.22));
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 50px rgba(14, 165, 233, 0.15);
}

[data-theme="dark"] .o-hero__media-frame {
  border-color: rgba(71, 85, 105, 0.7);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .o-hero__floating-card {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 189, 248, 0.15);
  color: #F8FAFC;
}

[data-theme="dark"] .o-hero__floating-card .floating-title {
  color: #FFFFFF;
}

[data-theme="dark"] .o-hero__floating-card .floating-desc {
  color: #94A3B8;
}

[data-theme="dark"] .o-hero__floating-card .a-badge--emerald {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .o-hero-slider__arrow {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(71, 85, 105, 0.8);
  color: #E2E8F0;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .o-hero-slider__arrow:hover {
  background: var(--color-teal-500);
  border-color: var(--color-teal-500);
  color: #FFFFFF;
  box-shadow: 0 12px 30px -4px rgba(14, 165, 233, 0.5);
}

[data-theme="dark"] .o-hero-slider__dots {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(71, 85, 105, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .o-hero-slider__dot {
  background: #475569;
}

[data-theme="dark"] .o-hero-slider__dot:hover {
  background: #38BDF8;
}

[data-theme="dark"] .o-hero-slider__dot.is-active {
  background: linear-gradient(90deg, #38BDF8, #34D399);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.5);
}


/* ==========================================================================
   ORGANISMO: Franja de Métricas y Confianza Médica (Trust Stats Bar)
   ========================================================================== */
.o-stats-bar {
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 15;
}

.o-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.m-stat-card {
  background: var(--color-surface-white);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.m-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -6px rgba(15, 23, 42, 0.1);
  border-color: rgba(14, 165, 233, 0.35);
}

.m-stat-card__icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-teal-50), #E0F2FE);
  color: var(--color-teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease;
}

.m-stat-card:hover .m-stat-card__icon-wrap {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
  color: #FFFFFF;
}

.m-stat-card__info {
  display: flex;
  flex-direction: column;
}

.m-stat-card__number-wrap {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
}

.m-stat-card__prefix,
.m-stat-card__suffix {
  color: var(--color-teal-500);
  font-size: 1.3rem;
  font-weight: 800;
}

.m-stat-card__label {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--color-slate-500);
  margin-top: 0.2rem;
  line-height: 1.3;
}

.m-stat-card--highlight {
  background: linear-gradient(135deg, var(--color-teal-50), var(--color-emerald-50));
  border-color: rgba(14, 165, 233, 0.25);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
}

.m-stat-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-emerald-500);
}

.m-stat-card__title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.2;
}

/* Pulse Dot Component */
.a-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-emerald-500);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.a-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--color-emerald-500);
  animation: pulseRing 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

@media (max-width: 991px) {
  .o-stats-bar {
    margin-top: 0;
    margin-bottom: 2rem;
  }
  .o-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 540px) {
  .o-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TESTIMONIAL CAROUSEL
   ========================================================================== */
.o-testimonial-slider {
  position: relative;
  max-width: 700px; /* Ancho máximo del testimonio */
  margin: 0 auto;
  min-height: 250px; /* Altura mínima para evitar saltos de contenido */
}

.o-testimonial-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.o-testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.o-testimonial-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

/* Flechas de Navegación */
.o-testimonial-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--color-slate-400);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.o-testimonial-slider__arrow:hover {
  background: var(--color-teal-50);
  color: var(--color-teal-500);
}

.o-testimonial-slider__arrow--prev { left: -60px; }
.o-testimonial-slider__arrow--next { right: -60px; }

/* Indicadores / Dots */
.o-testimonial-slider__dots {
  position: absolute;
  bottom: -40px; /* Posición debajo del carrusel */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.o-testimonial-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-slate-300);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.o-testimonial-slider__dot.is-active {
  background: var(--color-teal-500);
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .o-testimonial-slider__arrow--prev { left: -15px; }
  .o-testimonial-slider__arrow--next { right: -15px; }
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.o-404-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  background-color: var(--color-bg-light);
  padding: 2rem;
}

.o-404-content {
  max-width: 500px;
  margin: 0 auto;
}

.o-404-code {
  font-family: var(--font-title);
  font-size: clamp(6rem, 25vw, 12rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-teal-500);
  opacity: 0.1;
  display: block;
}

.o-404-title {
  font-size: var(--font-h1);
  margin-top: -2.5rem; /* Adjust to overlap with the 404 code */
  margin-bottom: 1rem;
}

.o-404-text {
  color: var(--color-slate-500);
  margin-bottom: 2rem;
}

/* ==========================================================================
   PAGE TEMPLATE, EDITORIAL PROSE & LEGAL (Atomic Design)
   ========================================================================== */
.o-page-container {
  padding: 3.5rem 0 5rem 0;
  background-color: var(--color-bg-light);
  min-height: calc(100vh - 280px);
}

.o-entry-card {
  background: var(--color-surface-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 3.5rem;
  box-sizing: border-box;
  margin-bottom: 2.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Encabezado del artículo / página */
.o-entry__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.o-entry__header .a-badge {
  margin-bottom: 1rem;
}

.o-entry__title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.o-entry__meta {
  color: var(--color-slate-500);
  font-size: var(--font-sm);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* Imagen destacada */
.o-entry__thumbnail {
  margin: 0 0 2.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.o-entry__thumbnail img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Caja de Resumen Legal / Informativo */
.m-legal-summary-box {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-left: 4px solid var(--color-teal-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.m-legal-summary-box h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin: 0 0 0.6rem 0;
}

.m-legal-summary-box p {
  color: var(--color-slate-700);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

/* Contenido Editorial / Prose */
.o-entry__content {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-slate-700);
  line-height: 1.8;
}

.o-entry__content > *:first-child {
  margin-top: 0 !important;
}

.o-entry__content > *:last-child {
  margin-bottom: 0 !important;
}

.o-entry__content p {
  margin-bottom: 1.5rem;
}

.o-entry__content h2,
.o-entry__content h3,
.o-entry__content h4 {
  font-family: var(--font-title);
  color: var(--color-slate-900);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.o-entry__content h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  margin-top: 2.75rem;
  margin-bottom: 1.15rem;
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 0.6rem;
}

.o-entry__content h3 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}

.o-entry__content h4 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}

.o-entry__content strong,
.o-entry__content b {
  font-weight: 700;
  color: var(--color-slate-900);
}

.o-entry__content a {
  color: var(--color-teal-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.o-entry__content a:hover {
  color: var(--color-teal-700);
}

.o-entry__content ul,
.o-entry__content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.o-entry__content li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

/* Citas / Blockquotes */
.o-entry__content blockquote {
  border-left: 4px solid var(--color-teal-500);
  background: var(--color-bg-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  color: var(--color-slate-800);
  font-style: italic;
}

.o-entry__content blockquote p:last-child {
  margin-bottom: 0;
}

/* Tablas Legales & Editoriales */
.o-entry__content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #E2E8F0;
  font-size: 0.95rem;
  background: #FFFFFF;
}

.o-entry__content th {
  background-color: #F8FAFC;
  color: var(--color-slate-900);
  font-family: var(--font-title);
  font-weight: 700;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #E2E8F0;
}

.o-entry__content td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #F1F5F9;
  color: var(--color-slate-700);
}

.o-entry__content tr:last-child td {
  border-bottom: none;
}

.o-entry__content tr:hover td {
  background-color: #F8FAFC;
}

/* Código en línea (Cookies / Claves) */
.o-entry__content code {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: var(--color-teal-600);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  font-weight: 600;
}

/* Separadores */
.o-entry__content hr {
  border: 0;
  height: 1px;
  background: #E2E8F0;
  margin: 2.5rem 0;
}

/* Formulario ARCO (Ley 21.719) */
.m-arco-alert {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--font-sm);
  font-weight: 600;
}

.m-arco-alert--success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.m-arco-alert--error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.m-arco-form {
  margin-top: 1.5rem;
}

.m-arco-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.m-arco-declaration {
  background: var(--color-bg-light);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
}

.m-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--color-slate-700);
  cursor: pointer;
  line-height: 1.55;
}

.m-checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--color-teal-500);
  flex-shrink: 0;
  cursor: pointer;
}

/* Paginación interna de páginas wp_link_pages */
.page-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E2E8F0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.88rem;
}

.page-links a,
.page-links > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: #F1F5F9;
  color: var(--color-slate-900);
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-links a:hover {
  background: var(--color-teal-500);
  color: #FFFFFF;
}

.o-entry__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #E2E8F0;
}

/* ==========================================================================
   DARK MODE THEME
   ========================================================================== */
:root[data-theme="dark"] {
  /* Inverted Color Palette */
  --color-slate-900: #F1F5F9;      /* Darkest text -> Lightest text */
  --color-slate-800: #E2E8F0;      /* Dark text -> Light text */
  --color-slate-600: #94A3B8;      /* Mid-dark text -> Mid-light text */
  --color-slate-500: #64748B;      /* Mid-gray text -> Mid-gray text */
  
  --color-surface-white: #1E293B;  /* White surfaces -> Dark surfaces */
  --color-bg-light: #0F172A;       /* Light BG -> Dark BG */
  --color-glass: rgba(30, 41, 59, 0.75); /* Dark glass */

  /* Shadows & Effects */
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 12px 32px -4px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 15px 35px -10px rgba(14, 165, 233, 0.25);
  --glass-border: 1px solid rgba(71, 85, 105, 0.6);
}

[data-theme="dark"] .moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: none; }

[data-theme="dark"] .o-navbar__brand img {
  filter: none; /* En modo oscuro, se muestra el logo original (blanco) sin invertir */
}

[data-theme="dark"] .a-btn--outline:hover {
  border-color: var(--color-teal-500);
  color: var(--color-teal-500);
  background: rgba(14, 165, 233, 0.1);
  transform: translateY(-2px);
}

[data-theme="dark"] .a-input, 
[data-theme="dark"] .a-select, 
[data-theme="dark"] .a-textarea {
  background-color: #182133;
  border-color: #334155;
  color: var(--color-slate-800);
}

[data-theme="dark"] .a-input:focus, 
[data-theme="dark"] .a-select:focus, 
[data-theme="dark"] .a-textarea:focus {
  background-color: #0F172A;
  border-color: var(--color-teal-500);
}

[data-theme="dark"] .s-bg-alt {
  background-color: #151e31;
}

[data-theme="dark"] .m-card-center__details {
    background: #0F172A;
    border-color: #334155;
}

[data-theme="dark"] .o-404-code { opacity: 0.05; }

[data-theme="dark"] .o-page-container {
  background-color: #0B1120;
}

[data-theme="dark"] .o-entry-card {
  background: #0F172A;
  border-color: #1E293B;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .o-entry__title {
  color: #FFFFFF;
}

[data-theme="dark"] .o-entry__meta {
  color: #94A3B8;
}

[data-theme="dark"] .m-legal-summary-box {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  border-left-color: #38BDF8;
}

[data-theme="dark"] .m-legal-summary-box h3 {
  color: #FFFFFF;
}

[data-theme="dark"] .m-legal-summary-box p {
  color: #CBD5E1;
}

[data-theme="dark"] .o-entry__content {
  color: #CBD5E1;
}

[data-theme="dark"] .o-entry__content h2 {
  color: #FFFFFF;
  border-bottom-color: #1E293B;
}

[data-theme="dark"] .o-entry__content h3 {
  color: #F1F5F9;
}

[data-theme="dark"] .o-entry__content h4 {
  color: #E2E8F0;
}

[data-theme="dark"] .o-entry__content p,
[data-theme="dark"] .o-entry__content ul,
[data-theme="dark"] .o-entry__content ol,
[data-theme="dark"] .o-entry__content li {
  color: #CBD5E1;
}

[data-theme="dark"] .o-entry__content strong,
[data-theme="dark"] .o-entry__content b {
  color: #FFFFFF;
}

[data-theme="dark"] .o-entry__content a {
  color: #38BDF8;
}

[data-theme="dark"] .o-entry__content a:hover {
  color: #7DD3FC;
}

[data-theme="dark"] .o-entry__content blockquote {
  background: #182234;
  color: #E2E8F0;
  border-left-color: #38BDF8;
}

[data-theme="dark"] .o-entry__content table {
  border-color: #334155;
  background-color: #0B1120;
}

[data-theme="dark"] .o-entry__content th {
  background-color: #182234;
  color: #FFFFFF;
  border-bottom-color: #334155;
}

[data-theme="dark"] .o-entry__content td {
  border-bottom-color: #1E293B;
  color: #CBD5E1;
  background-color: #0B1120;
}

[data-theme="dark"] .o-entry__content tr:hover td {
  background-color: #182234;
}

[data-theme="dark"] .o-entry__content code {
  background: #0B1120;
  border-color: #334155;
  color: #38BDF8;
}

[data-theme="dark"] .o-entry__content hr {
  background: #334155;
}

[data-theme="dark"] .page-links a,
[data-theme="dark"] .page-links > span {
  background: #0F172A;
  color: #E2E8F0;
}

[data-theme="dark"] .o-entry__footer {
  border-color: #334155;
}

@media (max-width: 768px) {
  .o-page-container {
    padding: 2rem 0 3.5rem 0;
  }
  .o-entry-card {
    padding: 2rem 1.5rem;
    border-radius: 18px;
  }
}

[data-theme="dark"] .a-badge { background-color: rgba(14, 165, 233, 0.1); border-color: rgba(14, 165, 233, 0.2); }
[data-theme="dark"] .a-badge--emerald { background-color: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }

/* Suavizado durante el cambio de tema claro / oscuro */
html.is-theme-transitioning,
html.is-theme-transitioning *,
html.is-theme-transitioning *::before,
html.is-theme-transitioning *::after {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease !important;
}

/* Dark mode para la franja de estadísticas */
[data-theme="dark"] .m-stat-card {
  background: var(--color-surface-white);
  border-color: rgba(71, 85, 105, 0.6);
}

[data-theme="dark"] .m-stat-card__number-wrap {
  color: var(--color-slate-900);
}

[data-theme="dark"] .m-stat-card__label {
  color: var(--color-slate-500);
}

[data-theme="dark"] .m-stat-card__icon-wrap {
  background: rgba(14, 165, 233, 0.12);
  color: var(--color-teal-500);
}

[data-theme="dark"] .m-stat-card--highlight {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.12));
  border-color: rgba(14, 165, 233, 0.3);
}

[data-theme="dark"] .m-stat-card__title {
  color: var(--color-slate-900);
}


/* ==========================================================================
   PROCEDURE / SERVICE CARDS (Refactored)
   ========================================================================== */
.m-card-service {
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: var(--glass-border);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.m-card-service:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(14, 165, 233, 0.15),
              0 4px 12px rgba(15, 23, 42, 0.04);
  border-color: rgba(14, 165, 233, 0.4);
}

/* Icon Box con microinteracción */
.m-card-service .a-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-teal-50), #E0F2FE);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal-600);
  margin-bottom: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.35s ease,
              color 0.35s ease,
              box-shadow 0.35s ease;
}

.m-card-service:hover .a-icon-box {
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
  color: #ffffff;
  transform: scale(1.1) rotate(4deg);
  box-shadow: var(--shadow-glow);
}

/* Título */
.m-card-service__title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

/* Imagen Ilustrativa (si existe) */
.m-card-service__figure {
  margin: 0 0 1.25rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 190px;
}

.m-card-service__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.m-card-service:hover .m-card-service__figure img {
  transform: scale(1.04);
}

/* Descripción */
.m-card-service__desc {
  color: var(--color-slate-500);
  font-size: var(--font-sm);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Lista de características estilizada (Pills / Badges) */
.m-card-service__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1; /* Empuja el botón al fondo de la tarjeta de forma consistente */
}

.m-card-service__list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--color-slate-700);
  font-weight: 500;
}

/* Checkmark tipo cápsula */
.m-card-service__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background-color: var(--color-emerald-50);
  color: var(--color-emerald-500);
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Botón anclado abajo */
.m-card-service .a-btn {
  margin-top: auto;
  width: 100%;
}

/* Adaptación Dark Mode */
[data-theme="dark"] .m-card-service {
  background: var(--color-surface-white);
  border-color: rgba(71, 85, 105, 0.6);
}

[data-theme="dark"] .m-card-service .a-icon-box {
  background: rgba(14, 165, 233, 0.1);
  color: var(--color-teal-500);
}

[data-theme="dark"] .m-card-service:hover .a-icon-box {
  background: var(--color-teal-500);
  color: #ffffff;
}

[data-theme="dark"] .m-card-service__title {
  color: var(--color-slate-900);
}

[data-theme="dark"] .m-card-service__desc {
  color: var(--color-slate-600);
}

[data-theme="dark"] .m-card-service__list li {
  color: var(--color-slate-600);
}

[data-theme="dark"] .m-card-service__check {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   ORGANISMO: CENTROS DE ATENCIÓN (Modern & Glass UI)
   ========================================================================== */
.o-centers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* Tarjeta principal */
.m-card-center {
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: var(--glass-border);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  flex: 0 1 380px; /* No crecer, encoger si es necesario, con un ancho base de 380px */
}

.m-card-center:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: rgba(14, 165, 233, 0.35);
}

/* Imagen con zoom y proporción fija */
.m-card-center__image-wrapper {
  position: relative;
  margin: -1.75rem -1.75rem 1.5rem -1.75rem; /* Expande la imagen a los bordes superiores */
  overflow: hidden;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background-color: var(--color-bg-light);
}

.m-card-center__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-card-center:hover .m-card-center__image-wrapper img {
  transform: scale(1.06);
}

/* Insignia flotante opcional sobre la imagen */
.m-card-center__badge-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: var(--font-xs);
  font-family: var(--font-title);
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tipografía y encabezados */
.m-card-center__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.m-card-center__address {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--color-slate-500);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.m-card-center__address i {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--color-teal-500);
}

/* Caja de detalles (Horarios y Reserva) */
.m-card-center__details {
  background: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  font-size: 0.88rem;
  color: var(--color-slate-600);
  line-height: 1.6;
  border: 1px solid #E2E8F0;
  flex-grow: 1; /* Empuja las acciones al pie uniformemente */
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.m-card-center__details p {
  margin: 0;
}

.m-card-center__details-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-slate-900);
  margin-bottom: 0.25rem !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.m-card-center__details-title:not(:first-child) {
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px dashed #CBD5E1;
}

/* Contenedor de Botones de Acción */
.m-card-center__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: auto;
}

.m-card-center__actions .a-btn {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

/* Adaptación Dark Mode */
[data-theme="dark"] .m-card-center {
  background: var(--color-surface-white);
  border-color: rgba(71, 85, 105, 0.6);
}

[data-theme="dark"] .m-card-center__details {
  background: #0F172A;
  border-color: #334155;
  color: var(--color-slate-600);
}

[data-theme="dark"] .m-card-center__details-title {
  color: var(--color-slate-900);
}

[data-theme="dark"] .m-card-center__details-title:not(:first-child) {
  border-top-color: #334155;
}
/* ==========================================================================
   ORGANISMO: TESTIMONIOS (Corporate Medical Social Proof & Glass Cards)
   ========================================================================== */

/* Barra de Resumen Social y Calificación Global */
.o-testimonials-summary {
  background: var(--color-surface-white);
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.8rem;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto 3.5rem auto;
  flex-wrap: wrap;
}

.m-summary-score {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.m-summary-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.m-summary-number {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-slate-900);
}

.m-summary-divider {
  width: 1px;
  height: 24px;
  background-color: #CBD5E1;
}

.m-summary-text {
  display: flex;
  flex-direction: column;
}

.m-summary-text strong {
  font-family: var(--font-title);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.2;
}

.m-summary-text span {
  font-size: 0.74rem;
  color: var(--color-slate-500);
}

.m-summary-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.m-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  background: #ECFDF5;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid #A7F3D0;
}

/* Slider Track & Container */
.o-testimonial-slider {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  min-height: 320px;
  padding: 0 1rem;
}

.o-testimonial-slider__track {
  position: relative;
  width: 100%;
  min-height: 300px;
}

.o-testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(12px) scale(0.98);
}

.o-testimonial-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Tarjeta moderna del testimonio */
.m-card-testimonial {
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.m-card-testimonial__watermark {
  position: absolute;
  top: 25px;
  right: 35px;
  color: var(--color-teal-500);
  opacity: 0.08;
  pointer-events: none;
  line-height: 1;
}

/* Encabezado con estrellas y badges */
.m-card-testimonial__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.m-card-testimonial__stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.m-card-testimonial__badge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.m-card-testimonial__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: #047857;
  background: #ECFDF5;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid #A7F3D0;
}

/* Cita del paciente */
.m-card-testimonial__quote {
  color: var(--color-slate-700);
  font-size: 1.12rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.m-card-testimonial__quote p {
  margin: 0;
}

/* Footer con Avatar y Autor */
.m-card-testimonial__footer {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  border-top: 1px dashed #E2E8F0;
  padding-top: 1.5rem;
  margin-top: auto;
}

.m-card-testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
  color: #FFFFFF;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
  flex-shrink: 0;
  border: 2px solid #FFFFFF;
}

.m-card-testimonial__author-info {
  display: flex;
  flex-direction: column;
}

.m-card-testimonial__author {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--color-slate-900);
  font-size: 1rem;
  line-height: 1.25;
}

.m-card-testimonial__patient-tag {
  font-size: 0.78rem;
  color: var(--color-slate-500);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.m-card-testimonial__patient-tag svg {
  color: var(--color-teal-600);
}

/* Botones de navegación (Flechas Glass) */
.o-testimonial-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--color-slate-700);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.o-testimonial-slider__arrow:hover {
  background: var(--color-teal-500);
  color: #FFFFFF;
  border-color: var(--color-teal-500);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 28px -4px rgba(14, 165, 233, 0.35);
}

.o-testimonial-slider__arrow--prev { left: -26px; }
.o-testimonial-slider__arrow--next { right: -26px; }

/* Dots de paginación */
.o-testimonial-slider__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 2.25rem;
}

.o-testimonial-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #CBD5E1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.o-testimonial-slider__dot:hover {
  background: var(--color-teal-500);
}

.o-testimonial-slider__dot.is-active {
  background: linear-gradient(90deg, var(--color-teal-500), var(--color-emerald-500));
  width: 28px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

@media (max-width: 900px) {
  .o-testimonial-slider__arrow {
    display: none;
  }
  .m-card-testimonial {
    padding: 2.2rem 1.8rem;
  }
  .o-testimonials-summary {
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    gap: 1rem;
  }
  .m-summary-divider {
    display: none;
  }
}

/* Dark Mode para Testimonios */
[data-theme="dark"] .o-testimonials-summary {
  background: #0B1120;
  border-color: #1E293B;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .m-summary-number,
[data-theme="dark"] .m-summary-text strong {
  color: #FFFFFF;
}

[data-theme="dark"] .m-summary-text span {
  color: #94A3B8;
}

[data-theme="dark"] .m-summary-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .m-card-testimonial {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(71, 85, 105, 0.7);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .m-card-testimonial__watermark {
  color: #38BDF8;
  opacity: 0.12;
}

[data-theme="dark"] .m-card-testimonial__verified {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .m-card-testimonial__quote {
  color: #CBD5E1;
}

[data-theme="dark"] .m-card-testimonial__footer {
  border-top-color: #334155;
}

[data-theme="dark"] .m-card-testimonial__avatar {
  border-color: #1E293B;
}

[data-theme="dark"] .m-card-testimonial__author {
  color: #FFFFFF;
}

[data-theme="dark"] .m-card-testimonial__patient-tag {
  color: #94A3B8;
}

[data-theme="dark"] .m-card-testimonial__patient-tag svg {
  color: #38BDF8;
}

[data-theme="dark"] .o-testimonial-slider__arrow {
  background: rgba(30, 41, 59, 0.85);
  border-color: #334155;
  color: #E2E8F0;
}

[data-theme="dark"] .o-testimonial-slider__arrow:hover {
  background: var(--color-teal-500);
  border-color: var(--color-teal-500);
  color: #FFFFFF;
}

[data-theme="dark"] .o-testimonial-slider__dot {
  background: #475569;
}

[data-theme="dark"] .o-testimonial-slider__dot.is-active {
  background: linear-gradient(90deg, #38BDF8, #34D399);
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */
.widget-area {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

.widget-area__inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

@media (min-width: 992px) {
  .widget-area__inner {
    position: sticky;
    top: 5.5rem;
    z-index: 10;
  }
}

/* Tarjeta de cada Widget */
.widget-area .widget,
.widget-area .widget_block {
  background: var(--color-surface-white);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-normal);
  box-sizing: border-box;
  overflow: hidden;
}

.widget-area .widget:hover,
.widget-area .widget_block:hover {
  box-shadow: var(--shadow-card);
  border-color: rgba(14, 165, 233, 0.3);
}

/* Títulos de los Widgets */
.widget-area .widget-title,
.widget-area .widgettitle,
.widget-area .wp-block-heading {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--color-teal-50);
  position: relative;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.widget-area .widget-title::after,
.widget-area .widgettitle::after,
.widget-area .wp-block-heading::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-teal-500);
  border-radius: var(--radius-pill);
}

/* Listas */
.widget-area ul,
.widget-area ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-area ul li,
.widget-area ol li {
  font-family: var(--font-body);
  font-size: var(--font-sm);
  color: var(--color-slate-600);
  padding: 0.65rem 0;
  border-bottom: 1px dashed #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  line-height: 1.4;
}

.widget-area ul li:last-child,
.widget-area ol li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-area ul li:first-child,
.widget-area ol li:first-child {
  padding-top: 0;
}

.widget-area ul li a,
.widget-area ol li a {
  color: var(--color-slate-800);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.widget-area ul li a:hover,
.widget-area ol li a:hover {
  color: var(--color-teal-500);
  transform: translateX(4px);
}

/* Contador de artículos */
.widget-area .post-count,
.widget-area ul li span,
.widget-area .wp-block-categories__post-count {
  font-family: var(--font-title);
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--color-teal-600);
  background-color: var(--color-teal-50);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Formulario de Búsqueda */
.widget-area .search-form,
.widget-area .wp-block-search__inside-wrapper {
  position: relative;
  display: flex;
  width: 100%;
}

.widget-area .search-form label,
.widget-area .wp-block-search__label {
  width: 100%;
  margin: 0;
  display: block;
}

.widget-area .search-field,
.widget-area .wp-block-search__input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 3rem;
  background-color: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--font-sm);
  color: var(--color-slate-900);
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.widget-area .search-field:focus,
.widget-area .wp-block-search__input:focus {
  border-color: var(--color-teal-500);
  background-color: var(--color-surface-white);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.widget-area .search-submit,
.widget-area .wp-block-search__button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-teal-500);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-title);
  font-size: var(--font-xs);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.widget-area .search-submit:hover,
.widget-area .wp-block-search__button:hover {
  background-color: var(--color-teal-600);
}

/* Nube de Etiquetas */
.widget-area .tagcloud,
.widget-area .wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.widget-area .tagcloud a,
.widget-area .wp-block-tag-cloud a {
  font-family: var(--font-title);
  font-size: var(--font-xs);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-slate-600);
  background-color: #F1F5F9;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.widget-area .tagcloud a:hover,
.widget-area .wp-block-tag-cloud a:hover {
  color: var(--color-teal-600);
  background-color: var(--color-teal-50);
  border-color: rgba(14, 165, 233, 0.2);
  transform: translateY(-1px);
}

/* Dark Mode Sidebar */
[data-theme="dark"] .widget-area .widget,
[data-theme="dark"] .widget-area .widget_block {
  background: var(--color-slate-800);
  border-color: rgba(71, 85, 105, 0.6);
}

[data-theme="dark"] .widget-area .widget-title,
[data-theme="dark"] .widget-area .widgettitle,
[data-theme="dark"] .widget-area .wp-block-heading {
  color: #F1F5F9;
  border-bottom-color: #334155;
}

[data-theme="dark"] .widget-area ul li,
[data-theme="dark"] .widget-area ol li {
  border-bottom-color: #334155;
  color: #94A3B8;
}

[data-theme="dark"] .widget-area ul li a,
[data-theme="dark"] .widget-area ol li a {
  color: #E2E8F0;
}

[data-theme="dark"] .widget-area ul li a:hover,
[data-theme="dark"] .widget-area ol li a:hover {
  color: var(--color-teal-500);
}

[data-theme="dark"] .widget-area .post-count,
[data-theme="dark"] .widget-area ul li span,
[data-theme="dark"] .widget-area .wp-block-categories__post-count {
  background-color: rgba(14, 165, 233, 0.1);
  color: var(--color-teal-500);
  border-color: rgba(14, 165, 233, 0.2);
}

[data-theme="dark"] .widget-area .search-field,
[data-theme="dark"] .widget-area .wp-block-search__input {
  background-color: #182133;
  border-color: #334155;
  color: #E2E8F0;
}

[data-theme="dark"] .widget-area .search-field:focus,
[data-theme="dark"] .widget-area .wp-block-search__input:focus {
  background-color: var(--color-slate-900);
  border-color: var(--color-teal-500);
}

[data-theme="dark"] .widget-area .tagcloud a,
[data-theme="dark"] .widget-area .wp-block-tag-cloud a {
  background-color: #182133;
  color: #94A3B8;
  border-color: #334155;
}

[data-theme="dark"] .widget-area .tagcloud a:hover,
[data-theme="dark"] .widget-area .wp-block-tag-cloud a:hover {
  background-color: rgba(14, 165, 233, 0.1);
  color: var(--color-teal-500);
  border-color: rgba(14, 165, 233, 0.2);
}

/* ==========================================================================
   LEY 21.719: PRIVACIDAD, CMP, COOKIE BANNER & CANAL ARCO-P
   ========================================================================== */

/* Botón Ghost y Botón Link */
.a-btn--ghost {
  background: transparent;
  border: 1px solid #CBD5E1;
  color: var(--color-slate-700);
  padding: 0.85rem 1.4rem;
}

.a-btn--ghost:hover {
  background: var(--color-bg-light);
  border-color: var(--color-teal-500);
  color: var(--color-teal-600);
}

.a-btn-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.a-btn-link:hover {
  opacity: 1;
  color: var(--color-teal-500);
}

/* 1. Cookie Banner (CMP Flotante Glassmorphism) */
.o-cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 9999;
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: var(--glass-border);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25);
  padding: 1.75rem 2rem;
  animation: cookieSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cookieSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.o-cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0;
}

.o-cookie-banner__content {
  flex: 1;
}

.o-cookie-banner__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.o-cookie-banner__title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin: 0;
}

.o-cookie-banner__desc {
  font-size: var(--font-sm);
  color: var(--color-slate-600);
  line-height: 1.55;
  margin: 0;
}

.o-cookie-link {
  color: var(--color-teal-600);
  text-decoration: underline;
  font-weight: 600;
}

.o-cookie-link:hover {
  color: var(--color-teal-500);
}

.o-cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* 2. Modal de Preferencias de Cookies */
.o-cookie-modal__content {
  max-width: 680px;
  padding: 2.5rem;
}

.o-cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.o-cookie-category {
  background: var(--color-bg-light);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  transition: border-color 0.2s ease;
}

.o-cookie-category:hover {
  border-color: rgba(14, 165, 233, 0.3);
}

.o-cookie-category__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.o-cookie-category__title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin: 0 0 0.2rem 0;
}

.o-cookie-category__status {
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--color-emerald-500);
}

.o-cookie-category__badge {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--color-teal-600);
  background: var(--color-teal-50);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.o-cookie-category__desc {
  font-size: 0.85rem;
  color: var(--color-slate-600);
  line-height: 1.5;
  margin: 0;
}

.o-cookie-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px dashed #CBD5E1;
  padding-top: 1.5rem;
  flex-wrap: wrap;
}

.o-cookie-modal__legal-info {
  font-size: var(--font-xs);
  color: var(--color-slate-500);
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

/* 3. iOS Style Toggle Switches */
.m-toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.m-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.m-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #CBD5E1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 9999px;
}

.m-toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.m-toggle-switch input:checked + .m-toggle-slider {
  background-color: var(--color-teal-500);
}

.m-toggle-switch input:checked + .m-toggle-slider::before {
  transform: translateX(22px);
}

.m-toggle-slider--locked {
  background-color: var(--color-emerald-500) !important;
  cursor: not-allowed;
  opacity: 0.85;
}

.m-toggle-slider--locked::before {
  transform: translateX(22px);
}

/* 4. Botón Flotante Re-Trigger de Privacidad */
.a-cookie-trigger {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 900;
  background: var(--color-surface-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.15rem;
  font-family: var(--font-title);
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--color-slate-800);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.a-cookie-trigger svg {
  color: var(--color-teal-500);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.a-cookie-trigger:hover {
  transform: translateY(-2px);
  color: var(--color-teal-600);
  border-color: var(--color-teal-500);
  box-shadow: 0 12px 28px -4px rgba(14, 165, 233, 0.25);
}

.a-cookie-trigger:hover svg {
  transform: scale(1.12);
}

/* 5. Primera Capa Informativa para Formularios (Modal & Trigger) */
.m-legal-notice-trigger-wrap {
  margin-top: 1.25rem;
}

.m-legal-notice-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-md);
  color: var(--color-slate-700);
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.m-legal-notice-trigger:hover {
  background: var(--color-teal-50);
  border-color: var(--color-teal-500);
  color: var(--color-teal-600);
  transform: translateY(-1px);
}

.m-legal-notice-trigger svg {
  color: var(--color-teal-500);
  flex-shrink: 0;
}

.m-legal-notice-trigger__badge {
  font-size: 0.72rem;
  color: var(--color-teal-600);
  font-weight: 700;
  flex-shrink: 0;
}

/* Modal Body & Items */
.m-legal-notice-modal__content {
  max-width: 640px;
  padding: 2.2rem 2.4rem;
}

.m-legal-notice-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.m-legal-notice-modal__item {
  background: var(--color-bg-light);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
}

.m-legal-notice-modal__item strong {
  color: var(--color-slate-900);
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-title);
  font-size: 0.88rem;
}

.m-legal-notice-modal__item p {
  color: var(--color-slate-600);
  margin: 0;
  line-height: 1.5;
}

.m-legal-notice-modal__footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.m-legal-notice-modal__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-xs);
  font-weight: 600;
}

.m-legal-notice-modal__links a {
  color: var(--color-teal-600);
  text-decoration: underline;
}

/* 6. Formulario y Cuadro Resumen ARCO-P */
.m-legal-summary-box {
  background: linear-gradient(135deg, var(--color-teal-50), #E0F2FE);
  border-left: 4px solid var(--color-teal-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.2rem;
}

.m-legal-summary-box h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin: 0 0 0.5rem 0;
}

.m-legal-summary-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-slate-700);
}

.m-arco-alert {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--font-sm);
  font-weight: 600;
}

.m-arco-alert--success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.m-arco-alert--error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.m-arco-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.m-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--color-slate-700);
  cursor: pointer;
  line-height: 1.5;
}

.m-checkbox-label input {
  margin-top: 0.2rem;
}

.o-footer__legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
  font-size: var(--font-xs);
  color: var(--color-slate-400);
}

.o-footer__legal-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.o-footer__legal-links a:hover {
  color: var(--color-teal-500);
  text-decoration: underline;
}

/* Responsivo para Ley 21.719 */
@media (max-width: 991px) {
  .o-cookie-banner {
    bottom: 80px; /* Arriba del bottom nav móvil */
    left: 1rem;
    right: 1rem;
    padding: 1.25rem 1.4rem;
  }

  .o-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .o-cookie-banner__actions {
    flex-direction: column;
    width: 100%;
  }

  .o-cookie-banner__actions .a-btn {
    width: 100%;
  }

  .a-cookie-trigger {
    bottom: 80px;
    left: 1rem;
  }

  .m-arco-form__grid {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode para Ley 21.719 y Componentes de Privacidad */
[data-theme="dark"] .o-cookie-banner {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .o-cookie-banner__title {
  color: #FFFFFF;
}

[data-theme="dark"] .o-cookie-banner__desc {
  color: #CBD5E1;
}

[data-theme="dark"] .o-cookie-category {
  background: #0B1120;
  border-color: #334155;
}

[data-theme="dark"] .o-cookie-category__title {
  color: #FFFFFF;
}

[data-theme="dark"] .o-cookie-category__desc {
  color: #94A3B8;
}

[data-theme="dark"] .a-btn--ghost {
  border-color: #334155;
  color: #CBD5E1;
}

[data-theme="dark"] .a-btn--ghost:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: #38BDF8;
  color: #38BDF8;
}

[data-theme="dark"] .a-cookie-trigger {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 12px rgba(14, 165, 233, 0.18);
}

[data-theme="dark"] .a-cookie-trigger svg {
  color: #38BDF8;
}

[data-theme="dark"] .a-cookie-trigger:hover {
  background: #0B1120;
  border-color: #38BDF8;
  color: #38BDF8;
  box-shadow: 0 12px 28px -4px rgba(14, 165, 233, 0.45);
}

[data-theme="dark"] .m-legal-notice-trigger {
  background: #0F172A;
  border-color: #334155;
  color: #CBD5E1;
}

[data-theme="dark"] .m-legal-notice-trigger:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: #38BDF8;
  color: #38BDF8;
}

[data-theme="dark"] .m-legal-notice-modal__content {
  background: #0F172A;
  border: 1px solid #1E293B;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .m-legal-notice-modal__item {
  background: #0B1120;
  border-color: #334155;
}

[data-theme="dark"] .m-legal-notice-modal__item strong {
  color: #FFFFFF;
}

[data-theme="dark"] .m-legal-notice-modal__item p {
  color: #CBD5E1;
}

[data-theme="dark"] .m-legal-notice-modal__footer {
  border-top-color: #334155;
}

[data-theme="dark"] .m-legal-notice-modal__links a {
  color: #38BDF8;
}

[data-theme="dark"] .m-legal-summary-box {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  border-left-color: #38BDF8;
}

[data-theme="dark"] .m-legal-summary-box h3 {
  color: #FFFFFF;
}

[data-theme="dark"] .m-legal-summary-box p {
  color: #CBD5E1;
}

/* ==========================================================================
   BLOG SINGLE POST, POST NAVIGATION & PROFESSIONAL COMMENTS CARD
   ========================================================================== */

/* 1. Page Container & Single Entry Card */
.o-page-container {
  padding: 3.5rem 0 5rem 0;
}

.o-entry-card {
  background: var(--color-surface-white);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 3rem;
  margin-bottom: 2.5rem;
  transition: box-shadow 0.3s ease;
}

.o-entry__header {
  margin-bottom: 2rem;
}

.o-entry__title {
  font-family: var(--font-title);
  font-size: var(--font-h1);
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.85rem 0;
}

.o-entry__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--font-sm);
  color: var(--color-slate-500);
  font-weight: 500;
}

.o-entry__thumbnail {
  margin: 0 0 2.2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.o-entry__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 480px;
}

.o-entry__content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-slate-700);
}

.o-entry__content h2,
.o-entry__content h3,
.o-entry__content h4 {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--color-slate-900);
  margin: 2.2rem 0 1rem 0;
  letter-spacing: -0.01em;
}

.o-entry__content h2 {
  font-size: 1.6rem;
  border-bottom: 2px solid var(--color-teal-50);
  padding-bottom: 0.5rem;
}

.o-entry__content h3 {
  font-size: 1.3rem;
}

.o-entry__content p {
  margin-bottom: 1.4rem;
}

.o-entry__content ul,
.o-entry__content ol {
  margin: 0 0 1.5rem 1.5rem;
}

.o-entry__content li {
  margin-bottom: 0.5rem;
}

.o-entry__content blockquote {
  border-left: 4px solid var(--color-teal-500);
  background: var(--color-bg-light);
  padding: 1.25rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-slate-800);
  margin: 2rem 0;
}

.o-entry__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #E2E8F0;
}

.tags-links {
  font-size: var(--font-sm);
  color: var(--color-slate-500);
}

.tags-links a {
  display: inline-block;
  background: var(--color-bg-light);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.75rem;
  margin: 0.2rem 0.2rem;
  color: var(--color-slate-700);
  text-decoration: none;
  font-size: var(--font-xs);
  font-weight: 600;
  transition: all 0.2s ease;
}

.tags-links a:hover {
  background: var(--color-teal-50);
  border-color: var(--color-teal-500);
  color: var(--color-teal-600);
}

/* 2. Post Navigation Cards */
.post-navigation {
  margin-bottom: 2.5rem;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  background: var(--color-surface-white);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
  transform: translateY(-3px);
  border-color: var(--color-teal-500);
  box-shadow: var(--shadow-card);
}

.post-navigation a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-navigation .nav-subtitle {
  font-family: var(--font-title);
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-teal-600);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.post-navigation .nav-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-slate-900);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.post-navigation a:hover .nav-title {
  color: var(--color-teal-600);
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation .nav-next .nav-subtitle {
  justify-content: flex-end;
}

/* 3. Professional Comments Card (o-comments-card) */
.o-comments-card {
  background: var(--color-surface-white);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 3rem;
  margin-top: 2rem;
  position: relative;
}

.o-comments-header {
  margin-bottom: 2.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #E2E8F0;
}

.comments-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin: 0.6rem 0 0 0;
  letter-spacing: -0.01em;
}

.comments-title span {
  color: var(--color-teal-600);
}

/* Comments List */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
}

.comment-list .comment {
  margin-bottom: 2rem;
}

.comment-body {
  background: var(--color-bg-light);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-body:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: var(--shadow-subtle);
}

/* Author byline & Avatar */
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.comment-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-surface-white);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.comment-author .fn {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-slate-900);
  font-style: normal;
}

.comment-author .fn a {
  color: inherit;
  text-decoration: none;
}

.comment-author .fn a:hover {
  color: var(--color-teal-600);
}

.bypostauthor > .comment-body .comment-author .fn::after {
  content: "Médico / Autor";
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-600));
  color: white;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  vertical-align: middle;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.comment-metadata {
  font-size: var(--font-xs);
  color: var(--color-slate-500);
}

.comment-metadata a {
  color: inherit;
  text-decoration: none;
}

.comment-metadata a:hover {
  color: var(--color-teal-600);
  text-decoration: underline;
}

.comment-content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-slate-700);
}

.comment-content p:last-child {
  margin-bottom: 0;
}

/* Reply Link Action Button */
.comment .reply {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-title);
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--color-teal-600);
  background: var(--color-teal-50);
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
}

.comment-reply-link:hover {
  background: var(--color-teal-500);
  color: white;
  border-color: var(--color-teal-500);
  transform: translateY(-1px);
}

/* Nested Comments (Replies / Children) */
.comment-list .children {
  list-style: none;
  padding-left: 2rem;
  margin-top: 1.25rem;
  border-left: 3px solid rgba(14, 165, 233, 0.3);
}

.comment-list .children .comment {
  margin-bottom: 1.25rem;
}

.comment-list .children .comment-body {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

/* Closed Comments & Alert */
.m-comments-closed {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-bg-light);
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: var(--font-sm);
  color: var(--color-slate-600);
  margin-bottom: 2rem;
}

.m-comments-closed svg {
  color: var(--color-slate-400);
  flex-shrink: 0;
}

.m-comment-alert {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  margin-bottom: 1.5rem;
}

.m-comment-alert a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.m-comment-logged {
  font-size: var(--font-sm);
  color: var(--color-slate-600);
  margin-bottom: 1.25rem;
}

.m-comment-logged a {
  color: var(--color-teal-600);
  font-weight: 600;
  text-decoration: underline;
}

/* 4. Professional Comment Form (comment-respond) */
.comment-respond {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #E2E8F0;
}

.comment-reply-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.comment-reply-title svg {
  color: var(--color-teal-500);
}

#cancel-comment-reply-link {
  font-size: var(--font-xs);
  font-weight: 600;
  color: #EF4444;
  margin-left: auto;
  text-decoration: underline;
}

.comment-notes {
  font-size: var(--font-xs);
  color: var(--color-slate-500);
  margin-bottom: 1.5rem;
}

/* Comment Form Controls */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
  display: flex;
  flex-direction: column;
}

/* Grid layout for Author, Email, URL */
@media (min-width: 768px) {
  .comment-form:has(.comment-form-author) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .comment-form-comment,
  .comment-notes,
  .comment-form-cookies-consent,
  .m-comment-privacy-notice,
  .form-submit,
  .logged-in-as {
    grid-column: 1 / -1;
  }

  .comment-form-url {
    grid-column: 1 / -1;
  }
}

.m-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.m-form-group__label {
  font-family: var(--font-title);
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--color-slate-700);
  letter-spacing: 0.01em;
}

.a-input,
.a-select,
.a-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-slate-800);
  background: var(--color-surface-white);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.a-input:focus,
.a-select:focus,
.a-textarea:focus {
  border-color: var(--color-teal-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
  background: #FFFFFF;
}

.a-textarea {
  resize: vertical;
  min-height: 120px;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--color-slate-600);
  line-height: 1.45;
  margin-top: 0.25rem;
}

.comment-form-cookies-consent input {
  margin-top: 0.25rem;
}

.m-comment-privacy-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-light);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.95rem;
  font-size: var(--font-xs);
  color: var(--color-slate-600);
}

.m-comment-privacy-notice svg {
  color: var(--color-teal-500);
  flex-shrink: 0;
}

.form-submit {
  margin-top: 0.5rem;
}

.form-submit .a-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsivo para comentarios */
@media (max-width: 767px) {
  .o-entry-card,
  .o-comments-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

  .post-navigation .nav-next .nav-subtitle {
    justify-content: flex-start;
  }

  .comment-list .children {
    padding-left: 1rem;
  }
}

/* Dark Mode para Single Post, Páginas y Comentarios */
[data-theme="dark"] .o-entry-card,
[data-theme="dark"] .o-comments-card {
  background: #0F172A;
  border-color: #1E293B;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .o-entry__title,
[data-theme="dark"] .comments-title,
[data-theme="dark"] .comment-reply-title,
[data-theme="dark"] .comment-author .fn,
[data-theme="dark"] .post-navigation .nav-title,
[data-theme="dark"] .o-entry__content h2,
[data-theme="dark"] .o-entry__content h3,
[data-theme="dark"] .o-entry__content h4 {
  color: #FFFFFF;
}

[data-theme="dark"] .o-entry__content {
  color: #CBD5E1;
}

[data-theme="dark"] .o-entry__content blockquote {
  background: #182234;
  color: #E2E8F0;
  border-left-color: #38BDF8;
}

[data-theme="dark"] .post-navigation .nav-previous,
[data-theme="dark"] .post-navigation .nav-next {
  background: #0F172A;
  border-color: #1E293B;
}

[data-theme="dark"] .tags-links a {
  background: #0F172A;
  border-color: #334155;
  color: #CBD5E1;
}

[data-theme="dark"] .comment-body {
  background: #0B1120;
  border-color: #334155;
}

[data-theme="dark"] .comment-list .children .comment-body {
  background: #182133;
  border-color: #334155;
}

[data-theme="dark"] .comment-content {
  color: #CBD5E1;
}

[data-theme="dark"] .a-input,
[data-theme="dark"] .a-select,
[data-theme="dark"] .a-textarea {
  background: #0B1120;
  border-color: #334155;
  color: #F8FAFC;
}

[data-theme="dark"] .a-input:focus,
[data-theme="dark"] .a-select:focus,
[data-theme="dark"] .a-textarea:focus {
  background: #070B14;
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

[data-theme="dark"] .m-comment-privacy-notice {
  background: #0B1120;
  border-color: #334155;
  color: #94A3B8;
}

[data-theme="dark"] .m-form-group__label {
  color: #F1F5F9;
}

[data-theme="dark"] .m-comments-closed {
  background: #0F172A;
  border-color: #334155;
  color: #94A3B8;
}

[data-theme="dark"] .o-comments-header,
[data-theme="dark"] .comment-respond,
[data-theme="dark"] .o-entry__footer {
  border-color: #334155;
}

/* ==========================================================================
   CORPORATE MEDICAL: Responsive & Dark Mode Adaptation
   ========================================================================== */
@media (max-width: 991px) {
  .o-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .o-about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .o-about__pillars-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .o-about__actions {
    justify-content: center;
  }

  .o-protocol-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .o-trust-grid {
    grid-template-columns: 1fr;
  }

  .o-about__floating-badge {
    position: static;
    margin-top: 1rem;
    border-radius: var(--radius-md);
  }
}

/* Dark Mode para Componentes Corporativos Médicos */
[data-theme="dark"] .o-trust-bar {
  background: #0B1120;
  border-bottom-color: #1E293B;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .m-trust-item__title {
  color: #FFFFFF;
}

[data-theme="dark"] .m-trust-item__desc {
  color: #94A3B8;
}

[data-theme="dark"] .m-trust-item__icon-wrap {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38BDF8;
}

[data-theme="dark"] .o-about__img-wrapper {
  border-color: rgba(71, 85, 105, 0.7);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .o-about__media-backdrop {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(16, 185, 129, 0.18));
  border-color: rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .o-about__floating-badge {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(56, 189, 248, 0.3);
  color: #FFFFFF;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .o-about__floating-badge strong {
  color: #FFFFFF;
}

[data-theme="dark"] .o-about__floating-badge span {
  color: #94A3B8;
}

[data-theme="dark"] .o-about__title {
  color: #FFFFFF;
}

[data-theme="dark"] .o-about__lead {
  color: #94A3B8;
}

[data-theme="dark"] .m-about-pillar {
  background: var(--color-surface-white);
  border-color: rgba(71, 85, 105, 0.6);
}

[data-theme="dark"] .m-about-pillar__text strong {
  color: #FFFFFF;
}

[data-theme="dark"] .m-about-pillar__text p {
  color: #94A3B8;
}

[data-theme="dark"] .m-about-pillar__icon {
  background: rgba(14, 165, 233, 0.15);
  color: #38BDF8;
}

[data-theme="dark"] .o-protocol-section {
  background: #0B1120;
}

[data-theme="dark"] .m-protocol-card {
  background: var(--color-surface-white);
  border-color: rgba(71, 85, 105, 0.6);
}

[data-theme="dark"] .m-protocol-card--highlight {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border-color: rgba(56, 189, 248, 0.4);
}

[data-theme="dark"] .m-protocol-card__title {
  color: #FFFFFF;
}

[data-theme="dark"] .m-protocol-card__desc {
  color: #94A3B8;
}

[data-theme="dark"] .m-protocol-card__list {
  border-top-color: #334155;
}

[data-theme="dark"] .m-protocol-card__list li {
  color: #E2E8F0;
}

[data-theme="dark"] .m-protocol-card__icon-wrap {
  background: rgba(14, 165, 233, 0.15);
  color: #38BDF8;
}

[data-theme="dark"] .m-convenio-item {
  background: var(--color-surface-white);
  border-color: rgba(71, 85, 105, 0.6);
}

[data-theme="dark"] .m-convenio-item strong {
  color: #FFFFFF;
}

[data-theme="dark"] .m-convenio-item p {
  color: #94A3B8;
}

[data-theme="dark"] .m-channel-pill {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38BDF8;
}

[data-theme="dark"] .m-form-container-title {
  color: #FFFFFF;
}

[data-theme="dark"] .m-form-container-subtitle {
  color: #94A3B8;
}

[data-theme="dark"] .o-contact-title {
  color: #FFFFFF;
}

[data-theme="dark"] .o-contact-desc {
  color: #94A3B8;
}

/* ==========================================================================
   ORGANISM: FAQ SECTION & ACCORDION (LEY & CIRUGÍAS)
   ========================================================================== */
.o-faq-section {
  background-color: var(--color-bg-light);
}

.o-faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.m-faq-item {
  background: var(--color-surface-white);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-faq-item:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: var(--shadow-glow);
}

.m-faq-item.is-active {
  border-color: var(--color-teal-500);
  box-shadow: 0 12px 30px -5px rgba(14, 165, 233, 0.15);
}

.m-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.65rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-slate-900);
  transition: color 0.25s ease;
}

.m-faq-question:hover {
  color: var(--color-teal-600);
}

.m-faq-question__text {
  flex: 1;
}

.m-faq-question__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-600);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease;
}

.m-faq-item.is-active .m-faq-question__icon {
  transform: rotate(180deg);
  background: var(--color-teal-500);
  color: #FFFFFF;
}

.m-faq-answer {
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-faq-answer__inner {
  padding: 0 1.65rem 1.4rem 1.65rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-slate-600);
}

.m-faq-answer__inner p {
  margin: 0;
}

/* ==========================================================================
   ORGANISM: BLOG SHOWCASE & EDITORIAL CARDS
   ========================================================================== */
.o-blog-section {
  background-color: var(--color-surface-white);
}

.o-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.m-card-post {
  background: var(--color-surface-white);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.m-card-post:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(14, 165, 233, 0.4);
}

.m-card-post__thumb-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #F1F5F9;
  overflow: hidden;
  text-decoration: none;
}

.m-card-post__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.m-card-post:hover .m-card-post__img {
  transform: scale(1.06);
}

.m-card-post__thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}

.m-card-post__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.m-card-post__body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.m-card-post__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--font-xs);
  color: var(--color-slate-500);
  margin-bottom: 0.75rem;
}

.m-card-post__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.m-card-post__title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.01em;
}

.m-card-post__title a {
  color: var(--color-slate-900);
  text-decoration: none;
  transition: color 0.2s ease;
}

.m-card-post__title a:hover {
  color: var(--color-teal-500);
}

.m-card-post__excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-slate-600);
  margin: 0 0 1.25rem 0;
  flex: 1;
}

.m-card-post__footer {
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-card-post__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-teal-600);
  text-decoration: none;
  transition: all 0.25s ease;
}

.m-card-post__read-more:hover {
  color: var(--color-teal-500);
  transform: translateX(4px);
}

.m-blog-empty-box {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-bg-light);
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-lg);
  color: var(--color-slate-500);
}

.m-blog-empty-box svg {
  margin-bottom: 1rem;
  color: var(--color-teal-500);
}

/* ==========================================================================
   ORGANISM: CTA PRE-FOOTER BANNER
   ========================================================================== */
.o-cta-banner-wrap {
  padding: 2.5rem 0 5rem 0;
}

.o-cta-banner {
  position: relative;
  background: linear-gradient(135deg, #0B1120 0%, #0F172A 50%, #0369A1 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  color: #FFFFFF;
  box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.28);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.o-cta-banner__orb {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.45) 0%, rgba(14, 165, 233, 0) 70%);
  top: -80px;
  right: -80px;
  pointer-events: none;
  filter: blur(40px);
}

.o-cta-banner__content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.o-cta-banner__title {
  font-family: var(--font-title);
  font-size: 2.15rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.18;
  margin: 0.85rem 0;
  letter-spacing: -0.02em;
}

.o-cta-banner__desc {
  color: #CBD5E1;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.o-cta-banner__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.a-btn--whatsapp {
  background: #25D366;
  color: #FFFFFF !important;
  border: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.a-btn--whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.45);
}

.a-btn--glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.a-btn--glass:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.a-btn--lg {
  padding: 0.85rem 1.65rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   ORGANISM: COMPACT FOOTER (COPYRIGHT & LEY 21.719)
   ========================================================================== */
.o-footer {
  background: #0B1120;
  color: #94A3B8;
  padding: 2.25rem 0;
  border-top: 1px solid #1E293B;
}

.o-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: var(--font-xs);
}

.o-footer__copyright {
  color: #64748B;
  margin: 0;
}

.o-footer__legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: var(--font-xs);
}

.o-footer__legal-links a,
.o-footer__legal-links button {
  color: #94A3B8;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.o-footer__legal-links a:hover,
.o-footer__legal-links button:hover {
  color: #38BDF8;
}

.o-footer__credit {
  color: #64748B;
  margin: 0;
}

.o-footer__credit a {
  color: #94A3B8;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.o-footer__credit a:hover {
  color: #38BDF8;
}

/* ==========================================================================
   PAGE HEADERS, PAGINATION & CONTACT TEMPLATE CARDS
   ========================================================================== */
.o-page-header {
  margin-bottom: 3.5rem;
}

.o-page-header__title {
  font-size: 2.35rem;
  margin: 0.85rem 0;
}

.o-page-header__subtitle {
  color: var(--color-slate-600);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.o-pagination-wrap {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}

.o-pagination-wrap .navigation.pagination {
  width: 100%;
}

.o-pagination-wrap .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.o-pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 44px;
  height: 44px;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--color-surface-white);
  border: 1px solid #E2E8F0;
  color: var(--color-slate-700);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.o-pagination-wrap .page-numbers:hover {
  background: var(--color-teal-50);
  border-color: var(--color-teal-500);
  color: var(--color-teal-600);
  transform: translateY(-2px);
}

.o-pagination-wrap .page-numbers.current {
  background: var(--color-teal-500);
  border-color: var(--color-teal-500);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.o-contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.m-card-contact-channel {
  background: var(--color-surface-white);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.m-card-contact-channel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(14, 165, 233, 0.4);
}

.m-card-contact-channel__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-teal-50);
  color: var(--color-teal-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.m-card-contact-channel__icon--whatsapp {
  background: #ECFDF5;
  color: #10B981;
}

.m-card-contact-channel__title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin: 0 0 0.5rem 0;
}

.m-card-contact-channel__desc {
  font-size: 0.88rem;
  color: var(--color-slate-600);
  margin: 0 0 1.35rem 0;
  line-height: 1.5;
}

/* 404 Search & Pills */
.o-404-search-wrap {
  max-width: 480px;
  margin: 1.5rem auto;
}

.o-404-search-wrap .search-form {
  display: flex;
  gap: 0.5rem;
}

.o-404-search-wrap .search-field {
  flex: 1;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid #CBD5E1;
  background: var(--color-surface-white);
  font-family: inherit;
  font-size: 0.95rem;
}

.o-404-search-wrap .search-submit {
  padding: 0.75rem 1.4rem;
  background: var(--color-teal-500);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.o-404-search-wrap .search-submit:hover {
  background: var(--color-teal-600);
}

.o-404-quick-links {
  margin: 2rem 0;
  text-align: center;
}

.o-404-quick-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-slate-700);
  margin-bottom: 0.85rem;
}

.o-404-pills {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.o-404-pills a {
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-light);
  border: 1px solid #E2E8F0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-slate-700);
  text-decoration: none;
  transition: all 0.25s ease;
}

.o-404-pills a:hover {
  background: var(--color-teal-50);
  border-color: var(--color-teal-500);
  color: var(--color-teal-600);
  transform: translateY(-2px);
}

.o-page-fullwidth {
  padding: 0;
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 991px) {
  .o-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
  }

  .o-cta-banner__actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .o-blog-grid {
    grid-template-columns: 1fr;
  }

  .o-contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .o-footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .o-footer__legal-links {
    justify-content: center;
  }
}

/* ==========================================================================
   DARK MODE ADAPTATIONS FOR NEW COMPONENTS
   ========================================================================== */
[data-theme="dark"] .o-faq-section {
  background-color: #070B14;
}

[data-theme="dark"] .m-faq-item {
  background: #0F172A;
  border-color: #1E293B;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .m-faq-item.is-active {
  border-color: #38BDF8;
  box-shadow: 0 12px 30px -5px rgba(14, 165, 233, 0.2);
}

[data-theme="dark"] .m-faq-question {
  color: #FFFFFF;
}

[data-theme="dark"] .m-faq-question:hover {
  color: #38BDF8;
}

[data-theme="dark"] .m-faq-question__icon {
  background: #182234;
  color: #94A3B8;
}

[data-theme="dark"] .m-faq-item.is-active .m-faq-question__icon {
  background: #38BDF8;
  color: #0F172A;
}

[data-theme="dark"] .m-faq-answer__inner {
  color: #CBD5E1;
}

[data-theme="dark"] .o-blog-section {
  background-color: #0B1120;
}

[data-theme="dark"] .m-card-post {
  background: #0F172A;
  border-color: #1E293B;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .m-card-post:hover {
  border-color: #38BDF8;
  box-shadow: 0 20px 45px -10px rgba(14, 165, 233, 0.25);
}

[data-theme="dark"] .m-card-post__title a {
  color: #FFFFFF;
}

[data-theme="dark"] .m-card-post__title a:hover {
  color: #38BDF8;
}

[data-theme="dark"] .m-card-post__excerpt {
  color: #94A3B8;
}

[data-theme="dark"] .m-card-post__footer {
  border-top-color: #1E293B;
}

[data-theme="dark"] .m-card-post__read-more {
  color: #38BDF8;
}

[data-theme="dark"] .m-blog-empty-box {
  background: #0F172A;
  border-color: #334155;
  color: #94A3B8;
}

[data-theme="dark"] .m-card-contact-channel {
  background: #0F172A;
  border-color: #1E293B;
}

[data-theme="dark"] .m-card-contact-channel__title {
  color: #FFFFFF;
}

[data-theme="dark"] .m-card-contact-channel__desc {
  color: #94A3B8;
}

[data-theme="dark"] .o-pagination-wrap .page-numbers {
  background: #0F172A;
  border-color: #334155;
  color: #CBD5E1;
}

[data-theme="dark"] .o-pagination-wrap .page-numbers:hover {
  background: #182234;
  border-color: #38BDF8;
  color: #38BDF8;
}

[data-theme="dark"] .o-pagination-wrap .page-numbers.current {
  background: #38BDF8;
  border-color: #38BDF8;
  color: #0F172A;
}

[data-theme="dark"] .o-404-pills a {
  background: #0F172A;
  border-color: #334155;
  color: #CBD5E1;
}

[data-theme="dark"] .o-404-pills a:hover {
  background: #182234;
  border-color: #38BDF8;
  color: #38BDF8;
}

[data-theme="dark"] .o-404-search-wrap .search-field {
  background: #0B1120;
  border-color: #334155;
  color: #FFFFFF;
}

/* ==========================================================================
   Subpage Navbar Navigation
   ========================================================================== */
.o-navbar__menu--subpage {
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.a-nav-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate-700);
  text-decoration: none;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  transition: all 0.25s ease;
}

.a-nav-back-link svg {
  transition: transform 0.25s ease;
}

.a-nav-back-link:hover {
  background: var(--color-teal-500);
  border-color: var(--color-teal-500);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.a-nav-back-link:hover svg {
  transform: translateX(-3px);
}

[data-theme="dark"] .a-nav-back-link {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.28);
}

[data-theme="dark"] .a-nav-back-link:hover {
  background: #38BDF8;
  border-color: #38BDF8;
  color: #0F172A;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

@media (max-width: 768px) {
  .o-navbar__menu--subpage {
    display: none;
  }
}

/* ==========================================================================
   Universal Floating WhatsApp Widget (Zero Plugin Alternative)
   ========================================================================== */
.c-whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-body);
}

/* Main Action Button */
.c-whatsapp-float__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF !important;
  text-decoration: none;
  box-shadow: 0 8px 24px -2px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.c-whatsapp-float__btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 30px -2px rgba(37, 211, 102, 0.6), 0 6px 16px rgba(15, 23, 42, 0.2);
}

.c-whatsapp-float__icon {
  font-size: 32px;
  line-height: 1;
}

/* Pulse animation ring */
.c-whatsapp-float__pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.8;
  animation: wa-pulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Responsive adjustment when mobile bottom nav is active */
@media (max-width: 768px) {
  body.home .c-whatsapp-float {
    bottom: 5.5rem;
  }
}

/* ==========================================================================
   Contact Form 7 & ARCO-P Form Corporate Styling
   ========================================================================== */
.wpcf7 form {
  width: 100%;
}

.wpcf7 form p,
.wpcf7 .m-arco-form p,
.wpcf7 .m-form-group p {
  margin: 0 !important;
  padding: 0 !important;
}

.wpcf7 form br,
.wpcf7 .m-arco-form br {
  display: none !important;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  position: relative;
  margin-top: 0;
}

.m-arco-form {
  margin-top: 1.25rem;
}

.m-arco-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.m-form-group {
  margin-bottom: 0;
}

.m-form-group__label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate-800);
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .m-form-group__label {
  color: #E2E8F0;
}

@media (max-width: 768px) {
  .m-arco-form__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* CF7 Inputs, Selects & Textareas */
.wpcf7 .wpcf7-text,
.wpcf7 .wpcf7-email,
.wpcf7 .wpcf7-tel,
.wpcf7 .wpcf7-select,
.wpcf7 .wpcf7-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-slate-900);
  background-color: var(--color-surface-white);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  outline: none;
}

.wpcf7 .wpcf7-text:focus,
.wpcf7 .wpcf7-email:focus,
.wpcf7 .wpcf7-tel:focus,
.wpcf7 .wpcf7-select:focus,
.wpcf7 .wpcf7-textarea:focus {
  border-color: var(--color-teal-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.wpcf7 select,
.wpcf7 .wpcf7-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.wpcf7 .wpcf7-textarea {
  min-height: 105px;
  resize: vertical;
}

.m-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.m-contact-form .m-form-group {
  margin-bottom: 0;
}

.m-contact-form .wpcf7-submit,
.wpcf7 .wpcf7-submit--full {
  width: 100%;
}

/* CF7 Acceptance / Checkbox */
.wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
  display: block;
}

.wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-slate-600);
  cursor: pointer;
}

.wpcf7-acceptance input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--color-teal-500);
  flex-shrink: 0;
  cursor: pointer;
}

/* CF7 Submit Button */
.wpcf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, var(--color-teal-500) 0%, var(--color-teal-600) 100%);
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  cursor: pointer;
  transition: var(--transition-normal);
}

.wpcf7 .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.45);
}

/* CF7 Error & Success Validation Alerts */
.wpcf7-not-valid-tip {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #EF4444;
  margin-top: 0.35rem;
}

.wpcf7 .wpcf7-not-valid {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.wpcf7-response-output {
  margin: 1.5rem 0 0 0 !important;
  padding: 1rem 1.25rem !important;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  border-radius: var(--radius-md) !important;
  border-width: 1px !important;
  border-style: solid !important;
}

/* Validation Failed */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  background-color: #FEF2F2 !important;
  border-color: #FCA5A5 !important;
  color: #991B1B !important;
}

/* Sent Successfully */
.wpcf7 form.sent .wpcf7-response-output {
  background-color: #ECFDF5 !important;
  border-color: #6EE7B7 !important;
  color: #065F46 !important;
}

/* Spinner */
.wpcf7 .wpcf7-spinner {
  margin-left: 0.75rem;
}

/* Dark Mode Support for Contact Form 7 */
[data-theme="dark"] .wpcf7 .wpcf7-text,
[data-theme="dark"] .wpcf7 .wpcf7-email,
[data-theme="dark"] .wpcf7 .wpcf7-tel,
[data-theme="dark"] .wpcf7 .wpcf7-select,
[data-theme="dark"] .wpcf7 .wpcf7-textarea {
  background-color: #0F172A;
  border-color: #334155;
  color: #F1F5F9;
}

[data-theme="dark"] .wpcf7 .wpcf7-text:focus,
[data-theme="dark"] .wpcf7 .wpcf7-email:focus,
[data-theme="dark"] .wpcf7 .wpcf7-tel:focus,
[data-theme="dark"] .wpcf7 .wpcf7-select:focus,
[data-theme="dark"] .wpcf7 .wpcf7-textarea:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

[data-theme="dark"] .wpcf7-acceptance label {
  color: #CBD5E1;
}

[data-theme="dark"] .wpcf7 form.invalid .wpcf7-response-output,
[data-theme="dark"] .wpcf7 form.unaccepted .wpcf7-response-output {
  background-color: rgba(239, 68, 68, 0.15) !important;
  border-color: #EF4444 !important;
  color: #FCA5A5 !important;
}

[data-theme="dark"] .wpcf7 form.sent .wpcf7-response-output {
  background-color: rgba(16, 185, 129, 0.15) !important;
  border-color: #10B981 !important;
  color: #6EE7B7 !important;
}

