/*
Theme Name: dm-theme-stmid
Theme URI: https://developermoi.com/
Author: DeveloperMoi
Author URI: https://developermoi.com
Description: Tema de bloques independiente desarrollado por DeveloperMoi para la suite dm-hoteles, orientado a agencias de viajes, operadores turísticos y negocios de hospedaje. Integra espacios para cotización de hoteles, bloqueos, promociones, destinos y experiencias mediante los shortcodes de los plugins de la suite. Ofrece diseño adaptable a móviles, plantillas y textos editables con el Editor del sitio, navegación global, botón de llamada y créditos dinámicos. Incluye fondos decorativos y fuentes locales. Permite personalizar la identidad visual y el contenido de cada negocio sin depender de un tema padre. Las funciones de cotización, catálogo y reservaciones requieren los plugins correspondientes.
Version: 1.6.3
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: developermoi-sancheztravel
*/

:root{
  --stm-caribe:#00A8E8;
  --stm-profundo:#003B8E;
  --stm-sol:#FFC300;
  --stm-palma:#2E7D32;
  --stm-tinta:#17324D;
  --stm-muted:#52677C;
  --stm-nube:#F4FAFD;
  --stm-blanco:#FFFFFF;
  --stm-radio:22px;
  --stm-sombra:0 18px 50px rgba(0,59,142,.11);
}

