/* ═══════════════════════════════════════════════════════════════
   OTOLUX GLOBAL CSS — Variables de diseño y estilos base
   Se carga en todas las páginas del sitio
   ═══════════════════════════════════════════════════════════════ */


/* ── VARIABLES ── */
:root {
  --cream:    #ede7dc;
  --cream-dk: #e0d8cc;
  --beige:    #f5f0e8;
  --bark:     #2e4230;
  --bark-mid: #3d5640;
  --bark-lt:  #5a7a60;
  --gold:     #b8973e;
  --gold-lt:  #d4b86a;
  --gold-dk:  #7a6020;
  --gold-hi:  #ecdfa0;
  --silver:   #c8cfc8;
  --text:     #28352a;
  --muted:    #000000;
  --gold-txt: #7a6020;
  --border:   rgba(40,60,42,0.12);
}

/* ── RESET MÍNIMO ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: 17px;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.1;
}

/* ── BOTÓN DORADO ── */
.btn-gold {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #1a1200;
  border-radius: 2px;
  background: linear-gradient(
    105deg,
    var(--gold-dk) 0%,
    var(--gold) 25%,
    #f0ead8 42%,
    var(--gold-hi) 50%,
    #f0ead8 58%,
    var(--gold) 75%,
    var(--gold-dk) 100%
  );
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 -1px 0 rgba(0,0,0,0.15) inset,
    0 4px 16px rgba(184,151,62,0.25);
  transition: filter 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-gold:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 -1px 0 rgba(0,0,0,0.15) inset,
    0 8px 24px rgba(184,151,62,0.38);
}

