/* ════════════════════════════════════════════════════════════════
   Correcciones lote cliente (jun 2026)
   Componentes compartidos + ajustes por página.
   Cargado después de main.min.css.
   ════════════════════════════════════════════════════════════════ */

/* Texto para lectores de pantalla — debe ser invisible en pantalla.
   WordPress/WooCommerce lo usan (p.ej. el título "Paginación de entradas"
   de the_posts_pagination). El tema solo definía .sr-only, así que estos
   rótulos se veían. Patrón estándar de WordPress. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #1a1a1a;
  display: block;
  height: auto;
  left: 5px;
  top: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  width: auto;
  z-index: 100000;
}

/* ── FAQ: el retrato de Jose Antonio es vertical (880×1809); centrado cortaba
      la cabeza. Subimos el encuadre para que se vea la cara completa. ── */
.faq-block__portrait .img-blob img,
.faq-block__portrait img { object-position: center 15%; }

/* ── Hero: el curve decorativo (z-index:3) tapaba el CTA → no clicaba ni se
      iluminaba. Lo hacemos transparente a eventos y subimos el contenido. ── */
.hero__curve { pointer-events: none; }
.hero__content { z-index: 4; }

/* ── Service-hero: contenido alto se solapaba con la barra ("Servicio Premium"
      quedaba detrás). Garantiza altura y separación bajo el header flotante. ── */
.service-hero {
  min-height: clamp(600px, 76vh, 800px);
  padding-top: clamp(128px, 15vh, 188px);
  padding-bottom: clamp(48px, 7vh, 88px);
}
.service-hero .hero__content { position: relative; z-index: 5; }
@media (max-width: 768px) {
  .service-hero { min-height: 70vh; padding-top: 112px; }
}

/* ── Header: logo original (lockup horizontal) lo más grande posible DENTRO del
      pill, sin engordar la barra. El pill tiene altura fija (88/76 desktop,
      68/60 móvil), así que agrandar el logo no la engruesa. ── */
/* Logo oficial combinado (apilado, alta resolución) al máximo alto dentro del
   pill de altura fija, sin engordar la barra. */
.header__logo--original { height: 78px; }
.header.scrolled .header__logo--original { height: 68px; }
.header__logo--original .header__logo-img { height: 100%; width: auto; }
@media (max-width: 768px) {
  .header__logo--original { height: 60px; }
  .header.scrolled .header__logo--original { height: 52px; }
}

/* ── Vídeo: marco compacto, fino y elegante (reutilizable) ── */
.video-frame { margin-inline: auto; }
.video-frame--sm { max-width: 720px; }
.video-frame--xs { max-width: 560px; }
.video-frame .video-wrapper,
.video-frame .video-poster {
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.video-frame--ring .video-wrapper,
.video-frame--ring .video-poster {
  border: 1px solid rgba(201, 168, 124, 0.40);
}

/* ── Etiqueta "Nuevo" unificada (sustituye corner-ribbon + tag-new).
      Sello NEGRO sólido + texto dorado claro + punto dorado: alto contraste
      (~7:1) y visible sobre cream y sobre imagen, distinto del dorado de
      "categoría". Dictamen del director de arte (rev. visibilidad 2026-06-24). ── */
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.72rem;
  background: var(--black);
  color: var(--accent-light);
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1.5px solid var(--white);
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.18);
  pointer-events: none;
}
.badge-new::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
/* Posición uniforme: pill flotante en la esquina superior DERECHA de la card
   (igual que en el Home; el icono ocupa la izquierda, así no chocan). El badge
   es hijo directo de la card; especificidad alta para ganar a `:has > *`. */
.service-card:has(.badge-new) > .badge-new,
.service-card > .badge-new,
.path-card > .badge-new {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  bottom: auto;
  margin: 0;
  transform: none;
  z-index: 6;
}
/* Sobre la imagen de una card (Estancias): mismo sitio, esquina sup. derecha,
   con algo más de sombra para despegar de la foto. */
.program-card__image .badge-new {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  bottom: auto;
  z-index: 6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
}

/* ── Hero con imagen menos ampliada / menos cortada (Estancias) ── */
.hero--less-zoom .hero__bg img {
  animation: none;
  transform: none;
  object-position: center center;
}

/* ── Corner ribbon dentro de la imagen de la program-card (se recorta limpio) ── */
.program-card__image { position: relative; }

/* ── In-Office: logos de colaboración alineados (uno al lado del otro) ── */
.collab-logos { gap: 1.5rem; flex-wrap: wrap; }
.collab-logo,
.collab-logo--orthoclub { height: 42px; }
.collab-logo--kline { height: 38px; }
/* Colaboración / Ventajas: el logo de Orthoclub es un lockup apilado; se agranda
   para equilibrar con el wordmark ancho de K-Line, y se centran verticalmente. */
.section--dark .collab-logos,
.collab-logos--lg { gap: 2.5rem; align-items: center; }
.section--dark .collab-logo--orthoclub,
.collab-logos--lg .collab-logo--orthoclub { height: 92px; }
.section--dark .collab-logo--kline,
.collab-logos--lg .collab-logo--kline { height: 44px; }

/* In-Office: stats de K-Line en viñetas (cards) en vez de divisores */
.kline-stat {
  border-left: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem 1rem;
}

/* In-Office: vídeo de fabricación pequeño, redondo y centrado */
.io-manufacturing-video {
  max-width: 640px;
  margin: 2.5rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(201, 168, 124, 0.40);
}
.io-manufacturing-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Equipo: viñetas informativas (áreas de especialidad) ── */
.expertise-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}
.expertise-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(201, 168, 124, 0.06);
}
.expertise-chip svg { width: 16px; height: 16px; color: var(--accent); }

/* ── Equipo: rejilla densa, fotos más pequeñas, grupos y botón currículum ── */
.team-group + .team-group { margin-top: 3.25rem; }
.team-group__label {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 1.75rem;
}
.team-grid--sm {
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  max-width: 880px;
  margin-inline: auto;
}
.team-grid--sm .team-card__photo {
  max-width: 132px;
  margin-inline: auto;
  margin-bottom: 0.85rem;
  border-width: 2px;
}
.team-grid--sm .team-card__name { font-size: 1.02rem; }
.team-grid--sm .team-card__role { font-size: 0.74rem; line-height: 1.4; }
/* Dirección: solo Jose Antonio → tarjeta única SIEMPRE centrada, sea cual sea
   el ancho. Mayor especificidad (.team-grid--sm.team-grid--dir) para ganar a las
   media-queries de --sm, y justify-content para centrar la pista única. */
.team-grid--sm.team-grid--dir {
  grid-template-columns: min(200px, 100%);
  justify-content: center;
  max-width: none;
}
/* Foto de Jose Antonio al mismo tamaño que el resto (hereda 132px de --sm). */

