/*
 * Rodriguez Ascensores — ajustes sobre el tema oscuro (rodriguez-dark-theme)
 * Corrige lo que quedó distinto a la preview aprobada.
 * Se carga DESPUÉS del "CSS adicional" del personalizador, por eso pisa
 * las reglas viejas del tema claro.
 * Para revertir: borrar mu-plugins/rodriguez-ajustes.php y la carpeta rodriguez-ajustes/.
 */

:root {
  --rd-bg: #0A0E14;
  --rd-bg2: #111820;
  --rd-bg3: #1A222C;
  --rd-card: #141C26;
  --rd-border: #22303E;
  --rd-blue: #0066CC;
  --rd-blue-l: #3D8FE6;
  --rd-silver: #C9CED4;
  --rd-white: #E8ECF0;
  --rd-mute: #7A8694;
}

/* ------------------------------------------------------------
   1. Fondo oscuro de punta a punta (antes quedaba blanco el contenedor
      #wrapper de Kadence y los títulos blancos no se leían)
   ------------------------------------------------------------ */
html body,
body #wrapper.site,
body #inner-wrap,
body .content-area,
body .entry.content-bg {
  background: var(--rd-bg) !important;
}
body .entry.content-bg { box-shadow: none !important; }
body .content-area { margin-top: 0 !important; margin-bottom: 0 !important; }
body .content-container.site-container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body .entry-content-wrap { padding: 0 !important; }
body .entry-content { padding-bottom: 0 !important; }

/* Tipografía igual a la preview (Inter en títulos) */
body .entry-content h1,
body .entry-content h2,
body .entry-content h3,
body .entry-content h4 {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  letter-spacing: -.01em;
}
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }

/* ------------------------------------------------------------
   2. Secciones a ancho completo (el CSS viejo las encajonaba a 1120px)
   ------------------------------------------------------------ */
body .entry-content > .rod-hero,
body .entry-content > .rod-section,
body .entry-content > .rod-why,
body .entry-content > .rod-nosotros-hero,
body .entry-content > .rod-cta-band,
body .entry-content > .rod-svc-strip {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box;
}
body .entry-content > .rod-section > .wp-block-group__inner-container,
body .entry-content > .rod-why > .wp-block-group__inner-container,
body .entry-content > .rod-nosotros-hero > .wp-block-group__inner-container,
body .entry-content > .rod-cta-band > .wp-block-group__inner-container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box;
}
body .entry-content > .rod-section { border-top: 0 !important; }
body .rod-svc-strip-inner { padding: 0 16px; box-sizing: border-box; }
body .rod-divider { margin: 0 !important; }

/* ------------------------------------------------------------
   3. Hero de Inicio: foto a pantalla completa con el texto encima
      (antes la foto tapaba el título y el botón)
   ------------------------------------------------------------ */
body .rod-hero:not(.rod-hero-small) > .wp-block-group__inner-container {
  position: static !important;
}
body .rod-hero > .wp-block-group__inner-container > :not(.rod-hero-bg) {
  position: relative;
  z-index: 1;
}
body .rod-hero .rod-hero-bg { z-index: 0 !important; }
body .rod-hero .wp-block-buttons { margin-top: 0 !important; }
body .rod-hero .wp-block-button__link::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

