/* ═══════ OralMate AI — Homepage 2.0 ═══════ */
:root { --gold:#C9A227; --dark:#1A1A2E; --text:#2D2D2D; --muted:#6B6B6B; --bg:#FAFAFA; --white:#FFF; --border:#E8E8E8; }

/* Ocultar título de página en la homepage */
.home .entry-title,
.home .page-title,
.home h1.page-header,
.home .wp-block-post-title { display: none !important; }

/* Full-width: romper el contenedor del tema para secciones om */
.om { width: 100%; }
.om-hero, .om-logos, .om-features, .om-how, .om-plans, .om-faq, .om-cta-final {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Reset mínimo para evitar conflictos con el tema */
.om * { box-sizing: border-box; }
.om a { text-decoration: none; }

/* ── HERO ── */
.om-hero {
  background: #52525A;
  padding: clamp(60px,10vw,120px) clamp(20px,5vw,80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.om-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,162,39,.15) 0%, transparent 70%);
  pointer-events: none;
}
.om-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,162,39,.15); border: 1px solid rgba(201,162,39,.35);
  color: #C9A227; padding: 7px 18px; border-radius: 100px;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 28px;
}
.om-tag::before { content: '✦'; font-size: .7rem; }
.om-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; color: #fff;
  line-height: 1.1; max-width: 840px; margin: 0 auto 24px;
  letter-spacing: -.02em;
}
.om-hero h1 em { font-style: normal; color: #C9A227; }
.om-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.7);
  max-width: 560px; margin: 0 auto 44px; line-height: 1.7;
}
.om-cta-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.om-btn-gold {
  background: #C9A227; color: #1A1A2E; padding: 15px 38px;
  border-radius: 10px; font-size: 1rem; font-weight: 800;
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.om-btn-gold:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(201,162,39,.45); color:#1A1A2E; }
.om-btn-outline {
  border: 2px solid rgba(255,255,255,.25); color: #fff;
  padding: 13px 36px; border-radius: 10px; font-size: 1rem; font-weight: 600;
  transition: border-color .2s, background .2s;
  display: inline-block;
}
.om-btn-outline:hover { border-color: #C9A227; background: rgba(201,162,39,.1); color:#fff; }
.om-trust {
  margin-top: 52px; display: flex; gap: 32px; justify-content: center;
  flex-wrap: wrap;
}
.om-trust-item { color: rgba(255,255,255,.5); font-size: .85rem; display: flex; align-items: center; gap: 7px; }
.om-trust-item strong { color: rgba(255,255,255,.85); }

/* ── LOGOS ── */
.om-logos {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 28px clamp(20px,5vw,80px);
  text-align: center;
}
.om-logos p { color: var(--muted); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.om-logos-row { display: flex; gap: 48px; justify-content: center; align-items: center; flex-wrap: wrap; }
.om-logo-chip {
  font-weight: 800; font-size: .9rem; color: #bbb; letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── FEATURES ── */
.om-features {
  background: var(--white); padding: clamp(60px,8vw,100px) clamp(20px,5vw,80px);
}
.om-section-header { text-align: center; margin-bottom: 60px; }
.om-section-label {
  color: #C9A227; font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px;
}
.om-section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem); font-weight: 900;
  color: var(--dark); line-height: 1.15; letter-spacing: -.02em;
}
.om-section-header p { color: var(--muted); font-size: 1.05rem; margin-top: 12px; max-width: 540px; margin-left: auto; margin-right: auto; }
.om-features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.om-feature {
  padding: 36px 30px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.om-feature:hover { box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.om-feature-icon { font-size: 2rem; margin-bottom: 18px; }
.om-feature h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.om-feature p { font-size: .93rem; color: var(--muted); line-height: 1.65; }

/* ── HOW ── */
.om-how {
  background: var(--bg); padding: clamp(60px,8vw,100px) clamp(20px,5vw,80px);
}
.om-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; max-width: 900px; margin: 0 auto; position: relative; }
.om-step { text-align: center; }
.om-step-num {
  width: 60px; height: 60px; background: var(--gold); color: #1A1A2E;
  border-radius: 50%; font-size: 1.5rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 6px 20px rgba(201,162,39,.35);
}
.om-step h3 { font-weight: 700; color: var(--dark); margin-bottom: 10px; font-size: 1rem; }
.om-step p { color: var(--muted); font-size: .91rem; line-height: 1.6; }

/* ── PLANS ── */
.om-plans {
  background: #52525A; padding: clamp(60px,8vw,100px) clamp(20px,5vw,80px);
}
.om-plans .om-section-header h2 { color: #fff; }
.om-plans .om-section-header p { color: rgba(255,255,255,.55); }
.om-plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px; max-width: 960px; margin: 0 auto;
}
.om-plan {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 36px 30px; position: relative;
  transition: border-color .2s;
}
.om-plan.best {
  background: rgba(201,162,39,.1); border-color: rgba(201,162,39,.5);
  box-shadow: 0 0 40px rgba(201,162,39,.15);
}
.om-plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: #C9A227; color: #1A1A2E; padding: 5px 18px;
  border-radius: 100px; font-size: .75rem; font-weight: 800;
  white-space: nowrap; letter-spacing: .04em;
}
.om-plan h3 { color: #C9A227; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.om-plan-price { font-size: 3rem; font-weight: 900; color: #fff; line-height: 1; }
.om-plan-price sup { font-size: 1.3rem; vertical-align: super; }
.om-plan-price sub { font-size: .9rem; color: rgba(255,255,255,.5); font-weight: 400; }
.om-plan-queries { font-size: .85rem; color: rgba(255,255,255,.5); margin: 8px 0 24px; }
.om-plan-divider { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 0 0 24px; }
.om-plan-ul { list-style: none; padding: 0; margin: 0 0 32px; }
.om-plan-ul li { color: rgba(255,255,255,.75); font-size: .91rem; padding: 8px 0; display: flex; align-items: center; gap: 10px; }
.om-plan-ul li::before { content: '✓'; color: #C9A227; font-weight: 800; flex-shrink: 0; }
.om-plan-btn {
  display: block; width: 100%; padding: 13px;
  background: rgba(255,255,255,.1); color: #fff;
  border-radius: 10px; text-align: center; font-weight: 700; font-size: .95rem;
  transition: background .2s;
}
.om-plan-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.om-plan.best .om-plan-btn { background: #C9A227; color: #1A1A2E; }
.om-plan.best .om-plan-btn:hover { background: #a8871e; color:#1A1A2E; }

/* ── FAQ ── */
.om-faq {
  background: var(--white); padding: clamp(60px,8vw,100px) clamp(20px,5vw,80px);
}
.om-faq-list { max-width: 760px; margin: 0 auto; }
.om-faq-item {
  border-bottom: 1px solid var(--border); padding: 22px 0;
}
.om-faq-q {
  font-weight: 700; color: var(--dark); font-size: 1rem;
  width: 100%; background: none; border: 0; text-align: left;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
  font-family: inherit;
}
.om-faq-q::after {
  content: '+'; font-size: 1.4rem; color: #C9A227;
  font-weight: 300; flex-shrink: 0; transition: transform .25s;
}
.om-faq-item.open .om-faq-q::after { transform: rotate(45deg); }
.om-faq-a {
  color: var(--muted); font-size: .94rem; line-height: 1.7;
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
}
.om-faq-item.open .om-faq-a { max-height: 500px; padding-top: 14px; }

/* ── CTA FINAL ── */
.om-cta-final {
  background: linear-gradient(135deg, #C9A227 0%, #a8871e 100%);
  padding: clamp(60px,8vw,100px) clamp(20px,5vw,80px);
  text-align: center;
}
.om-cta-final h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 900;
  color: #1A1A2E; margin-bottom: 16px; letter-spacing: -.02em;
}
.om-cta-final p { color: rgba(26,26,46,.7); margin-bottom: 36px; font-size: 1.05rem; }
.om-btn-dark {
  background: #1A1A2E; color: #fff; padding: 16px 44px;
  border-radius: 10px; font-size: 1rem; font-weight: 800;
  display: inline-block; transition: transform .2s, box-shadow .2s;
}
.om-btn-dark:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(0,0,0,.3); color: #fff; }

/* ── RESPONSIVO ── */
@media (max-width: 640px) {
  .om-cta-group { flex-direction: column; align-items: center; }
  .om-btn-gold, .om-btn-outline { width: 100%; text-align: center; }
  .om-trust { flex-direction: column; gap: 14px; }
  .om-plans-grid { grid-template-columns: 1fr; }
}
/* ── OVERRIDE: quitar max-width del contenedor de WordPress ── */
.home .wp-block-post-content,
.home .entry-content,
.home .wp-block-group > .wp-block-post-content {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Evitar overflow: hidden que bloquea el breakout */
.home main,
.home .wp-block-group[tagname="main"],
.home .wp-block-group.is-layout-constrained {
  overflow: visible !important;
}

/* ── BRANDING: sitio title en oscuro + destacar "mate" en dorado ── */
.wp-block-site-title a,
.wp-block-site-title { 
  color: #3d3d3d !important;
}
.wp-block-site-title,
.wp-block-site-title a {
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* 4 planes (Starter/Pro/Clinic/Enterprise) */
.om-plans-grid.om-plans-4 { max-width: 1200px; grid-template-columns: repeat(4, minmax(228px, 1fr)); }
@media (max-width: 1080px){ .om-plans-grid.om-plans-4 { grid-template-columns: repeat(2, 1fr); max-width: 620px; } }
@media (max-width: 560px){ .om-plans-grid.om-plans-4 { grid-template-columns: 1fr; max-width: 360px; } }

/* Robot del hero — imagen con el relleno blanco HORNEADO dentro del aro dorado (alineado).
   Círculo completo visible sobre navy; sin disco CSS ni recortes (petición Raúl 19/8). */
.om-hero-robot { display:block; width:210px; height:auto; margin:4px auto 24px; background:none; border-radius:0; padding:0; filter: drop-shadow(0 6px 18px rgba(201,162,39,.30)); animation: omFloat 4.5s ease-in-out infinite; }
@keyframes omFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
@media (max-width:560px){ .om-hero-robot{ width:160px; } }
/* marcador om-hero-robot-bg */

/* ── om-mobile-header-fix: cabecera (logo+nav) en nowrap desborda ~18px a <=390px ── */
@media (max-width: 600px){
  .home header.wp-block-template-part .wp-block-group.alignfull{
    padding-left: 14px !important; padding-right: 14px !important;
  }
  .home header .wp-block-group.alignwide{ gap: 12px !important; }
}
/* guarda: recorta cualquier desborde horizontal residual de la portada sin ocultar contenido real */
.home, .home .wp-site-blocks{ overflow-x: clip; }

/* Notas al pie de los planes (coletillas del documento definitivo) */
.om-plans-notes { max-width: 820px; margin: 22px auto 0; padding: 0 16px; }
.om-plans-notes p { font-size: .82rem; line-height: 1.55; color: rgba(255,255,255,.6); text-align: center; margin: 6px 0; }
.om-plans-notes strong { color: rgba(255,255,255,.82); }