/* Soporte Clínico: 6 personas → 3 por fila en desktop (2 filas de 3). */
.team-grid--sm.team-grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 700px; }
@media (max-width: 560px) {
  .team-grid--sm.team-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Home "Quiénes somos" en móvil: mostrar el retrato (about-accent) en vez de
   la foto de grupo. En desktop el retrato es un acento superpuesto; en móvil
   pasa a ser la imagen principal a ancho completo. ── */
@media (max-width: 768px) {
  .about-split__image > img:not(.about-split__image-accent) { display: none; }
  .about-split__image-accent {
    display: block;
    position: static;
    width: 100%;
    border: 0;
    box-shadow: none;
    border-radius: 50%;
  }
}

.team-card__cv {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding: 0.32rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.team-card__cv svg { width: 13px; height: 13px; }
.team-card__cv:hover { background: var(--accent); color: #fff; }

/* Botón "Currículum" alineado al fondo en toda la fila.
   Solo afecta a las tarjetas que tienen botón de CV (ortodoncistas): al pasar
   la tarjeta a columna flex y anclar el botón con margin-top:auto, un cargo bajo
   el nombre (p. ej. Dra. Sara) deja de empujar su botón más abajo que los demás. */
.team-card:has(.team-card__cv) {
  display: flex;
  flex-direction: column;
}
.team-card:has(.team-card__cv) .team-card__cv {
  margin-top: auto;      /* absorbe el espacio libre → botones a la misma altura */
  align-self: center;    /* mantiene el pill centrado, no a todo el ancho */
}
/* respiro mínimo sobre el botón en la tarjeta con cargo (la más alta de la fila) */
.team-card:has(.team-card__cv) .team-card__role {
  margin-bottom: 0.65rem;
}

.team-card--placeholder .team-card__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream-dark) 0%, #fff 100%);
  color: var(--accent);
}
.team-card--placeholder .team-card__photo svg { width: 42%; height: 42%; opacity: 0.5; }
.team-card--placeholder .team-card__name { color: var(--text-muted); }

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

/* (.tag-new eliminado — unificado en .badge-new arriba) */

/* ── Newsletter form: reparar deformación en móvil ──
   La mejora "pill" envuelve el form en una píldora blanca con radio
   completo y padding mínimo. Al apilar en móvil (flex-direction: column)
   ese contenedor redondeado deforma el campo. En móvil deshacemos la
   píldora: input y botón como bloques separados a ancho completo. */
@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.75rem;
    border-radius: 0;
  }
  .newsletter-form input[type="email"],
  .newsletter-form input[type="text"] {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--white);
    padding: 0.95rem 1.5rem;
  }
  .newsletter-form button {
    width: 100%;
    justify-content: center;
  }
}

/* ── Newsletter con nombre (footer): dos campos propios + botón.
   Anula la "píldora única" para que nombre y email se distingan.
   El layout en fila (flex-basis) SOLO en desktop: en móvil el form es
   flex-direction:column y un flex-basis horizontal se aplicaría al alto
   (inputs gigantes). En móvil manda el bloque de apilado de arriba. ── */
.newsletter-form--named {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}
@media (min-width: 769px) {
  .newsletter-form--named {
    gap: 0.6rem;
    flex-wrap: wrap;
    max-width: 600px;
  }
  .newsletter-form--named input[type="text"],
  .newsletter-form--named input[type="email"] {
    flex: 1 1 200px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--white);
    padding: 0.95rem 1.5rem;
  }
  .newsletter-form--named button { flex: 0 0 auto; }
}

/* ════════════════════════════════════════════════════════════════
   Página de contacto — responsive móvil/tablet
   Dictamen director de arte UX/UI (2026-06-24).
   La rejilla form+sidebar estaba inline sin colapso → en móvil
   quedaba a 2 columnas comprimidas. Aquí la gobernamos por clase.
   ════════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}
/* A 1.2/0.8 la sidebar se estrangula antes de tablet → colapsa en 920px. */
@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;            /* vertical ≠ horizontal de desktop */
  }
}
@media (max-width: 480px) {
  .contact-grid { gap: 2rem; }
}

/* Respiración del form en móvil + anti-zoom iOS (inputs a 16px). */
@media (max-width: 768px) {
  .form-card { padding: 1.75rem 1.25rem; }
  .form-row { margin-bottom: 1.5rem; }
  .form-header { margin-bottom: 1.5rem; padding-bottom: 1rem; }
  .form-field input,
  .form-field textarea,
  .form-field select {
    padding: 1rem;
    font-size: 16px;        /* evita el auto-zoom de Safari al enfocar */
  }
}

/* Sidebar: el gap entre canales y trust-card era inline 3rem; lo afinamos. */
.contact-aside__channels { margin-bottom: 3rem; }
@media (max-width: 920px) {
  .contact-aside__channels { margin-bottom: 2rem; }
}

/* Tarjetas de canal: hover en CSS (no JS inline) y honrando reduced-motion. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .contact-channel { transition: transform var(--transition-fast); }
  .contact-channel:hover { transform: translateY(-2px); }
}

/* Select "¿Qué te interesa?": appearance:none quitaba la flecha nativa →
   añadimos chevron propio para que se lea como desplegable. */
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

/* ── Home: sección de blog compacta ──
   Pesaba demasiado en la home (padding-xl + imágenes 16/10 + excerpt 3 líneas).
   Aquí la encogemos SOLO en home (.home-blog); el archivo del blog intacto. */
.home-blog { padding-block: var(--spacing-lg); }       /* 6rem → 4rem */
.home-blog .blog-grid { gap: 1.5rem; }
.home-blog .blog-card__image { aspect-ratio: 4 / 3; } /* contain sobre mat: 4/3 deja menos aire con cuadradas */
.home-blog .blog-card__content { padding: 1.25rem 1.5rem; }
.home-blog .blog-card__title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.home-blog .blog-card__excerpt {
  -webkit-line-clamp: 2;                               /* 3 → 2 líneas */
  margin-bottom: 1rem;
}

/* ════════════════════════════════════════════════════════════════
   Card "Novedad" — destacado FUERTE (v2, el cliente pidió más
   llamativo). Tres capas, todas dorado de marca:
     1) lavado dorado de fondo + borde dorado pleno (estático: separa
        la card aunque no haya movimiento).
     2) ::after — halo glow que LATE (opacity) y hace throb (scale).
     3) ::before — anillo "ping" que se expande y desvanece en bucle.
   Anima solo opacity/transform (GPU). :has(.badge-new) → sin PHP.
   ::before solo en service-card (en la program-card novedad ese
   pseudo lo ocupa "Más popular"). reduced-motion → todo estático.
   ════════════════════════════════════════════════════════════════ */