/* ── BOTÓN GHOST ── */
.btn-ghost {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid var(--border);
  color: var(--bark-mid);
  background: transparent;
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost-cream {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px 30px;
  border: 1px solid rgba(237,231,220,0.3);
  color: var(--cream);
  background: transparent;
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-ghost-cream:hover { border-color: rgba(237,231,220,0.7); background: rgba(237,231,220,0.05); }

/* ── CONTENEDOR ── */
.otolux-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 3rem;
}
@media (max-width: 960px) { .otolux-container { padding: 0 1.5rem; } }

/* ── TAG / EYEBROW ── */
.otolux-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.otolux-tag::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

/* ── SHARED TYPOGRAPHY ALIASES (matches HTML design) ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.tag::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

.section-h {
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 500;
  color: var(--bark);
  letter-spacing: -0.01em;
}
.section-h em { font-style: italic; }

.section-body {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
  max-width: 520px;
}

/* ── HERO SLOW ZOOM ── */
@keyframes slowzoom {
  from { transform: scale(1);    background-position: center 25%; }
  to   { transform: scale(1.06); background-position: center 40%; }
}

/* ── SECTION ENTER VARIANTS (used by widgets) ── */
.se.enter-scale { transform: scale(0.97) translateY(24px); }
.se.enter-right { transform: translateX(48px); }
.se.enter-fade  { transform: translateY(12px); }

/* ── ELEMENTOR EDITOR: desactivar animaciones de entrada ── */
body.elementor-editor-active .reveal,
body.elementor-editor-active .reveal-left,
body.elementor-editor-active .reveal-right,
body.elementor-editor-active .se {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.07s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.21s; }
.d4 { transition-delay: 0.28s; }
.d5 { transition-delay: 0.35s; }
.d6 { transition-delay: 0.42s; }

/* Section enter */
.se { opacity: 0; transition: opacity 0.85s cubic-bezier(0.22,1,0.36,1), transform 0.85s cubic-bezier(0.22,1,0.36,1); }
.se.up   { transform: translateY(40px); }
.se.fade { transform: translateY(14px); }
.se.entered { opacity: 1; transform: none !important; }

/* ── NAV GLOBAL ── */
.otolux-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: rgba(237,231,220,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.otolux-nav .nav-logo img { height: 40px; width: auto; display: block; }
.otolux-nav .nav-links { display: flex; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.otolux-nav .nav-links a {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bark-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.otolux-nav .nav-links a:hover,
.otolux-nav .nav-links a.active { color: var(--gold); }

/* ── FOOTER GLOBAL ── */
.otolux-footer { background: #161f17; padding: 4rem 0 2rem; }
.otolux-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.otolux-footer .footer-logo img {
  height: 36px; width: auto;
  filter: brightness(0) invert(1) opacity(0.45);
  margin-bottom: 1rem;
}
.otolux-footer .footer-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: rgba(237,231,220,0.36);
  line-height: 1.85;
}
.otolux-footer h5 {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.otolux-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; padding: 0; }
.otolux-footer ul li a {
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: rgba(237,231,220,0.38);
  transition: color 0.2s;
}
.otolux-footer ul li a:hover { color: var(--gold-lt); }
.otolux-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.otolux-footer .footer-bottom p {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  color: rgba(237,231,220,0.2);
  margin: 0;
}
.otolux-footer .footer-social { display: flex; gap: 1rem; }
.otolux-footer .footer-social a {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.otolux-footer .footer-social a:hover { border-color: var(--gold); color: var(--gold); }

/* ── RESPONSIVE NAV ── */
@media (max-width: 960px) {
  .otolux-nav { padding: 0 1.5rem; }
  .otolux-nav .nav-links { display: none; }
  .otolux-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ── DIVIDER ── */
.otolux-divider { height: 1px; background: var(--border); }

/* ── BREADCRUMB ── */
.otolux-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.otolux-breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.otolux-breadcrumb a:hover { color: var(--gold-lt); }
.otolux-breadcrumb span { color: var(--gold-lt); }

/* ═══════════════════════════════════════════════════════════════
   MEJORAS DE CONTRASTE Y LEGIBILIDAD (WCAG AA)
   Selectores con prefijo `body` para ganar a los <style> inline de
   los widgets sin usar !important. No altera la paleta ni el layout;
   solo profundiza tonos de texto tenues y sube tamaños muy pequeños.
   ═══════════════════════════════════════════════════════════════ */

/* — Dorado usado como TEXTO sobre fondos claros: tono más profundo — */
body .tag,
body .otolux-tag,
body .otx-esp-cat,
body .otx-esp-cta,
body .otx-blog-cat,
body .otx-blog-link-all,
body .otx-blog-read-more,
body .otx-testi-stars,
body .nos-testi-stars,
body .step-phase-w,
body .fase-lbl-w,
body .step-n { color: var(--gold-txt); }
body .tag::before,
body .otolux-tag::before { background: var(--gold-txt); }

/* — Cuerpo de texto verde apagado: refuerzo para clases con color fijo — */
body .section-body,
body .otx-sobre-body,
body .otx-testi-cond { color: var(--muted); }

/* — Pestañas / subtítulos de procedimientos: subir opacidad — */
body .otx-proc-tab { color: rgba(237,231,220,0.66); }
body .otx-proc-tab:hover { color: rgba(237,231,220,0.9); }
body .otx-proc-tab.active { color: var(--gold-lt); }
body .otx-procs-sub { color: rgba(237,231,220,0.72); }

/* — Barra de confianza (trust bar) — */
body .otx-trust-label { color: rgba(255,255,255,0.72); }

/* — Footer: subir opacidad de textos tenues — */
body .otolux-footer .footer-desc { color: rgba(237,231,220,0.62); }
body .otolux-footer ul li a { color: rgba(237,231,220,0.66); }
body .otolux-footer .footer-bottom p { color: rgba(237,231,220,0.55); }
body .otolux-footer .footer-social a { color: rgba(255,255,255,0.6); }

/* — Breadcrumb (páginas internas) — */
body .otolux-breadcrumb,
body .otolux-breadcrumb a { color: rgba(255,255,255,0.66); }

/* — Página de procedimiento: hero oscuro (labels/badges tenues) — */
body .proc-stat-lbl-w { color: rgba(255,255,255,0.75); }
body .badge-dx { color: var(--gold-hi); }

/* — Botón ghost SOLO en el CTA oscuro de nosotros (texto legible) — */
body .nos-cta-sec .btn-ghost { color: var(--cream); border-color: rgba(237,231,220,0.4); }
body .nos-cta-sec .btn-ghost:hover { color: var(--gold-lt); border-color: var(--gold-lt); }
/* — Nav sticky de especialidad: enlace activo dorado sobre fondo claro — */
body .esp-nav-link-w.active { color: var(--gold-txt); border-bottom-color: var(--gold-txt); }
body .nos-tec-stat-label { color: rgba(255,255,255,0.72); }
body .nos-cta-sec p { color: rgba(237,231,220,0.62); }
body .nos-medico-creds li { color: rgba(237,231,220,0.8); }
/* — Panel de mapa de contacto (oscuro) — */
body .otx-contacto-map-inner p { color: rgba(237,231,220,0.72); }

/* — Tamaños de fuente: piso de 12px para micro-etiquetas — */
body .otolux-nav .nav-links a { font-size: 13px; }
body .tag,
body .otolux-tag,
body .otx-esp-cat,
body .otx-esp-cta,
body .otx-blog-cat,
body .otx-blog-read-more,
body .otx-proc-tab,
body .otx-trust-label,
body .step-phase-w,
body .fase-lbl-w,
body .proc-cat-lbl,
body .proc-badge-w,
body .proc-stat-lbl-w,
body .nos-medico-esp,
body .nos-tec-stat-label,
body .otx-contacto-item-label,
body .otx-blog-meta,
body .otolux-footer h5 { font-size: 12px; }
body .otx-proc-chip,
body .otx-testi-cond,
body .otx-testi-stars,
body .nos-testi-stars { font-size: 13px; }
body .btn-gold,
body .btn-ghost,
body .btn-ghost-cream,
body .btn-ghost-hero { font-size: 13px; }
body .otolux-footer .footer-desc,
body .otolux-footer ul li a { font-size: 14px; }
body .otolux-footer .footer-bottom p { font-size: 12px; }
