/*
 Theme Name:   Kadence Child - Bueno y Bonito
 Theme URI:    https://www.buenoybonito.cl/
 Description:  Child theme para Bueno y Bonito, agencia de Google Ads. Capa del design system "Consola de campana".
 Author:       Bueno y Bonito
 Author URI:   https://www.buenoybonito.cl/
 Template:     kadence
 Version:      3.0.34
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Tags:         google-ads, gestion-de-anuncios, seo-local
 Text Domain:  buenoybonito-child
*/

/* ============================================================
   Tokens
   ============================================================ */

:root {
  --byb-page: #FFFFFF;
  --byb-surface: #FFFFFF;
  --byb-field: #F8F9FA;
  --byb-fill: #F1F3F4;
  --byb-input: #FFFFFF;
  --byb-tint-blue: #E8F0FE;
  --byb-tint-green: #E6F4EA;
  --byb-line: #DADCE0;
  --byb-hairline: rgba(32, 33, 36, .08);
  --byb-scrim: rgba(32, 33, 36, .45);
  --byb-ink: #202124;
  --byb-ink-soft: #5F6368;
  --byb-blue: #1A73E8;
  --byb-blue-deep: #185ABC;
  --byb-blue-hover: #185ABC;
  --byb-on-blue: #FFFFFF;
  --byb-green: #188038;
  --byb-max: 1160px;
  --byb-pad: clamp(20px, 4vw, 32px);
  --byb-section: clamp(48px, 5.2vw, 72px);
  --byb-r-sm: 6px;
  --byb-r-md: 12px;
  /* Botones: pildora completa como en la referencia de Google */
  --byb-r-btn: 1000px;
  --byb-font-ui: "Google Sans", Roboto, Arial, sans-serif;
}

/* ------------------------------------------------------------
   Modo oscuro: la misma consola de noche. Grises de Google (900/800)
   con el azul y el verde en su tono 300, que es el que se lee sobre
   fondo oscuro. Ningun selector de arriba cambia: cambian los tokens.
   ------------------------------------------------------------ */

html[data-theme="dark"] {
  color-scheme: dark;
  --byb-page: #17181B;
  --byb-surface: #24262A;
  --byb-field: #1F2124;
  --byb-fill: #2C2E33;
  --byb-input: #2C2E33;
  --byb-tint-blue: #1E2A3B;
  --byb-tint-green: #1B2E20;
  --byb-line: #3C4043;
  --byb-hairline: rgba(232, 234, 237, .12);
  --byb-scrim: rgba(0, 0, 0, .6);
  --byb-ink: #E8EAED;
  --byb-ink-soft: #9AA0A6;
  --byb-blue: #8AB4F8;
  --byb-blue-deep: #8AB4F8;
  --byb-blue-hover: #AECBFA;
  --byb-on-blue: #202124;
  --byb-green: #81C995;
}

html { background: var(--byb-page); }

/* ============================================================
   Base
   ============================================================ */

/* Kadence pinta body y titulos desde su hoja inline, que sale despues de esta:
   de ahi el peso extra del envoltorio. */
html body {
  background: var(--byb-page);
  color: var(--byb-ink);
  font-family: var(--global-body-font-family, "Google Sans Text", Roboto, Arial, sans-serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

#wrapper h1, #wrapper h2, #wrapper h3, #wrapper h4, #wrapper h5, #wrapper h6 {
  font-family: var(--global-heading-font-family, "Google Sans", Roboto, Arial, sans-serif);
  letter-spacing: -.024em;
  text-wrap: balance;
  color: var(--byb-ink);
}

::selection { background: var(--byb-tint-blue); color: var(--byb-ink); }

/* Los saltos internos dejan el titular a la vista, no debajo de la cabecera fija */
.single-content :is(h2, h3, h4)[id] { scroll-margin-top: 102px; }

:focus-visible { outline: 2px solid var(--byb-blue); outline-offset: 3px; }

/* ============================================================
   Cabecera
   ============================================================ */

#masthead,
#masthead .site-header-row-container-inner,
#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner {
  background: var(--byb-surface);
}

/* La cabecera comparte la retícula del contenido: mismo ancho y mismos ejes */
#masthead .site-container {
  max-width: calc(var(--byb-max) + 2 * var(--byb-pad));
  margin-inline: auto;
  padding-inline: var(--byb-pad);
}

/* Logo: la cabecera se encoge al navegar y el logo la acompaña */
#masthead .site-branding .custom-logo {
  height: auto;
  transition: max-width .18s ease;
}

#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) .site-branding .custom-logo {
  max-width: 112px;
}

/* La barra pegada al borde se separa del contenido con un filo, nunca con sombra */
#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) {
  border-bottom: 1px solid var(--byb-hairline);
}

@media (max-width: 1024px) {
  #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) .site-branding .custom-logo {
    max-width: 98px;
  }
}

@media (max-width: 767px) {
  #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) .site-branding .custom-logo {
    max-width: 90px;
  }
}

.site-header-row-container-inner { border: 0; }

/* Kadence esconde el título del header móvil desde 768px: se mantiene visible */
#masthead .mobile-site-branding .site-title,
#masthead .mobile-site-branding .site-title.vs-md-false { display: block !important; }

.site-title { font-size: 22px; letter-spacing: -.025em; line-height: 1.2; }
.site-title a, .site-header a { color: var(--byb-ink); }
.site-header a:hover { color: var(--byb-blue); }
.site-description { display: none; }

#masthead .main-navigation a {
  font-family: var(--byb-font-ui);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .25px;
  color: var(--byb-ink-soft);
}
#masthead .main-navigation a:hover { color: var(--byb-blue); }

/* Menú móvil: la misma superficie clara que el resto del sitio */
#mobile-drawer .drawer-inner,
#mobile-drawer .drawer-header,
#mobile-drawer .drawer-content,
#mobile-drawer .mobile-drawer-content { background: var(--byb-surface); }

#mobile-drawer .drawer-navigation a {
  padding: 13px 0;
  border-bottom: 0;
  color: var(--byb-ink);
  font-family: var(--global-heading-font-family, "Google Sans", Roboto, Arial, sans-serif);
  font-size: 18px;
  font-weight: 500;
}

#mobile-drawer .drawer-navigation .menu-item { border-bottom: 0; }
#mobile-drawer .toggle-close-bar { background: var(--byb-ink); }
#mobile-drawer .drawer-overlay { background: var(--byb-scrim); }

/* El último enlace del menú funciona como la acción de la página */
#mobile-drawer .drawer-navigation .menu-item:last-child a {
  margin-top: 18px;
  padding: 13px 18px;
  border-radius: var(--byb-r-btn);
  background: var(--byb-blue);
  color: var(--byb-on-blue);
  text-align: center;
  font-family: var(--global-body-font-family, "Google Sans Text", Roboto, Arial, sans-serif);
  font-size: 16px;
  font-weight: 500;
}

/* Un solo boton en la cabecera, plano */
#masthead .wp-block-button__link,
#masthead .kb-button,
#masthead .kadence-button,
#masthead a.header-button,
#masthead .header-button a,
#masthead .header-button__link,
#masthead .menu-item-button > a {
  background: var(--byb-blue) !important;
  color: var(--byb-on-blue) !important;
  border: 0 !important;
  border-radius: var(--byb-r-btn) !important;
  box-shadow: none !important;
  padding: 0 18px !important;
  min-height: 40px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* ============================================================
   Interruptor de modo oscuro
   Un solo icono en la fila de la cabecera: luna de dia, sol de noche.
   ============================================================ */

.byb-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--byb-ink-soft);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.byb-theme-toggle:hover { background: var(--byb-field); color: var(--byb-ink); }

.byb-theme-toggle::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 20px 20px;
  mask-size: 20px 20px;
}