html{scroll-behavior:smooth}
body{
  color:var(--stm-tinta);
  background:
    radial-gradient(circle at 86% 8%,rgba(0,168,232,.10),transparent 28rem),
    linear-gradient(180deg,#eefaff 0%,#fff 34%,#f8fcfe 72%,#eef8fb 100%);
}
.wp-site-blocks > header{position:relative;z-index:50}
a{text-underline-offset:3px}

/* HEADER GLOBAL */
.stm-header{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(0,59,142,.08);
}
.stm-header .wp-block-site-logo img{
  max-height:72px;
  width:auto;
}

/* Menú dinámico menu-main */
.stm-menu-main-wrap{display:flex;align-items:center}
.stm-menu-main,
.stm-menu-footer{
  margin:0;
  padding:0;
  list-style:none;
}
.stm-menu-main{
  display:flex;
  align-items:center;
  gap:clamp(14px,2vw,28px);
}
.stm-menu-main li{margin:0}
.stm-menu-main a{
  color:var(--stm-tinta);
  font-weight:650;
  text-decoration:none;
}
.stm-menu-main a:hover,
.stm-menu-main .current-menu-item > a{
  color:var(--stm-caribe);
}
.stm-mobile-menu-toggle{
  display:none;
  border:0;
  background:transparent;
  color:var(--stm-profundo);
  font-size:1.65rem;
  line-height:1;
  padding:8px;
}

/* HERO */
.stm-hero.wp-block-cover{
  min-height:380px;
  background-color:var(--stm-profundo);
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}
.stm-hero .wp-block-cover__image-background{
  object-fit:cover!important;
  object-position:center center!important;
  width:100%;
  height:100%;
}
.stm-hero .wp-block-cover__background{
  opacity:.85!important;
  background:linear-gradient(115deg,rgba(0,59,142,.72),rgba(0,168,232,.18))!important;
}
.stm-hero-content{
  max-width:920px;
  margin:auto;
  text-align:center;
  padding:44px 24px 76px;
}
.stm-hero-title{
  color:#fff;
  font-size:clamp(2.2rem,4.4vw,3.8rem);
  line-height:1.08;
  letter-spacing:-.035em;
  text-shadow:0 8px 28px rgba(0,0,0,.30);
  margin:0 0 22px;
}
.stm-hero-subtitle{
  color:#fff;
  font-size:clamp(1.05rem,2vw,1.45rem);
  text-shadow:0 3px 14px rgba(0,0,0,.35);
  max-width:760px;
  margin-inline:auto;
}

/* CONTENIDO */
.stm-main{
  position:relative;
  z-index:5;
  margin-top:40px;
  margin-bottom:88px!important;
  background:rgba(255,255,255,.97);
  border:1px solid rgba(0,59,142,.07);
  border-radius:30px;
  box-shadow:var(--stm-sombra);
  overflow:hidden;
}
.stm-main-inner{padding:clamp(28px,4vw,58px)}
.stm-section{padding:52px 0}
.stm-section + .stm-section{
  border-top:1px solid rgba(0,59,142,.07);
}
.stm-section-title{
  color:var(--stm-profundo);
  margin:0 0 10px;
  font-size:clamp(2rem,3.4vw,3rem);
  line-height:1.08;
  text-align:center;
}
.stm-section-intro{
  color:var(--stm-muted);
  text-align:center;
  max-width:850px;
  margin:0 auto 32px;
  font-size:1.05rem;
}
.stm-shortcode-card{
  background:#fff;
  border:1px solid rgba(0,59,142,.08);
  border-radius:20px;
  padding:18px;
  box-shadow:0 10px 28px rgba(0,59,142,.07);
}

/* Los plugins controlan la presentación de sus shortcodes.
   Aplicar estilos únicamente a botones de bloques del tema. */
.stm-main .wp-block-button > .wp-block-button__link{
  border-radius:999px;
  border:0;
  background:linear-gradient(135deg,var(--stm-profundo),var(--stm-caribe));
  color:#fff;
  font-weight:750;
  box-shadow:0 10px 24px rgba(0,59,142,.18);
}

/* CTA FINAL: único llamado comercial fuerte */
.stm-cta{
  color:#fff;
  background:
    radial-gradient(circle at 85% 30%,rgba(255,195,0,.22),transparent 18rem),
    linear-gradient(120deg,#003B8E,#005EB8);
}
.stm-cta h2{color:#fff}
.stm-cta p{color:rgba(255,255,255,.86)}
.stm-cta .wp-element-button{
  background:#fff;
  color:var(--stm-profundo);
  border-radius:999px;
  font-weight:800;
}

/* FOOTER GLOBAL */
.stm-footer{
  background:#062F69;
  color:rgba(255,255,255,.84);
}
.stm-footer h3{color:#fff}
.stm-footer a{color:#fff}
.stm-footer .wp-block-site-logo img{
  max-height:80px;
  width:auto;
}
.stm-menu-footer{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.stm-menu-footer a{
  color:#fff;
  text-decoration:none;
}
.stm-menu-footer a:hover{color:#8EE8FF}
.stm-footer-copy{
  border-top:1px solid rgba(255,255,255,.14);
}

/* Páginas internas */
.stm-page-title{
  color:var(--stm-profundo);
  margin-top:0;
}

/* Responsive */
@media(max-width:782px){
  .stm-header .wp-block-site-logo img{max-height:58px}
  .stm-menu-ready .stm-mobile-menu-toggle{display:block}
  .stm-mobile-menu-toggle[hidden]{display:none}
  .stm-menu-main-wrap{
    position:relative;
  }
  .stm-menu-main{
    display:flex;
    position:absolute;
    top:48px;
    right:0;
    width:min(310px,80vw);
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    padding:16px;
    background:#fff;
    border-radius:16px;
    box-shadow:0 16px 42px rgba(0,59,142,.16);
  }
  .stm-menu-ready .stm-menu-main{display:none}
  .stm-menu-ready .stm-menu-main.is-open{display:flex}
  .stm-menu-main a{
    display:block;
    padding:10px 12px;
  }
  .stm-hero.wp-block-cover{min-height:320px!important}
  .stm-hero-content{padding:32px 20px 58px}
  .stm-main{
    margin-top:28px;
    border-radius:20px;
  }
  .stm-main-inner{padding:22px}
  .stm-section{padding:38px 0}
}

/* Portada: solapamiento exclusivo del cotizador. */
.stm-main.stm-home-main{margin-top:-40px!important}
.stm-eyebrow{color:var(--stm-profundo);text-align:center;font-size:.75rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;margin:0 0 12px}
.stm-hero .stm-eyebrow{color:var(--stm-sol)}
.stm-section-title::after{content:"";display:block;width:44px;height:4px;background:var(--stm-sol);border-radius:4px;margin:16px auto}
.stm-section:first-child{padding-top:8px}
.stm-hero-content > *{margin-block-start:0}
:where(a,button):focus-visible{outline:3px solid var(--stm-sol);outline-offset:4px}
@media(max-width:782px){
  .stm-main.stm-home-main{margin-top:-24px!important}
  .stm-main-inner{padding:20px 16px}
  .stm-shortcode-card{padding:12px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Identidad y lectura: reglas limitadas a los componentes del tema. */
.stm-header,.stm-footer,.stm-hero-content,.stm-section-title,.stm-section-intro,.stm-eyebrow,.stm-cta{
  font-family:var(--wp--preset--font-family--body,system-ui,-apple-system,"Segoe UI",sans-serif);
}
.stm-hero-title,.stm-section-title,.stm-cta h2,.stm-page-title{
  font-family:var(--wp--preset--font-family--heading,Georgia,serif);
  font-weight:400;
  text-wrap:balance;
  letter-spacing:-.025em;
}
.stm-hero-title{font-size:clamp(2.25rem,4.3vw,3.65rem);line-height:1.12;text-shadow:0 3px 18px rgba(0,0,0,.15)}
.stm-hero-subtitle{max-width:640px;font-size:clamp(1rem,1.7vw,1.2rem);line-height:1.65}
.stm-section-title{font-size:clamp(1.9rem,3vw,2.65rem);line-height:1.2}
.stm-section-intro{max-width:680px;line-height:1.7}
.stm-footer .wp-block-site-logo{display:table;box-sizing:border-box;max-width:100%;padding:16px 20px;background:#fff;border-radius:18px;margin-bottom:24px}
.stm-footer .wp-block-site-logo img{display:block;max-width:100%;object-fit:contain}
.stm-footer h3{font-family:inherit;font-weight:650;letter-spacing:.01em}
.stm-footer p{font-size:.95rem;line-height:1.8;overflow-wrap:anywhere}
.stm-footer-copy p{font-size:.8rem}
.stm-cta h2{font-size:clamp(1.9rem,3vw,2.65rem)!important;line-height:1.2;max-width:660px}
.stm-cta p{max-width:620px}
.stm-cta .wp-block-button__link{padding:14px 24px}
.stm-menu-main{flex-wrap:wrap;font-size:.95rem}
.stm-menu-main a{display:block;padding:10px 0}
.stm-menu-main a:hover,.stm-menu-main .current-menu-item > a{color:var(--stm-profundo);text-decoration:underline;text-decoration-color:var(--stm-sol);text-decoration-thickness:3px;text-underline-offset:7px}
.stm-menu-main li{position:relative}
.stm-menu-main .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:190px;max-width:80vw;margin:0;padding:12px 18px;list-style:none;background:#fff;box-shadow:var(--stm-sombra);border-radius:12px}
.stm-menu-main li:hover > .sub-menu,.stm-menu-main li:focus-within > .sub-menu{display:block}
.stm-menu-main .sub-menu .sub-menu{position:static;box-shadow:none;padding:0 0 0 12px}
.stm-block-nav{color:var(--stm-tinta);font-size:.95rem;font-weight:600}
.stm-block-nav .wp-block-navigation__responsive-container.is-menu-open{background:#fff;color:var(--stm-tinta)}
.stm-block-footer-nav{color:#fff;font-size:.95rem}
@media(max-width:782px){
  .stm-menu-main{max-height:70vh;overflow-y:auto}
  .stm-menu-main .sub-menu{display:block;position:static;min-width:0;padding:0 0 0 16px;box-shadow:none}
  .stm-header .wp-block-site-logo{flex-shrink:0}
  .stm-footer .wp-block-site-logo{padding:14px 18px}
}

/* Portada tropical: fondo incluido y composición de la propuesta visual. */
.stm-hero.wp-block-cover{
  background-image:url("assets/images/hero-palmeras.jpg");
  margin-block-start:0;
  padding:0;
}
.stm-hero:not(:has(.wp-block-cover__image-background, .wp-block-cover__video-background)) .wp-block-cover__background{
  opacity:.16!important;
}
.stm-hero-content{
  box-sizing:border-box;
  max-width:1180px;
  width:100%;
  padding:48px 24px 100px;
  text-align:left;
}
.stm-hero-content .stm-hero-title{
  max-width:790px;
  margin:0 0 18px 0;
  text-align:left;
  font-size:clamp(2.3rem,4.5vw,4.1rem);
}
.stm-hero-content .stm-hero-subtitle{
  max-width:600px;
  margin-inline:0;
  text-align:left;
}
.stm-hero-content .stm-eyebrow{text-align:left;margin-bottom:22px}
.stm-hero-content .stm-eyebrow::after{content:"";display:block;width:44px;height:3px;margin-top:12px;background:var(--stm-sol);border-radius:4px}
.stm-main.stm-home-main{
  width:calc(100% - 48px);
  max-width:1132px;
  margin-top:-56px!important;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
}
.stm-home-main > .stm-main-inner{padding:0}
.stm-home-main .stm-section{padding:40px 0}
.stm-home-main .stm-section:first-child{
  padding:28px 32px 32px;
  background:#fff;
  border:1px solid rgba(0,59,142,.08);
  border-radius:18px;
  box-shadow:0 14px 38px rgba(0,59,142,.12);
  margin-bottom:12px;
}
.stm-home-main .stm-section:nth-child(2){border-top:0}
.stm-home-main .stm-section-title,.stm-home-main .stm-section-intro,.stm-home-main .stm-eyebrow{text-align:left}
.stm-home-main .stm-section-title::after{margin-left:0}
.stm-home-main .stm-section-intro{margin-left:0;margin-bottom:24px}
.stm-home-main .stm-shortcode-card{padding:0;border:0;box-shadow:none;background:transparent}
.stm-home-main .stm-section:first-child .stm-section-title{font-size:clamp(1.8rem,2.8vw,2.4rem)}
.stm-header > .wp-block-group,.stm-cta > .wp-block-group,.stm-footer > .wp-block-columns,.stm-footer > .stm-footer-copy{max-width:1132px;margin-inline:auto}
@media(max-width:782px){
  .stm-hero.wp-block-cover{background-position:65% center!important}
  .stm-hero-content{padding:36px 24px 80px}
  .stm-hero-content .stm-hero-title{font-size:clamp(2.15rem,7vw,3rem)}
  .stm-main.stm-home-main{width:calc(100% - 32px);margin-top:-36px!important}
  .stm-home-main .stm-section:first-child{padding:22px 18px}
  .stm-home-main .stm-section{padding:30px 0}
}

/* Fondos decorativos incluidos; sin modificar el interior de los shortcodes. */
body{
  background-color:var(--stm-nube);
  background-image:linear-gradient(rgba(244,250,253,.76),rgba(244,250,253,.92)),url("assets/images/fondo-brisa.jpg");
  background-size:100% 100%,100% auto;
  background-position:center top,center 420px;
  background-repeat:no-repeat;
}
.stm-cta{
  background-color:var(--stm-profundo);
  background-image:linear-gradient(90deg,rgba(0,35,83,.6),rgba(0,35,83,.28)),url("assets/images/fondo-contacto.jpg");
  background-position:center,right center;
  background-size:cover;
}
.stm-cta p{color:#fff}
.stm-cta .wp-block-button__link{box-shadow:0 8px 24px rgba(0,20,60,.18)}
.stm-cta .wp-block-button__link:hover{background:var(--stm-sol);color:#062F69}
.stm-hero-subtitle,.stm-section-intro{text-wrap:pretty}
.stm-eyebrow{font-weight:650;letter-spacing:.12em}
.stm-section-title{font-weight:400}
.stm-footer{margin-block-start:0}
@media(max-width:782px){
  body{background-size:100% 100%,auto 1000px;background-position:center top,center 340px}
  .stm-cta{background-position:center,60% center}
}

/* Alineación del contenedor frente a los márgenes de los bloques de WordPress.
   !important se limita a márgenes que el layout constrained genera así. */
.stm-main.stm-home-main{
  box-sizing:border-box;
  margin-inline:auto!important;
}
.stm-home-main > .stm-main-inner{
  box-sizing:border-box;
  width:100%;
  max-width:none;
  margin-inline:auto!important;
}
.stm-home-main > .stm-main-inner > .stm-section{
  box-sizing:border-box;
  width:100%;
  max-width:none;
  margin-inline:auto!important;
  padding-block:clamp(32px,4.5vw,60px);
}
.stm-home-main > .stm-main-inner > .stm-section:first-child{
  padding:clamp(22px,3vw,32px);
}
.stm-home-main .stm-section:not(:first-child) > .stm-section-title,
.stm-home-main .stm-section:not(:first-child) > .stm-section-intro,
.stm-home-main .stm-section:not(:first-child) > .stm-eyebrow{
  text-align:center;
  margin-inline:auto!important;
}
.stm-home-main .stm-section:not(:first-child) > .stm-section-title::after{
  margin-inline:auto;
}
.stm-home-main .stm-section > .stm-section-intro{
  max-width:680px;
  margin-bottom:clamp(24px,3vw,36px);
}
.stm-home-main .stm-section:first-child > .stm-section-title,
.stm-home-main .stm-section:first-child > .stm-section-intro,
.stm-home-main .stm-section:first-child > .stm-eyebrow{
  text-align:left;
  margin-inline:0!important;
}
/* Solo contenedores exteriores: las pistas, tarjetas y controles son del plugin. */
.stm-home-main .stm-section > .developermoi-slider,
.stm-home-main .stm-section > .dmcards-wrap,
.stm-home-main .stm-section > .stm-shortcode-card{
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  margin-inline:auto!important;
}
.stm-hero-content > .stm-hero-title,
.stm-hero-content > .stm-hero-subtitle,
.stm-hero-content > .stm-eyebrow{
  margin-inline:0!important;
}
.stm-cta > .wp-block-group > .wp-block-group > p,
.stm-cta > .wp-block-group > .wp-block-group > h2{
  margin-inline:0!important;
}
.wp-site-blocks > header + .wp-block-template-part,
.wp-site-blocks > .wp-block-template-part + footer{
  margin-block-start:0;
}
@media(max-width:600px){
  .stm-home-main .stm-section > .stm-section-intro{font-size:1rem;line-height:1.65}
  .stm-home-main .stm-section:not(:first-child) > .stm-section-title{font-size:clamp(1.8rem,7vw,2.2rem)}
}

/* Fondo continuo: una capa fija evita repeticiones y cortes al desplazarse. */
body{background:var(--stm-nube);isolation:isolate}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(rgba(244,250,253,.78),rgba(244,250,253,.78)),url("assets/images/fondo-brisa.jpg") center / cover no-repeat;
}
.stm-interior{margin-block-start:0}
.stm-interior-hero{
  padding:clamp(36px,5vw,64px) 24px 88px;
  color:#fff;
  background:linear-gradient(90deg,rgba(0,35,83,.42),rgba(0,35,83,.2)),url("assets/images/hero-palmeras.jpg") center / cover no-repeat;
}
.stm-interior-heading{max-width:1132px;margin-inline:auto!important}
.stm-interior-heading .stm-eyebrow{text-align:left;color:var(--stm-sol)}
.stm-interior-title{color:#fff;font-family:var(--wp--preset--font-family--heading,Georgia,serif);font-size:clamp(2.25rem,4vw,3.5rem);font-weight:400;line-height:1.12;letter-spacing:-.025em;margin:12px 0 16px;text-wrap:balance}
.stm-interior-intro{max-width:640px;font-size:1.05rem;line-height:1.7;margin:0}
.stm-interior-content{
  position:relative;
  box-sizing:border-box;
  width:calc(100% - 48px);
  max-width:1132px;
  margin:-40px auto 64px!important;
  padding:clamp(24px,4vw,48px);
  background:#fff;
  border:1px solid rgba(0,59,142,.08);
  border-radius:22px;
  box-shadow:0 16px 42px rgba(0,59,142,.09);
}
.stm-interior-content > .wp-block-post-content{max-width:100%;min-width:0}
.stm-interior-content .wp-block-post-content > :is(p,ul,ol){max-width:760px;line-height:1.8}
.stm-interior-content .wp-block-post-content > .wp-block-heading{color:var(--stm-profundo);font-size:clamp(1.5rem,2.5vw,2rem);line-height:1.3;text-wrap:balance}
.stm-interior-content .wp-block-post-content > .wp-block-image{max-width:760px;margin-inline:auto}
.stm-interior-content .wp-block-post-content > .wp-block-image img{border-radius:16px;height:auto}
.stm-site-credits{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px;text-align:center;margin:0}
.stm-site-credits a{text-decoration:underline;text-underline-offset:4px}
@media(max-width:600px){
  .stm-interior-hero{padding:32px 20px 68px}
  .stm-interior-content{width:calc(100% - 32px);padding:24px 18px;margin-top:-32px!important;margin-bottom:40px!important;border-radius:18px}
  .stm-site-credits{flex-direction:column;gap:6px}
}

/* Créditos legibles con descripción y dominio en la primera línea. */
.stm-footer .stm-site-credits{flex-direction:column;align-items:center;gap:6px;width:100%;overflow-wrap:anywhere}
.stm-site-credits > span{max-width:100%}
.stm-site-credits > span:last-child{font-size:.78rem;opacity:.9}

/* Créditos en una línea, con ajuste natural en pantallas pequeñas. */
.stm-footer .stm-site-credits{flex-direction:row;align-items:baseline;gap:6px 10px}
.stm-footer .stm-site-credits > span:last-child{font-size:inherit;opacity:1}

/* Contacto inmediato: botón de llamada visible fuera del menú desplegable. */
.stm-header > .stm-header-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:24px;
  align-items:center;
  box-sizing:border-box;
}
.stm-header-row > .stm-menu-main-wrap{justify-self:end;min-width:0;margin:0}
.stm-header-row .stm-menu-main{justify-content:flex-end;gap:clamp(12px,1.5vw,22px)}
.stm-header .stm-header-call{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:10px 18px 10px 10px;
  min-height:58px;
  box-sizing:border-box;
  border:1px solid rgba(0,59,142,.08);
  border-radius:999px;
  background:var(--stm-profundo);
  color:#fff;
  text-decoration:none;
  box-shadow:0 6px 18px rgba(0,59,142,.14);
  margin:0;
  transition:background-color .2s ease,box-shadow .2s ease;
}
.stm-header-call-icon{
  display:grid;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:50%;
  background:var(--stm-sol);
}
.stm-header-call-icon::before{
  content:"";
  display:block;
  width:21px;
  height:21px;
  background:var(--stm-profundo);
  -webkit-mask:url("assets/icons/phone.svg") center / contain no-repeat;
  mask:url("assets/icons/phone.svg") center / contain no-repeat;
}
.stm-header-call-copy{display:flex;flex-direction:column;gap:3px;line-height:1.2;text-align:left}
.stm-header-call-label{font-size:.73rem;font-weight:500}
.stm-header-call-number{font-size:.95rem;font-weight:750;white-space:nowrap;letter-spacing:.01em}
.stm-header .stm-header-call:hover{background:#062F69;box-shadow:0 8px 22px rgba(0,59,142,.22)}
.stm-header .stm-header-call:focus-visible{outline:3px solid var(--stm-sol);outline-offset:4px}
@media(min-width:783px) and (max-width:1050px){
  .stm-header > .stm-header-row{grid-template-columns:1fr auto;gap:12px 20px}
  .stm-header-row > .stm-menu-main-wrap{grid-column:1 / -1;grid-row:2;justify-self:center}
  .stm-header-row > .stm-header-call{grid-column:2;grid-row:1}
}
@media(max-width:782px){
  .stm-header > .stm-header-row{grid-template-columns:minmax(0,1fr) auto auto;gap:12px}
  .stm-header-row > .stm-header-call{grid-column:2;grid-row:1}
  .stm-header-row > .stm-menu-main-wrap{grid-column:3;grid-row:1}
  .stm-header-row .stm-menu-main{justify-content:initial}
  .stm-header .stm-header-call{min-height:48px;padding:7px 12px 7px 7px;gap:8px}
  .stm-header-call-icon{width:32px;height:32px;flex-basis:32px}
  .stm-header-call-number{font-size:.85rem}
}
@media(max-width:480px){
  .stm-header > .stm-header-row{grid-template-columns:minmax(0,1fr) auto;gap:12px}
  .stm-header-row > .stm-menu-main-wrap{grid-column:2;grid-row:1}
  .stm-header-row > .stm-header-call{grid-column:1 / -1;grid-row:2;justify-self:stretch}
  .stm-header-call-copy{flex-direction:row;align-items:baseline;gap:8px}
}
@media(prefers-reduced-motion:reduce){.stm-header .stm-header-call{transition:none}}

/* El desplegable se ancla al encabezado completo, incluida la fila de llamada. */
.stm-header .stm-header-call{position:relative;isolation:isolate;z-index:0}
@media(max-width:782px){
  .stm-header > .stm-header-row{position:relative}
  .stm-header-row > .stm-menu-main-wrap.stm-menu-ready,
  .stm-header-row > .stm-menu-main-wrap.stm-menu-ready > nav{position:static}
  .stm-header-row .stm-menu-ready .stm-menu-main{
    position:absolute;
    top:calc(100% + 8px);
    right:20px;
    left:auto;
    z-index:10;
    box-sizing:border-box;
    width:min(340px,calc(100% - 40px));
    max-height:60vh;
    max-height:min(60dvh,420px);
    overflow-y:auto;
    overscroll-behavior:contain;
    margin:0!important;
    gap:4px;
    padding:12px;
  }
  .stm-header-row .stm-menu-ready .stm-menu-main a{padding:12px;line-height:1.4}
}