/* Hero chico de las páginas interiores (Servicios, Nosotros, Contacto) */
body .rod-hero.rod-hero-small {
  min-height: 0 !important;
  display: block !important;
  background: linear-gradient(180deg, var(--rd-bg2) 0%, var(--rd-bg) 100%) !important;
  border-bottom: 1px solid var(--rd-border);
}
body .rod-hero.rod-hero-small > .wp-block-group__inner-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 64px 24px 48px !important;
  box-sizing: border-box;
}
body .rod-hero.rod-hero-small h1 { color: #fff !important; }
body .rod-hero.rod-hero-small p,
body .rod-lead { color: var(--rd-silver) !important; }

/* ------------------------------------------------------------
   4. Restos del tema claro en las páginas interiores
   ------------------------------------------------------------ */
body .rod-eyebrow { color: var(--rd-blue-l) !important; }
body .rod-subtitle { color: var(--rd-white) !important; }
body .rod-card p { color: var(--rd-silver) !important; }
body .rod-grid { border-top-color: var(--rd-border) !important; }
body .rod-card { border-bottom-color: var(--rd-border) !important; }
body .rod-card.rod-fact h3 { color: var(--rd-blue-l) !important; }
body .rod-zones li,
body .entry-content .rod-jump li {
  background: var(--rd-card) !important;
  border-color: var(--rd-border) !important;
  color: var(--rd-silver) !important;
}
body .rod-zones li:nth-child(-n+5) {
  border-color: var(--rd-blue) !important;
  background: rgba(0, 102, 204, .15) !important;
}
body .entry-content .rod-jump li:hover { border-color: var(--rd-blue-l) !important; }
body .rod-jump a { color: var(--rd-silver) !important; }
body .rod-more a { color: var(--rd-blue-l) !important; }
body .rod-photo figcaption { color: var(--rd-mute) !important; }
body .rod-cta,
body .rod-band {
  background: var(--rd-bg2) !important;
  border: 1px solid var(--rd-border);
}
body .rod-form .ff-el-form-control {
  background: var(--rd-bg3) !important;
  color: var(--rd-white) !important;
  border-color: var(--rd-border) !important;
}
body .rod-form .ff-el-form-control::placeholder { color: var(--rd-mute); }
body .rod-form .ff-el-form-control:focus { border-color: var(--rd-blue-l) !important; }
body .rod-form .ff-el-input--label label { color: var(--rd-silver) !important; }
body .rod-wa .wp-block-button__link { background: #25D366 !important; color: #0A0E14 !important; }

/* ------------------------------------------------------------
   5. Encabezado como la preview: menú con recuadro y botón WhatsApp
   ------------------------------------------------------------ */
body #masthead .header-navigation .header-menu-container > ul > li > a {
  padding: 6px 14px !important;
  margin: 0 2px;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--rd-silver) !important;
  transition: background .2s, border-color .2s;
}
body #masthead .header-navigation .header-menu-container > ul > li > a:hover {
  background: var(--rd-bg3);
  border-color: var(--rd-border);
}
body #masthead .header-navigation .header-menu-container > ul > li.current-menu-item:not(.menu-item-type-custom) > a {
  border-color: var(--rd-silver) !important;
  color: #fff !important;
}
.rod-header-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #25D366;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}
.rod-header-wa:hover { background: #1FB858; }
.rod-header-wa svg { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------
   6. Pie como la preview: datos de contacto + lema
   ------------------------------------------------------------ */
.rod-footer-top {
  border-bottom: 1px solid var(--rd-border);
}
.rod-footer-top .rod-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 28px;
  font-size: 13px;
  color: var(--rd-mute);
  box-sizing: border-box;
}
.rod-footer-top .rod-footer-info { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.rod-footer-top .rod-footer-info a,
.rod-footer-top .rod-footer-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rd-mute) !important;
  text-decoration: none !important;
}
.rod-footer-top .rod-footer-info a:hover { color: var(--rd-silver) !important; }
.rod-footer-top svg { width: 16px; height: 16px; color: var(--rd-blue); flex: none; }
.rod-footer-top .rod-footer-tag { font-size: 12px; letter-spacing: .04em; }
body #colophon .site-info { text-align: center; font-size: 12px; }

/* ------------------------------------------------------------
   7. Detalles del encabezado
   ------------------------------------------------------------ */
body #masthead .site-header-main-section-right { align-items: center; }
body #masthead .rod-header-wa { align-self: center; height: auto; }
body #masthead .header-navigation .header-menu-container > ul > li.menu-item-type-custom > a { font-weight: 500 !important; }

/* ------------------------------------------------------------
   8. Cita de "Quiénes somos" centrada (el CSS viejo la limitaba a 30ch
      y la dejaba corrida a la izquierda)
   ------------------------------------------------------------ */
body .rod-quote {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  max-width: 46ch !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
}
body .rod-band .rod-quote { max-width: 46ch !important; }