html[data-theme="dark"] .byb-theme-toggle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58a.996.996 0 0 0-1.41 0 .996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37a.996.996 0 0 0-1.41 0 .996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0a.996.996 0 0 0 0-1.41l-1.06-1.06zm1.06-10.96a.996.996 0 0 0 0-1.41.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36a.996.996 0 0 0 0-1.41.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58a.996.996 0 0 0-1.41 0 .996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37a.996.996 0 0 0-1.41 0 .996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0a.996.996 0 0 0 0-1.41l-1.06-1.06zm1.06-10.96a.996.996 0 0 0 0-1.41.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36a.996.996 0 0 0 0-1.41.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z'/%3E%3C/svg%3E");
}

/* El aviso bajo el icono nombra el modo al que se cambia: di el destino */
.byb-theme-toggle__label {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: var(--byb-r-sm);
  background: var(--byb-fill);
  color: var(--byb-ink);
  font-family: var(--global-body-font-family, "Google Sans Text", Roboto, Arial, sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.byb-theme-toggle:hover .byb-theme-toggle__label,
.byb-theme-toggle:focus-visible .byb-theme-toggle__label { opacity: 1; }

/* La cabecera no reparte el icono: lo pega al borde del CTA */
#masthead .byb-theme-toggle { margin-inline-end: 6px; }

/* ============================================================
   Marco de seccion
   ============================================================ */

.entry-content > .byb-row,
.byb-row {
  margin-block: 0 !important;
  padding-block: var(--byb-section);
  padding-inline: 0;
  width: 100%;
  max-width: 100%;
}

.byb-inner {
  max-width: calc(var(--byb-max) + 2 * var(--byb-pad));
  margin-inline: auto;
  padding-inline: var(--byb-pad);
}

.byb-row--hero { padding-block: clamp(24px, 3vw, 40px) clamp(44px, 5vw, 64px); }
.byb-row--head { padding-block: var(--byb-section) clamp(16px, 2vw, 24px); }
.byb-row--close { padding-block: clamp(16px, 2vw, 24px) var(--byb-section); }
.byb-row--tight { padding-block: 0 var(--byb-section); }

.byb-field { background: var(--byb-field); }
.byb-tint { background: var(--byb-tint-blue); }

/* ============================================================
   Columnas
   ============================================================ */

.byb-row .wp-block-columns {
  gap: clamp(24px, 3.4vw, 56px);
  align-items: flex-start;
  margin: 0;
}

.byb-row .wp-block-column { min-width: 0; }
.byb-row .wp-block-column > * + * { margin-top: 18px; }
.byb-row .wp-block-column > .byb-panel,
.byb-row .wp-block-column > .byb-form-card,
.byb-row .wp-block-column > .byb-figure { margin-top: 0; }

.byb-inner > .wp-block-columns + .wp-block-columns { margin-top: clamp(28px, 3.4vw, 48px); }

/* ============================================================
   Tipografia
   ============================================================ */

.byb-row h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.12;
  max-width: 30ch;
}

.byb-row h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
}

.byb-row p,
.byb-scope li,
.byb-contact__list li,
.byb-stepcol p {
  font-size: 17px;
  line-height: 1.62;
  color: var(--byb-ink);
  max-width: 66ch;
}

.byb-row p + p { margin-top: 16px; }

.byb-lead {
  margin: 0;
  max-width: 58ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--byb-ink-soft);
}

.byb-note {
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--byb-ink-soft);
}

/* ============================================================
   Botones
   ============================================================ */

.entry-content .wp-block-button__link,
body .wp-block-button__link,
.wp-block-search__button,
/* Los botones de envío se limitan al sitio: la barra de administración
   (#wpadminbar) vive fuera de #wrapper y conserva el estilo de WordPress. */
#wrapper button[type="submit"],
#wrapper input[type="submit"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px !important;
  background: var(--byb-blue) !important;
  color: var(--byb-on-blue) !important;
  border: 0 !important;
  border-radius: var(--byb-r-btn) !important;
  box-shadow: none !important;
  font-family: var(--byb-font-ui, "Google Sans", Roboto, Arial, sans-serif);
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color .18s ease;
}

.entry-content .wp-block-button__link:hover,
.entry-content .wp-block-button__link:focus,
.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:focus {
  background: var(--byb-blue-hover) !important;
  color: var(--byb-on-blue) !important;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--byb-ink) !important;
  box-shadow: inset 0 0 0 1px var(--byb-line) !important;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--byb-field) !important;
  color: var(--byb-ink) !important;
}

/* Secundario legible: el filo de 1 px va en ink-soft (4.9:1 sobre blanco),
   no en line, que a 1 px casi no se ve. El hover suma fondo de campo y el
   filo sube a ink para confirmar la accion. */

.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  box-shadow: inset 0 0 0 1px var(--byb-ink-soft) !important;
  color: var(--byb-ink) !important;
  min-height: 46px;
  padding: 0 22px !important;
  font-size: 15.5px !important;
  letter-spacing: .01em;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
  background: var(--byb-field) !important;
  box-shadow: inset 0 0 0 1px var(--byb-ink) !important;
  color: var(--byb-ink) !important;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
  outline: 2px solid var(--byb-blue);
  outline-offset: 3px;
}

/* CTA de seccion: azul profundo. Compite menos con el CTA principal del hero
   y sobre blanco llega a 6.5:1 de contraste (el azul de accion queda en 4.5). */

.entry-content .wp-block-button.byb-btn-deep .wp-block-button__link {
  background: #174EA6 !important;
  color: #FFFFFF !important;
}

.entry-content .wp-block-button.byb-btn-deep .wp-block-button__link:hover,
.entry-content .wp-block-button.byb-btn-deep .wp-block-button__link:focus-visible {
  background: var(--byb-blue) !important;
  color: var(--byb-on-blue) !important;
}

.entry-content a:not(.wp-block-button__link) {
  color: var(--byb-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* Antetitulo del hero: dice que el servicio es integral antes del H1 */

.byb-hero .byb-kicker {
  display: inline-block;
  margin: 0 0 8px !important;
  padding: 6px 14px;
  border: 1px solid var(--byb-ink-soft);
  border-radius: 999px;
  font-family: var(--byb-font-ui, "Google Sans", Roboto, Arial, sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--byb-ink-soft);
}

/* El antetitulo va pegado al H1: el flujo de bloques de Kadence mete un
   margen superior en el titular que aqui sobra. */
.byb-hero h1.wp-block-heading {
  margin-block-start: 0 !important;
}

/* En mobil la etiqueta en mayusculas pesa demasiado: se reduce el cuerpo
   y el tracking para que no compita con el titular. */
@media (max-width: 781px) {
  .byb-hero .byb-kicker {
    margin-bottom: 10px !important;
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: .07em;
  }
}

/* ============================================================
   Marcador tactil del hero
   Bloque que se dibuja detras de la frase destacada y la invierte
   al color de texto sobre azul. Sin JS: la animacion corre al cargar.
   ============================================================ */

.byb-hero h1 .byb-line { display: block; }

.byb-mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  padding: 0 .08em;
}

.byb-mark::before {
  content: "";
  position: absolute;
  inset: .06em 0;
  background: var(--byb-blue);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: byb-mark-draw .72s cubic-bezier(.2, .7, .2, 1) .25s both;
}

.byb-mark > span {
  position: relative;
  z-index: 1;
  animation: byb-mark-ink .5s ease .5s both;
}

@keyframes byb-mark-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes byb-mark-ink {
  from { color: var(--byb-ink); }
  to   { color: var(--byb-on-blue); }
}

@media (prefers-reduced-motion: reduce) {
  .byb-mark::before { animation: none; transform: scaleX(1); }
  .byb-mark > span { animation: none; color: var(--byb-on-blue); }
}

/* ============================================================
   Hero
   ============================================================ */

.byb-hero { background: var(--byb-field); }

.byb-hero h1 {
  margin: 0 0 clamp(22px, 2.6vw, 36px);
  max-width: none;
  font-size: clamp(28px, 5.4vw, 66px);
  line-height: 1.06;
  letter-spacing: -.03em;
}

/* Cada linea del hero se queda entera en escritorio: el cuerpo baja lo
   suficiente para que "hechas para generar ventas," no parta. */
@media (min-width: 782px) {
  .byb-hero h1 .byb-line { white-space: nowrap; }
}

.byb-hero .byb-lead { max-width: 52ch; }
.byb-hero .wp-block-buttons { margin-top: 26px; }
.byb-hero .wp-block-buttons + p { margin-top: 20px; }

/* Panel de la cuenta */

.byb-panel {
  background: var(--byb-surface);
  border-radius: var(--byb-r-md);
  padding: 0 22px 20px;
  overflow: hidden;
}

.byb-panel__title {
  margin: 0 -22px 4px;
  padding: 14px 22px;
  background: var(--byb-tint-blue);
  font-family: var(--global-body-font-family, "Google Sans Text", Roboto, Arial, sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--byb-blue-deep);
  max-width: none;
}

/* Kadence aplica margen de bloque a todo .wp-block-group (.single-content
   .wp-block-group) y su hoja carga después: la clase repetida gana la
   cascada sin !important. */
.single-content .byb-panel__row.byb-panel__row { margin: 0; }

.byb-panel__row > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 12px;
  padding: 16px 0 0;
}