.service-card:has(.badge-new),
.program-card:has(.badge-new) {
  position: relative;
  border-color: rgba(201, 168, 124, 0.95);
  overflow: visible;                 /* deja salir el halo (la card normal recorta) */
}
/* Al quitar overflow:hidden, redondeamos la imagen para no perder las esquinas. */
.program-card:has(.badge-new) .program-card__image {
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.service-card:has(.badge-new) {
  background: linear-gradient(160deg, var(--white) 0%, rgba(201, 168, 124, 0.10) 100%);
}
/* Capa 2 — halo glow pulsante + throb */
.service-card:has(.badge-new)::after,
.program-card:has(.badge-new)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    0 0 0 2px rgba(201, 168, 124, 0.85),
    0 0 22px 3px rgba(201, 168, 124, 0.60),
    0 0 54px 14px rgba(201, 168, 124, 0.40);
  animation: ortho-new-glow 2.6s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes ortho-new-glow {
  0%, 100% { opacity: 0.45; transform: scale(0.991); }
  50%      { opacity: 1;    transform: scale(1.013); }
}
/* Capa 3 — anillo "ping" expansivo (solo service-cards) */
.service-card:has(.badge-new)::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  border: 2px solid rgba(201, 168, 124, 0.75);
  animation: ortho-new-ping 2.6s ease-out infinite;
  will-change: opacity, transform;
}
@keyframes ortho-new-ping {
  0%        { opacity: 0.85; transform: scale(1); }
  70%, 100% { opacity: 0;    transform: scale(1.05); }
}
/* El contenido por encima de las capas decorativas. */
.service-card:has(.badge-new) > *,
.program-card:has(.badge-new) > * {
  position: relative;
  z-index: 1;
}
/* En hover se asienta pleno y estático (no compite con el lift). */
.service-card:has(.badge-new):hover::after,
.program-card:has(.badge-new):hover::after { animation: none; opacity: 1; }
.service-card:has(.badge-new):hover::before { animation: none; opacity: 0; }
/* Accesibilidad: reduced-motion → todo estático, sin latido ni ping. */
@media (prefers-reduced-motion: reduce) {
  .service-card:has(.badge-new)::after,
  .program-card:has(.badge-new)::after { animation: none; opacity: 0.9; transform: none; }
  .service-card:has(.badge-new)::before { animation: none; opacity: 0.5; transform: none; }
}

/* ── Home: destacar las path-cards marcadas como novedad (Estancias, In-Office)
   con el mismo lenguaje dorado. .path-card tiene overflow:hidden → el glow va en
   el box-shadow de la propia card (un ::after exterior se recortaría). ── */
.path-card .badge-new {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}
.path-card:has(.badge-new) {
  border-color: rgba(201, 168, 124, 0.95);
  background: linear-gradient(160deg, var(--white) 0%, rgba(201, 168, 124, 0.10) 100%);
  animation: ortho-new-glow-shadow 2.6s ease-in-out infinite;
  will-change: box-shadow;
}
@keyframes ortho-new-glow-shadow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(201, 168, 124, 0.65), 0 0 16px 2px rgba(201, 168, 124, 0.30); }
  50%      { box-shadow: 0 0 0 2px rgba(201, 168, 124, 0.95), 0 0 30px 9px rgba(201, 168, 124, 0.55); }
}
.path-card:has(.badge-new):hover {
  animation: none;
  box-shadow: 0 0 0 2px rgba(201, 168, 124, 0.95), 0 14px 40px rgba(201, 168, 124, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .path-card:has(.badge-new) {
    animation: none;
    box-shadow: 0 0 0 2px rgba(201, 168, 124, 0.85), 0 0 20px 4px rgba(201, 168, 124, 0.35);
  }
}

/* ── In-Office: cards a 4 por fila (como en otras pantallas), responsive
      4 → 3 → 2 → 1. Antes iban a 2 columnas (cards demasiado grandes). ── */
.in-office-cards { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1100px) { .in-office-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .in-office-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .in-office-cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
/* Contenido más compacto para el formato 4-up. */
.in-office-cards .ioc-card__content { padding: 1.25rem 1.25rem 1.5rem; gap: 0.6rem; }
.in-office-cards .ioc-card__title { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.in-office-cards .ioc-card__desc { font-size: 0.875rem; line-height: 1.55; }

/* ════════════════════════════════════════════════════════════════
   MÓVIL — rediseño barra + menú desplegable
   (dictamen director de arte 2026-06-24). Pill glass se mantiene,
   afinado + hamburguesa 44px; menú = overlay full-screen ceremonial
   con backdrop crema, links serif numerados, stagger y a11y.
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Pill: con logo grande, algo más de aire; targets 44px. */
  .header__pill { gap: 0.5rem; padding: 0 0.75rem 0 1.1rem; }
  .hamburger {
    width: 44px; height: 44px; padding: 0;
    align-items: center; justify-content: center;
  }
}

/* ── Overlay full-screen ── */
.mobile-nav {
  display: flex;                       /* siempre en DOM; visibilidad por opacity */
  position: fixed; inset: 0; top: 0;
  z-index: 200;                        /* por encima del header (z100) para cubrirlo al abrir */
  flex-direction: column;
  padding: 0;
  background: transparent;
  border-radius: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.45s;
}
.mobile-nav.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
/* Backdrop crema translúcido + blur */
.mobile-nav::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(245, 240, 235, 0.95);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
/* Círculo decorativo de marca (dorado sutil) */
.mobile-nav::after {
  content: ''; position: absolute;
  top: -130px; right: -130px;
  width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid rgba(201, 168, 124, 0.22);
  background: radial-gradient(circle, rgba(201, 168, 124, 0.07), transparent 70%);
  pointer-events: none;
}
.mobile-nav__header,
.mobile-nav__list,
.mobile-nav__footer { position: relative; z-index: 1; }
/* Reset de la regla base .mobile-nav a (serif + hairline) del minificado. */
.mobile-nav a { border-bottom: none; padding: 0; font-family: inherit; font-size: inherit; }

/* Header del panel: logo + cerrar */
.mobile-nav__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; min-height: 72px;
}
.mobile-nav__logo { display: inline-flex; align-items: center; height: 52px; }
.mobile-nav__logo img { height: 100%; width: auto; }
.mobile-nav__close {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201, 168, 124, 0.4);
  color: var(--black); background: transparent; cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.mobile-nav__close:hover { background: rgba(201, 168, 124, 0.1); }
.mobile-nav__close:active { transform: scale(0.94); }
.mobile-nav__close:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }

/* Lista de links — jerarquía editorial con índice dorado */
.mobile-nav__list {
  list-style: none; margin: 0; padding: 1rem 1.75rem 0;
  display: flex; flex-direction: column; flex: 1;
  justify-content: center; gap: 0.35rem;
}
.mobile-nav__list li { opacity: 0; transform: translateY(14px); }
.mobile-nav.open .mobile-nav__list li {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-nav.open .mobile-nav__list li:nth-child(1) { transition-delay: 0.08s; }
.mobile-nav.open .mobile-nav__list li:nth-child(2) { transition-delay: 0.14s; }
.mobile-nav.open .mobile-nav__list li:nth-child(3) { transition-delay: 0.20s; }
.mobile-nav.open .mobile-nav__list li:nth-child(4) { transition-delay: 0.26s; }
.mobile-nav.open .mobile-nav__list li:nth-child(5) { transition-delay: 0.32s; }
.mobile-nav.open .mobile-nav__list li:nth-child(6) { transition-delay: 0.38s; }
.mobile-nav__list a {
  display: flex; align-items: baseline; gap: 0.85rem;
  padding: 0.55rem 0;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.75rem, 7vw, 2.25rem); line-height: 1.1;
  color: var(--black); border-bottom: none;
  transition: color var(--transition-fast);
}
.mobile-nav__list a::before {
  content: attr(data-index);
  font-family: var(--font-sans); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.12em;
  color: var(--accent-dark); transform: translateY(-0.5em);
}
.mobile-nav__list a:active,
.mobile-nav__list a.is-active { color: var(--accent-dark); }
.mobile-nav__list a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }

/* Footer del panel: CTA ghost-pill + contacto directo */
.mobile-nav__footer {
  padding: 1.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 1rem;
  border-top: 1px solid rgba(201, 168, 124, 0.2);
}
/* Especificidad elevada (.mobile-nav__footer …) para ganar a `.mobile-nav a`
   del base, que si no fuerza display:block + padding:0 y rompe el botón. */
.mobile-nav__footer .mobile-nav__cta {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; min-height: 54px; padding: 0 1.5rem; text-align: center;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--white); background: var(--accent-dark);
  border: 1.5px solid var(--accent-dark); border-radius: 100vw;
  box-shadow: 0 8px 24px rgba(201, 168, 124, 0.28);
  transition: background var(--transition), color var(--transition), transform var(--transition-fast);
}
.mobile-nav__footer .mobile-nav__cta:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.mobile-nav__footer .mobile-nav__cta:active { transform: scale(0.98); }
.mobile-nav__footer .mobile-nav__cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.mobile-nav__contacts {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  font-family: var(--font-sans); font-size: 0.875rem;
}
.mobile-nav__contacts a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; color: var(--text-muted);
  transition: color var(--transition-fast);
}
.mobile-nav__contacts a:hover { color: var(--accent-dark); }

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav.open .mobile-nav__list li {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .mobile-nav.open .mobile-nav__list li { transform: none; }
}

/* ── Botón de cookies (Subsana) a la misma altura que el de WhatsApp ──
   WhatsApp usa bottom:2rem (abajo-derecha); el de cookies queda abajo-izquierda
   pero a otra altura. Igualamos su bottom a 2rem en todos los tamaños. ── */
#subsana-cookies-minimized,
#subsana-cookies-banner.subsana-minimized,
.subsana-cookies-minimized {
  bottom: 2rem !important;
}
@media (max-width: 600px) {
  #subsana-cookies-minimized,
  .subsana-cookies-minimized {
    bottom: 2rem !important;   /* anula el 1rem previo: alinear con WhatsApp */
  }
}

/* ════════════════════════════════════════════════════════════════════
   LOTE CORRECCIONES CLIENTE (jun 2026) — Servicios/Estancias/Planif/
   In-Office/Equipo. Solo ajustes de estilo; el texto va en los page-*.php
   ════════════════════════════════════════════════════════════════════ */

/* ── Planificación: el botón del hero quedaba apretado contra la curva.
      Título compacto (en el PHP) + algo más de aire abajo, como In-Office. ── */
.tpl-planificacion .service-hero {
  padding-bottom: clamp(72px, 11vh, 132px);
}

/* ── In-Office: marco más definido en las cards (estilo SERVICIOS) ── */
.in-office-cards .ioc-card {
  border-width: 1.5px;
  border-radius: var(--radius-xl);
}
/* Card "Nuevo" (Diseño a Medida, Fabricación): borde dorado + halo idéntico al
   de SERVICIOS. El tratamiento completo (halo ::after + ping ::before) está al
   final del archivo, en `.ioc-card:has(.badge-new)`. */
.ioc-card > .badge-new {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  z-index: 6;
}

/* Dos párrafos por card: que no se estiren con flex y el botón quede abajo */
.in-office-cards .ioc-card__desc { flex: 0 0 auto; }
.in-office-cards .ioc-card .btn { margin-top: auto; }

/* Badges apilados (Fabricación: Novedad + El más solicitado) */
.ioc-card__badges {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.ioc-card__badges .ioc-card__badge,
.ioc-card__badges .badge-new {
  position: static;
  top: auto;
  left: auto;
  right: auto;
}

/* Nota "*Opcional" bajo el texto de la card */
.ioc-card__optional {
  display: inline-block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--accent-dark);
  letter-spacing: 0.02em;
}

/* ── Casas de Alineadores: logo de la marca dentro de su card ── */
.brand-card__name {
  display: flex;
  align-items: center;
  min-height: 52px;
  margin: 0;
}
.brand-card__logo {
  width: auto;
  max-width: 70%;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
}

/* ─── Blog card preview: safety net ───
   El reveal por clip-path recorta la imagen a 0px hasta que el JS la abre.
   Si el usuario tiene movimiento reducido (o el JS no abre la imagen), la
   vista previa debe verse igualmente: la visibilidad del contenido manda
   sobre la animación. */
@media (prefers-reduced-motion: reduce) {
  .blog-card__image img.img-reveal {
    clip-path: none !important;
    transform: none !important;
  }
}

/* ─── Home · Blog en carrusel (deslizar + flechas, sin autoplay) ───
   El cliente pidió el blog de la home más compacto y en carrusel, con las
   imágenes bien visibles. */
.blog-carousel { position: relative; }

.blog-carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 4px 0.75rem;   /* aire para sombras de las cards */
}
.blog-carousel__track::-webkit-scrollbar { display: none; }
.blog-carousel__track.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

/* Cards más pequeñas que en la página de blog */
.blog-carousel .blog-card {
  flex: 0 0 clamp(258px, 30%, 330px);
  scroll-snap-align: start;
}
/* En el carrusel las imágenes se ven siempre (sin depender del clip-reveal) */
.blog-carousel .blog-card__image img.img-reveal { clip-path: none; transform: none; }

/* Flechas */
.blog-carousel__nav {
  position: absolute;
  top: 33%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
  transition: opacity 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
.blog-carousel__nav:hover { background: var(--cream); transform: translateY(-50%) scale(1.06); }
.blog-carousel__nav--prev { left: -12px; }
.blog-carousel__nav--next { right: -12px; }
.blog-carousel__nav:disabled { opacity: 0; pointer-events: none; }

/* Si todo cabe sin scroll: ocultar flechas y centrar */
.blog-carousel--static .blog-carousel__nav { display: none; }
.blog-carousel--static .blog-carousel__track { justify-content: center; }

@media (max-width: 1024px) {
  .blog-carousel__nav { display: none; }
  .blog-carousel .blog-card { flex-basis: clamp(238px, 80%, 300px); }
  .blog-carousel__track { gap: 1rem; }
}

/* ── In-Office · novedades iluminadas IGUAL que SERVICIOS ──
   El cliente pidió que Fabricación y Diseño a Medida brillen como las
   novedades de la página de Servicios: halo amplio (::after) + anillo "ping"
   expansivo (::before), no el box-shadow contenido anterior.
   `.ioc-card__image` ya tiene su propio overflow:hidden, así que la card
   puede pasar a overflow:visible y el halo sale sin recortar la imagen.
   (Las path-cards del Home conservan su glow propio, arriba.) */
.ioc-card:has(.badge-new) {
  position: relative;
  overflow: visible;
  border-color: rgba(201, 168, 124, 0.95);
  background: linear-gradient(160deg, var(--white) 0%, rgba(201, 168, 124, 0.10) 100%);
}
.ioc-card:has(.badge-new) .ioc-card__image {
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}
/* Capa 2 — halo glow pulsante (mismas keyframes que SERVICIOS) */
.ioc-card:has(.badge-new)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    0 0 0 2px rgba(201, 168, 124, 0.85),
    0 0 22px 3px rgba(201, 168, 124, 0.60),
    0 0 54px 14px rgba(201, 168, 124, 0.40);
  animation: ortho-new-glow 2.6s ease-in-out infinite;
  will-change: opacity, transform;
}
/* Capa 3 — anillo "ping" expansivo */
.ioc-card:has(.badge-new)::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  border: 2px solid rgba(201, 168, 124, 0.75);
  animation: ortho-new-ping 2.6s ease-out infinite;
  will-change: opacity, transform;
}
/* Contenido por encima de las capas; los badges siguen absolutos (mayor
   especificidad que el `> *` para no caer al flujo). */