/* Textos largos (Nosotros) en una columna centrada de ancho de lectura */
body .entry-content > .rod-section.rod-prose > .wp-block-group__inner-container > * {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body .entry-content > .rod-section.rod-prose h2,
body .entry-content > .rod-section.rod-prose h3 { text-align: center; }

/* Recuadro final "Hablemos de su edificio" centrado y separado del pie */
body .entry-content > .rod-cta {
  text-align: center;
  margin-top: 24px !important;
  margin-bottom: 64px !important;
}
body .rod-cta .wp-block-buttons { justify-content: center; }

/* Atajos de Servicios: todos iguales (antes 5 azules y 1 gris) */
body .entry-content .rod-zones.rod-jump li,
body .entry-content .rod-jump li:nth-child(n) {
  background: var(--rd-card) !important;
  border-color: var(--rd-border) !important;
}
body .entry-content .rod-jump li:hover { border-color: var(--rd-blue-l) !important; }

/* Botón WhatsApp del cierre en verde, como el del encabezado */
body .rod-cta-band .wp-block-button__link[href*="wa.me"] {
  background: #25D366 !important;
  color: #0A0E14 !important;
}
body #masthead .header-navigation .header-menu-container > ul > li.menu-item-type-custom.current-menu-item > a {
  color: var(--rd-silver) !important;
}

/* v1.1 — Título de Nosotros en Inicio pasa de H1 a H2 (un solo H1 por página) */
body .rod-nosotros-hero h2 {
  font-size: clamp(28px, 4vw, 44px) !important;
  font-weight: 900 !important;
  color: #fff !important;
  margin: 0 0 8px !important;
  line-height: 1.15 !important;
}

/* v1.1 — Íconos de la franja de servicios cliqueables */
body .rod-svc-item.rod-svc-link { cursor: pointer; transition: background .2s; }
body .rod-svc-item.rod-svc-link:hover { background: var(--rd-bg3); }
body .rod-svc-item.rod-svc-link:hover b { color: var(--rd-blue-l); }