.byb-panel__row > .wp-block-group__inner-container::before {
  content: "";
  grid-row: 1;
  grid-column: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--byb-tint-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23188038' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

/* El ritmo de párrafos de Kadence (.single-content p) pesa lo mismo que
   estas reglas y se aplica después; de ahí el prefijo .single-content. */
.single-content .byb-panel__title { margin: 0 -22px 4px; color: var(--byb-blue-deep); }

.single-content .byb-panel__row p {
  grid-column: 2;
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  color: var(--byb-ink);
  max-width: none;
}

.single-content .byb-panel__row p + p { margin: 0; }

.single-content .byb-panel__row p.byb-panel__value {
  grid-column: 3;
  margin: 0;
  color: var(--byb-ink-soft);
  font-size: 14px;
  text-align: right;
}

.byb-panel__note {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--byb-ink-soft);
}

.single-content .byb-panel__note { margin: 20px 0 0; }

/* ============================================================
   Listas de alcance
   ============================================================ */

.byb-scope {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
}

.byb-scope--single { grid-template-columns: minmax(0, 1fr); }

.byb-scope li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--byb-ink);
  max-width: none;
}

.byb-scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--byb-green);
  border-radius: 50%;
}

/* ============================================================
   Servicios: reticula 2 x 2
   ============================================================ */

.byb-services .wp-block-columns { gap: clamp(28px, 3.6vw, 56px); }
.byb-services .wp-block-columns + .wp-block-columns { margin-top: clamp(28px, 3.4vw, 44px); }

.byb-service h3 { margin-bottom: 8px; }

.byb-service__note {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--byb-ink-soft);
  max-width: 34ch;
}

/* ============================================================
   Metodo
   ============================================================ */

.byb-steps .wp-block-columns { gap: clamp(20px, 2.6vw, 36px); }

.byb-row .byb-step__num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 0 20px;
  border-radius: 50%;
  background: var(--byb-blue);
  color: var(--byb-on-blue);
  font-family: var(--global-heading-font-family, "Google Sans", Roboto, Arial, sans-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.byb-stepcol h4 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

.byb-stepcol p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.58;
  color: var(--byb-ink);
}

.byb-step__meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--byb-green);
}

/* ============================================================
   Tabla de entregables
   ============================================================ */

.byb-table-scroll { width: 100%; overflow-x: auto; }

.byb-table { margin: 0; }

.entry-content .byb-table table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.entry-content .byb-table th,
.entry-content .byb-table td {
  border: 0;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.entry-content .byb-table th {
  background: var(--byb-fill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--byb-ink-soft);
}

.entry-content .byb-table td {
  border-bottom: 1px solid var(--byb-line);
  line-height: 1.55;
  color: var(--byb-ink-soft);
}

.entry-content .byb-table tr:last-child td { border-bottom: 0; }
.entry-content .byb-table td:first-child { color: var(--byb-ink); font-weight: 500; }

.byb-table figcaption {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--byb-ink-soft);
  text-align: left;
}

/* El core fija figcaption en .8em: se sube al mínimo legible */
.single-content .byb-table figcaption,
.single-content .byb-figure figcaption { font-size: 14px; color: var(--byb-ink-soft); }

/* ============================================================
   Imagenes
   ============================================================ */

.byb-figure { margin: 0; }

.byb-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--byb-r-sm);
  display: block;
}

.byb-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--byb-ink-soft);
  text-align: left;
}

/* ============================================================
   Preguntas
   ============================================================ */

.byb-faq { max-width: 840px; }

.byb-faq .wp-block-details { margin: 0; padding: 0; }

.byb-faq summary {
  position: relative;
  padding: 16px 0 16px 30px;
  cursor: pointer;
  list-style: none;
  font-family: var(--global-heading-font-family, "Google Sans", Roboto, Arial, sans-serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--byb-ink);
  border-radius: var(--byb-r-sm);
}

.byb-faq summary::-webkit-details-marker { display: none; }
.byb-faq summary::marker { content: ""; }

/* Indicador de apertura: signo, no flecha del navegador */
.byb-faq summary::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 16px;
  width: 18px;
  font-weight: 500;
  color: var(--byb-green);
  text-align: center;
}

.byb-faq .wp-block-details[open] summary::before { content: "\2212"; }

.byb-faq summary:hover,
.byb-faq .wp-block-details[open] summary { color: var(--byb-blue); }

.byb-faq .wp-block-details > *:not(summary) {
  margin: 0 0 18px;
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--byb-ink);
}

/* ============================================================
   Auditoria
   ============================================================ */

.byb-contact { background: var(--byb-tint-blue); }
.byb-contact h2 { max-width: 22ch; }

.byb-contact__list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.byb-contact__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--byb-ink);
}

.byb-contact__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--byb-green);
  border-radius: 50%;
}

.byb-contact__direct { margin-top: 28px; }
.byb-contact__direct p { margin: 0 0 4px; font-size: 17px; }
.byb-contact__direct a { font-weight: 500; color: var(--byb-blue-deep); }

/* El azul de marca sobre fondos claros no llega a 4.5:1; el azul 800 sí */
.single-content .byb-row p a { color: var(--byb-blue-deep); }
.byb-contact__direct p.byb-note { margin-top: 10px; font-size: 14px; }

.byb-form-card {
  background: var(--byb-surface);
  border-radius: var(--byb-r-md);
  padding: clamp(20px, 2.4vw, 30px);
}

.byb-form-card h3 { margin: 0 0 6px; font-size: 19px; }
.byb-form-card > p { margin: 0 0 18px; font-size: 16px; color: var(--byb-ink-soft); }

.byb-contact input[type="text"],
.byb-contact input[type="email"],
.byb-contact input[type="tel"],
.byb-contact input[type="url"],
.byb-contact textarea,
.byb-contact select,
/* Fluent Forms trae su propia pila de sistema (-apple-system, Segoe UI...).
   Aqui manda la tipografia del sitio: Google Sans Text para lo que se escribe. */
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform textarea,
.fluentform select,
.byb-form-card .fluentform .ff-el-form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--global-body-font-family, "Google Sans Text", Roboto, Arial, sans-serif);
  background: var(--byb-input);
  border: 1px solid var(--byb-line);
  border-radius: var(--byb-r-sm);
  font-size: 16px;
  color: var(--byb-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.byb-contact input:focus,
.byb-contact textarea:focus,
.byb-contact select:focus,
.fluentform input:focus,
.fluentform textarea:focus,
.fluentform select:focus,
.byb-form-card .fluentform .ff-el-form-control:focus {
  outline: none;
  border-color: var(--byb-blue);
  box-shadow: 0 0 0 2px var(--byb-tint-blue);
}

.fluentform .ff-el-group { margin-bottom: 14px; }

.fluentform label,
.fluentform .ff-el-input--label label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--byb-ink-soft);
}

.fluentform .ff-btn-submit {
  width: 100%;
  min-height: 48px;
  background: var(--byb-blue) !important;
  color: var(--byb-on-blue) !important;
  border: 0 !important;
  border-radius: var(--byb-r-btn) !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* ============================================================
   Pie: footer nativo de Kadence con el tono de Google Ads
   Dos bandas: enlaces sobre gris de campo, línea legal sobre blanco
   ============================================================ */

#colophon.site-footer,
#colophon .site-middle-footer-wrap,
#colophon .site-middle-footer-wrap .site-footer-row-container-inner {
  background: var(--byb-field);
}

