/* TAC Aragón - Primera maqueta - fidelidad visual a captura antigua */
:root{--blue:#284A77;--blue-dark:#1b3454;--gray:#737373;--red:#ed3136;--yellow:#ffff49;--body:#fff;--container:1060px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:60px}body{margin:0;background:var(--body);font-family:Roboto,'Arial Narrow',Arial,Helvetica,sans-serif;color:#6d6d6d;font-size:13px;line-height:1.43}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{color:var(--blue)}img{max-width:100%;height:auto}.wrap{width:min(calc(100% - 32px),var(--container));margin-inline:auto}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-weight:700}h1,h2,h3{line-height:1.25}h2,h3{color:var(--blue)}.skip-link{position:absolute;z-index:30;top:-100px;left:16px;background:white;padding:8px}.skip-link:focus{top:0}
.topbar{height:45px;background:#fff}.topbar-inner{height:45px;display:flex;align-items:center;gap:22px}.site-logo{width:70px;height:42px;display:flex;align-items:center;flex:none}.site-logo img{width:68px;max-height:40px}.catalogue-search{background:var(--yellow);color:#a3a3a3;font-size:11px;display:flex;align-items:center;justify-content:space-between;height:27px;max-width:530px;min-width:140px;flex:1;padding:0 9px}.catalogue-search svg{color:#202c36}.catalogue-search:hover{color:#2e3e53;background:#ffff76}.top-budget{border:0;background:var(--blue);color:white;font-size:12px;font-weight:700;white-space:nowrap;padding:5px 9px;height:28px}.top-budget:hover{background:var(--blue-dark)}
.navbar{background:var(--blue);color:#fff;position:relative;z-index:8}.nav-inner{min-height:32px;display:flex;align-items:center}.menu{display:flex;align-items:stretch;width:100%;min-height:32px;gap:0}.menu>a,.menu>button,.menu>.nav-disabled{font-weight:600;font-size:11px;color:white;display:flex;align-items:center;padding:7px 9px;white-space:nowrap}.menu>.nav-disabled{cursor:default;opacity:.78}.menu>a:hover,.menu>button:hover{background:#1a395d;color:#fff}.menu .home-nav{background:#1b3e64;padding:4px 14px;font-size:22px;line-height:1}.nav-link-button{background:transparent;border:0}.menu .nav-contact{font-size:10px}.lang-switcher{display:flex;align-items:center;margin-left:auto;gap:4px;font-size:10px;color:#fff}.lang-switcher a{color:#e0e7f1;font-size:10px}.lang-switcher a[aria-current]{color:#fff;font-weight:900;text-decoration:underline;text-underline-offset:3px}.lang-switcher span{opacity:.55}.nav-toggle{display:none}
.intro{background:#f8f8f8;text-align:center}.intro-inner{padding-top:36px;padding-bottom:33px}.intro h1{font-size:17px;color:var(--blue);line-height:1.5;margin:0;font-weight:800}.intro-rule{width:64px;height:2px;background:#b5b5b5;margin:22px auto 19px}.intro h2{font-size:20px;color:#666;margin-bottom:11px}.intro p{font-size:12px;margin:0 auto 9px;max-width:820px}
.features{padding:36px 0 47px}.features .section-title{text-align:center;font-size:19px;color:var(--blue);margin-bottom:31px}.features-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:48px;row-gap:47px}.feature{text-align:center;min-height:142px}.feature-icon{width:48px;height:48px;margin:0 auto 8px}.feature-icon svg{width:44px;height:44px;stroke:#a2afbe;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.feature:nth-child(even) .feature-icon svg{stroke:#9eb1ca}.feature h3{font-size:16px;color:var(--blue);margin-bottom:14px}.feature p{font-size:12px;line-height:1.45;margin:0}
.advice{background:var(--blue);color:white}.advice-inner{min-height:134px;display:flex;justify-content:space-between;align-items:center;padding-top:23px;padding-bottom:23px;gap:34px}.advice h2{font-size:19px;color:#fff;margin-bottom:12px}.advice p{margin:0;font-size:11px}.advice-actions{width:140px;flex:none;display:flex;flex-direction:column;align-items:stretch;gap:8px}.advice-actions a,.advice-actions button{background:#fff;color:var(--blue);border:1px solid #d3deea;padding:7px 5px;font-size:11px;text-align:center;white-space:nowrap}.advice-actions a:hover,.advice-actions button:hover{background:#f1f6ff}
.products{background:#fff;padding-top:40px}.product-grid{display:grid;grid-template-columns:1fr 1fr;gap:75px}.product-picture{display:flex;align-items:center;justify-content:center;height:245px;overflow:hidden}.product-picture img{width:100%;height:100%;object-fit:contain}.product-block h2{font-size:18px;color:var(--blue);margin:8px 0 9px}.product-block ul{padding:0;list-style:none;margin:0 0 12px}.product-block li{font-size:12px;color:#7b7b7b;margin-bottom:8px}.product-block li a:hover{text-decoration:underline}.product-block .subsection-title{max-width:440px;margin-top:15px}.red-button{border:0;background:var(--red);color:#fff!important;display:inline-flex;align-items:center;gap:9px;font-size:11px;padding:7px 12px;font-weight:600}.red-button:hover{background:#ce2027}.red-button span{font-size:10px}.carousel-wrap{position:relative;margin:70px auto 30px}.carousel-viewport{overflow:hidden}.carousel-track{display:flex;transition:transform .35s ease}.carousel-item{width:calc(100% / 3);flex:0 0 calc(100% / 3);text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:0 12px}.carousel-item img{height:250px;width:100%;object-fit:contain;mix-blend-mode:multiply}.carousel-item strong{font-size:20px;color:#191919;margin:11px 0 6px}.carousel-arrow{position:absolute;z-index:1;top:43%;border:0;background:#708ba8;color:#fff;width:23px;height:46px;font-size:32px;line-height:1}.carousel-arrow:hover{background:var(--blue)}.carousel-arrow.prev{left:7px}.carousel-arrow.next{right:7px}.carousel-dots{text-align:center;padding-top:3px}.carousel-dots button{width:5px;height:5px;border-radius:100%;border:0;background:#d1d1d1;padding:0;margin:0 5px}.carousel-dots button.is-active{background:#708aa8;transform:scale(1.3)}
.video-section{padding:9px 0 24px}.video-box{width:78%;max-width:760px;min-height:390px;aspect-ratio:16/9;margin-inline:auto;background:#d5d5d5;position:relative;overflow:hidden}.video-poster{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:32px}.video-poster>img{width:250px;max-width:55%}.video-poster h2{font-size:21px;color:#111;margin:0}.play-button{position:absolute;top:48%;left:50%;transform:translate(-50%,-50%);width:58px;height:58px;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:var(--blue);font-size:22px;text-align:center;padding-left:5px;box-shadow:0 2px 13px rgba(0,0,0,.15)}.play-button:hover{background:#fff;transform:translate(-50%,-50%) scale(1.07)}.corporate-video{display:none;width:100%;height:100%;position:absolute;inset:0;object-fit:contain;background:#101010}.video-box.is-playing .corporate-video{display:block}.video-box.is-playing .video-poster{display:none}
.auxiliary{color:#fff;background:linear-gradient(rgba(40,74,119,.83),rgba(40,74,119,.64)),url('../img/trabajos-auxiliares.webp') center 53%/cover no-repeat;min-height:270px;padding:23px 0 25px}.aux-content h2{text-align:center;color:#fff;font-size:23px;margin-bottom:24px}.aux-copy{max-width:730px;margin:auto}.aux-copy p{font-size:12px;margin-bottom:15px}.aux-copy ul{margin:0 0 15px;padding-left:20px}.aux-copy li{font-size:14px;margin-bottom:5px}
.footer{background:#f9f9f9;border-top:12px solid #fff;padding:25px 0 18px;color:#777}.footer-grid{display:grid;grid-template-columns:1fr 1.17fr .83fr 1.45fr;gap:30px}.footer h2{font-size:12px;color:var(--blue);padding-bottom:9px;border-bottom:1px solid #ececec;margin-bottom:14px}.footer p,.footer li,.footer a,.footer span{font-size:11px;line-height:1.55}.footer p{margin-bottom:12px}.footer ul{list-style:none;padding:0;margin:0}.footer li{margin:0 0 6px}.footer li:before{content:'›';margin-right:7px}.footer .nav-disabled{color:#8b8b8b}.text-button{background:transparent;border:0;color:inherit;padding:0}.footer a:hover,.footer .text-button:hover{color:var(--blue);text-decoration:underline}.sustainability-logos{display:flex;align-items:flex-start;flex-direction:column;max-width:175px}.sustainability-logos img{max-height:190px;object-fit:contain;object-position:top}.sustainability-logos span{font-size:9px;color:#999;margin-top:6px}.linkedin{font-size:24px!important;color:#65778c;font-weight:900}.newsletter-title{margin-top:28px}.newsletter-catalogue{display:inline-block;border:1px solid #9bb2c8;color:var(--blue);padding:9px 13px;background:#fff;font-weight:700}.copyright{margin-top:60px;font-size:10px;color:#909090}.floating-links{position:fixed;bottom:18px;right:16px;z-index:11;display:flex;align-items:end;flex-direction:column;gap:7px}.floating-links a,.floating-links button{border:1px solid #fff;box-shadow:0 2px 9px #0002;padding:8px 11px;background:var(--blue);color:#fff;font-size:12px;font-weight:700}.floating-links .floating-budget{background:var(--red)}.to-top{position:fixed;z-index:7;right:13px;bottom:101px;background:#aaa9;color:#fff;padding:3px 9px;font-size:18px}.to-top:hover{color:#fff;background:#777}
.budget-modal{width:min(620px,calc(100% - 22px));max-height:90vh;overflow-y:auto;border:1px solid #b7c4d4;box-shadow:0 20px 65px #0005;padding:27px;background:#fff;color:#424e59}.budget-modal::backdrop{background:rgba(18,36,60,.65)}.modal-header{display:flex;align-items:center;justify-content:space-between}.modal-header h2{font-size:22px;margin:0;color:var(--blue)}.modal-close{border:0;background:none;color:#526b84;font-size:30px}.modal-description{margin:12px 0 20px}.budget-modal form{display:flex;flex-direction:column;gap:13px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.budget-modal label{display:flex;flex-direction:column;font-weight:700;color:#44566b;gap:5px;font-size:12px}.budget-modal input,.budget-modal textarea,.budget-modal select{border:1px solid #b4bcc5;border-radius:0;padding:10px;width:100%;background:#fff;font-size:14px;color:#111}.budget-modal .privacy-field{flex-direction:row;align-items:start;font-weight:400;font-size:12px}.privacy-field input{width:auto;margin:2px 7px 0 0}.form-disclaimer{font-size:11px;color:#5f6570;background:#f0f4f8;padding:8px;margin:0}.submit-budget{border:0;background:var(--blue);color:#fff;padding:12px;font-weight:700}.form-alternative{font-size:12px;text-align:center;margin:0}.form-alternative a{color:var(--blue);text-decoration:underline}
@media(max-width:1090px){.topbar-inner{gap:18px}.menu>a,.menu>button,.menu>.nav-disabled{padding:6px 6px;font-size:10px}.menu .nav-contact{font-size:9px}.product-grid{gap:45px}}
@media(max-width:890px){.nav-toggle{display:flex;flex-direction:column;justify-content:center;gap:4px;background:transparent;color:#fff;border:0;padding:7px 9px}.nav-toggle span{width:24px;height:2px;background:#fff;display:block}.nav-inner{display:block}.menu{display:none;flex-direction:column;align-items:stretch}.menu.is-open{display:flex}.menu>a,.menu>button,.menu>.nav-disabled{padding:10px 12px;font-size:13px;white-space:normal}.menu .home-nav{font-size:14px}.lang-switcher{margin:0;padding:10px 12px}.features-grid{gap:24px}.product-grid{gap:22px}.video-box{width:90%}}
@media(max-width:620px){.wrap{width:min(calc(100% - 28px),var(--container))}.topbar{height:60px}.topbar-inner{height:60px;gap:10px}.site-logo{width:64px}.site-logo img{width:64px}.catalogue-search{height:31px;font-size:10px;min-width:70px}.top-budget{font-size:10px;height:31px;padding:4px 6px}.intro-inner{padding-top:38px;padding-bottom:35px}.intro h1{font-size:15px}.intro h2{font-size:19px}.intro p{font-size:12px}.features{padding:32px 0}.features .section-title{font-size:17px}.features-grid{grid-template-columns:1fr 1fr;column-gap:20px;row-gap:28px}.feature{min-height:0}.feature-icon{margin-bottom:4px}.feature h3{font-size:14px;margin-bottom:8px}.feature p{font-size:11px}.advice-inner{display:block;padding-top:28px;padding-bottom:28px;text-align:center}.advice h2{font-size:18px}.advice p{font-size:12px}.advice-actions{width:auto;max-width:240px;margin:17px auto 0}.products{padding-top:20px}.product-grid{grid-template-columns:1fr;gap:30px}.product-picture{height:240px}.product-block h2{font-size:17px}.product-block li{font-size:13px}.carousel-wrap{margin:45px auto 27px}.carousel-item{width:100%;flex-basis:100%}.carousel-item img{height:260px;max-width:370px}.carousel-item strong{font-size:18px}.video-section{padding:0 0 25px}.video-box{width:100%;min-height:0}.video-poster{gap:20px}.video-poster>img{width:155px}.video-poster h2{font-size:13px}.play-button{width:40px;height:40px;font-size:17px}.auxiliary{min-height:300px}.aux-content h2{font-size:21px}.aux-copy li{font-size:13px}.footer-grid{grid-template-columns:1fr 1fr;row-gap:25px;column-gap:16px}.footer h2{font-size:13px}.footer p,.footer li,.footer a{font-size:11px}.copyright{margin-top:35px;padding-bottom:55px}.floating-links{bottom:0;right:0;left:0;flex-direction:row;gap:0;box-shadow:0 -2px 6px #0002}.floating-links a,.floating-links button{flex:1;text-align:center;border:0;padding:13px}.to-top{bottom:55px}.form-row{grid-template-columns:1fr}.budget-modal{padding:18px}}
@media(max-width:360px){.topbar-inner{gap:6px}.top-budget{font-size:9px}.catalogue-search{font-size:9px}.features-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.carousel-track{transition:none}}

/* ================================================================
   TAC ARAGÓN — AJUSTES V2, 03/11/2026
   Contenedores uniformes de 1280px y escala visual ampliada.
   ================================================================ */
:root{--container:1280px}
body{font-size:16px;line-height:1.55}
.wrap{width:min(calc(100% - 48px),var(--container))}

/* Cabecera: solo logotipo a la izquierda y presupuesto a la derecha. */
.topbar,.topbar-inner{height:84px}
.topbar-inner{gap:22px;justify-content:space-between}
.site-logo{width:132px;height:72px}
.site-logo img{width:132px;max-height:70px}
.top-budget{margin-left:auto;height:41px;padding:9px 17px;font-size:15px}

/* Navegación de cuatro destinos y contacto / idiomas a la derecha. */
.nav-inner{min-height:52px}
.menu{min-height:52px;display:flex;align-items:stretch;justify-content:space-between;gap:16px;width:100%}
.nav-links,.nav-meta{display:flex;align-items:stretch;min-width:0}
.nav-links{gap:0;flex:none}
.nav-meta{gap:0;justify-content:flex-end;margin-left:auto}
.nav-links .nav-item,.nav-meta .nav-contact{display:flex;align-items:center;font-weight:600;color:white;padding:13px 15px;white-space:nowrap;transition:background .15s;font-size:14px}
.nav-links .nav-item:hover,.nav-meta .nav-contact:hover{background:var(--blue-dark);color:white}
.nav-links .home-nav{background:#1b3e64;font-size:14px;padding:13px 20px}
.nav-meta .nav-contact{font-size:13px;padding-inline:12px}
.lang-switcher{margin:0 0 0 11px;padding:0;display:flex;gap:6px;align-items:center;white-space:nowrap;font-size:13px}
.lang-switcher a{font-size:13px}
.nav-toggle{display:none}

/* Primer bloque: vídeo corporativo de 10 segundos (sin segunda copia). */
.hero-video{background:#edf1f5}
.hero-video-inner{background:#d4d9de}
.hero-video-player{display:block;width:100%;aspect-ratio:16/7.6;object-fit:cover;object-position:center center;background:#162942}

/* Tipografía y proporciones principales aumentadas. */
.intro-inner{padding-block:65px 62px}
.intro h1{font-size:23px;line-height:1.45}
.intro-rule{width:90px;margin:26px auto 22px}
.intro h2{font-size:26px;margin-bottom:17px}
.intro p{font-size:16px;max-width:970px;margin-bottom:9px}
.features{padding:60px 0 72px}
.features .section-title{font-size:25px;margin-bottom:45px}
.features-grid{column-gap:80px;row-gap:56px}
.feature{min-height:170px}
.feature-icon{width:62px;height:62px;margin-bottom:11px}
.feature-icon svg{width:58px;height:58px}
.feature h3{font-size:20px;margin-bottom:11px}
.feature p{font-size:15px;line-height:1.5}

/* Franja azul más alta y con correo directo, sin abrir el modal. */
.advice-inner{min-height:195px;padding-block:42px;gap:45px}
.advice h2{font-size:25px;margin-bottom:16px}
.advice p{font-size:15px}
.advice-actions{width:214px;gap:10px}
.advice-actions a,.advice-actions button{padding:10px 12px;font-size:14px;line-height:1.3}

/* Fotos, bloques y carrusel con el mismo ancho máximo. */
.products{padding-top:55px}
.product-grid{gap:90px}
.product-picture{height:325px}
.product-block h2{font-size:23px;margin:13px 0 15px}
.product-block li{font-size:15px;margin-bottom:7px}
.product-block ul{margin-bottom:18px}
.product-block .subsection-title{max-width:560px;margin-top:20px}
.red-button{font-size:14px;padding:10px 15px;gap:10px}
.carousel-wrap{width:min(calc(100% - 48px),var(--container));margin:88px auto 45px}
.carousel-viewport{width:100%;max-width:none;overflow:hidden}
.carousel-item{padding-inline:23px}
.carousel-item img{height:305px}
.carousel-item strong{font-size:24px;margin:15px 0 12px}
.carousel-arrow{top:38%;width:34px;height:56px;font-size:35px}
.carousel-arrow.prev{left:0}
.carousel-arrow.next{right:0}
.carousel-dots{padding-top:8px}
.carousel-dots button{width:7px;height:7px;margin:0 6px}

/* Mayor protagonismo visual de la fotografía industrial. */
.auxiliary{min-height:480px;padding:57px 0 62px;background-position:center 49%}
.aux-content h2{font-size:30px;margin-bottom:43px}
.aux-copy{max-width:860px}
.aux-copy p{font-size:16px;margin-bottom:22px}
.aux-copy ul{margin-bottom:23px;padding-left:22px}
.aux-copy li{font-size:17px;margin-bottom:8px}

/* Footer sin newsletter y sin CTA flotantes. */
.footer{padding:42px 0 24px;border-top:12px solid white}
.footer-grid{grid-template-columns:1fr 1.25fr 1fr .8fr;gap:38px}
.footer h2{font-size:16px;margin-bottom:18px;padding-bottom:12px}
.footer p,.footer li,.footer a,.footer span{font-size:14px;line-height:1.6}
.footer li{margin-bottom:7px}
.sustainability-logos{max-width:210px}
.sustainability-logos img{max-height:230px}
.sustainability-logos span{font-size:11px}
.copyright{margin-top:65px;font-size:12px}
.floating-links{display:none!important}
.to-top{right:14px;bottom:16px;padding:4px 11px}

/* Páginas provisionales reales de Blog y Contacto. */
.subpage-section{background:linear-gradient(#f4f6f8,#fff);padding:90px 0 115px;min-height:520px}
.subpage-card{padding:28px 12px 45px}
.subpage-kicker{font-weight:700;color:#8a9cae;text-transform:uppercase;letter-spacing:.1em;font-size:13px;margin-bottom:15px}
.subpage-card h1{font-size:38px;color:var(--blue);margin-bottom:18px}
.subpage-rule{height:3px;width:90px;background:var(--blue);margin-bottom:27px}
.subpage-card>p{font-size:19px;max-width:800px;line-height:1.6}
.subpage-card>.red-button{margin-top:21px}
.contact-page-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;max-width:1100px;margin-top:48px}
.contact-page-grid>div{background:white;border:1px solid #e0e7ef;padding:28px 30px}
.contact-page-grid h2{font-size:23px}
.contact-page-grid p{font-size:16px}
.contact-page-grid a:hover{text-decoration:underline}
.budget-modal{font-size:15px}
.budget-modal label{font-size:14px}
.budget-modal .privacy-field{font-size:13px}

@media(max-width:1180px){
  .nav-links .nav-item{padding-inline:12px;font-size:13px}
  .nav-meta .nav-contact{padding-inline:8px;font-size:12px}
  .lang-switcher{margin-left:5px;gap:4px}
  .lang-switcher a{font-size:12px}
  .product-grid{gap:55px}
  .features-grid{column-gap:48px}
}
@media(max-width:920px){
  .topbar,.topbar-inner{height:76px}
  .site-logo,.site-logo img{width:120px}
  .nav-inner{display:block;min-height:50px}
  .nav-toggle{display:flex;min-height:50px;justify-content:center;gap:6px;padding:10px 12px}
  .nav-toggle span{width:28px;height:2px}
  .menu{display:none;flex-direction:column;align-items:stretch;gap:0;min-height:0;padding-bottom:6px}
  .menu.is-open{display:flex}
  .nav-links,.nav-meta{display:flex;flex-direction:column;align-items:stretch;width:100%}
  .nav-meta{margin-left:0;border-top:1px solid #ffffff3b;padding-top:8px}
  .nav-links .nav-item,.nav-links .home-nav,.nav-meta .nav-contact{padding:12px 14px;font-size:15px;background:transparent}
  .nav-meta .lang-switcher{padding:11px 14px;margin:0;align-self:flex-end}
  .nav-meta .lang-switcher a{font-size:15px}
  .features-grid{column-gap:26px}
  .product-grid{gap:36px}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
}
@media(max-width:640px){
  .wrap{width:min(calc(100% - 28px),var(--container))}
  .topbar,.topbar-inner{height:70px}
  .site-logo,.site-logo img{width:105px}
  .top-budget{height:38px;padding:8px 13px;font-size:13px}
  .hero-video-player{aspect-ratio:16/9;object-fit:cover}
  .intro-inner{padding-block:43px}
  .intro h1{font-size:19px}
  .intro-rule{margin:21px auto}
  .intro h2{font-size:22px}
  .intro p{font-size:14px;line-height:1.6}
  .features{padding:46px 0 52px}
  .features .section-title{font-size:22px;margin-bottom:33px}
  .features-grid{grid-template-columns:1fr 1fr;gap:33px 19px}
  .feature-icon{width:50px;height:50px}
  .feature-icon svg{width:47px;height:47px}
  .feature h3{font-size:16px;margin-bottom:9px}
  .feature p{font-size:13px;line-height:1.48}
  .advice-inner{min-height:250px;display:block;text-align:center;padding-block:41px}
  .advice h2{font-size:22px}
  .advice p{font-size:14px}
  .advice-actions{max-width:260px;width:100%;margin:23px auto 0}
  .advice-actions a,.advice-actions button{font-size:14px}
  .products{padding-top:30px}
  .product-grid{grid-template-columns:1fr;gap:37px}
  .product-picture{height:255px}
  .product-block h2{font-size:21px}
  .product-block li{font-size:15px}
  .carousel-wrap{width:min(calc(100% - 28px),var(--container));margin:57px auto 31px}
  .carousel-item{width:100%;flex-basis:100%;padding-inline:16px}
  .carousel-item img{height:260px;max-width:100%}
  .carousel-item strong{font-size:21px}
  .carousel-arrow{width:30px;height:48px;top:39%}
  .auxiliary{min-height:455px;padding:50px 0 50px}
  .aux-content h2{font-size:25px;margin-bottom:30px}
  .aux-copy p{font-size:14px}
  .aux-copy li{font-size:15px;margin-bottom:6px}
  .footer{padding-top:33px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:27px 20px}
  .footer h2{font-size:15px}
  .footer p,.footer li,.footer a,.footer span{font-size:12px}
  .copyright{padding-bottom:15px;margin-top:44px;font-size:11px}
  .to-top{bottom:11px;right:10px}
  .subpage-section{padding:55px 0 70px;min-height:380px}
  .subpage-card{padding-inline:0}
  .subpage-card h1{font-size:30px}
  .subpage-card>p{font-size:16px}
  .contact-page-grid{grid-template-columns:1fr;gap:16px;margin-top:33px}
  .contact-page-grid>div{padding:20px}
}
@media(max-width:390px){
  .features-grid{gap:29px 16px}
  .feature p{font-size:12px}
  .footer-grid{grid-template-columns:1fr 1fr}
}


/* ================================================================
   TAC ARAGÓN — AJUSTES V3, 03/11/2026
   Vídeo a sangre, CTA destacado, galerías reales y navegación móvil.
   ================================================================ */
/* Full bleed: el vídeo ignora expresamente el límite de 1280px. */
.hero-video{width:100%;background:#0c1b2e;overflow:hidden}
.hero-video-inner{width:100%;max-width:none;margin:0;padding:0;background:#0c1b2e}
.hero-video-player{width:100%;height:auto;aspect-ratio:16/7.6;object-fit:cover;display:block;pointer-events:none}
.hero-video-player::-webkit-media-controls,.hero-video-player::-webkit-media-controls-enclosure{display:none!important}
/* CTA principal con mayor presencia. */
.advice-inner{min-height:310px;padding-block:72px}
.advice h2{font-size:27px}
.advice-actions{width:228px}
.advice-actions a{padding:14px 14px;font-weight:700}
/* Carrusel de diez imágenes originales; el texto se traduce en HTML. */
.carousel-viewport{overflow:hidden}
.carousel-track{display:flex;transition:transform .42s ease;will-change:transform}
.carousel-item{width:calc(100% / 3);flex:0 0 calc(100% / 3);min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding-inline:10px}
.carousel-item img{display:block;width:100%;height:265px;object-fit:contain;mix-blend-mode:normal}
.carousel-item strong{margin:5px 0 14px;font-size:22px;color:#202020}
.carousel-dots{display:flex;justify-content:center;gap:12px;padding:12px 0 0}
.carousel-dots button{flex:none;width:9px;height:9px;margin:0;border-radius:50%;background:#b7c5d3;opacity:1;transition:transform .2s ease,background .2s ease}
.carousel-dots button.is-active{background:var(--blue);transform:scale(1.28)}
.carousel-wrap:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
/* Logos auténticos, conservando su proporción y su orden visual. */
.sustainability-logos{display:flex;align-items:flex-start;flex-direction:column;gap:13px;max-width:230px}
.sustainability-logos img{display:block;width:auto;height:auto;max-width:100%;max-height:none;object-fit:contain;object-position:left center}
.sustainability-logos .footer-logo-autoconsumo{width:75px}
.sustainability-logos .footer-logo-financiado-ue{width:190px}
.sustainability-logos .footer-logo-plan-recuperacion{width:195px}
.sustainability-logos .footer-logo-ministerio-transicion{width:200px}
.sustainability-logos .footer-logo-idae{width:165px}
/* Volver arriba: botón azul, tamaño y contraste apropiados. */
.to-top{position:fixed;z-index:12;right:22px;bottom:22px;width:50px;height:50px;padding:0;display:flex;align-items:center;justify-content:center;background:var(--blue);border:2px solid white;border-radius:4px;box-shadow:0 4px 18px #0004;color:#fff;transition:transform .18s,background .18s}
.to-top svg{width:27px;height:27px;stroke:#fff;fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.to-top:hover,.to-top:focus-visible{background:var(--blue-dark);color:white;transform:translateY(-3px)}
/* Barra de accesos rápidos oculta en escritorio y visible <=768px. */
.floating-links{display:none!important}
@media(max-width:920px){
 .carousel-item{width:50%;flex-basis:50%}
 .advice-inner{min-height:310px;padding-block:54px}
}
@media(max-width:768px){
 .floating-links{position:fixed;bottom:0;right:0;left:0;z-index:15;display:flex!important;flex-direction:row;align-items:stretch;gap:0;box-shadow:0 -4px 16px #0003;background:white}
 .floating-links a,.floating-links button{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;border:0;border-radius:0;padding:15px 12px;font-size:14px;line-height:1.2;font-weight:700;color:#fff;text-align:center;box-shadow:none}
 .floating-links .floating-catalogue{background:var(--blue)}
 .floating-links .floating-budget{background:var(--red)}
 .floating-links a:hover,.floating-links button:hover{filter:brightness(.91);color:#fff}
 .to-top{bottom:80px;right:13px;width:46px;height:46px}
 .copyright{padding-bottom:70px}
}
@media(max-width:640px){
 .hero-video-player{aspect-ratio:16/9}
 .advice-inner{min-height:330px;padding-block:53px}
 .carousel-item{width:100%;flex-basis:100%}
 .carousel-item img{height:238px}
 .carousel-item strong{font-size:19px;margin:4px 0 10px}
 .carousel-dots{gap:10px;flex-wrap:wrap}
 .sustainability-logos{gap:10px}
 .floating-links a,.floating-links button{padding:14px 7px;font-size:12px}
 .to-top{bottom:70px}
}
@media(prefers-reduced-motion:reduce){.carousel-track,.to-top{transition:none}}

/* Evitar la reducción del viewport del carrusel por la regla .wrap en móvil. */
.carousel-wrap .carousel-viewport{width:100%;max-width:100%}


/* ================================================================
   TAC ARAGÓN — AJUSTES V4 · 03/11/2026
   Cabecera fija, hero panorámico y ajustes de alineación responsive.
   ================================================================ */
/* La cabecera completa (logotipo + barra de navegación) permanece visible
   durante el desplazamiento, también en móviles. */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  width:100%;
  background:#fff;
}
html{scroll-padding-top:148px}
/* El botón de presupuesto únicamente contiene el texto. */
.top-budget{display:inline-flex;align-items:center;justify-content:center}

/* Hero panorámico a sangre. object-fit:cover recorta la imagen del vídeo
   por los lados adecuados sin bandas negras ni deformación. */
.hero-video{width:100%;overflow:hidden;background:#14283d}
.hero-video-inner{
  width:100%;
  height:clamp(290px,33vw,540px);
  max-width:none;
  overflow:hidden;
  background:#14283d;
}
.hero-video-player{
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:auto;
  object-fit:cover;
  object-position:center center;
  background:#14283d;
  pointer-events:none;
}

/* Los textos de trabajos auxiliares arrancan en el mismo margen de 1280px
   que las demás secciones en escritorio. */
.aux-content h2{text-align:left}
.aux-copy{width:100%;max-width:none;margin:0;text-align:left}

/* Logotipos originales con una escala más contenida y separación visible. */
.sustainability-logos{gap:21px;max-width:185px}
.sustainability-logos img{height:auto;max-width:100%;flex:none}
.sustainability-logos .footer-logo-autoconsumo{width:58px}
.sustainability-logos .footer-logo-financiado-ue{width:153px}
.sustainability-logos .footer-logo-plan-recuperacion{width:157px}
.sustainability-logos .footer-logo-ministerio-transicion{width:158px}
.sustainability-logos .footer-logo-idae{width:132px}

/* Acceso de retorno más pequeño, cuadrado, sin borde. */
.to-top{
  width:40px;height:40px;
  padding:0;
  border:0;
  border-radius:0;
  background:var(--blue);
  box-shadow:0 2px 9px #0003;
}
.to-top svg{width:21px;height:21px;stroke-width:2.4}
.to-top:hover,.to-top:focus-visible{background:var(--blue-dark)}

@media(max-width:920px){
  /* La hamburguesa pasa al borde derecho y el desplegable ocupa una fila. */
  .nav-inner{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center}
  .nav-toggle{margin-left:auto;order:1;flex:none}
  .menu{order:2;flex:0 0 100%;width:100%}
  html{scroll-padding-top:138px}
}
@media(max-width:768px){
  /* Columnas del pie de página apiladas y alineadas a la izquierda. */
  .footer-grid{grid-template-columns:minmax(0,1fr);gap:31px}
  .footer-grid>div{text-align:left;min-width:0}
  .sustainability-logos{align-items:flex-start}
  .to-top{width:38px;height:38px;bottom:75px;right:12px}
  .to-top svg{width:20px;height:20px}
}
@media(max-width:640px){
  html{scroll-padding-top:130px}
  .hero-video-inner{height:clamp(208px,56vw,320px)}
  /* Ventajas: una sola columna centrada, sin texto apelotonado. */
  .features-grid{grid-template-columns:minmax(0,1fr);gap:35px}
  .feature{max-width:420px;margin-inline:auto;width:100%;text-align:center}
  .feature p{max-width:370px;margin-inline:auto}
  /* Productos y descripciones centrados; el diseño de escritorio se conserva. */
  .product-block{text-align:center}
  .product-block ul{padding:0;margin-left:auto;margin-right:auto}
  .product-block .subsection-title{margin-left:auto;margin-right:auto}
  .product-block .red-button{justify-content:center}
  /* Trabajos auxiliares: centrado en móvil, alineado a la izquierda en desktop. */
  .aux-content h2{text-align:center}
  .aux-copy{text-align:center}
  .aux-copy ul{padding:0;list-style-position:inside}
  .aux-copy li{text-align:center}
  .aux-copy .red-button{margin-inline:auto}
  .to-top{width:36px;height:36px;bottom:71px;right:11px}
  .to-top svg{width:19px;height:19px}
}
@media(max-width:390px){
  .features-grid{grid-template-columns:minmax(0,1fr)}
  .footer-grid{grid-template-columns:minmax(0,1fr)}
}


/* TAC Aragón — V5: sostenibilidad en 2 columnas y páginas legales. */
.legal-section{background:#fff;padding:58px 0 85px}
.legal-content{max-width:1080px;margin-inline:auto}
.legal-heading{border-bottom:1px solid #e0e6ed;padding-bottom:18px;margin-bottom:32px}
.legal-heading h1{color:var(--blue);font-size:clamp(29px,3vw,40px);margin:0 0 10px}
.legal-heading p{margin:0;color:#68788a;font-size:15px}
.legal-body{max-width:980px;color:#445268;font-size:16px;line-height:1.78}
.legal-body h2{margin:35px 0 11px;font-size:22px;line-height:1.3;color:var(--blue)}
.legal-body h2:first-child{margin-top:0}
.legal-body p{margin:0 0 14px}
.legal-body a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.legal-body .legal-facts{display:grid;grid-template-columns:minmax(125px,200px) 1fr;gap:9px 18px;padding:20px 24px;background:#f5f7fa;border-left:3px solid var(--blue);margin:17px 0 24px}
.legal-facts dt{font-weight:700;color:#344c66}
.legal-facts dd{margin:0;overflow-wrap:anywhere}
.legal-note{background:#eef3f8;border-left:3px solid #8da8c8;padding:15px 18px;margin:18px 0 23px}
.budget-modal .privacy-field a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
@media(max-width:768px){
 .sustainability-logos{
   display:grid;
   grid-template-columns:repeat(2,minmax(0,1fr));
   align-items:center;
   justify-items:start;
   column-gap:23px;
   row-gap:24px;
   max-width:410px;
   width:100%;
 }
 .sustainability-logos .footer-logo-autoconsumo{grid-column:1/-1;width:65px;max-width:100%}
 .sustainability-logos .footer-logo-financiado-ue,
 .sustainability-logos .footer-logo-plan-recuperacion,
 .sustainability-logos .footer-logo-ministerio-transicion,
 .sustainability-logos .footer-logo-idae{width:100%;max-width:175px;min-width:0}
 .legal-section{padding:38px 0 65px}
 .legal-body{font-size:15px;line-height:1.7}
 .legal-body h2{font-size:19px;margin-top:29px}
 .legal-body .legal-facts{grid-template-columns:1fr;gap:4px;padding:18px}
 .legal-facts dd{margin-bottom:7px}
}
@media(max-width:390px){
 .sustainability-logos{column-gap:14px;row-gap:20px}
}

/* Adaptación de la V5 a WordPress, Hello Elementor y Contact Form 7 */
body.tac-theme{--container:1280px;margin:0;background:#fff;color:#6d6d6d;font-family:Roboto,Arial,Helvetica,sans-serif;font-size:15px;line-height:1.55}
body.tac-theme header.site-header,body.tac-theme footer.footer{font-family:Roboto,Arial,Helvetica,sans-serif}
body.tac-theme .site-header h1,body.tac-theme .site-header h2,body.tac-theme .site-header h3{display:none}
body.tac-theme .wpcf7{width:100%}
body.tac-theme .budget-modal .wpcf7 form{display:flex;flex-direction:column;gap:10px;margin:0}
body.tac-theme .budget-modal .wpcf7 label{display:block;font-weight:700;font-size:13px;color:#44566b}
body.tac-theme .budget-modal .wpcf7-form-control-wrap{display:block;margin-top:5px}
body.tac-theme .budget-modal .wpcf7 input:not([type=checkbox]):not([type=submit]),body.tac-theme .budget-modal .wpcf7 select,body.tac-theme .budget-modal .wpcf7 textarea{display:block;width:100%;max-width:100%;padding:10px;border:1px solid #aab8c6;border-radius:0;background:#fff;color:#111;font-size:14px}
body.tac-theme .budget-modal .wpcf7 input[type=checkbox]{width:auto;vertical-align:middle}
body.tac-theme .budget-modal .wpcf7 input[type=submit]{display:inline-flex;width:auto;border:0;border-radius:0;padding:11px 20px;background:#ed3136;color:#fff;font-size:15px;font-weight:700}
body.tac-theme .budget-modal .wpcf7 input[type=submit]:hover{background:#ca222a}
body.tac-theme .budget-modal .wpcf7 .wpcf7-response-output{margin:8px 0 0;padding:10px;font-size:13px}
body.tac-theme .budget-modal .wpcf7-not-valid-tip{color:#b31920;font-size:12px}
body.tac-theme .budget-modal .form-row>label{min-width:0}
body.tac-theme .budget-modal .privacy-field a{color:#284A77;text-decoration:underline}
body.tac-theme .budget-modal .privacy-field .wpcf7-list-item{margin:0}
body.tac-theme .budget-modal .privacy-field{font-size:12px}
body.tac-theme .budget-modal .form-help{font-size:12px;color:#68788a;margin:0}
.tac-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.tac-blog-item img{width:100%;height:185px;object-fit:cover}
.tac-blog-item h2{font-size:20px;margin:14px 0 7px}
.tac-post-date{color:#798698;font-size:13px}
.tac-post{max-width:920px}.tac-post-content{font-size:16px;line-height:1.8}.tac-post-content a{color:#284A77;text-decoration:underline}
.tac-pages{display:flex;gap:14px;margin-top:30px}.tac-pages a,.tac-pages .current{padding:7px 11px;border:1px solid #d2d9e3}
@media(max-width:920px){.tac-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.tac-blog-grid{grid-template-columns:minmax(0,1fr)}.budget-modal .form-row{grid-template-columns:1fr}}


/* ================================================================
   TAC ARAGÓN — V5.1: Cabecera a ancho completo en Hello Elementor
   Hello limita por defecto .site-header a 1140px en escritorio.
   La barra y su fondo ocupan 100%; su interior permanece a 1280px.
   ================================================================ */
body.tac-theme header.site-header {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
}
body.tac-theme header.site-header .topbar,
body.tac-theme header.site-header .navbar {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.tac-theme header.site-header .topbar-inner,
body.tac-theme header.site-header .nav-inner {
  width: min(calc(100% - 32px), 1280px);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
body.tac-theme header.site-header .top-budget {
  margin-left: auto;
}
@media (max-width: 640px) {
  body.tac-theme header.site-header .topbar-inner,
  body.tac-theme header.site-header .nav-inner {
    width: min(calc(100% - 28px), 1280px);
  }
}


/* ===========================================================================
   TAC ARAGÓN — V5.2 / FORMULARIO Y ESTADOS DEL TEMA
   Normalización controlada: evita que Hello Elementor/Elementor alteren
   esquinas, colores, campos y botones de la plantilla TAC.
   No modifica clases genéricas de WordPress ni el panel de administración.
   =========================================================================== */

/* Diálogo sin redondeos ni estilos heredados. */
body.tac-theme dialog.budget-modal {
  box-sizing: border-box;
  width: min(660px, calc(100% - 28px));
  max-width: 660px;
  max-height: min(90dvh, 900px);
  margin: auto;
  padding: 30px;
  border: 1px solid #b7c4d4 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #34465a;
  box-shadow: 0 20px 65px rgba(0,0,0,.32);
  overflow-x: hidden;
  overflow-y: auto;
}
body.tac-theme dialog.budget-modal::backdrop {background: rgba(18,36,60,.65)}
body.tac-theme .budget-modal .modal-header {gap: 18px;align-items: center}
body.tac-theme .budget-modal .modal-header h2 {margin: 0;color: #284A77;font-size: 23px;line-height: 1.3}
body.tac-theme .budget-modal .modal-description {font-size: 15px;line-height: 1.6;margin: 16px 0 22px}

/* Botón cerrar: azul TAC, sin redondeados de Elementor. */
body.tac-theme .budget-modal .modal-close {
  appearance: none;
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #284A77 !important;
  color: #fff !important;
  font: 700 30px/1 Roboto, Arial, sans-serif;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color .15s ease;
}
body.tac-theme .budget-modal .modal-close:is(:hover,:focus,:active) {
  background: #1b3454 !important;
  color: #fff !important;
}

/* CF7 puede generar párrafos automáticos alrededor de las etiquetas.
   display:contents evita que un único <p> ocupe solo la primera columna.
   Así los cuatro datos personales se muestran correctamente en 2 columnas. */
body.tac-theme .budget-modal .wpcf7 form {display:flex;flex-direction:column;gap:17px;margin:0}
body.tac-theme .budget-modal .wpcf7 form > p {margin:0}
body.tac-theme .budget-modal .wpcf7 .form-row {
  display:grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  column-gap:18px;
  row-gap:16px;
  width:100%;
  min-width:0;
}
body.tac-theme .budget-modal .wpcf7 .form-row > p {display:contents !important}
body.tac-theme .budget-modal .wpcf7 .form-row > br,
body.tac-theme .budget-modal .wpcf7 .form-row > p > br {display:none}
body.tac-theme .budget-modal .wpcf7 label {
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0;
  color:#344c66;
  font-size:14px;
  line-height:1.45;
  font-weight:700;
}
body.tac-theme .budget-modal .wpcf7-form-control-wrap {display:block;max-width:100%;margin-top:7px}

/* Inputs, select y textarea sin esquinas redondeadas ni focus rosa. */
body.tac-theme .budget-modal .wpcf7 :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea) {
  display:block;
  box-sizing:border-box;
  width:100% !important;
  max-width:100% !important;
  min-width:0;
  min-height:44px;
  margin:0;
  padding:10px 12px;
  border:1px solid #aab8c6 !important;
  border-radius:0 !important;
  background:#fff !important;
  box-shadow:none !important;
  color:#1b2938 !important;
  font:400 15px/1.45 Roboto,Arial,sans-serif;
  transition:border-color .15s ease,box-shadow .15s ease;
}
body.tac-theme .budget-modal .wpcf7 textarea {min-height:150px;resize:vertical}
body.tac-theme .budget-modal .wpcf7 :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea):focus {
  border-color:#284A77 !important;
  outline:2px solid #284A77 !important;
  outline-offset:0;
  box-shadow:0 0 0 3px rgba(40,74,119,.13) !important;
}
body.tac-theme .budget-modal .wpcf7 input[type=file] {
  min-height:45px;
  padding:6px !important;
  cursor:pointer;
}
body.tac-theme .budget-modal .wpcf7 input[type=file]::file-selector-button {
  padding:7px 10px;
  margin-right:10px;
  border:1px solid #284A77;
  border-radius:0;
  background:#eef3f8;
  color:#284A77;
  font:600 13px Roboto,Arial,sans-serif;
  cursor:pointer;
}
body.tac-theme .budget-modal .wpcf7 input[type=file]::file-selector-button:hover {background:#e0eaf4}
body.tac-theme .budget-modal .wpcf7 input[type=checkbox] {
  width:17px;
  height:17px;
  margin:2px 7px 0 0;
  accent-color:#284A77;
  border-radius:0 !important;
}
body.tac-theme .budget-modal .wpcf7 .privacy-field {font-size:13px;line-height:1.5}
body.tac-theme .budget-modal .wpcf7 .privacy-field label {font-size:13px;font-weight:400}
body.tac-theme .budget-modal .wpcf7 .wpcf7-not-valid-tip {color:#ab2029;font-size:12px}
body.tac-theme .budget-modal .wpcf7 .wpcf7-response-output {border-radius:0 !important}

/* Botón principal del formulario: rojo TAC coherente en todos los estados. */
body.tac-theme .budget-modal .wpcf7 input[type=submit] {
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-height:45px;
  padding:11px 22px !important;
  margin:0;
  border:0 !important;
  border-radius:0 !important;
  background:#ed3136 !important;
  color:#fff !important;
  box-shadow:none !important;
  font:700 15px/1.35 Roboto,Arial,sans-serif;
  cursor:pointer;
  transition:background-color .15s ease;
}
body.tac-theme .budget-modal .wpcf7 input[type=submit]:is(:hover,:focus,:active) {
  background:#c7222c !important;
  color:#fff !important;
}
body.tac-theme .budget-modal .wpcf7 input[type=submit]:disabled {
  background:#a4aebb !important;
  color:#fff !important;
  cursor:not-allowed;
}

/* Botones propios de la web: quitar redondeos automáticos sin perjudicar
   los puntos redondos del slider ni el botón de reproducción circular. */
body.tac-theme :is(.top-budget,.red-button,.nav-toggle,.nav-link-button,
  .advice-actions a,.advice-actions button,.carousel-arrow,.to-top,
  .floating-links a,.floating-links button,.text-button) {
  border-radius:0 !important;
}
body.tac-theme :is(.top-budget,.to-top,.carousel-arrow):is(:hover,:focus,:active) {
  background:#1b3454 !important;
  color:#fff !important;
}
body.tac-theme .red-button:is(:hover,:focus,:active),
body.tac-theme .floating-links .floating-budget:is(:hover,:focus,:active) {
  background:#c7222c !important;
  color:#fff !important;
}
body.tac-theme .advice-actions :is(a,button):is(:hover,:focus,:active) {
  background:#e9f1f8 !important;
  color:#284A77 !important;
  border-color:#8fa9c6 !important;
}
body.tac-theme .nav-toggle:is(:hover,:focus,:active),
body.tac-theme .nav-link-button:is(:hover,:focus,:active) {
  background:#1b3454 !important;
  color:#fff !important;
}
body.tac-theme .floating-links a:not(.floating-budget):is(:hover,:focus,:active) {
  background:#1b3454 !important;
  color:#fff !important;
}

/* Foco visible accesible para teclado; sin degradados ni magenta del padre. */
body.tac-theme :is(.top-budget,.red-button,.nav-toggle,.nav-link-button,
  .advice-actions a,.advice-actions button,.carousel-arrow,.to-top,
  .floating-links a,.floating-links button,.budget-modal .modal-close,
  .budget-modal .wpcf7 input[type=submit]):focus-visible {
  outline:3px solid #86a8d0 !important;
  outline-offset:2px !important;
}
@media(max-width:640px) {
  body.tac-theme dialog.budget-modal {width:calc(100% - 20px);max-height:92dvh;padding:20px 17px}
  body.tac-theme .budget-modal .wpcf7 .form-row {grid-template-columns:minmax(0,1fr) !important;gap:15px}
  body.tac-theme .budget-modal .modal-header h2 {font-size:21px}
  body.tac-theme .budget-modal .modal-description {font-size:14px}
}


/* ===================================================================
   TAC ARAGÓN — V5.3: barra administrativa y retorno al inicio
   La barra de administración de WordPress no debe tapar el sticky header.
   JS actualiza el offset en móviles donde WP desplaza la barra al hacer
   scroll. Los valores CSS son el respaldo antes de ejecutarse JS.
   =================================================================== */
body.tac-theme header.site-header {
  top: var(--tac-adminbar-offset, 0px) !important;
}
body.tac-theme.admin-bar {
  --tac-adminbar-offset: 32px;
}
@media (max-width: 782px) {
  body.tac-theme.admin-bar {
    --tac-adminbar-offset: 46px;
  }
}