.ioc-card:has(.badge-new) > * { position: relative; z-index: 1; }
.ioc-card:has(.badge-new) > .badge-new { position: absolute; z-index: 6; }
.ioc-card:has(.badge-new) > .ioc-card__badges { position: absolute; z-index: 4; }
/* Hover: se asienta estático (no compite con el lift de la card). */
.ioc-card:has(.badge-new):hover::after { animation: none; opacity: 1; }
.ioc-card:has(.badge-new):hover::before { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .ioc-card:has(.badge-new)::after { animation: none; opacity: 0.9; transform: none; }
  .ioc-card:has(.badge-new)::before { animation: none; opacity: 0.5; transform: none; }
}

/* ════════════════════════════════════════════════════════════════════
   BLOG — lectura editorial premium
   Congruente con el resto de la web (Lora display + Trueno cuerpo,
   dorado de acento). Cuerpo que respira, imágenes que se sientan bien
   dentro del texto, columnas y listas cuidadas.
   Overrides sobre el bloque "23. SINGLE POST" de main.min.css.
   ════════════════════════════════════════════════════════════════════ */

/* ── Cabecera del post: más aire, medida contenida ── */
.single-header {
  max-width: 760px;
  padding-top: clamp(7.5rem, 10vh, 8.5rem);  /* holgura para la navbar flotante */
  padding-bottom: 1.75rem;
}
.single-header .overline {
  color: var(--accent-dark);
  letter-spacing: 0.14em;
}
.single-header h1 {
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}
.single-header__meta {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

/* ── Imagen destacada: aire justo bajo el banner (sin hueco enorme) ── */
.single-featured { margin-bottom: 2.75rem; }

/* ── Cuerpo: medida, ritmo e "ink" de lectura larga ── */
.single-content {
  max-width: 720px;
  padding-inline: 1rem;
  padding-bottom: 3.5rem;         /* antes ~6rem: menos vacío al final */
  font-size: clamp(1.075rem, 0.98rem + 0.42vw, 1.1875rem); /* ~17.2 → 19px */
  line-height: 1.8;
  color: #262626;                 /* negro suavizado: menos fatiga */
  letter-spacing: -0.003em;
}
/* Salto entre párrafos más marcado (respiración clara entre bloques) */
.single-content p { margin-bottom: 1.9em; }
.single-content strong { font-weight: 600; color: var(--text); }
.single-content em { font-style: italic; }

/* Entradilla: el primer párrafo hace de "standfirst" editorial */
.single-content > p:first-of-type {
  font-size: 1.24em;
  line-height: 1.62;
  color: #3A3A3A;
  margin-bottom: 1.75em;
}

/* Enlaces dentro del texto: subrayado dorado discreto */
.single-content a:not(.btn) {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201, 168, 124, 0.55);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}
.single-content a:not(.btn):hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Reserva: si algún post trae un H1 dentro del cuerpo (no capturado por el
   filtro), que no se vea crudo ni pegado a la entradilla. */
.single-content h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 1em;
}

/* ── Titulares del cuerpo: Lora en H2, Trueno fuerte en H3 ── */
.single-content h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--text);
  margin-top: 2.9em;
  margin-bottom: 0.7em;
}
.single-content h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 1.05rem;
}
.single-content h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.42rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 2.5em;
  margin-bottom: 0.55em;
}

/* ── Imágenes dentro del texto ──
   Marco de hairline + sombra suave para que fotos clínicas y diagramas
   en fondo blanco no "floten" sobre el papel. */
.single-content figure.wp-block-image,
.single-content > .wp-block-image {
  margin: 3.5rem auto;
  text-align: center;
}
.single-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px -22px rgba(26, 26, 26, 0.35);
}

/* Breakout: las imágenes grandes/anchas rompen la medida de lectura
   para respirar (efecto editorial), sin desbordar en móvil. */