#colophon .site-bottom-footer-wrap,
#colophon .site-bottom-footer-wrap .site-footer-row-container-inner {
  background: var(--byb-surface);
}

/* La retícula del pie es la misma de la cabecera y del contenido */
#colophon .site-container {
  max-width: calc(var(--byb-max) + 2 * var(--byb-pad));
  margin-inline: auto;
  padding-inline: var(--byb-pad);
}

/* Cuatro columnas: la marca pesa 40% y los tres grupos de enlaces 20% cada uno */
#colophon .site-middle-footer-inner-wrap {
  padding-block: 48px;
  column-gap: clamp(28px, 5vw, 72px);
  row-gap: 36px;
  align-items: start;
}

#colophon .site-middle-footer-inner-wrap .widget,
#colophon .site-bottom-footer-inner-wrap .widget { margin-bottom: 0; }

/* Marca */
#colophon .byb-f__logo {
  margin: 0 0 14px;
}

#colophon .byb-f__logo img {
  display: block;
  width: 132px;
  max-width: 100%;
  height: auto;
}

#colophon .byb-f__pitch {
  max-width: 34ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--byb-ink-soft);
}

#colophon .byb-f__cta { margin-top: 22px; }

#colophon .byb-f__btn .wp-block-button__link {
  padding: 10px 18px;
  border: 0;
  border-radius: var(--byb-r-btn);
  background: var(--byb-blue);
  box-shadow: none;
  color: var(--byb-on-blue);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

#colophon .byb-f__btn .wp-block-button__link:hover,
#colophon .byb-f__btn .wp-block-button__link:focus-visible {
  background: var(--byb-blue-hover);
  color: var(--byb-on-blue);
}

/* Capa de interfaz (Google Sans): navegación, botones y etiquetas, como en
   la referencia de Google. El cuerpo se queda en Google Sans Text. */
#masthead .header-button a,
#masthead .wp-block-button__link,
#masthead .kb-button,
#masthead .kadence-button,
#mobile-drawer .drawer-navigation .menu-item:last-child a,
.entry-content .wp-block-button__link,
.fluentform .ff-btn-submit,
.byb-panel__title,
.byb-theme-toggle__label,
#colophon .byb-f__btn .wp-block-button__link {
  font-family: var(--byb-font-ui, "Google Sans", Roboto, Arial, sans-serif);
}

/* Grupos de enlaces */
#colophon .byb-f__label {
  margin: 0 0 14px;
  font-family: var(--global-heading-font-family, "Google Sans", Roboto, Arial, sans-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--byb-ink);
}

#colophon .byb-f__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#colophon .byb-f__links li {
  margin: 0;
  padding: 0;
}

#colophon .byb-f__links li::before { content: none; }

#colophon .byb-f__links a {
  color: var(--byb-ink-soft);
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}

#colophon .byb-f__links a:hover,
#colophon .byb-f__links a:focus-visible {
  color: var(--byb-blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Barra legal */
#colophon .site-bottom-footer-inner-wrap {
  padding-block: 18px;
}

#colophon .site-bottom-footer-inner-wrap .site-footer-section { text-align: left; }

#colophon .byb-f__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  width: 100%;
  margin: 0;
}

#colophon .byb-f__legal p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--byb-ink-soft);
}

#colophon .byb-f__legal .byb-f__locale { color: var(--byb-ink); }

/* En tablet el pie pasa a 2x2: la marca respira antes del primer grupo */
@media (max-width: 1024px) {
  #colophon .site-middle-footer-inner-wrap { row-gap: 44px; padding-block: 44px; }
}

@media (max-width: 781px) {
  #colophon .site-middle-footer-inner-wrap { row-gap: 30px; padding-block: 36px 32px; }
  #colophon .byb-f__cta { margin-top: 18px; }
  #colophon .byb-f__links { gap: 8px; }
}

/* ============================================================
   Modo oscuro: lo que Kadence pinta por su cuenta
   ============================================================ */

/* Kadence pone el envoltorio del sitio en --global-palette9 (#FFF) */
html[data-theme="dark"] .site,
html[data-theme="dark"] .content-bg,
html[data-theme="dark"] body.content-style-unboxed .site {
  background: var(--byb-page);
}

/* La cabecera fija la pinta Kadence en #FFF con selectores que pesan mas que
   cualquier regla comun; se repite aqui con el mismo peso y un peso extra. */
html[data-theme="dark"] #masthead,
html[data-theme="dark"] #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner,
html[data-theme="dark"] #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start):not(.item-hidden-above) > .site-header-row-container-inner,
html[data-theme="dark"] #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start):not(.item-hidden-above):not(.site-header-row-container):not(.site-main-header-wrap),
html[data-theme="dark"] #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start):not(.item-hidden-above):not(.site-main-header-wrap),
html[data-theme="dark"] .site-main-header-wrap .site-header-row-container-inner {
  background: var(--byb-surface);
}

/* El icono del menu movil toma el gris de enlace de Kadence (#5F6368) */
html[data-theme="dark"] #masthead .menu-toggle-open { color: var(--byb-ink); }

/* El logotipo esta dibujado en tinta oscura: de noche se sube de tono */
html[data-theme="dark"] #masthead .custom-logo,
html[data-theme="dark"] #colophon .byb-f__logo img {
  filter: brightness(1.55) saturate(1.06);
}

/* El check del panel es un SVG incrustado: de noche usa el verde 300 */
html[data-theme="dark"] .byb-panel__row > .wp-block-group__inner-container::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2381C995' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}

/* ============================================================
   Movimiento
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .byb-hero h1 {
    animation: byb-rise .7s cubic-bezier(.2, .7, .3, 1) both;
  }
  .byb-hero .byb-lead,
  .byb-hero .wp-block-buttons,
  .byb-hero .byb-note {
    animation: byb-rise .7s cubic-bezier(.2, .7, .3, 1) both;
  }
  .byb-hero .byb-lead { animation-delay: .08s; }
  .byb-hero .wp-block-buttons { animation-delay: .14s; }
  .byb-hero .byb-note { animation-delay: .2s; }
  .byb-hero .byb-panel { animation: byb-rise .8s cubic-bezier(.2, .7, .3, 1) .16s both; }

  /* Llegada de las piezas al entrar en pantalla. Solo se mueve el bloque:
     el contenido nunca queda invisible si la animación no llega a correr. */
  @supports (animation-timeline: view()) {
    .byb-figure,
    .byb-stepcol,
    .byb-service,
    .byb-table-scroll,
    .byb-faq .wp-block-details {
      animation: byb-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

@keyframes byb-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes byb-drift {
  from { transform: translateY(18px); }
  to { transform: none; }
}

/* ============================================================
   Portada con slider (tipo revolution, sin dependencias)
   Velo claro, texto tinta, foto con entrada y textos en cascada.
   ============================================================ */

.byb-hs { position: relative; background: var(--byb-field); }

.byb-hs__track { display: grid; }

.byb-hs__slide {
  position: relative;
  grid-area: 1 / 1;
  min-height: clamp(460px, 62vh, 580px);
  display: flex;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}

.byb-hs__slide.is-active,
.byb-hs__slide.is-leaving {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transition: opacity .7s ease;
}

/* Entrada y salida de la foto: sin JS, solo el estado activo */
.byb-hs__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  opacity: .45;
  /* Revelado desde el centro: cerrada al 50 % por lado hasta abrir del todo */
  clip-path: inset(0 50% 0 50%);
  transition:
    transform 1.1s cubic-bezier(.2, .7, .2, 1),
    opacity 1.1s ease,
    clip-path 1s cubic-bezier(.2, .7, .2, 1);
}

.byb-hs__slide.is-active .byb-hs__bg { clip-path: inset(0 0 0 0); }

.byb-hs__slide.is-active .byb-hs__bg {
  animation: byb-hs-photo 7.4s cubic-bezier(.2, .7, .2, 1) forwards;
}

@keyframes byb-hs-photo {
  from { transform: scale(1.18); opacity: .3; }
  55%  { opacity: 1; }
  to   { transform: scale(1.03); opacity: 1; }
}

/* La diapositiva del medio hace el movimiento inverso: acerca en vez de alejar */
.byb-hs__slide:nth-child(2).is-active .byb-hs__bg {
  animation-name: byb-hs-photo-in;
}

@keyframes byb-hs-photo-in {
  from { transform: scale(1.02); opacity: .3; }
  55%  { opacity: 1; }
  to   { transform: scale(1.16); opacity: 1; }
}

/* Velo claro, no negro */
.byb-hs__scrim { position: absolute; inset: 0; background: rgba(255, 255, 255, .7); }

.byb-hs__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--byb-max) + 2 * var(--byb-pad));
  margin-inline: auto;
  padding: clamp(28px, 4vw, 56px) var(--byb-pad) clamp(56px, 5vw, 84px);
  color: var(--byb-ink);
}