/* v1.1 — Página 404 */
body.error404 .entry-title,
body.error404 .page-title,
body.error404 h1 { color: #fff !important; font-family: Inter, system-ui, sans-serif !important; }
body.error404 .entry-content,
body.error404 .page-content { max-width: 760px; margin: 0 auto; padding: 72px 24px !important; text-align: center; }
body.error404 .search-form { max-width: 420px; margin: 24px auto 0; }
body.error404 .search-form input[type="search"] {
  background: var(--rd-bg3) !important;
  color: var(--rd-white) !important;
  border: 1px solid var(--rd-border) !important;
}
.rod-404-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.rod-404-btns a {
  display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 8px;
  font-weight: 700; font-size: 15px; text-decoration: none !important;
}
.rod-404-btns .rod-404-home { background: var(--rd-blue); color: #fff !important; }
.rod-404-btns .rod-404-wa { background: #25D366; color: #0A0E14 !important; }

/* ------------------------------------------------------------
   9. Animaciones en versión oscura (igual a la preview)
   ------------------------------------------------------------ */
body .rod-anim{
  --rn: #E8ECF0;
  --re: #3D8FE6;
  --rs: #7A8694;
  --rok: #34D399;
  --rwarn: #FBBF24;
  box-sizing: border-box;
  margin: 28px auto 8px;
  max-width: 400px;
  width: 100%;
  background: var(--rd-card);
  border: 1px solid var(--rd-border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-size: 14px;
  line-height: 1.35;
  color: var(--rd-white);
}
body .rod-anim *{ box-sizing: border-box }
body .rod-anim .ra-title{ font-weight: 700; color: #fff; font-size: 15px; margin: 0 0 4px }
body .rod-anim .ra-sub{ color: var(--rd-mute); font-size: 12px; margin: 0 0 14px }
body .rod-anim .ra-cap{ font-size: 12px; color: var(--rd-mute); text-align: center; margin: 12px 0 0 }

@media (min-width: 1000px) {
body .rod-has-anim > .wp-block-group__inner-container{
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(300px,380px);
    column-gap: 56px;
    row-gap: 0;
    align-items: start;
  }
body .rod-has-anim > .wp-block-group__inner-container > *{ grid-column: 1 }
body .rod-has-anim > .wp-block-group__inner-container > .rod-anim{
    grid-column: 2;
    grid-row: 1 / span 40;
    margin: 6px 0 0;
    position: sticky;
    top: 110px;
  }
}

/* Audit */
body .ra-audit .ra-row{ display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px dashed var(--rd-border) }
body .ra-audit .ra-row:last-of-type{ border-bottom:0 }
body .ra-audit .ra-box{ flex:none; width:18px; height:18px; border:2px solid var(--rd-mute); border-radius:4px; display:grid; place-items:center; transition:.3s }
body .ra-audit .ra-box svg{ width:12px; height:12px; opacity:0; transform:scale(.4); transition:.3s }
body .ra-audit .ra-lab{ flex:1; color: var(--rd-silver) }
body .ra-audit .ra-st{ font-size:11px; font-weight:700; padding:3px 8px; border-radius:999px; opacity:0; transform:translateX(6px); transition:.35s; white-space:nowrap }
body .ra-audit .ra-st.ok{ background:rgba(52,211,153,.15); color:var(--rok) }
body .ra-audit .ra-st.warn{ background:rgba(251,191,36,.15); color:var(--rwarn) }
body .ra-audit .ra-row.on .ra-box{ border-color:var(--re); background:var(--re) }
body .ra-audit .ra-row.on .ra-box svg{ opacity:1; transform:none }
body .ra-audit .ra-row.on .ra-st{ opacity:1; transform:none }
body .ra-audit .ra-bar{ height:6px; background:var(--rd-bg3); border-radius:6px; overflow:hidden; margin-top:14px }
body .ra-audit .ra-bar i{ display:block; height:100%; width:0; background:var(--re); transition:width .6s ease }
body .ra-audit .ra-foot{ display:flex; justify-content:space-between; align-items:center; margin-top:10px; font-size:12px; color:var(--rd-mute) }
body .ra-audit .ra-stamp{ font-weight:800; letter-spacing:.06em; font-size:11px; color:var(--re); border:2px solid var(--re); border-radius:4px; padding:3px 8px; transform:rotate(-6deg) scale(1.6); opacity:0; transition:.35s cubic-bezier(.3,1.6,.5,1) }
body .ra-audit.done .ra-stamp{ opacity:1; transform:rotate(-6deg) scale(1) }

/* Advice */
body .ra-advice .ra-qs{ display:grid; gap:8px }
body .ra-advice .ra-q{ background:var(--rd-bg3); border-radius:12px 12px 12px 3px; padding:8px 12px; max-width:88%; opacity:0; transform:translateY(8px); transition:.4s; color: var(--rd-silver) }
body .ra-advice .ra-q.on{ opacity:1; transform:none }
body .ra-advice .ra-who{ font-size:11px; color:var(--rd-mute); margin-bottom:6px }
body .ra-advice .ra-flow{ display:flex; justify-content:center; margin:10px 0 }
body .ra-advice .ra-flow svg{ width:24px; height:30px; opacity:0; transition:.4s }
body .ra-advice .ra-flow.on svg{ opacity:1 }
body .ra-advice .ra-gear{ display:inline-block; width:16px; height:16px; vertical-align:-3px; margin-right:6px }
body .ra-advice.on-anal .ra-gear{ animation:raspin 1.4s linear infinite }
@keyframes raspin { to { transform:rotate(360deg) } }
body .ra-advice .ra-anal { text-align:center; font-size:12px; color:var(--rd-mute); opacity:0; transition:.4s }
body .ra-advice .ra-anal.on { opacity:1 }
body .ra-advice .ra-rec { margin-top:10px; background:var(--rd-blue); color:#fff; border-radius:10px; padding:12px 14px; display:flex; gap:10px; align-items:flex-start; opacity:0; transform:scale(.96); transition:.45s }
body .ra-advice .ra-rec.on { opacity:1; transform:none }
body .ra-advice .ra-rec b { display:block; color:#fff; font-size:13px }
body .ra-advice .ra-rec span { font-size:12px; color:rgba(255,255,255,.7) }
body .ra-advice .ra-rec svg { flex:none; width:22px; height:22px }

/* Report */
body .ra-report .ra-docs { position:relative; height:250px }
body .ra-report .ra-sheet { position:absolute; inset:0 30px 0 0; background:var(--rd-bg3); border:1px solid var(--rd-border); border-radius:6px; padding:16px }
body .ra-report .ra-sheet.b1 { transform:translate(18px,10px) rotate(3deg); background:var(--rd-bg2) }
body .ra-report .ra-sheet.b2 { transform:translate(9px,5px) rotate(1.5deg); background:var(--rd-bg3) }
body .ra-report .ra-h { height:10px; width:55%; background:#fff; border-radius:3px; margin-bottom:12px }
body .ra-report .ra-l { height:6px; background:var(--rd-border); border-radius:3px; margin:7px 0; width:0; transition:width .5s ease }
body .ra-report .ra-chart { display:flex; align-items:flex-end; gap:8px; height:60px; margin:14px 0 10px; border-bottom:1px solid var(--rd-border) }
body .ra-report .ra-chart i { flex:1; background:var(--re); height:0; border-radius:3px 3px 0 0; transition:height .6s ease }
body .ra-report .ra-chart i:nth-child(2) { background:var(--rd-blue-l) }
body .ra-report .ra-chart i:nth-child(4) { background:var(--rd-mute) }
body .ra-report .ra-sign { position:absolute; right:16px; bottom:12px; width:90px; height:30px }
body .ra-report .ra-sign path { fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-dasharray:220; stroke-dashoffset:220; transition:stroke-dashoffset 1.1s ease }
body .ra-report.done .ra-sign path { stroke-dashoffset:0 }
body .ra-report .ra-tag { position:absolute; left:16px; bottom:14px; font-size:11px; font-weight:700; background:rgba(52,211,153,.15); color:var(--rok); border-radius:999px; padding:3px 9px; opacity:0; transition:.4s }
body .ra-report.done .ra-tag { opacity:1 }

/* Map */
body .ra-map { max-width:340px }
body .ra-map svg { display:block; width:100%; height:auto; max-height:520px }
body .ra-map .ra-land { fill:var(--rd-bg3); stroke:var(--rd-mute); stroke-width:1 }
body .ra-map .ra-arc { fill:none; stroke:var(--re); stroke-width:1.4; stroke-linecap:round; stroke-dasharray:var(--len); stroke-dashoffset:var(--len); opacity:.85 }
body .ra-map.go .ra-arc { transition:stroke-dashoffset 1s ease }
body .ra-map.go .ra-arc.on { stroke-dashoffset:0 }
body .ra-map .ra-city { fill:#fff; transform-box:fill-box; transform-origin:center; transform:scale(0); transition:transform .35s cubic-bezier(.3,1.6,.5,1) }
body .ra-map .ra-city.on { transform:scale(1) }
body .ra-map .ra-lbl { font-size:7px; fill:var(--rd-mute); opacity:0; transition:opacity .4s; font-family:inherit }
body .ra-map .ra-lbl.on { opacity:1 }
body .ra-map .ra-amba { fill:var(--re) }
body .ra-map .ra-pulse { fill:none; stroke:var(--re); stroke-width:1.5; transform-box:fill-box; transform-origin:center; animation:rapulse 2.2s ease-out infinite }
body .ra-map .ra-pulse.p2 { animation-delay:1.1s }
@keyframes rapulse { from { transform:scale(1); opacity:.9 } to { transform:scale(4.5); opacity:0 } }
body .ra-map .ra-ambalbl { font-size:8.5px; font-weight:700; fill:#fff }

@media (prefers-reduced-motion: reduce) {
  .rod-anim *, .rod-anim { transition: none !important; animation: none !important }
}

/* ------------------------------------------------------------
   10. Celular
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .rod-header-wa { display: none; }
}
@media (max-width: 768px) {
  body .rod-hero:not(.rod-hero-small) > .wp-block-group__inner-container { padding: 56px 20px !important; }
  body .entry-content > .rod-section { padding-top: 48px !important; padding-bottom: 48px !important; }
  .rod-footer-top .rod-footer-inner { justify-content: center; text-align: center; }
  .rod-footer-top .rod-footer-info { justify-content: center; }

  /* v1.1 — Franja de servicios en 2 columnas (antes 1 columna, muy larga) */
  body .rod-svc-strip-inner { grid-template-columns: repeat(2, 1fr) !important; }
  body .rod-svc-item {
    border-right: 1px solid var(--rd-border) !important;
    border-bottom: 1px solid var(--rd-border) !important;
    border-top: 0 !important;
    padding: 22px 10px !important;
  }
  body .rod-svc-item:nth-child(2n) { border-right: 0 !important; }
  body .rod-svc-item:nth-child(5) { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 0 !important; }

  /* v1.1 — Botones del cierre del mismo tamaño */
  body .rod-cta-band .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 10px; max-width: 360px; margin-inline: auto; }
  body .rod-cta-band .wp-block-button,
  body .rod-cta-band .wp-block-button__link { width: 100%; text-align: center; }
  body .rod-cta-band .wp-block-button__link { font-size: 15px !important; padding: 14px 16px !important; word-break: break-word; }

  /* v1.1 — Que el botón flotante de WhatsApp no tape el pie */
  body #colophon .site-info { padding-bottom: 72px; }
}