.single-content > figure.wp-block-image.size-large,
.single-content > figure.wp-block-image.size-full,
.single-content > figure.alignwide,
.single-content > .wp-block-image.size-large,
.single-content > .wp-block-image.size-full,
.single-content > .alignwide {
  width: min(94vw, 900px);
  max-width: 900px;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Pie de foto: centrado, discreto, con guion de acento */
.single-content figcaption,
.single-content .wp-block-image figcaption {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.9rem;
}
.single-content figcaption::before {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
  margin: 0 auto 0.7rem;
  border-radius: 2px;
}

/* ── Columnas (bloques migrados): que respiren y apilen en móvil ── */
.single-content .wp-block-columns {
  display: flex;
  gap: 2.25rem;
  align-items: flex-start;
  margin: 2.75rem 0;
}
.single-content .wp-block-column { min-width: 0; }
@media (max-width: 768px) {
  .single-content .wp-block-columns { flex-direction: column; gap: 1.5rem; }
}

/* ── Listas: markers en dorado, interlínea generosa ── */
.single-content ul,
.single-content ol {
  margin: 0 0 1.6em;
  padding-left: 1.35em;
}
.single-content li { margin-bottom: 0.55em; line-height: 1.72; }
.single-content ul li::marker { color: var(--accent); }
.single-content ol li::marker { color: var(--accent-dark); font-weight: 600; }
.single-content li > ul,
.single-content li > ol { margin: 0.55em 0 0; }

/* ── Cita: serif, más presencia, fondo cálido ── */
.single-content blockquote {
  margin: 2.5rem 0;
  padding: 1.4rem 1.75rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: linear-gradient(180deg, rgba(245, 240, 235, 0.7), rgba(245, 240, 235, 0.35));
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.24rem;
  line-height: 1.55;
  color: var(--dark-gray);
}
.single-content blockquote p:last-child { margin-bottom: 0; }

/* ── Separador: línea corta de acento, centrada ── */
.single-content hr.wp-block-separator,
.single-content hr {
  border: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
  border-radius: 2px;
  margin: 3rem auto;
}

/* ── Tablas: acabado editorial por si algún post las usa ── */
.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 0.95em;
}
.single-content th,
.single-content td {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.single-content thead th {
  background: var(--cream);
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 640px) {
  .single-content { padding-inline: 1.1rem; }
  .single-content blockquote { font-size: 1.12rem; padding: 1.1rem 1.25rem; }
}

/* ════════════════════════════════════════════════════════════════════
   TIENDA — WooCommerce con la marca Orthoclub
   Skin sobre los estilos por defecto de Woo: crema + dorado, Lora display
   + Trueno cuerpo, botones pill, cards como el resto de la web.
   ════════════════════════════════════════════════════════════════════ */

/* Shell: holgura bajo la navbar flotante */
.wc-shell {
  padding-top: clamp(7.5rem, 10vh, 8.5rem);
  padding-bottom: var(--spacing-xl);
}

/* Tienda en pausa: aviso "no es posible completar la compra" (ficha + productos) */
.store-paused-notice,
.store-paused-msg {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--accent-dark, #B08D60);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent, #C9A87C) 12%, #fff);
  color: var(--text, #262626);
  font-size: 0.95rem;
  line-height: 1.5;
}
.store-paused-notice p { margin: 0; }
.store-paused-msg { max-width: 42ch; }
.store-paused-msg[hidden] { display: none; }
/* Cart/checkout/mi-cuenta salen por page.php → ensanchar y despejar navbar */
body.woocommerce-cart .section:first-of-type,
body.woocommerce-checkout .section:first-of-type,
body.woocommerce-account .section:first-of-type { padding-top: clamp(7.5rem, 10vh, 8.5rem); }
body.woocommerce-cart .container--sm,
body.woocommerce-checkout .container--sm,
body.woocommerce-account .container--sm { max-width: var(--container-md); }
body.woocommerce-cart .single-content,
body.woocommerce-checkout .single-content,
body.woocommerce-account .single-content { max-width: 100%; padding-inline: 0; font-size: 1rem; color: var(--text); }

/* ── Migas ── */
.woocommerce-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.woocommerce-breadcrumb a { color: var(--accent-dark); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--accent); }

/* ── Cabecera del shop ── */
.woocommerce-products-header__title,
.wc-shell h1.page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.woocommerce-result-count { color: var(--text-muted); font-size: 0.9rem; }
.woocommerce-ordering select,
.wc-shell select {
  font-family: var(--font-sans);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--text);
}

/* ── Rejilla de productos (shop) ── */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  /* Cap de ancho + centrado: con pocos productos no quedan tarjetas
     diminutas pegadas a la izquierda ni estiradas a todo lo ancho. */
  grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
  justify-content: center;
  gap: 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
/* Un único producto: tarjeta protagonista, centrada y con imagen amplia. */
.woocommerce ul.products li.product:only-child {
  grid-column: 1 / -1;
  max-width: 420px;
  margin-inline: auto !important;
}
.woocommerce ul.products li.product:only-child a img {
  aspect-ratio: 4 / 3;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 0 1.4rem;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 10px 30px -22px rgba(26, 26, 26, 0.4);
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 124, 0.5);
  box-shadow: 0 22px 46px -26px rgba(26, 26, 26, 0.5);
}
.woocommerce ul.products li.product a img {
  margin: 0 0 1.1rem;
  border-radius: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.25;
  padding: 0 1.25rem;
  color: var(--text);
}
.woocommerce ul.products li.product .price {
  display: block;
  padding: 0.4rem 1.25rem 0.9rem;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 1.05rem;
}
.woocommerce ul.products li.product .price del { color: var(--text-muted); font-weight: 400; margin-right: 0.4rem; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart { margin: 0 1.25rem; }
.woocommerce ul.products li.product .onsale {
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-full);
  min-height: auto;
  min-width: auto;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  top: 0.9rem; right: 0.9rem; left: auto; margin: 0;
}

/* ── Botones (clásicos + bloques) ── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button.alt,
.woocommerce #respond input#submit,
.wc-block-components-button {
  background: var(--black) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--radius-full) !important;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.6rem !important;
  line-height: 1.2;
  transition: background var(--transition), transform var(--transition-fast) !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button.alt:hover,
.wc-block-components-button:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-2px);
}
.woocommerce .button.disabled,
.woocommerce .button:disabled { opacity: 0.45 !important; transform: none !important; }

/* ── Ficha de producto ── */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.woocommerce div.product .woocommerce-product-gallery {
  margin: 0;
  position: sticky;
  top: 6rem;
}
/* La galería ocupa toda su columna: imagen amplia, no perdida en el hueco. */
.woocommerce div.product .woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce div.product .woocommerce-product-gallery__image,
.woocommerce div.product .woocommerce-product-gallery__image a { display: block; }
.woocommerce div.product .woocommerce-product-gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
}
/* Miniaturas de galería (si hay varias fotos: blanco/negro) */
.woocommerce div.product .flex-control-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
}
.woocommerce div.product .flex-control-thumbs li { width: 72px; margin: 0; }
.woocommerce div.product .flex-control-thumbs img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity var(--transition-fast);
}
.woocommerce div.product .flex-control-thumbs img.flex-active,
.woocommerce div.product .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce div.product .summary { margin: 0; }
.woocommerce div.product .product_title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
/* Selector de variaciones (Diseño) */
.woocommerce div.product form.variations_form .variations th,
.woocommerce div.product form.variations_form .variations td { padding: 0.4rem 0; }
.woocommerce div.product form.variations_form .variations label {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text);
}
.woocommerce div.product form.variations_form select {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  background: var(--white);
  min-width: 220px;
}
.woocommerce div.product .quantity input.qty {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.7rem;
  width: 4.5rem;
}
.woocommerce div.product .single_add_to_cart_button { padding: 0.95rem 2rem !important; }

/* Pestañas descripción/info */
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 1.5rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; border-bottom: 1px solid var(--border); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--border); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0 1.5rem 0 0;
  padding: 0 0 0.75rem;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid var(--accent); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--text-muted); font-weight: 600; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--text); }
.woocommerce div.product .woocommerce-tabs .panel { padding-top: 1.5rem; line-height: 1.7; }
.woocommerce div.product .woocommerce-tabs h2 { font-family: var(--font-serif); font-weight: 400; }

/* Productos relacionados */
.woocommerce .related.products,
.woocommerce .upsells.products { grid-column: 1 / -1; margin-top: 3.5rem; }
.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 { font-family: var(--font-serif); font-weight: 400; font-size: 1.8rem; margin-bottom: 1.5rem; }

/* ── Notices / mensajes ── */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  border-radius: var(--radius-md);
  border-top: none;
  padding: 1rem 1.25rem 1rem 3rem;
  background: var(--cream);
  color: var(--text);
}
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before { color: var(--accent-dark); }
.woocommerce .woocommerce-message { box-shadow: inset 3px 0 0 var(--accent); }

/* ── Inputs de formularios (cart/checkout/account clásicos) ── */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row input.input-text,
.woocommerce .select2-container--default .select2-selection--single {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
}