/* Etiqueta del slider: el mismo badge pildora del slider del home
   (.byb-hero .byb-kicker), no texto plano. Doble especificidad para
   sostenerse sin depender del orden de la hoja. */
.byb-hs .byb-hs__kicker,
.entry-content .byb-hs .byb-hs__kicker {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--byb-ink-soft);
  border-radius: 999px;
  margin: 0 0 20px;
  font-family: var(--byb-font-ui, "Google Sans", Roboto, Arial, sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--byb-ink-soft);
}

@media (max-width: 781px) {
  .byb-hs .byb-hs__kicker,
  .entry-content .byb-hs .byb-hs__kicker {
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 0.07em;
  }
}

/* La altura de linea y los margenes son mas holgados para que el carril
   del titular respire sobre la foto, como en la referencia. */
.byb-hs .byb-hs__title {
  display: block;
  width: 100%;
  max-width: 34ch;
  margin: 0 auto 32px;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.14;
  letter-spacing: -.03em;
  text-align: center;
  text-wrap: balance;
  color: var(--byb-ink);
}

.byb-hs__copy {
  margin: 0 0 24px;
  max-width: 52ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--byb-ink);
}

.byb-hs__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
}

.byb-hs__inner { text-align: center; }
.byb-hs__kicker { text-align: center; }

.byb-hs__cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #174EA6;
  color: #FFFFFF;
  font-family: var(--byb-font-ui, "Google Sans", Roboto, Arial, sans-serif);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .18s ease;
}

.byb-hs__cta:hover { background: #185ABC; }

/* El CTA del slider es el boton primario del sistema: pildora azul de
   accion, texto blanco y hover azul profundo. La forma con .entry-content
   y .byb-hs le gana a la regla de enlaces de contenido (subrayado azul). */
.byb-hs .byb-hs__link,
.entry-content .byb-hs .byb-hs__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--byb-r-btn);
  background: var(--byb-blue);
  color: var(--byb-on-blue);
  font-family: var(--byb-font-ui, "Google Sans", Roboto, Arial, sans-serif);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.byb-hs .byb-hs__link:hover,
.byb-hs .byb-hs__link:focus-visible,
.entry-content .byb-hs .byb-hs__link:hover,
.entry-content .byb-hs .byb-hs__link:focus-visible {
  background: var(--byb-blue-hover);
  color: var(--byb-on-blue);
  text-decoration: none;
}

.byb-hs__controls {
  position: absolute;
  right: var(--byb-pad);
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Flechas de desplazamiento al estilo Sanger: flecha larga de una pieza
   (61x18 SVG), sin circulo, sin borde ni fondo, anclada a los costados
   del slider y centrada verticalmente. El tinte gris vive en
   currentColor y oscurece al pasar el cursor o al recibir foco. */
.byb-hs__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 61px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  box-shadow: none;
  border: 0;
  color: #787878;
  cursor: pointer;
  transition: color .18s ease;
}

.byb-hs__arrow svg { display: block; width: 61px; height: 18px; }

/* Las globales de Kadence pintan TODOS los botones con el azul de la
   paleta al pasar el cursor (button:hover gana por especificidad de
   elemento+pseudoclase) y les aplican sombra en todo estado. Aqui se
   anula explicitamente en hover, foco y activacion: la flecha queda
   sin caja, el cambio siempre es solo el color del trazo. */
.byb-hs__arrow:hover,
.byb-hs__arrow:focus,
.byb-hs__arrow:focus-visible,
.byb-hs__arrow:active {
  background: none;
  box-shadow: none;
}

.byb-hs__prev { left: var(--byb-pad); translate: 0 -50%; }
.byb-hs__next { right: var(--byb-pad); translate: 0 -50%; }

/* Al pasar el cursor la flecha solo se oscurece hacia la tinta; sin azul
   en hover ni en foco (el anillo de foco usa el color de la flecha).
   El color cubre tambien focus y active: las globales de Kadence vuelven
   blanco el texto de TODOS los botones en esos estados (pensado para su
   boton azul) y dejarian la flecha sin contraste sobre el velo claro. */
.byb-hs__arrow:hover,
.byb-hs__arrow:focus,
.byb-hs__arrow:focus-visible,
.byb-hs__arrow:active { color: var(--byb-ink); }

.byb-hs__prev:hover svg { transform: translateX(-3px); }
.byb-hs__next:hover svg { transform: translateX(3px); }

.byb-hs__arrow:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Movil: las flechas bajan a las esquinas (no cruzan el titular) y los
   puntos quedan centrados horizontalmente entre ambas. */
@media (max-width: 781px) {
  .byb-hs__arrow { top: auto; bottom: 6px; width: 44px; height: 44px; }
  .byb-hs__arrow svg { width: 40px; height: 12px; }
  .byb-hs__prev { left: 2px; translate: 0 0; }
  .byb-hs__next { right: 2px; translate: 0 0; }
  .byb-hs__controls { left: 50%; right: auto; transform: translateX(-50%); }
}

.byb-hs__dots { display: flex; align-items: center; gap: 8px; }

.byb-hs__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(32, 33, 36, .3);
}

.byb-hs__dot.is-active { background: var(--byb-ink); }

/* Circulo grande: anclado a la seccion completa y cortado por el borde
   derecho de la ventana, como en la referencia. */
body { overflow-x: clip; }

.byb-web,
.byb-has-badge {
  --byb-badge-size: 400px;
  position: relative;
}

.byb-web .byb-badge--big,
.byb-has-badge .byb-badge--big {
  position: absolute;
  top: -200px;
  right: -110px;
  bottom: auto;
  left: auto;
  width: var(--byb-badge-size);
  height: var(--byb-badge-size);
  z-index: 6;
  pointer-events: none;
  opacity: .5;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Texto sin caja: tinta con halo del color de la pagina para leerse
   tanto sobre la franja oscura como sobre el gris de la seccion. */
.byb-web .byb-badge--big .byb-badge__text,
.byb-has-badge .byb-badge--big .byb-badge__text {
  font-size: 10.2px;
  letter-spacing: 0;
  fill: var(--byb-ink);
  stroke: var(--byb-page);
  stroke-width: 1.6;
  paint-order: stroke;
}

/* El texto del anillo entra completo: 53 caracteres caben en el perimetro */
.byb-badge--big .byb-badge__text { font-size: 7.2px; letter-spacing: 1.4px; }

/* Textos en cascada, con entrada Y salida: transiciones, no animaciones,
   para que al desactivarse la diapositiva vuelvan solos. */
.byb-hs__kicker { --hs-delay: 60ms; }
.byb-hs__copy { --hs-delay: 250ms; }
.byb-hs__actions { --hs-delay: 340ms; }

.byb-hs--ready .byb-hs__inner > *:not(.byb-hs__title) {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .5s ease var(--hs-delay, 0ms),
    transform .55s cubic-bezier(.2, .7, .2, 1) var(--hs-delay, 0ms);
}

.byb-hs--ready .byb-hs__slide.is-active .byb-hs__inner > *:not(.byb-hs__title) {
  opacity: 1;
  transform: none;
}

/* Titular partido por caracteres: cada uno sube desde abajo en secuencia
   y sale hacia arriba al cambiar de diapositiva. El carril tiene aire por
   relleno compensado (la caja de la linea no cambia) y el recorrido es
   del 200%: arranca fuera del carril y entra limpio, sin dejar texto
   visible abajo. Un carril mas grande que el recorrido mostraria el
   glifo sentado bajo la linea antes de subir. */
.byb-hs__char {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin: -14px 0;
  padding: 14px 0;
}

.byb-hs__charIn { display: inline-block; transform: translateY(200%); }

.byb-hs__slide.is-active .byb-hs__charIn {
  animation: byb-hs-char-in 1s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i) * 28ms + 200ms);
}

