/* TAC Aragón 1.8 — revisión visual solicitada, posterior a landing.css y catalogue.css.
   No modifica estructura de categorías, referencias, URLs históricas ni solicitudes. */
body.tac-theme .tac-icon{width:19px;height:19px;display:block;flex:none;vertical-align:middle}
/* Buscador: contenido centrado y controles accesibles dentro del campo. */
body.tac-theme .tac-head-search{position:relative;display:flex;align-items:center;min-width:0;height:42px;margin:0;background:#ffff49;border:1px solid #d6ddb2;box-shadow:none}
body.tac-theme .tac-head-search input[type="search"]{display:block;width:100%;height:100%;min-width:0;flex:1;margin:0;border:0;border-radius:0;outline:0;background:transparent;color:#253b54;font-size:14px;line-height:1.3;text-align:center;padding:8px 80px;box-shadow:none;appearance:none;-webkit-appearance:none}
body.tac-theme .tac-head-search input[type="search"]::placeholder{color:#818a92;text-align:center;opacity:1}
body.tac-theme .tac-head-search input[type="search"]::-webkit-search-cancel-button{display:none}
body.tac-theme .tac-head-search button{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;min-width:38px;padding:0;border:0;border-radius:0;background:transparent;color:#173d6a;cursor:pointer;line-height:1}
body.tac-theme .tac-head-search button:hover{background:#f0f39c;color:#0c2e58}
body.tac-theme .tac-head-search button:focus-visible{outline:2px solid #244c7d;outline-offset:-3px}
body.tac-theme .tac-head-search .tac-search-submit{right:0;width:43px}
body.tac-theme .tac-head-search .tac-search-clear{right:43px;width:35px}
body.tac-theme .tac-head-search button[hidden]{display:none!important}
body.tac-theme .tac-head-search:focus-within{outline:2px solid #244c7d;outline-offset:2px}
body.tac-theme .tac-mobile-search-wrap{display:none}
/* La búsqueda ocupa el eje central del contenedor; extremos simétricos. */
@media(min-width:921px){
 body.tac-theme .topbar-inner{display:grid;grid-template-columns:minmax(150px,1fr) minmax(260px,510px) minmax(150px,1fr);gap:18px;align-items:center;justify-content:normal}
 body.tac-theme .topbar-inner .site-logo{grid-column:1;justify-self:start}
 body.tac-theme .topbar-inner .tac-head-search{grid-column:2;justify-self:stretch;width:100%;max-width:none;min-width:0;margin:0}
 body.tac-theme .topbar-inner .top-budget{grid-column:3;justify-self:end;margin:0}
}
body.tac-theme .topbar .top-budget{display:inline-flex;align-items:center;justify-content:center;gap:9px;vertical-align:middle;line-height:1;min-height:41px}
body.tac-theme .topbar .top-budget .tac-quote-count{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;line-height:1;margin:0;padding:0 5px;vertical-align:middle}
/* Enlace de categoría: texto + chevron con un único estado visual hover. */
body.tac-theme .nav-links .tac-nav-product{align-items:stretch;background:transparent;transition:background .15s}
body.tac-theme .nav-links .tac-nav-product:hover,body.tac-theme .nav-links .tac-nav-product:focus-within,body.tac-theme .nav-links .tac-nav-product.is-expanded{background:#1b3454}
body.tac-theme .tac-nav-product>.nav-item{background:transparent!important;padding-right:2px}
body.tac-theme .tac-nav-product .tac-mega-toggle{display:inline-flex;align-items:center;justify-content:center;width:29px;min-height:48px;padding:0 9px 0 1px;color:#fff;background:transparent!important;border:0;cursor:pointer}
body.tac-theme .tac-mega-toggle .tac-icon{width:16px;height:16px;transition:transform .18s}
body.tac-theme .tac-nav-product.is-expanded>.tac-mega-toggle .tac-icon{transform:rotate(180deg)}
body.tac-theme .tac-nav-whatsapp{gap:7px}
body.tac-theme .tac-nav-whatsapp .tac-icon{width:17px;height:17px}
/* Megamenú: área de lectura alineada exactamente con .wrap (1280 px). */
body.tac-theme .tac-mega-panel{width:100%;left:0;right:0}
body.tac-theme .tac-mega-grid{width:min(calc(100% - 48px),1280px);max-width:1280px;margin:0 auto;padding:27px 0 34px;column-gap:40px;row-gap:28px}
body.tac-theme .tac-mega-column{gap:29px}
body.tac-theme .tac-mega-col{gap:5px}
body.tac-theme .tac-mega-col a{font-size:14px;line-height:1.42}
body.tac-theme .tac-mega-col .tac-mega-title{font-size:15px;line-height:1.36;margin:0 0 4px}
/* Barra lateral: misma identidad visual, sin encabezados H2 duplicados. */
body.tac-theme .tac-aside-heading{font-size:14px;font-weight:700;line-height:1.35;color:#555;margin:0 0 13px}
body.tac-theme .tac-aside-heading a{color:inherit;text-decoration:none}
body.tac-theme .tac-side-row{display:flex;align-items:center;min-height:28px;gap:5px}
body.tac-theme .tac-side-row>a{display:block;align-self:center;flex:1;padding:5px 0;line-height:1.38}
body.tac-theme .tac-side-toggle{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:27px;height:28px;min-width:27px;padding:0;border:0;color:#61738b;background:transparent;cursor:pointer;transform:none!important}
body.tac-theme .tac-side-toggle .tac-icon{width:16px;height:16px;transition:transform .18s}
body.tac-theme .tac-side-toggle[aria-expanded="true"] .tac-icon{transform:rotate(180deg)}
body.tac-theme .tac-side-toggle:hover,body.tac-theme .tac-side-toggle:focus-visible{color:#173c68;background:#e9edf2}
body.tac-theme .tac-side-summary{display:none}
/* Tarjetas de la portada: cuadradas, títulos H2 y alineación a la izquierda. */
body.tac-theme .tac-shop-content .tac-categories-grid{justify-content:start;justify-items:stretch;align-content:start;max-width:100%;margin-inline:0;grid-auto-flow:row}
body.tac-theme .tac-category-name{font-weight:600;margin:0;color:#244c7d;overflow-wrap:anywhere}
body.tac-theme .tac-catalogue-root .tac-categories-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.tac-theme .tac-catalogue-root .tac-category-card{aspect-ratio:1 / 1;min-height:0;height:auto;padding:12px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;gap:9px}
body.tac-theme .tac-catalogue-root .tac-category-photo{display:flex;align-items:center;justify-content:center;flex:1 1 auto;min-height:0;width:100%;height:auto;overflow:hidden}
body.tac-theme .tac-catalogue-root .tac-category-photo img{width:100%;height:100%;object-fit:contain}
body.tac-theme .tac-catalogue-root .tac-category-name{flex:none;min-height:34px;display:flex;align-items:center;justify-content:center;font-size:15px;line-height:1.3;text-align:center}
/* Categorías interiores: tres columnas, tarjetas compactas izquierda / derecha. */
@media(min-width:921px){
 body.tac-theme .tac-catalogue-interior .tac-categories-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;justify-content:start;align-content:start}
 body.tac-theme .tac-catalogue-interior .tac-category-card{grid-column:auto!important;display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;justify-content:stretch;gap:10px;min-height:95px;padding:8px 11px}
 body.tac-theme .tac-catalogue-interior .tac-category-photo{width:88px;height:78px}
 body.tac-theme .tac-catalogue-interior .tac-category-name{font-size:13px;line-height:1.32;text-align:left;min-height:0}
}
/* Controles y texto de productos. */
body.tac-theme .tac-shop-view .tac-view-link{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid transparent;color:#244c7d}
body.tac-theme .tac-shop-view .tac-view-link .tac-icon{width:19px;height:19px}
body.tac-theme .tac-shop-view .tac-view-link.is-active{border-color:#bfcfe1;background:#ecf2f8}
body.tac-theme .tac-shop-view .tac-view-link:hover,body.tac-theme .tac-shop-view .tac-view-link:focus-visible{border-color:#7a9cbd;background:#edf2f8}
body.tac-theme .tac-shop-sort-controls select{width:auto;min-width:160px;padding:7px 30px 7px 10px;min-height:36px}
@media(min-width:921px){
 body.tac-theme .tac-products-grid:not(.tac-view-list) .tac-product-name{font-size:14px;line-height:1.35;min-height:38px}
 body.tac-theme .tac-products-grid.tac-view-list .tac-product-name{font-size:15px}
 body.tac-theme .tac-product-ref{font-size:12px}
}
body.tac-theme .tac-pagination{margin:30px auto 15px}
body.tac-theme .tac-pagination ul{display:flex;align-items:center;justify-content:center;gap:7px}
body.tac-theme .tac-pagination li{display:flex;align-items:center;justify-content:center;margin:0;padding:0;line-height:1}
body.tac-theme .tac-pagination a,body.tac-theme .tac-pagination span.current,body.tac-theme .tac-pagination .dots{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 9px;line-height:1;font-size:13px;border:1px solid #d7e1eb;text-decoration:none}
body.tac-theme .tac-pagination .prev,body.tac-theme .tac-pagination .next{padding:0;min-width:36px}
body.tac-theme .tac-pagination .tac-icon{width:18px;height:18px}
body.tac-theme .tac-pagination a:hover{background:#ecf2f8;border-color:#88a6c2}
/* Solicitud: contenedor igual de ancho que las páginas de catálogo. */
body.tac-theme .tac-quote-page .tac-shop-wrap{max-width:1280px!important;width:min(calc(100% - 48px),1280px)!important;margin:0 auto}
body.tac-theme .tac-quote-page .tacq-wrapper{max-width:none;width:100%;margin:0}
body.tac-theme .tac-quote-page .tacq-table-wrap{overflow-x:auto;max-width:100%}
body.tac-theme .tacq-table{min-width:650px}
body.tac-theme .tacq-table .tacq-product-image{width:100px;padding:8px;text-align:center}
body.tac-theme .tacq-table .tacq-product-image a{display:flex;align-items:center;justify-content:center;width:76px;height:72px;margin:auto;border:1px solid #ececec;background:white}
body.tac-theme .tacq-table .tacq-product-image img{display:block;width:100%;height:100%;object-fit:contain}
body.tac-theme .tacq-table th:first-child{width:100px}
/* Pie de página: texto de sección sin jerarquía H2. */
body.tac-theme .footer .tac-footer-heading{display:block;margin:0 0 18px;padding:0 0 12px;border-bottom:1px solid #ececec;color:#284a77;font-size:16px;font-weight:700;line-height:1.25}
body.tac-theme .budget-modal .tac-modal-title{font-size:22px;font-weight:700;line-height:1.25;color:#284a77;margin:0}
/* Tableta y móvil: búsqueda en la fila azul junto al desplegable de navegación. */
@media(max-width:920px){
 body.tac-theme .topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:14px}
 body.tac-theme .topbar-inner>.tac-head-search{display:none!important}
 body.tac-theme .topbar-inner .top-budget{margin:0 0 0 auto;flex:none}
 body.tac-theme .nav-inner{display:grid;grid-template-columns:minmax(0,1fr) 56px;align-items:center;column-gap:9px;row-gap:0;min-height:64px;padding-top:8px;padding-bottom:8px}
 body.tac-theme .tac-mobile-search-wrap{display:block;min-width:0;grid-column:1;grid-row:1}
 body.tac-theme .tac-mobile-search-wrap .tac-head-search{display:flex;width:100%;max-width:none;height:43px;margin:0}
 body.tac-theme .tac-head-search input[type="search"]{font-size:13px;padding-inline:80px}
 body.tac-theme .nav-toggle{grid-column:2;grid-row:1;display:flex!important;align-items:center;justify-content:center;min-height:45px;width:52px;margin:0;padding:8px;background:#214168;border:1px solid #4b6d94}
 body.tac-theme .nav-toggle:hover,body.tac-theme .nav-toggle[aria-expanded="true"]{background:#193857}
 body.tac-theme .menu{grid-column:1 / -1;grid-row:2;max-height:min(75dvh,700px);overflow-y:auto;margin-top:9px;width:100%;border-top:1px solid #45678d}
 body.tac-theme .menu .nav-links,.menu .nav-meta{width:100%;gap:0}
 body.tac-theme .menu .nav-links .nav-item,body.tac-theme .menu .nav-meta .nav-contact{font-size:15px;line-height:1.4;min-height:48px;padding:12px 16px;display:flex;align-items:center}
 body.tac-theme .menu .tac-nav-product{display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:stretch;flex-wrap:nowrap}
 body.tac-theme .menu .tac-nav-product>.nav-item{padding-right:12px;grid-column:1}
 body.tac-theme .menu .tac-mega-toggle{grid-column:2;min-height:48px;width:48px;background:transparent!important;border-left:1px solid #ffffff36}
 body.tac-theme .menu .tac-mega-panel{grid-column:1 / -1;grid-row:2;max-height:min(58dvh,530px);overflow-y:auto;box-shadow:none;position:static;left:auto;right:auto;width:100%;background:#f5f6f8;border:0}
 body.tac-theme .tac-mega-grid{width:100%;padding:20px 18px 24px;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 body.tac-theme .tac-mega-column{gap:19px}
 body.tac-theme .tac-mega-col{gap:6px}
 body.tac-theme .tac-mega-col a{font-size:14px}
 body.tac-theme .nav-meta{padding-top:4px;border-top:1px solid #ffffff3b}
 body.tac-theme .nav-meta .lang-switcher{margin:0;padding:12px 16px;align-self:flex-start}
 body.tac-theme .nav-meta .lang-switcher a{font-size:15px}
 body.tac-theme .tac-shop-layout{grid-template-columns:190px minmax(0,1fr)}
 body.tac-theme .tac-catalogue-root .tac-category-name{font-size:13px}
 body.tac-theme .tac-catalogue-interior .tac-category-name{font-size:12px}
}
@media(max-width:700px){
 body.tac-theme .topbar,.topbar-inner{height:69px}
 body.tac-theme .topbar-inner .site-logo,body.tac-theme .topbar-inner .site-logo img{width:110px;height:auto}
 body.tac-theme .topbar .top-budget{padding:8px 12px;font-size:12px;min-height:39px;height:auto;gap:7px}
 body.tac-theme .navbar .wrap.nav-inner{width:min(calc(100% - 28px),1280px)}
 body.tac-theme .tac-catalogue .tac-shop-layout{display:flex;flex-direction:column;gap:12px}
 body.tac-theme .tac-catalogue .tac-catalogue-aside{order:0;width:100%;max-width:100%}
 body.tac-theme .tac-catalogue .tac-shop-content{order:1;width:100%}
 body.tac-theme .tac-side-disclosure{width:100%}
 body.tac-theme .tac-side-disclosure .tac-side-summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;color:#244c7d;border:1px solid #d9e2eb;background:#f3f5f8;padding:13px 14px;font-size:15px;font-weight:700}
 body.tac-theme .tac-side-disclosure .tac-side-summary::-webkit-details-marker{display:none}
 body.tac-theme .tac-side-disclosure .tac-side-summary::marker{content:''}
 body.tac-theme .tac-side-disclosure .tac-side-summary .tac-icon{transition:transform .18s}
 body.tac-theme .tac-side-disclosure[open] .tac-side-summary .tac-icon{transform:rotate(180deg)}
 body.tac-theme .tac-side-disclosure .tac-aside-box{margin:0;border:1px solid #e3e7ec;border-top:0}
 body.tac-theme .tac-side-disclosure .tac-aside-box.tac-aside-link{padding-top:10px;padding-bottom:10px}
 body.tac-theme .tac-shop-content .tac-categories-grid{margin-top:10px}
 body.tac-theme .tac-catalogue-root .tac-categories-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 body.tac-theme .tac-catalogue-root .tac-category-card{aspect-ratio:1/1;padding:8px;min-height:0}
 body.tac-theme .tac-catalogue-root .tac-category-name{font-size:12px;min-height:30px;line-height:1.25}
 body.tac-theme .tac-catalogue-interior .tac-categories-grid{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:start;gap:8px}
 body.tac-theme .tac-catalogue-interior .tac-category-card{min-height:85px;display:grid;grid-template-columns:66px minmax(0,1fr);align-items:center;gap:6px;padding:7px;grid-column:auto!important}
 body.tac-theme .tac-catalogue-interior .tac-category-photo{width:66px;height:68px}
 body.tac-theme .tac-catalogue-interior .tac-category-name{font-size:11px;text-align:left}
 body.tac-theme .tac-quote-page .tac-shop-wrap{width:min(calc(100% - 28px),1280px)!important}
 body.tac-theme .footer .tac-footer-heading{font-size:15px;margin-bottom:12px}
}
@media(max-width:480px){
 body.tac-theme .topbar .top-budget{font-size:11px;padding:8px 9px}
 body.tac-theme .tac-head-search input[type="search"]{padding-inline:54px;font-size:12px}
 body.tac-theme .tac-head-search .tac-search-clear{right:35px;width:30px}
 body.tac-theme .tac-head-search .tac-search-submit{width:35px}
 body.tac-theme .tac-mobile-search-wrap .tac-head-search{height:42px}
 body.tac-theme .nav-inner{grid-template-columns:minmax(0,1fr) 50px;column-gap:8px}
 body.tac-theme .nav-toggle{width:49px}
 body.tac-theme .tac-mega-grid{grid-template-columns:1fr;padding:16px 15px 21px;gap:18px}
 body.tac-theme .tac-mega-column{gap:17px}
 body.tac-theme .tac-catalogue-root .tac-category-name{font-size:12px}
 body.tac-theme .tac-catalogue-interior .tac-categories-grid{grid-template-columns:1fr;gap:7px}
 body.tac-theme .tac-catalogue-interior .tac-category-card{grid-template-columns:84px minmax(0,1fr);min-height:88px;padding:7px}
 body.tac-theme .tac-catalogue-interior .tac-category-photo{width:84px;height:72px}
 body.tac-theme .tac-catalogue-interior .tac-category-name{font-size:12px}
 body.tac-theme .tacq-table{min-width:600px}
}
@media(max-width:920px){
 /* En touch/foco el panel solo se abre mediante el botón chevron. */
 body.tac-theme .tac-nav-product:not(.is-expanded) .tac-mega-panel{display:none!important}
}
@media(max-width:480px){
 /* Las versiones anteriores ocultaban el placeholder en móvil; restaurarlo. */
 body.tac-theme .tac-head-search input[type="search"]::placeholder{font-size:12px}
}