/* ── Carrito / checkout de bloques (WooCommerce Blocks) ── */
/* La miniatura por defecto se ve minúscula: le damos un tamaño digno. */
.wc-block-cart-item__image,
.wc-block-cart-item__image a { display: block; width: 96px; }
.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
}
.wc-block-components-order-summary-item__image { width: 64px; }
.wp-block-woocommerce-cart .wc-block-cart-items td { vertical-align: top; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .woocommerce div.product { grid-template-columns: 1fr; gap: 2rem; }
  .woocommerce div.product .woocommerce-product-gallery { position: static; top: auto; }
}
@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.05rem; }
  .wc-block-cart-item__image,
  .wc-block-cart-item__image a { width: 72px; }
}

/* ════════════════════════════════════════════════════════════════════
   BLOG — listado con barra lateral + artículo (ref. ClinicMaster)
   Estructura de la plantilla adaptada a la marca Orthoclub (crema/dorado,
   Lora + Trueno). Requisito cliente: las portadas NUNCA se ven vacías
   (helper orthoclub_blog_cover sirve foto real de reserva).
   ════════════════════════════════════════════════════════════════════ */

/* ── Layout de dos columnas ── */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.blog-main { min-width: 0; }

/* ── Hero de blog/archivo: reservar el hueco de la navbar flotante ──
   La navbar fija ocupa hasta ~108px en desktop (top 20 + pill 88). El mínimo
   original (5rem = 80px) dejaba el overline y el H1 por debajo. Se alinea con
   el .hero de las páginas (min 110px+) con aire extra. */
.blog-hero {
  padding-top: clamp(7.5rem, 12vh, 9rem);
}

/* ── Buscador dentro del hero de resultados ── */
.blog-hero__search {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 1.75rem auto 0;
}
.blog-hero__search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  background: #fff;
  font: inherit;
  color: var(--text);
}
.blog-hero__search input[type="search"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.blog-hero__search .btn { flex-shrink: 0; }
.blog-hero__clear {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.blog-hero__clear:hover { color: var(--accent); }

/* Grid de tarjetas dentro de la columna principal */
.blog-listing .blog-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

/* ── Tarjeta: pie con fecha + flecha "leer" ── */
.blog-card { display: flex; flex-direction: column; }
.blog-card__content { display: flex; flex-direction: column; flex: 1; }
.blog-card__image .blog-card__img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ── Card media: imagen COMPLETA (mayoría de portadas son cuadradas) ──
   Contenedor cuadrado + passe-partout sobre papel cálido con filete oro.
   `contain` garantiza que nunca se recorta; el mat convierte el aire lateral
   de una landscape en marco editorial, no en hueco. (Sirve en corrections
   porque se encola tras main.min.css; espejo del bloque en main.css.) */
.blog-card__image {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 124, 0.14);
}
.blog-card__image img,
.blog-card__image .blog-card__img {
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius-lg) - 6px);
}
.blog-card:hover .blog-card__image img { transform: scale(1.03); }

.blog-card__cat {
  align-self: flex-start;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.blog-card__cat:hover { color: var(--accent); }

.blog-card__foot {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
}
.blog-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.blog-card__meta svg { color: var(--accent-dark); flex: none; }
.blog-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--cream);
  color: var(--accent-dark);
  flex: none;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.blog-card:hover .blog-card__more,
.blog-card__more:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateX(2px);
}

/* ── Paginación ── */
.blog-pagination { text-align: center; margin-top: 3rem; }

/* ════════ Barra lateral ════════ */
.blog-side {
  position: sticky;
  top: 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.widget {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
}
.widget__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Buscador */
.widget-search__form { display: flex; gap: 0.5rem; }
.widget-search__form input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
}
.widget-search__form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,124,0.18);
}
.widget-search__form button {
  flex: none;
  width: 46px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent-dark);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.widget-search__form button:hover { background: var(--text); }

/* Categorías */
.widget-cats__list { list-style: none; margin: 0; padding: 0; }
.widget-cats__list li + li { margin-top: 0.35rem; }
.widget-cats__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.widget-cats__list a:hover { background: #fff; color: var(--accent-dark); }
.widget-cats__count {
  flex: none;
  min-width: 26px;
  height: 26px;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--cream-dark);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.widget-cats__list a:hover .widget-cats__count { background: var(--accent); color: #fff; }

/* Últimos artículos */
.widget-recent__list { display: flex; flex-direction: column; gap: 1.1rem; }
.recent-post { display: flex; gap: 0.85rem; text-decoration: none; align-items: center; }
.recent-post__thumb {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.recent-post__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition); }
.recent-post:hover .recent-post__thumb img { transform: scale(1.06); }
.recent-post__body { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.recent-post__date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.recent-post__date svg { color: var(--accent-dark); flex: none; }
.recent-post__title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text);
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-post:hover .recent-post__title { color: var(--accent-dark); }

/* Etiquetas */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-cloud a,
.single-tags a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.tag-cloud a:hover,
.single-tags a:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* ════════ Artículo (single) ════════ */
/* La portada asume el espacio bajo la navbar flotante */
.single-cover-wrap { padding-top: clamp(7.5rem, 11vh, 9rem); margin-bottom: 2rem; }
/* Portada como lámina impresa: imagen COMPLETA a su ratio natural (sin recorte,
   sin barras), contenida y centrada (no a sangre), sobre passe-partout blanco
   con filete fino y sombra editorial asentada. El ancho máximo se adapta a la
   orientación (clase servida por single.php) para que no domine el fold. */
.single-cover {
  margin-inline: auto;
  padding: clamp(10px, 1.2vw, 16px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 6px rgba(20,16,12,0.06), 0 16px 36px rgba(20,16,12,0.09);
}
.single-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.single-cover--square    { max-width: clamp(340px, 58vw, 560px); }
.single-cover--portrait  { max-width: clamp(320px, 46vw, 480px); }
.single-cover--landscape { max-width: var(--container-sm); }

/* Cabecera: ya no necesita separar de la navbar (lo hace la portada) */
.single-header {
  padding-top: 0;
  padding-bottom: 2rem;
  max-width: var(--container-sm);
  margin-inline: auto;
  text-align: center;
}
.single-header .overline { text-decoration: none; }
.single-header__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
}
.single-header__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.single-header__meta svg { color: var(--accent-dark); }

/* Dentro del layout, el cuerpo llena su columna */
.blog-listing--single { padding-top: 0; }
.blog-listing--single .single-content {
  max-width: none;
  padding-inline: 0;
  padding-bottom: 2.5rem;
  margin-inline: 0;
}

/* Pie del artículo: etiquetas + compartir */
.single-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.single-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.single-tags__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-right: 0.25rem;
}
.single-tags__label svg { color: var(--accent-dark); }
.single-share { display: flex; align-items: center; gap: 0.5rem; }
.single-share__label { font-size: 0.8rem; color: var(--text-muted); margin-right: 0.25rem; }
.single-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--cream);
  color: var(--accent-dark);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.single-share__btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

