/* =========================================================
   Smartho · ajustes técnicos (S&A Developers, 2026)
   No cambia el diseño: mismos colores (verde #87b016) y tipografías del tema.
   ========================================================= */

/* ---- eslogan del inicio: "Realmente Inteligentes." con el trazo verde bajo las dos palabras ---- */
/* escritorio: un renglón y el trazo del tema se estira bajo ambas (el resaltado mide lo que su texto,
   aunque pase del ancho de la columna: a la derecha solo hay imagen) */
@media (min-width: 992px) {
  .smh-junto { white-space: nowrap; }
  h1 .lqd-highlight.smh-hl { width: max-content; }
}
/* celular y tablet: no caben juntas; el mismo trazo va bajo cada renglón y crece de izquierda a derecha */
@media (max-width: 991px) {
  h1 .lqd-highlight.smh-hl { display: inline; padding: 0; }
  h1 .smh-hl .lqd-highlight-inner { display: none; }
  h1 .smh-hl .lqd-highlight-txt {
    background: url(/assets/smartho/trazo.svg) no-repeat 0 100% / 0 .275em;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    transition: background-size .85s cubic-bezier(.22, .61, .36, 1) .2s;
  }
  .lqd-animations-done .smh-hl .lqd-highlight-txt,
  .is-in-view .smh-hl .lqd-highlight-txt { background-size: 100% .275em; }
}

/* ---- redes con logo (barra lateral "Síguenos") ---- */
.smh-red { display: inline-flex; align-items: center; justify-content: center; }
.smh-red i { font-size: 15px; line-height: 1; }
/* la barra lateral es texto vertical (writing-mode) girado 180°: el ícono va derecho */
.lqd-stickybar .smh-red i, .header-module .inline-nav .smh-red i {
  display: inline-block; writing-mode: horizontal-tb; transform: rotate(180deg);
}
.smh-siguenos { cursor: default; }

/* ---- teléfono, correo y redes enlazados: heredan el estilo del texto ---- */
a.smh-dato { color: inherit; text-decoration: none; transition: opacity .2s; }
a.smh-dato:hover, a.smh-dato:focus { color: inherit; opacity: .75; }
.smh-red-txt i { width: 1.2em; margin-right: .35em; text-align: center; }

