/* Mobile only; existing desktop CSS remains authoritative. */
.mobile-nav-panel,.mobile-chat-menu{display:none}
@media(max-width:780px){
body.premium-global[data-page] header{position:relative!important;top:auto!important;flex:none;min-height:0!important;z-index:20;border-bottom:1px solid #c9973b!important;box-shadow:none}
body.premium-global[data-page] header:before{inset:0 0 0 auto!important;width:54vw!important;opacity:.85!important;mask-image:linear-gradient(90deg,transparent,#000 65%);background-size:cover!important}
body.premium-global[data-page] header .ancho{width:100%;padding:8px 12px 4px!important;min-height:0!important;display:grid!important;grid-template-columns:1fr auto!important;gap:3px 8px!important}
body.premium-global[data-page] header .marca{display:flex;align-items:center;gap:7px;min-width:0}
body.premium-global[data-page] header .marca img{width:39px;height:39px}
body.premium-global[data-page] header .marca b{font:700 clamp(17px,5.1vw,22px)/1.1 Georgia,serif!important;letter-spacing:0!important;white-space:nowrap}
body.premium-global[data-page] header .marca small{display:block!important;font:italic 10px/1.3 Georgia,serif!important;letter-spacing:.7px!important;text-transform:none!important}
body.premium-global[data-page] header .cli-empresa{display:none}
body.premium-global[data-page] header details.idiomas>summary{padding:7px!important;font-size:13px!important}
body.premium-global[data-page] header details.idiomas>summary:before{display:none!important}
body.premium-global[data-page] .mobile-chat-menu{display:flex;align-items:center;justify-content:center;grid-column:1;grid-row:2;justify-self:start;width:40px;height:30px;border:0;background:transparent;color:#fff;padding:3px;box-shadow:none}
body.premium-global[data-page] .mobile-chat-menu svg{width:23px;height:23px}
body.premium-global[data-page] header{background:#102438!important;border-bottom:0!important;min-height:85px!important}
body.premium-global[data-page] header:before{inset:auto 0 0 auto!important;width:100%!important;height:57px!important;background:url('/static/equipo/premium-espigas-original.png') no-repeat right bottom!important;background-size:auto 100%!important;opacity:1!important;mask-image:linear-gradient(90deg,transparent 15%,#000 65%)!important;-webkit-mask-image:linear-gradient(90deg,transparent 15%,#000 65%)!important}
body.premium-global[data-page] header:after{content:"";position:absolute;inset:auto 0 0;height:32px;pointer-events:none;z-index:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 32' preserveAspectRatio='none'%3E%3Cpath d='M0 1 Q140 9 250 26 Q320 36 360 26 V32 H0 Z' fill='%23f7f2e9'/%3E%3Cpath d='M0 1 Q140 9 250 26 Q320 36 360 26' fill='none' stroke='%23c9973b' stroke-width='1.3'/%3E%3C/svg%3E") center/100% 100% no-repeat}
body.premium-global[data-page] header .ancho{z-index:1;min-height:85px!important;padding-bottom:7px!important}
body.premium-global[data-page] .mobile-chat-menu{background:#102438!important;box-shadow:none!important;border-radius:4px;position:relative;z-index:2}
body.premium-global[data-page] header details.idiomas>summary{background:#102438!important;border:1px solid #c9973b!important}
body.premium-global[data-page] header{min-height:110px!important;background:linear-gradient(112deg,#0b2035,#18384d)!important;isolation:isolate;overflow:visible!important}
body.premium-global[data-page] header .ancho{height:110px!important;min-height:110px!important;padding:10px 12px 0!important;grid-template-rows:49px 38px!important;align-content:start!important;gap:3px 8px!important}
body.premium-global[data-page] header .marca{gap:9px!important;align-self:start!important}
body.premium-global[data-page] header .marca img{width:44px!important;height:44px!important}
body.premium-global[data-page] header .marca span{border-inline-start:1px solid #c9973b;padding-inline-start:9px}
body.premium-global[data-page] header .marca b{font:400 clamp(15px,5.3vw,23px)/1.15 Georgia,serif!important;letter-spacing:.65px!important;color:#eac16e!important}
body.premium-global[data-page] header .marca small{font:italic 10px/1.3 Georgia,serif!important;letter-spacing:.5px!important;text-align:center;color:#fff4dd!important}
body.premium-global[data-page] header:before{inset:auto 0 0 auto!important;width:76%!important;height:64px!important;background:url('/static/equipo/premium-espigas-original.png') no-repeat 55% bottom!important;background-size:auto 100%!important;mask-image:linear-gradient(90deg,transparent 0%,#000 29%)!important;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 29%)!important;opacity:1!important}
body.premium-global[data-page] header:after{height:56px!important;z-index:0!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 56' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L0 40 L95 40 C174 40 242 54 310 55 Q337 55 360 49 L360 56 H0Z' fill='%23f7f2e9'/%3E%3Cpath d='M0 4 C111 19 218 49 310 55 Q338 55 360 49' fill='none' stroke='%23d2a13f' stroke-width='1.5'/%3E%3C/svg%3E") center/100% 100% no-repeat!important}
body.premium-global[data-page] .mobile-chat-menu{align-self:start!important;margin-top:3px!important;background:transparent!important;height:30px!important;width:32px!important;padding:2px!important;border:0!important}
body.premium-global[data-page] header details.idiomas>summary{padding:7px 8px!important;border-radius:8px!important;font:400 13px Georgia,serif!important;color:#fff4dd!important}
body.premium-global[data-page] header{position:sticky!important;top:0!important;z-index:40!important;flex:none;direction:ltr}
body.premium-global[data-page] header .ancho{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;justify-content:initial!important;align-items:center!important}
body.premium-global[data-page] header .marca{grid-column:1;grid-row:1;flex-wrap:nowrap!important}
body.premium-global[data-page] header .marca:after{display:none!important}
body.premium-global[data-page] header .marca b{font-size:clamp(15px,5.3vw,23px)!important}
body.premium-global[data-page] header .cli-empresa{display:none!important}
body.premium-global[data-page] header nav.cli-idioma,body.premium-global[data-page] header nav.public-language{grid-column:2;grid-row:1;display:block!important;justify-self:end;width:auto!important;min-width:0!important;overflow:visible!important;mask-image:none!important;-webkit-mask-image:none!important;padding:0!important;margin:0!important}
body.premium-global[data-page].mobile-nav-ready:not(.area-cli):not(.public-premium) header .ancho>nav:not(.admin-language){display:none!important}
body.premium-global[data-page] header details.idiomas{position:relative;z-index:50}
body.premium-global[data-page] header details.idiomas>div{max-height:60dvh;overflow-y:auto;z-index:60;right:0;left:auto;min-width:110px}
body.premium-global[data-page] header .mobile-chat-menu{grid-column:1;grid-row:2;justify-self:start;display:flex}
body.premium-global[data-page].mobile-nav-ready .barra-cli{display:none!important}
body.premium-global[data-page] .mobile-nav-panel{position:absolute;top:100%;left:0;right:0;z-index:45;background:#fffaf2;border-bottom:2px solid #c9973b;box-shadow:0 10px 24px #10243833;max-height:calc(100dvh - 110px);overflow:auto;padding:8px 10px;direction:inherit}
body.premium-global[data-page].mobile-menu-open .mobile-nav-panel{display:block}
body.premium-global[data-page] .mobile-nav-panel nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px!important;mask-image:none!important;-webkit-mask-image:none!important;padding:0!important;margin:0!important;width:100%!important;overflow:visible!important}
body.premium-global[data-page] .mobile-nav-panel nav a{display:flex;align-items:center;gap:7px;min-height:40px;padding:7px 8px!important;border-radius:8px;color:#102438!important;background:#fff;font:600 14px/1.2 Georgia,serif!important;white-space:normal!important;text-shadow:none!important;text-decoration:none;overflow-wrap:anywhere}
body.premium-global[data-page] .mobile-nav-panel nav a.activo{background:linear-gradient(#ffe1a0,#dda943)!important}
body.premium-global[data-page] .mobile-nav-panel svg{width:20px;height:20px;flex:none}
body.premium-global[data-page] .mobile-nav-customer{font:600 14px Georgia,serif;color:#102438;margin:4px 5px 9px}
html[dir="rtl"] .mobile-nav-panel{direction:rtl!important}
}

/* V28 master masthead: shared on every mobile page. */
@media(max-width:780px){
body.premium-global[data-page] header{height:98px!important;min-height:98px!important;background:transparent!important;border:0!important;isolation:isolate;box-shadow:none!important;overflow:visible!important}
body.premium-global[data-page] header .ancho{height:98px!important;min-height:98px!important;padding:8px 11px 0!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:46px 32px!important;gap:3px 6px!important;align-content:start!important;align-items:center!important;z-index:2!important}
body.premium-global[data-page] header{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 98' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='n' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23061525'/%3E%3Cstop offset='1' stop-color='%230c263b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0H360V94C282 90 251 69 192 73C116 77 63 98 0 96Z' fill='url(%23n)'/%3E%3C/svg%3E")!important;background-size:100% 100%!important;background-repeat:no-repeat!important}
body.premium-global[data-page] header:before{content:"";position:absolute;inset:auto 0 0 auto!important;width:45%!important;height:71px!important;z-index:1!important;opacity:1!important;background:url('/static/equipo/espiga-cabecera-maestra-v29.png') no-repeat center/contain!important;mask-image:none!important;-webkit-mask-image:none!important;transform:none!important;pointer-events:none}
body.premium-global[data-page] header:after{content:"";position:absolute;inset:0!important;height:98px!important;width:100%!important;z-index:1!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 98' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop stop-color='%23b88635'/%3E%3Cstop offset='.45' stop-color='%23ffe2a0'/%3E%3Cstop offset='1' stop-color='%23aa7224'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 96C63 98 116 77 192 73C251 69 282 90 360 94' fill='none' stroke='url(%23g)' stroke-width='2.5'/%3E%3C/svg%3E") center/100% 100% no-repeat!important;pointer-events:none}
body.premium-global[data-page] header .marca{gap:8px!important;align-self:start!important;align-items:center!important;min-width:0!important}
body.premium-global[data-page] header .marca img{width:45px!important;height:45px!important;flex:none;filter:brightness(0) saturate(100%) invert(76%) sepia(43%) saturate(850%) hue-rotate(354deg) brightness(101%)!important}
body.premium-global[data-page] header .marca span{border-inline-start:1px solid #d5ab56!important;padding-inline-start:8px!important;min-width:0}
body.premium-global[data-page] header .marca b{font:600 clamp(14px,5.25vw,23px)/1.15 Georgia,serif!important;letter-spacing:.35px!important;color:#eac16e!important;white-space:nowrap!important}
body.premium-global[data-page] header .marca small{font:400 clamp(10px,3.8vw,15px)/1.2 Georgia,serif!important;letter-spacing:0!important;color:#edc56a!important;text-align:start!important;text-transform:none!important;white-space:nowrap!important}
body.premium-global[data-page] header .mobile-chat-menu{width:31px!important;height:31px!important;padding:2px!important;margin:0 0 0 5px!important;background:transparent!important;border:0!important;color:#eac16e!important;box-shadow:none!important;align-self:start!important}
body.premium-global[data-page] header .mobile-chat-menu svg{width:26px;height:26px;stroke-width:2.1}
body.premium-global[data-page] header details.idiomas>summary{font:400 14px/1.1 Georgia,serif!important;border:1px solid #d5ab56!important;border-radius:8px!important;background:#071b2c!important;padding:7px 8px!important;gap:4px!important;color:#fff4dd!important}
body.premium-global[data-page] header details.idiomas>summary:before{display:none!important}
body.premium-global[data-page] header details.idiomas>summary:after{margin:0 2px 3px 1px!important;width:6px!important;height:6px!important}
body.premium-global[data-page] .mobile-nav-panel{max-height:calc(100dvh - 98px)!important}
body.premium-global[data-page="/"] .hero-variedad{margin-top:-28px;min-height:calc(100dvh - 70px)!important;padding-top:28px;box-sizing:border-box}
body.premium-global[data-page="/admin"] header{background-color:#0b2236!important}
}

/* V30 Contact: let the photograph continue underneath the shared curved masthead. */
@media(max-width:780px){
body.premium-global[data-page="/contacto"] .contacto-hero{margin-top:-28px!important;padding-top:28px!important;box-sizing:border-box}
}