.byb-hs__slide.is-leaving .byb-hs__charIn {
  animation: byb-hs-char-out .7s cubic-bezier(.4, 0, .7, 0) both;
  animation-delay: calc(var(--i) * 18ms);
}

@keyframes byb-hs-char-in {
  from { transform: translateY(200%); }
  to   { transform: translateY(0); }
}

@keyframes byb-hs-char-out {
  from { transform: translateY(0); }
  to   { transform: translateY(-200%); }
}

/* Barra de progreso del autoplay */
.byb-hs__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--byb-blue);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 2;
}

.byb-hs__slide.is-active .byb-hs__progress {
  animation: byb-hs-progress 7s linear forwards;
}

@keyframes byb-hs-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (max-width: 781px) {
  .byb-hs__slide { min-height: 64vh; }
  .byb-hs__controls { bottom: 14px; }
  .byb-hs__title { max-width: none; }
  .byb-web,
  .byb-has-badge { --byb-badge-size: 210px; }
  .byb-web .byb-badge--big,
  .byb-has-badge .byb-badge--big {
    top: -100px;
    right: -74px;
    bottom: auto;
    left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .byb-hs__bg,
  .byb-hs__slide.is-active .byb-hs__bg { animation: none; transform: none; opacity: 1; transition: none; }
  .byb-hs__track { scroll-behavior: auto; }
  .byb-hs--ready .byb-hs__inner > *,
  .byb-hs--ready .byb-hs__slide.is-active .byb-hs__inner > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .byb-hs__bg,
  .byb-hs__slide.is-active .byb-hs__bg { clip-path: none; }
  .byb-hs__charIn { transform: none; animation: none; }
  .byb-badge__ring { animation: none; }
}

/* ============================================================
   Circulo giratorio del hero
   ============================================================ */

.byb-hero .byb-inner { position: relative; }

.byb-badge {
  position: absolute;
  right: clamp(0px, 2vw, 24px);
  bottom: clamp(-58px, -3vw, -34px);
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--byb-surface);
  border: 1px solid var(--byb-hairline);
  display: grid;
  place-items: center;
  z-index: 2;
}

.byb-badge__ring {
  width: 100%;
  height: 100%;
  animation: byb-spin 16s linear infinite;
}

.byb-badge__text {
  font-family: var(--byb-font-ui, "Google Sans", Roboto, Arial, sans-serif);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 2.1px;
  fill: var(--byb-ink-soft);
}

.byb-badge__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--byb-blue);
}

@keyframes byb-spin { to { transform: rotate(360deg); } }

/* ============================================================
   Slider de tipos de proyecto (fade, sin JS)
   ============================================================ */

.byb-slider-row { background: var(--byb-field); }

.byb-slider { display: grid; margin-top: 6px; }

.byb-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  animation: byb-slide-fade 18s linear infinite;
}

.byb-slide:nth-child(1) { animation-delay: 0s; }
.byb-slide:nth-child(2) { animation-delay: 6s; }
.byb-slide:nth-child(3) { animation-delay: 12s; }

.single-content .byb-slider .byb-slide__index {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--byb-ink-soft);
}

.single-content .byb-slider .byb-slide__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.12;
  max-width: 20ch;
}

.single-content .byb-slider .byb-slide__copy {
  margin: 0 0 16px;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--byb-ink-soft);
}

/* El CTA de cada diapositiva es un bloque de boton nativo y usa el
   boton primario del sistema, igual que el hero. */
.single-content .wp-block-buttons.byb-slide__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}

.single-content .byb-slider .wp-block-button { margin: 0; }

.single-content .byb-slider .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--byb-r-btn);
  background: var(--byb-blue);
  color: var(--byb-on-blue);
  box-shadow: none;
  font-family: var(--byb-font-ui, "Google Sans", Roboto, Arial, sans-serif);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.single-content .byb-slider .wp-block-button__link:hover,
.single-content .byb-slider .wp-block-button__link:focus-visible {
  background: var(--byb-blue-hover);
  color: var(--byb-on-blue);
  text-decoration: none;
}

.byb-slide__media { min-width: 0; }

@keyframes byb-slide-fade {
  0%   { opacity: 0; visibility: hidden; }
  2%   { opacity: 1; visibility: visible; }
  30%  { opacity: 1; visibility: visible; }
  33%  { opacity: 0; visibility: hidden; }
  100% { opacity: 0; visibility: hidden; }
}

/* ============================================================
   Galeria masonry
   ============================================================ */

.byb-gallery {
  columns: 3;
  column-gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(24px, 3vw, 36px);
}

.byb-gallery__item {
  break-inside: avoid;
  margin: 0 0 clamp(14px, 2vw, 22px);
  border-radius: var(--byb-r-sm);
  overflow: hidden;
  background: var(--byb-field);
}

.byb-gallery__item img { display: block; width: 100%; height: auto; }

.byb-gallery__item--note { padding: 22px; background: var(--byb-tint-blue); }

.byb-gallery__item--mock {
  padding: 14px;
  background: var(--byb-surface);
  border: 1px solid var(--byb-hairline);
}

.byb-gallery__quote {
  margin: 0;
  font-family: var(--global-heading-font-family, "Google Sans", Roboto, Arial, sans-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--byb-ink);
}

@media (max-width: 1024px) {
  .byb-gallery { columns: 2; }
}

@media (max-width: 781px) {
  .byb-slide { grid-template-columns: minmax(0, 1fr); }
  .byb-slide__media { order: -1; }
  .byb-badge { display: none; }
}

@media (max-width: 640px) {
  .byb-gallery { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .byb-badge__ring { animation: none; }
  .byb-slide { animation: none; opacity: 1; visibility: visible; }
  .byb-slide:nth-child(n + 2) { display: none; }
}

/* ============================================================
   Pagina de servicios web: panel de datos, marquesina y rejilla
   de tipos de proyecto con mockups dibujados en CSS.
   ============================================================ */

.byb-web-spec {
  background: var(--byb-surface);
  border-radius: var(--byb-r-md);
  padding: 20px 22px;
}

.byb-web-spec__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--byb-ink-soft);
}

.byb-web-spec__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--byb-hairline);
  font-size: 16px;
  line-height: 1.4;
}

.byb-web-spec__row span { color: var(--byb-ink-soft); }
.byb-web-spec__row b { font-weight: 500; color: var(--byb-ink); text-align: right; }
.byb-web-spec__note { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--byb-ink-soft); }

/* Marquesina invertida */

.byb-marquee-wrap {
  padding-block: 0;
  background: var(--byb-ink);
  color: var(--byb-page);
  overflow: hidden;
}

.byb-marquee { overflow: hidden; }

.byb-marquee__track {
  display: flex;
  gap: clamp(28px, 3.4vw, 56px);
  width: max-content;
  padding-block: 16px;
  animation: byb-marquee 34s linear infinite;
}

.byb-marquee__item {
  font-family: var(--global-heading-font-family, "Google Sans", Roboto, Arial, sans-serif);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  opacity: .92;
}

@keyframes byb-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .byb-marquee__track { animation: none; }
  .byb-marquee { overflow-x: auto; }
}

/* Rejilla de tipos de proyecto */

.single-content .wp-block-group.byb-web-grid {
  margin: clamp(26px, 3vw, 40px) 0 0;
}