/* Relacionados */
.related-posts { margin-top: 1rem; }
.related-posts__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 0 0 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .blog-side .widget { flex: 1 1 260px; }
  .blog-side .widget-recent { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .blog-listing .blog-grid--2 { grid-template-columns: 1fr; }
  .blog-side { flex-direction: column; }
  .blog-side .widget { flex-basis: auto; }
  /* En móvil la lámina cuadrada/vertical se centra con tope cómodo; la
     horizontal ocupa el ancho de columna. Siempre completa, nunca recortada. */
  .single-cover--square,
  .single-cover--portrait { max-width: 440px; }
  .single-cover--landscape { max-width: 100%; }
  .single-foot { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════════
   Lote cliente · ajustes solicitados
   ══════════════════════════════════════════════════════════════ */

/* In-Office · logos de colaboración: sin "×", siempre en la misma línea.
   Orthoclub siempre más grande; K-Line reducido ~40%. Aplica a ambas apariciones. */
.collab-logos { flex-wrap: nowrap; }
.collab-logo--kline { height: 23px; }                     /* base 38px − 40% */
.section--dark .collab-logo--kline,
.collab-logos--lg .collab-logo--kline { height: 26px; }   /* 44px − 40% */

@media (max-width: 600px) {
  .section--dark .collab-logos,
  .collab-logos--lg { gap: 1.25rem; }
  .section--dark .collab-logo--orthoclub,
  .collab-logos--lg .collab-logo--orthoclub { height: 58px; }
  .section--dark .collab-logo--kline,
  .collab-logos--lg .collab-logo--kline { height: 22px; }
}

/* Equipo · "Lo que nos define": 3 cards que se adaptan a mobile */
.trust-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
  .trust-grid--3 { grid-template-columns: 1fr; }
}

/* Footer · mobile (≤768: apilado a 1 columna). Logo/brand centrado (petición
   cliente); columnas de enlaces a la izquierda para escaneabilidad; legales y
   firma centrados abajo. Zona segura inferior para que los botones flotantes
   (WhatsApp / go-top, fixed en la esquina inferior-derecha) no tapen la firma. */
@media (max-width: 768px) {
  .footer__top { gap: 2.5rem; }

  /* Brand centrado */
  .footer__brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer__brand img { margin-inline: auto; display: block; max-width: 220px; }
  .footer__tagline { max-width: 34ch; margin-inline: auto; }
  .footer__social { justify-content: center; }

  /* Columnas de enlaces a la izquierda */
  .footer__col { text-align: left; }
  .footer__col-title { margin-bottom: 0.85rem; }
  .footer__links a { display: inline-block; padding-block: 4px; }   /* tap target ≥44px */

  /* Legales + firma centrados y apilados, con targets cómodos */
  .footer__bottom { margin-top: 2.5rem; padding: 1.75rem 0; align-items: center; text-align: center; }
  .footer__legal { flex-direction: column; gap: 0.4rem; align-items: center; }
  .footer__legal a { display: inline-block; padding-block: 6px; }
  .footer__credits { justify-content: center; text-align: center; }

  /* Zona segura: eleva la firma por encima del stack de botones flotantes (go-top llega a ~160px) */
  .footer { padding-bottom: 9rem; }
}

/* Home · "Es el momento de que apruebes tus casos con seguridad":
   contenido centrado en mobile */
@media (max-width: 768px) {
  .about-split__content { text-align: center; }
  .about-split__content .btn { margin-inline: auto; }
}

/* Home · los 4 círculos de stats se centran en su columna (grid 1fr) */
.about-stats--4 { justify-items: center; }

/* Home · círculos de stats más grandes en mobile para que el texto no se salga */
@media (max-width: 768px) {
  .about-stats--4 { gap: 0.85rem 0.6rem; }
  .about-stats--4 .stat-circle {
    width: min(150px, 40vw);
    height: min(150px, 40vw);
  }
  .about-stats--4 .stat-circle__number { font-size: clamp(1.35rem, 5.5vw, 1.7rem); }
  .about-stats--4 .stat-circle__label {
    font-size: 0.7rem;
    line-height: 1.2;
    padding-inline: 0.4rem;
  }
}

/* Splash · logo más grande */
.page-loader__logo { width: clamp(340px, 42vw, 520px); }

/* ── Ficha de producto · correcciones de layout ─────────────────
   El bloque "Ficha de producto" de arriba pone display:grid, pero
   WooCommerce-layout deja width:48% en galería/resumen → todo salía
   encogido (~250px). Aquí corregimos la anchura, despejamos el header
   flotante fijo (si no, tapa el título), pasamos las miniaturas a
   rejilla y limpiamos las pestañas. */
.single-product .wc-shell { padding: 8.5rem 0 4rem; }
@media (max-width: 860px) { .single-product .wc-shell { padding-top: 7rem; } }

.woocommerce div.product > .woocommerce-product-gallery,
.woocommerce div.product > .summary,
.woocommerce div.product > .entry-summary { width: 100% !important; float: none !important; }
@media (max-width: 860px) {
  .woocommerce div.product { grid-template-columns: 1fr; gap: 1.75rem; }
  .woocommerce div.product .woocommerce-product-gallery { position: static; }
}

/* Carrusel de tamaño FIJO: las fotos tienen ratios distintos (destacada 1:1,
   resto 3:2) y el carrusel cambiaba de alto al pasar. Forzamos un marco 4:3
   con object-fit:cover para que siempre mida lo mismo. */
.woocommerce div.product .woocommerce-product-gallery__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg, 16px);
  background: var(--cream, #f7f4ee);
}
.woocommerce div.product .woocommerce-product-gallery__image a { display: block; width: 100%; height: 100%; }
.woocommerce div.product .woocommerce-product-gallery__image img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; border: 0 !important; border-radius: 0 !important;
}

/* Miniaturas en rejilla uniforme, rectangulares (no redondas) y de buen tamaño.
   El !important es necesario: flexslider fija anchos inline (~24px) en las <li>. */
.woocommerce div.product .flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)) !important;
  gap: 0.6rem !important;
}
.woocommerce div.product .flex-control-thumbs li { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product .flex-control-thumbs img {
  width: 100% !important; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 6px !important;
}

/* Pestañas: separar del carrusel y limpiar los restos del estilo WC */
.woocommerce div.product .woocommerce-tabs { margin-top: clamp(2.5rem, 5vw, 4rem); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; content: none !important; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
/* La pestaña de valoraciones se quita en functions.php; ocultamos por si acaso */
.woocommerce div.product .woocommerce-tabs ul.tabs li.reviews_tab { display: none !important; }

/* ─── Transición suave entre páginas (splash solo en la 1ª carga) ─── */

/* Splash ya visto en esta sesión → no se muestra; se usa crossfade */
.oc-splash-seen .page-loader { display: none; }

/* Fade-out del splash (elegante). El splash es intencional: se deja ver
   un instante en la 1ª carga; el resto de la nave entre páginas es rápida. */
.page-loader { transition: opacity 0.5s ease, visibility 0.5s ease; }

/* Transiciones de página retiradas: el fade de salida/entrada producía un
   parpadeo entre páginas en un sitio server-rendered. Navegación nativa limpia.
   El splash de bienvenida (1ª carga) se mantiene con su propio fade-out. */
