/* TEXTILIA R8 — navegación por cápsulas y herramientas. Azul/blanco, sin desenfoque ni zoom. */
.tx-capsule-nav-wrap{position:relative;z-index:20;background:#fff;padding:10px clamp(12px,2vw,28px) 12px;border-bottom:1px solid #e1ebf6}
.tx-capsule-nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;max-width:1500px;margin:0 auto}
.tx-capsule{position:relative;min-width:0}
.tx-capsule-button{width:100%;min-height:48px;display:flex;align-items:center;justify-content:flex-start;gap:9px;padding:8px 10px;border:1px solid #a8c8eb;border-radius:12px;background:#fff;color:#103b76;font:700 13px/1.15 Inter,Arial,sans-serif;text-align:left;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease}
.tx-capsule-button:hover,.tx-capsule-button:focus-visible{background:#eef6ff;border-color:#1875d1;box-shadow:0 3px 10px rgba(12,75,145,.10);outline:none}
.tx-capsule-button[aria-expanded="true"]{background:#e8f3ff;border-color:#0c65bd;color:#06488f}
.tx-capsule-icon{width:27px;height:27px;flex:0 0 27px;display:grid;place-items:center;border-radius:8px;background:#e8f3ff;color:#0865bd;font-size:18px}
.tx-capsule-label{flex:1;min-width:0}
.tx-capsule-chevron{font-size:16px;line-height:1;color:#164a84;transition:transform .16s ease}
.tx-capsule-button[aria-expanded="true"] .tx-capsule-chevron{transform:rotate(90deg)}
.tx-capsule-menu{position:absolute;top:calc(100% + 6px);left:0;width:min(330px,calc(100vw - 24px));max-height:min(65vh,520px);overflow:auto;padding:9px;background:#fff;border:1px solid #d2e2f3;border-radius:13px;box-shadow:0 10px 28px rgba(17,54,98,.16);z-index:100;animation:txCapsuleIn .16s ease-out both}
.tx-capsule-menu.tx-align-right{left:auto;right:0}
.tx-capsule-menu[hidden]{display:none}
.tx-capsule-menu-title{margin:3px 8px 8px;font-size:14px;font-weight:800;color:#0b3977}
.tx-capsule-option{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:8px 10px;border:0;border-radius:8px;background:#fff;color:#1d3554;text-decoration:none;text-align:left;font:500 13px/1.25 Inter,Arial,sans-serif;cursor:pointer}
.tx-capsule-option:hover,.tx-capsule-option:focus-visible,.tx-capsule-option[aria-current="true"]{background:#e5f1ff;color:#064b99;outline:none}
.tx-capsule-option-icon{width:20px;flex:0 0 20px;color:#176fc7;text-align:center}
.tx-capsule-note{margin:8px 9px 3px;color:#60758c;font-size:11px;line-height:1.4}
@keyframes txCapsuleIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
/* Tool cards */
.tx-tools-hub{margin:34px auto 44px;max-width:1500px;padding:0 clamp(12px,2vw,24px)}
.tx-tools-heading{margin-bottom:16px}.tx-tools-heading h2{margin:4px 0 6px;color:#0b3977;font-size:clamp(24px,3vw,32px)}.tx-tools-heading p{max-width:850px;color:#52667e}
.tx-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tx-tool-card{min-width:0;padding:20px;border:1px solid #d6e5f5;border-radius:16px;background:#fff;box-shadow:0 3px 12px rgba(14,65,121,.06)}
.tx-tool-card h3{margin:0 0 7px;color:#103b76;font-size:19px}.tx-tool-card>p{color:#52667e;font-size:13px;line-height:1.5}
.tx-tool-card form{display:grid;grid-template-columns:1fr;gap:7px}.tx-tool-card label{margin-top:5px;color:#203e62;font-size:12px;font-weight:700}.tx-tool-card input{width:100%;min-height:40px;border:1px solid #bfd2e8;border-radius:8px;padding:8px 10px;color:#152f4d;background:#fff;font:14px Inter,Arial,sans-serif}
.tx-tool-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}.tx-primary,.tx-secondary{min-height:40px;border-radius:9px;padding:9px 14px;font:700 13px Inter,Arial,sans-serif;cursor:pointer;transition:background .18s ease,border-color .18s ease}
.tx-primary{border:1px solid #075fc2;background:#0875dc;color:#fff}.tx-primary:hover{background:#075ab2}.tx-secondary{border:1px solid #a9c7e8;background:#fff;color:#0b4d91}.tx-secondary:hover{background:#edf6ff}
.tx-tool-result{margin-top:14px;padding:12px;border-radius:10px;background:#f0f7ff;border:1px solid #d8e9fa;color:#1d3858;font-size:13px;line-height:1.55;overflow-wrap:anywhere}.tx-tool-result p{margin:0}.tx-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}.tx-result-metric{padding:9px;background:#fff;border:1px solid #dce9f7;border-radius:8px}.tx-result-metric span{display:block;color:#61768d;font-size:11px}.tx-result-metric strong{display:block;color:#0b4c95;font-size:16px;margin-top:3px}
/* Existing top navigation is replaced on the homepage by the 13 capsules. */
body[data-page="inicio"] header .mainnav,body[data-page="inicio"] header #megaMenu,body[data-page="inicio"] header .hamb{display:none!important}
@media(max-width:1050px){.tx-capsule-nav{grid-template-columns:repeat(4,minmax(0,1fr))}.tx-capsule-button{font-size:12px}}
@media(max-width:650px){.tx-capsule-nav-wrap{padding:8px 10px}.tx-capsule-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.tx-capsule-button{min-height:45px;padding:7px;font-size:12px}.tx-capsule-icon{width:24px;height:24px;flex-basis:24px;font-size:16px}.tx-capsule-menu{position:fixed;top:auto;left:12px!important;right:12px!important;bottom:12px;width:auto;max-height:65vh}.tx-tools-grid{grid-template-columns:1fr}.tx-tool-card{padding:15px}.tx-result-grid{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.tx-capsule-menu{animation:none}.tx-capsule-button,.tx-capsule-chevron,.tx-primary,.tx-secondary{transition:none}}

.tx-favorites-quick{position:fixed;right:18px;top:90px;z-index:1200;width:min(360px,calc(100vw - 24px));max-height:70vh;overflow:auto;background:#fff;border:1px solid #cfe0f3;border-radius:14px;box-shadow:0 10px 30px rgba(16,55,100,.18);padding:16px}.tx-favorites-close{float:right;border:1px solid #b8d0eb;background:#fff;color:#0b4d91;border-radius:7px;padding:6px 9px;cursor:pointer}.tx-favorites-list{padding-left:18px}.tx-favorites-list li{margin:8px 0}.tx-favorites-list a{color:#075db5}