/* El render de un grupo mete su contenido en .wp-block-group__inner-container:
   la rejilla y el flex de la tarjeta van ahi, no en el grupo. */
.single-content .byb-web-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}

.single-content .byb-web-card > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
}

.single-content .wp-block-group.byb-web-card {
  margin: 0;
  padding: 16px;
  background: var(--byb-surface);
  border: 1px solid var(--byb-hairline);
  border-radius: var(--byb-r-md);
  transition: transform .25s ease, border-color .25s ease;
}

.single-content .wp-block-group.byb-web-card:hover {
  transform: translateY(-4px);
  border-color: var(--byb-blue);
}

.single-content .wp-block-group.byb-web-card__media {
  margin: 0 0 16px;
  padding: 14px;
  background: var(--byb-field);
  border-radius: var(--byb-r-sm);
}

.single-content p.byb-web-card__tag {
  max-width: none;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--byb-ink-soft);
}

.single-content .wp-block-heading.byb-web-card__title {
  max-width: none;
  margin: 8px 0 6px;
  font-size: 19px;
  line-height: 1.25;
}

.single-content p.byb-web-card__text {
  max-width: none;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--byb-ink-soft);
}

/* Mockups: ventana de navegador dibujada con bloques */

.byb-mock {
  background: var(--byb-surface);
  border: 1px solid var(--byb-line);
  border-radius: 6px;
  overflow: hidden;
}

.byb-mock__bar {
  display: flex;
  gap: 4px;
  padding: 7px 8px;
  background: var(--byb-field);
  border-bottom: 1px solid var(--byb-hairline);
}

.byb-mock__bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--byb-line);
}

.byb-mock__body {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.byb-mock__hero { height: 46px; border-radius: 4px; background: var(--byb-tint-blue); }
.byb-mock__nav { height: 10px; border-radius: 3px; background: var(--byb-tint-blue); }
.byb-mock__line { height: 6px; border-radius: 3px; background: var(--byb-line); }
.byb-mock__line--w80 { width: 80%; }
.byb-mock__line--w70 { width: 70%; }
.byb-mock__line--w60 { width: 60%; }
.byb-mock__line--w50 { width: 50%; }
.byb-mock__line--w45 { width: 45%; }
.byb-mock__cta { width: 46px; height: 12px; border-radius: 999px; background: var(--byb-blue); }
.byb-mock__row { display: flex; gap: 6px; }
.byb-mock__row i { flex: 1; height: 20px; border-radius: 3px; background: var(--byb-field); border: 1px solid var(--byb-line); }
.byb-mock__cols { display: flex; gap: 6px; }
.byb-mock__cols span { flex: 1; height: 26px; border-radius: 3px; background: var(--byb-tint-blue); }
.byb-mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.byb-mock__grid i { height: 20px; border-radius: 3px; background: var(--byb-field); border: 1px solid var(--byb-line); }
.byb-mock__grid i:nth-child(2n) { background: var(--byb-tint-blue); border-color: transparent; }
.byb-mock__price { width: 34px; height: 9px; border-radius: 3px; background: var(--byb-green); }
.byb-mock__filters { display: flex; gap: 5px; }
.byb-mock__filters i { width: 26px; height: 8px; border-radius: 999px; background: var(--byb-line); }
.byb-mock__split { display: grid; gap: 6px; }
.byb-mock__form { display: grid; gap: 5px; }
.byb-mock__form i { height: 11px; border-radius: 3px; background: var(--byb-field); border: 1px solid var(--byb-line); }
.byb-mock__form b { width: 40px; height: 12px; border-radius: 999px; background: var(--byb-blue); }
.byb-mock__before, .byb-mock__after { height: 24px; border-radius: 3px; background: var(--byb-field); border: 1px solid var(--byb-line); }
.byb-mock__after { background: var(--byb-tint-blue); border-color: transparent; }
.byb-mock__arrow { width: 18px; height: 2px; margin-inline: auto; background: var(--byb-green); }

@media (max-width: 1024px) {
  .single-content .byb-web-grid > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .single-content .byb-web-grid > .wp-block-group__inner-container { grid-template-columns: minmax(0, 1fr); }
  .byb-web-spec { padding: 16px 18px; }
}

/* ============================================================
   Reveal de textos al entrar en pantalla
   Animacion ligada al scroll (animation-timeline). Donde el navegador
   no la soporta, el texto se ve normal: nunca queda oculto.
   ============================================================ */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Titulares: barrido de izquierda a derecha con un rise corto */
    .byb-row:not(.byb-row--hero) h2,
    .byb-row:not(.byb-row--hero) h3 {
      animation: byb-wipe both linear;
      animation-timeline: view();
      animation-range: entry 6% cover 30%;
    }

    .byb-row:not(.byb-row--hero) .byb-lead,
    .byb-row:not(.byb-row--hero) .byb-service,
    .byb-row:not(.byb-row--hero) .byb-stepcol {
      animation: byb-rise both linear;
      animation-timeline: view();
      animation-range: entry 4% cover 26%;
    }

    /* La segunda fila de tarjetas y de pasos entra un poco mas tarde */
    .byb-row:not(.byb-row--hero) .wp-block-columns + .wp-block-columns .byb-service,
    .byb-row:not(.byb-row--hero) .wp-block-columns + .wp-block-columns .byb-stepcol {
      animation-range: entry 12% cover 34%;
    }
  }
}

@keyframes byb-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes byb-wipe {
  from { opacity: 0; transform: translateY(10px); clip-path: inset(-14% 100% -14% 0); }
  to   { opacity: 1; transform: none; clip-path: inset(-14% 0 -14% 0); }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .byb-scope { grid-template-columns: minmax(0, 1fr); }
  .byb-panel__row > .wp-block-group__inner-container {
    grid-template-columns: 20px minmax(0, 1fr);
    row-gap: 3px;
    padding-top: 18px;
  }
  .single-content .byb-panel__row p.byb-panel__value {
    grid-column: 2;
    text-align: left;
  }
  .byb-lead { font-size: 18px; }
}

@media (max-width: 781px) {
  .byb-hero h1 { max-width: none; }
  .byb-row h2 { max-width: none; }
  .byb-faq { max-width: none; }
  .byb-panel { padding-inline: 18px; }
  .byb-panel__title { padding-inline: 18px; }
  .single-content .byb-panel__title { margin-inline: -18px; }
  .byb-row p, .byb-scope li, .byb-contact__list li, .byb-stepcol p { font-size: 17px; }
  .byb-lead { font-size: 17px; }
  .byb-figure img { aspect-ratio: 3 / 2; }
}

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

/* ============================================================
   Editor
   ============================================================ */

.editor-styles-wrapper .byb-row { padding-inline: 24px; }
.editor-styles-wrapper .byb-inner { padding-inline: 0; }

/* ============================================================
   Cita de seccion
   ============================================================ */

.byb-quote {
  margin: clamp(28px, 3.4vw, 44px) 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--byb-green);
}

.byb-quote p {
  margin: 0;
  max-width: 44ch;
  font-family: var(--global-heading-font-family, "Google Sans", Roboto, Arial, sans-serif);
  font-size: clamp(22px, 2.7vw, 31px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -.02em;
  color: var(--byb-ink);
}

/* ============================================================
   Desplegable de navegacion
   Superficie solida y ancho propio: el desplegable se lee sobre
   cualquier fondo, incluido el hero y el modo oscuro.
   ============================================================ */

#masthead .primary-menu-container .sub-menu {
  min-width: 380px;
  padding: 8px;
  background: var(--byb-surface);
  border: 1px solid var(--byb-line);
  border-radius: var(--byb-r-sm);
  box-shadow: none;
}

#masthead .primary-menu-container .sub-menu li {
  margin: 0;
}

#masthead .primary-menu-container .sub-menu li a {
  display: block;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  color: var(--byb-ink);
  border-radius: 4px;
}

#masthead .primary-menu-container .sub-menu li a:hover,
#masthead .primary-menu-container .sub-menu li a:focus-visible {
  background: var(--byb-field);
  color: var(--byb-blue-deep);
}