/* ---- WhatsApp flotante (escritorio; en celular va en la barra inferior) ---- */
.smh-wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 990;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff; font-size: 30px; line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: transform .2s;
}
.smh-wa:hover, .smh-wa:focus { color: #fff; transform: scale(1.06); }
@media (max-width: 1024px) { .smh-wa { display: none; } }
.wp-bottom-menu-item .fa-whatsapp { color: #25d366; }
/* la barra inferior pedía Font Awesome 4 (ya no se carga, era un duplicado): usa la 5 que trae el tema */
.wp-bottom-menu .wp-bottom-menu-item-icons.fa { font-family: "Font Awesome 5 Free" !important; font-weight: 900 !important; }
.wp-bottom-menu .wp-bottom-menu-item-icons.fab { font-family: "Font Awesome 5 Brands" !important; font-weight: 400 !important; }

/* ---- formularios ---- */
.smh-trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.smh-respuesta:empty { display: none; }
/* el CSS de Contact Form 7 oculta los avisos mientras el form tiene la clase .init (siempre, sin WordPress) */
.wpcf7 form.init .smh-respuesta:not(:empty) { display: block; }
.smh-respuesta { margin-top: 1em; font-size: 15px; border: 0 !important; padding: 0 !important; }
.smh-respuesta.ok, .ld_sf_response.ok { color: #6d8f12; }
.smh-respuesta.error, .ld_sf_response.error { color: #c0392b; }
@media (max-width: 767px) { .wpcf7-form-control, .ld_sf_email { font-size: 16px !important; } } /* iPhone no hace zoom */

/* ---- blog sin artículos todavía / 404 ---- */
.smh-vacio { max-width: 640px; margin: 60px auto 100px; text-align: center; font-size: 18px; }
.smh-vacio a { text-decoration: underline; }

/* ---- acomodo (02/12/2026): nada pasa por debajo de la barra lateral y el menú siempre a la mano ---- */
/* La barra lateral (Menú / Síguenos) solo se ve desde 1101 px (data-mobile-nav-breakpoint="1100").
   build.py quitó los 100 px sueltos de algunas secciones; aquí se reservan para todo el contenido y el pie. */
@media (min-width: 1101px) {
  body.page-has-left-stickybar #lqd-site-content,
  body.page-has-left-stickybar #footer { margin-left: 100px; }
  body.page-has-left-stickybar .lqd-stickybar-wrap { background: #fff; border-right: 1px solid rgba(0, 0, 0, .08); }

  /* al bajar, la plantilla escondía todo el menú de arriba: se queda fijo y compacto */
  #header.is-stuck > .lqd-head-sec-wrap {
    display: block !important; visibility: visible !important; opacity: 1 !important; transform: none !important;
    background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  }
  #header.is-stuck .module-logo { padding-top: 8px !important; padding-bottom: 8px !important; }
  #header.is-stuck .module-logo img { max-height: 48px; width: auto; }
}
/* celular y tablet: la barra inferior (Inicio · Llamar · WhatsApp · Contacto) es fija y tapaba el final
   de la página (el © y las redes del pie). Se le deja su espacio, también sobre la barra del iPhone. */
@media (max-width: 1024px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .wp-bottom-menu { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
}
/* Compañía, "Viviendo de manera inteligente": el texto quedaba en 14 px gris; igual que el resto (16 px) */
.ld_fancy_heading_63f6bc4e7e760 p { font-size: 16px !important; line-height: 1.5em !important; }

/* ---- Contacto (02/12/2026): cuadro verde y formulario lado a lado, sobre la foto ---- */
/* build.py movió el formulario a la fila del cuadro verde (.smh-contacto) y le puso título propio */
.smh-contacto { margin-bottom: 80px; }
.smh-contacto .smh-col-form > .vc_column-inner {
  background: #fff; border-radius: 0 !important; box-shadow: 0 24px 60px rgba(0, 0, 0, .10);
  padding: 40px 22px 30px !important;
}
.smh-form-titulo { font-size: 30px; line-height: 1.15; margin: 0 0 .35em; }
.smh-form-sub { font-size: 16px; margin: 0 0 28px; color: rgba(25, 25, 25, .75); }
.smh-contacto .ld_cf7_6b0e0c46a316a input:not([type=submit]):not([type=checkbox]),
.smh-contacto .ld_cf7_6b0e0c46a316a textarea { font-size: 16px; }  /* 14 px se leía chico */
.smh-contacto .ld_cf7_6b0e0c46a316a .wpcf7-form-control-wrap { margin-bottom: 22px; }
.smh-contacto .smh-dato { white-space: nowrap; }
.smh-contacto .lqd-tabs-nav a { cursor: pointer; }
@media (min-width: 992px) {
  .smh-contacto > .ld-container { padding-left: 50px; padding-right: 50px; }
  .smh-contacto > .ld-container > .row { align-items: stretch !important; }
  .smh-contacto > .ld-container > .row > .wpb_column > .vc_column-inner { height: 100%; }
  .smh-contacto .liquid-column-responsive-63f6ab5e3355c > .vc_column-inner { margin-left: 0 !important; padding: 56px 48px 48px !important; }
  .smh-contacto .smh-col-form > .vc_column-inner { padding: 56px 56px 44px !important; }
  /* dentro del cuadro verde: Llámanos y Escríbenos uno bajo otro, así no se parten el teléfono ni el WhatsApp */
  .smh-contacto .lqd-tabs-pane .ld-row-inner > .wpb_column { flex: 0 0 100%; width: 100%; max-width: 100%; margin-left: 0; }
  .smh-contacto .lqd-tabs-pane .ld-row-inner > .wpb_column + .wpb_column { margin-top: 28px; }
  .smh-contacto .lqd-tabs-nav-wrap { margin-bottom: 28px !important; }
}
/* celular y tablet: la foto decorativa más baja, para llegar antes a los datos y al formulario */
@media (max-width: 991px) {
  body .liquid-row-responsive-63f6ab5e32ef3 { padding-top: 110px !important; padding-bottom: 110px !important; }
  .smh-contacto { margin-bottom: 40px; }
}

/* ---- Inicio (02/12/2026): video en el hero ---- */
/* build.py mete el <video> detrás del velo oscuro; ajustes.js lo carga y, cuando ya se está reproduciendo,
   aparece con un fundido sobre la foto. El velo se hace degradado: más oscuro abajo, donde va el título blanco,
   porque varias tomas del video son claras (muros blancos, persianas). */
.smh-hero-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.smh-hero-video.is-playing { opacity: 1; }
.smh-hero.smh-hero-con-video > .liquid-row-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .34) 50%, rgba(0, 0, 0, .2) 100%) !important;
}
.smh-hero-acciones { margin-top: 26px; }
/* el hero medía una pantalla pero empieza bajo el menú (98 px): su parte de abajo, ahora con el botón, quedaba
   fuera de la primera pantalla. Se le resta el menú para que título, texto y botón se vean sin bajar. */
@media (min-width: 1101px) {
  .smh-hero.vc_row-o-full-height { min-height: calc(100vh - 98px) !important; }
}
/* celular y tablet: el encabezado mide 112 px y, hasta 1024 px, la barra inferior fija 76 px (tapaba el botón) */
@media (max-width: 1100px) {
  .smh-hero.vc_row-o-full-height { min-height: calc(100vh - 112px) !important; min-height: calc(100svh - 112px) !important; }
}
@media (max-width: 1024px) {
  .smh-hero.vc_row-o-full-height { min-height: calc(100vh - 188px) !important; min-height: calc(100svh - 188px) !important; }
}
a.smh-ver-video {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 22px 8px 8px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px;
  color: #fff; font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none;
  background: rgba(255, 255, 255, .1); transition: background .2s, border-color .2s;
}
a.smh-ver-video:hover, a.smh-ver-video:focus { color: #fff; background: rgba(255, 255, 255, .2); border-color: #fff; }
.smh-ver-video-icono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: #87b016; font-size: 12px; padding-left: 2px;
}
.smh-modal-video {
  /* cabe a lo ancho y a lo alto, con lugar arriba para "Cerrar" (30/17 es la proporción del video) */
  width: min(1100px, 92vw, calc((100vh - 130px) * 30 / 17)); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.smh-modal-video::backdrop { background: rgba(0, 0, 0, .88); }
.smh-modal-video video { display: block; width: 100%; aspect-ratio: 30 / 17; background: #000; }
.smh-modal-cerrar {
  position: absolute; right: 0; bottom: 100%; margin-bottom: 10px; padding: 6px 0;
  background: none; border: 0; color: #fff; font-size: 16px; cursor: pointer;
}
.smh-modal-cerrar span { font-size: 22px; vertical-align: -2px; margin-left: 4px; }

/* ---- Blog (02/12/2026): índice con tarjetas y página de artículo ---- */
/* la franja gris del título (Blog, artículos y 404) está fuera de #lqd-site-content: quedaba debajo de la
   barra lateral y se leía "og" en lugar de "Blog". Se le reserva el mismo espacio que al contenido. */
@media (min-width: 1101px) {
  body.page-has-left-stickybar .titlebar { margin-left: 100px; }
  /* el tema les da 1250 px fijos a estos contenedores: con la barra no cabían y salía scroll horizontal.
     100 % y no auto (04/12/2026): dentro de .vc_row (flex) "auto" se encoge al contenido, y en la Galería
     las fotos van con posición absoluta (masonry): el contenedor quedaba de 273 px y las fotos en miniatura. */
  body.page-has-left-stickybar #lqd-site-content .container,
  body.page-has-left-stickybar .titlebar .container { width: 100%; max-width: 1250px; }
  /* la fila de fotos de la Galería (márgenes de -20 px) se salía 5 px del contenedor (15 px de relleno) */
  body.page-has-left-stickybar #lqd-site-content .ld-media-row { margin-left: -15px; margin-right: -15px; }
}
/* sin scroll de lado: el JS del parallax del tema mete en <body> un ayudante invisible (.lqd-parallax-sentinel)
   que copia el tamaño de la foto con efecto y se salía de la pantalla (Contacto: +32 px en escritorio, +12 px en
   celular). Solo sirve para medir el scroll vertical: a lo ancho se le deja el de la página. */
.lqd-parallax-sentinel { left: 0 !important; width: 100% !important; }
/* el tema pinta de verde (!important) y a 60 % de opacidad todo <p> de la franja del título */
.titlebar-inner p.smh-tb-meta { margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: #5f6973 !important; opacity: 1; }
.titlebar-inner p.smh-tb-antes { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5d7f00 !important; opacity: 1; }
.titlebar-inner p.smh-tb-antes a { color: #5d7f00 !important; }
.smh-titlebar-articulo h1 { font-size: clamp(32px, 4.2vw, 52px) !important; line-height: 1.15 !important; max-width: 920px; }
.smh-titlebar-articulo .titlebar-inner { padding-bottom: 60px !important; }

/* tarjetas: el HTML de las entradas del tema (lqd-lp-style-3) + resumen y "Leer artículo".
   El tema ya deja 60 px arriba del contenido (#lqd-contents-wrap). */
.smh-blog-grid { padding: 0 0 40px; }
.smh-lp { margin-bottom: 40px; }
.smh-lp .lqd-lp-img img { aspect-ratio: 700 / 450; object-fit: cover; }
.smh-lp .lqd-lp-cat span {
  display: inline-block; padding: 5px 12px; border-radius: 50em; font-size: 11px;
  background: rgba(135, 176, 22, .14); color: #4a6600;
}
.smh-lp .lqd-lp-date { font-size: 12px; color: #5f6973; }
.smh-lp .lqd-lp-title { font-size: 24px; line-height: 1.3; }
.smh-lp:hover .lqd-lp-title a { color: #5d7f00; }
.smh-lp-resumen { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: #5f6973; }
.smh-lp-leer { margin: 14px 0 0; font-size: 14px; font-weight: 700; color: #5d7f00; }

/* artículo */
.smh-articulo { max-width: 820px; margin: 0 auto; padding: 0 0 30px; }
.smh-art-portada, .smh-art-foto { margin: 0 0 44px; }
.smh-art-foto { margin: 8px 0 28px; }
.smh-art-portada img, .smh-art-foto img { display: block; width: 100%; height: auto; border-radius: 5px; }
.lqd-post-content.smh-art-cuerpo { font-size: 18px; line-height: 1.8; color: #4f5861; }
.smh-art-cuerpo .smh-entrada { font-size: 21px; line-height: 1.6; color: #1c2226; margin: 0 0 1.4em; }
.smh-art-cuerpo h2 { font-size: 30px; line-height: 1.25; margin: 1.7em 0 .6em; }
.smh-art-cuerpo h3 { font-size: 22px; line-height: 1.3; margin: 1.4em 0 .4em; }
.smh-art-cuerpo p, .smh-art-cuerpo ul, .smh-art-cuerpo ol { margin: 0 0 1.1em; }
.smh-art-cuerpo ul, .smh-art-cuerpo ol { padding-left: 1.3em; }
.smh-art-cuerpo li { margin-bottom: .45em; }
.smh-art-cuerpo li::marker { color: #87b016; font-weight: 700; }
.smh-art-cuerpo strong { color: #1c2226; }
.smh-art-cuerpo a { color: #5d7f00; text-decoration: underline; text-underline-offset: 3px; }
.smh-tabla-envoltura { overflow-x: auto; margin: 1.4em 0 1.8em; }
.smh-tabla { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.smh-tabla th, .smh-tabla td { padding: 14px 16px; border-bottom: 1px solid #e3e6e8; text-align: left; vertical-align: top; }
.smh-tabla thead th { background: #87b016; color: #fff; font-weight: 700; }
.smh-tabla tbody th { color: #1c2226; font-weight: 700; white-space: nowrap; }
/* celular: la tabla en bloques (una fila = un tema) para no tener que deslizar de lado */
@media (max-width: 767px) {
  .smh-tabla { min-width: 0; border: 0; }
  .smh-tabla tr:last-child { margin-bottom: 0; }
  .smh-tabla thead { display: none; }
  .smh-tabla, .smh-tabla tbody, .smh-tabla tr, .smh-tabla th, .smh-tabla td { display: block; width: 100%; }
  .smh-tabla tr { margin-bottom: 14px; border: 1px solid #e3e6e8; }
  .smh-tabla tbody th { background: #87b016; color: #fff; white-space: normal; border: 0; }
  .smh-tabla td { background: #fff; }
  .smh-tabla td::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5d7f00;
  }
}
.smh-art-cta { margin: 56px 0 24px; padding: 40px 44px; background: #87b016; }
.smh-art-cta h2 { color: #fff; font-size: 30px; line-height: 1.2; margin: 0 0 .45em; }
.smh-art-cta p { color: #fff; font-size: 17px; line-height: 1.6; margin: 0; }
.smh-art-cta .smh-art-cta-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
a.smh-boton {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px;
  background: #fff; color: #1c2226; font-size: 16px; font-weight: 700; line-height: 1; text-decoration: none;
  border: 1px solid #fff; transition: background .2s, color .2s;
}
a.smh-boton:hover, a.smh-boton:focus { color: #1c2226; background: rgba(255, 255, 255, .88); }
a.smh-boton .fa-whatsapp { color: #25d366; font-size: 18px; }
a.smh-boton-sec { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
a.smh-boton-sec:hover, a.smh-boton-sec:focus { color: #fff; background: rgba(255, 255, 255, .14); }
.smh-art-volver { margin: 0; font-size: 16px; }
.smh-art-volver a { color: #5d7f00; font-weight: 700; }
.smh-art-mas { max-width: 1000px; margin: 50px auto 70px; padding-top: 44px; border-top: 1px solid #e3e6e8; }
.smh-art-mas-titulo { font-size: 26px; margin: 0 0 28px; }
@media (max-width: 767px) {
  .smh-blog-grid { padding-bottom: 20px; }
  .smh-articulo { padding-bottom: 20px; }
  .smh-art-portada { margin-bottom: 30px; }
  .lqd-post-content.smh-art-cuerpo { font-size: 17px; }
  .smh-art-cuerpo .smh-entrada { font-size: 19px; }
  .smh-art-cuerpo h2 { font-size: 26px; }
  .smh-art-cta { padding: 30px 22px; }
  .smh-art-cta h2 { font-size: 25px; }
  .titlebar-inner p.smh-tb-meta { font-size: 16px; }
}

/* ---- accesibilidad: contorno visible al navegar con teclado ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #87b016; outline-offset: 2px; }