#masthead .primary-menu-container .sub-menu li + li {
  border-top: 1px solid var(--byb-hairline);
}

/* Movil: el desplegable es un acordeon dentro del panel del menu */
#masthead .mobile-navigation .sub-menu {
  padding: 2px 0 10px 16px;
}

#masthead .mobile-navigation .sub-menu li a {
  display: block;
  padding: 10px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--byb-ink);
}

/* ============================================================
   Galeria de /diseno-web/ (kadence/advancedgallery 128_868635-2a)

   cover-hover deja la leyenda en flex fila y sin entrada: el texto
   aparecia de golpe junto con el velo. Aqui se replica el trato de la
   galeria anterior: titulo 21px y subtitulo 13px en versalitas, y el
   texto sube 20px con la misma curva al aparecer.

   La leyenda conserva inset:0 para que el velo blanco siga cubriendo
   toda la imagen; se pasa a columna para que el <br> corte la linea y
   el desplazamiento se hace con padding-top (50px en reposo, 10px al
   aparecer) en vez de transform, que habria movido tambien el fondo.
   ============================================================ */
.kb-gallery-wrap-id-128_868635-2a.wp-block-kadence-advancedgallery .kb-gallery-ul .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner .kadence-blocks-gallery-item__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  padding: 10px;
  padding-top: 50px;
  text-align: center;
  font-family: var(--global-heading-font-family, "Google Sans", Roboto, Arial, sans-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  color: #202124;
  transition: opacity .3s ease, padding-top .4s ease .15s;
}

.kb-gallery-wrap-id-128_868635-2a.wp-block-kadence-advancedgallery .kadence-blocks-gallery-item .kadence-blocks-gallery-item__caption strong {
  display: inline-block;
  font-family: var(--global-body-font-family, "Google Sans Text", Roboto, Arial, sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #5F6368;
}

.kb-gallery-wrap-id-128_868635-2a.wp-block-kadence-advancedgallery .kadence-blocks-gallery-item:hover .kadence-blocks-gallery-item-inner .kadence-blocks-gallery-item__caption,
.kb-gallery-wrap-id-128_868635-2a.wp-block-kadence-advancedgallery .kadence-blocks-gallery-item:focus-within .kadence-blocks-gallery-item-inner .kadence-blocks-gallery-item__caption {
  padding-top: 10px;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .kb-gallery-wrap-id-128_868635-2a.wp-block-kadence-advancedgallery .kb-gallery-ul .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner .kadence-blocks-gallery-item__caption {
    transition: none;
    padding-top: 10px;
  }
}

/* ============================================================
   Filas de "Que entregamos" ya convertidas a core/group + p.

   El grupo envuelve sus hijos en .wp-block-group__inner-container,
   asi que la fila flex va en ese contenedor y no en el grupo. Los
   parrafos recuperan el tamano y los margenes del diseno original,
   que Kadence sube a 17px con 32px de separacion.
   ============================================================ */
.single-content .wp-block-group.byb-web-spec__row {
  display: block;
  margin: 0;
}

.single-content .byb-web-spec__row > .wp-block-group__inner-container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.single-content .byb-web-spec__row p {
  margin: 0;
  max-width: none;
  font-size: 16px;
  line-height: 1.4;
  color: var(--byb-ink-soft);
}

.single-content .byb-web-spec__row p + p {
  color: var(--byb-ink);
  font-weight: 500;
  text-align: right;
}

/* Respuestas del FAQ: el p es :last-child dentro del details, y la
   regla de Kadence para :last-child anula el margen del diseno. */
.single-content .byb-faq .wp-block-details > p {
  margin: 0 0 18px;
}

/* ============================================================
   Portada (hero) convertida a bloques nativos.

   El grupo envuelve a sus hijos en .wp-block-group__inner-container
   y Kadence carga sus hojas despues del child theme, asi que el
   diseno del slider se reancla a la estructura renderizada.
   ============================================================ */

.single-content .wp-block-group.byb-hs,
.single-content .wp-block-group.byb-hs__track,
.single-content .wp-block-group.byb-hs__slide,
.single-content .wp-block-group.byb-hs__inner {
  margin: 0;
}

.single-content .byb-hs__slide > .wp-block-group__inner-container {
  width: 100%;
}

/* La cascada del texto apuntaba a los hijos directos del grupo: ahora
   el unico hijo es el contenedor, que queda siempre visible y deja que
   etiqueta y boton entren por su cuenta. */
.byb-hs--ready .byb-hs__inner > .wp-block-group__inner-container {
  opacity: 1;
  transform: none;
  transition: none;
}

.byb-hs--ready .byb-hs__kicker,
.byb-hs--ready .byb-hs__actions {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .5s ease var(--hs-delay, 0ms),
    transform .55s cubic-bezier(.2, .7, .2, 1) var(--hs-delay, 0ms);
}

.byb-hs--ready .byb-hs__slide.is-active .byb-hs__kicker,
.byb-hs--ready .byb-hs__slide.is-active .byb-hs__actions {
  opacity: 1;
  transform: none;
}

/* La foto es un bloque de imagen: el figure hace de fondo y la img
   cubre la diapositiva. */
.single-content .byb-hs__bg {
  margin: 0;
  max-width: none;
}

.single-content .byb-hs__bg img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Velo y barra de progreso: antes eran dos <span> por diapositiva;
   ahora los dibuja la propia diapositiva. */
.byb-hs__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, .7);
}

.byb-hs__slide::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 3px;
  background: var(--byb-blue);
  transform: scaleX(0);
  transform-origin: left center;
}

.byb-hs__slide.is-active::before {
  animation: byb-hs-progress 7s linear forwards;
}

/* El CTA es un bloque de boton: el contenedor recupera flex y gap
   del diseno frente a los estilos base de botones. */
.single-content .wp-block-buttons.byb-hs__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
}

.byb-hs .wp-block-button {
  margin: 0;
}

.single-content .byb-hs .wp-block-button__link,
.entry-content .byb-hs .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--byb-r-btn);
  background: var(--byb-blue);
  color: var(--byb-on-blue);
  box-shadow: none;
  font-family: var(--byb-font-ui, "Google Sans", Roboto, Arial, sans-serif);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.single-content .byb-hs .wp-block-button__link:hover,
.single-content .byb-hs .wp-block-button__link:focus-visible,
.entry-content .byb-hs .wp-block-button__link:hover,
.entry-content .byb-hs .wp-block-button__link:focus-visible {
  background: var(--byb-blue-hover);
  color: var(--byb-on-blue);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .byb-hs--ready .byb-hs__kicker,
  .byb-hs--ready .byb-hs__actions {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .byb-hs__slide.is-active::before {
    animation: none;
  }
}

/* Correcciones de la conversion: el grupo del carrusel envuelve a las
   diapositivas en su contenedor, con lo que el grid queda en ese nivel;
   la foto es ahora un figure y la regla de Kadence para figuras le
   volvia a poner margen inferior. */
.single-content .byb-hs__track > .wp-block-group__inner-container {
  display: grid;
}

.single-content figure.wp-block-image.byb-hs__bg {
  margin: 0;
  max-width: none;
}

/* Slider de tipos de proyecto convertido a grupos nativos: cada bloque
   envuelve a sus hijos en el contenedor de layout, asi que los dos
   niveles de rejilla se reanclan ahi. */
.single-content .byb-slider > .wp-block-group__inner-container {
  display: grid;
}

.single-content .byb-slide > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}

.single-content .wp-block-group.byb-slider {
  margin-top: 6px;
  margin-bottom: 0;
}

/* La diapositiva conserva su grid-area para apilarse en el slider,
   pero ya no reparte columnas: el único hijo es el contenedor y el
   reparto de 1.05fr/.95fr vive dentro de él. */
.single-content .wp-block-group.byb-slide {
  display: block;
  margin: 0;
}

.single-content .wp-block-group.byb-slide__text,
.single-content .wp-block-group.byb-slide__media {
  margin: 0;
}

@media (max-width: 781px) {
  .single-content .byb-slide > .wp-block-group__inner-container {
    grid-template-columns: minmax(0, 1fr);
  }
}
