@media (hover: hover){
    .torres-card:hover .torres-card-veil,
    .torre-veil:hover {
        opacity: 1;
    }
    .btn-main:hover{
        background-color: var(--black);
        border-color: var(--black);
        color: var(--white);
    }
    .btn-main.btn-white:hover{
        background-color: transparent;
        border-color: var(--white);
        color: var(--white);
    }
    .btn-main.btn-outline-w:hover{
        background-color: var(--white);
        border-color: var(--white);
        color: var(--black);
    }
    .btn-main.btn-black:hover,
    .header-tr.mega-open .btn-header:hover,
    .header-tr.menu-open .btn-header:hover,
    .header-tr.scroll-on .btn-header:hover,
    .header-tr.header-filled .btn-header:hover,
    .header-tr.header-flat .btn-header:hover{
        background-color: transparent;
        border-color: var(--black);
        color: var(--black);
    }
    .link-btn:hover{
        text-decoration: underline;
    }
    .navbar-expand-lg .navbar-nav .nav-link:hover .nav-label{
        text-decoration: underline;
        text-underline-position: from-font;
    }
    .torres-nav .nav-link:hover{
        text-decoration: underline;
        text-underline-position: from-font;
    }
    footer a:not(.footer-logo):not(.to-footer-brom):not(.is-disabled):hover{
        text-decoration: underline;
        text-underline-position: from-font;
    }
    .btn-pill.btn-terracotta:hover,
    .btn-pill.btn-outline-w:hover{
        background-size: 100% 100%;
        background-position: 0 50%;
    }
    .btn-pill.btn-terracotta:hover{
        border-color: var(--optima-blue);
    }
    .btn-pill.btn-outline-w:hover{
        border-color: var(--optima-terracotta);
    }
    .lang-switch a:hover{
        color: inherit;
    }
    .mega-prev:hover{
        color: var(--white);
    }
    .mega-prev:hover .mega-prev-name{
        text-decoration: underline;
        text-underline-position: from-font;
    }
    .space-card:not(.is-disabled):hover::after{
        background-color: rgba(0, 0, 0, .3);
    }
    .space-card:not(.is-disabled):hover .space-link{
        opacity: 1;
    }
}
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1140px;
        margin-right: auto;
        margin-left: auto;
        padding-left: 0;
        padding-right: 0;
    }
    /* variante ancha: secciones cuyo frame usa la reticula de 1160 (margenes 140) */
    .container.container-wide {
        max-width: 1160px;
    }
    /* bloques 01-04: divs sin padding separados por gap, ancho automatico */
    .standard-row {
        margin-left: 0;
        margin-right: 0;
        gap: 16px;
    }
    .standard-row > * {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        padding: 0;
    }
}
@media (min-width: 992px) and (hover: hover) {
    .navbar-nav .nav-item.dropdown > .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        height: 18px;
    }
    .navbar-nav .nav-item.dropdown:hover > .nav-link .nav-label {
        text-decoration: underline;
        text-underline-position: from-font;
    }
    .navbar-nav .nav-item.dropdown:hover > .nav-link .nav-chevron {
        transform: rotate(180deg);
    }
    .navbar-nav .nav-item.dropdown:hover > .mega {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity .25s ease-out, transform .25s ease-out, visibility 0s;
    }
    .navbar-nav .nav-item.dropdown:hover > .mega-torres {
        clip-path: inset(0 0 -8px 0);
        transition: clip-path .3s ease-out .1s, visibility 0s;
    }
}
@media (max-width: 1199px) {
    .data-row > *:nth-child(n+3){
        margin-top: 24px;
    }
    .standard-row > *:nth-child(n+3){
        margin-top: 16px;
    }
    .leed-row > *:nth-child(2){
        margin-top: 40px;
    }
    .future-row > *:nth-child(2){
        margin-top: 40px;
    }
    .future-row > *:nth-child(3){
        margin-top: 80px;
    }
    .field-area{
        height: 72px;
    }
    .form-wrap > *:nth-child(2){
        margin-top: 40px;
    }
    .leed-row > *:nth-child(3){
        margin-top: 24px;
    }
    .slider-arrow{
        display: none;
    }
    .portfolio-slider{
        gap: 0;
    }
    .portfolio-slider .swiper-slide{
        width: 282px;
    }
    .project-logo{
        height: 18px;
    }
    .project-logo-md,
    .project-logo-sm{
        height: 14px;
    }
    .project-logo-md ~ .project-caption,
    .project-logo-sm ~ .project-caption{
        margin-top: 28px;
    }
    .project-caption{
        font-size: 14px;
    }
    .project-data{
        gap: 8px;
    }
    .project-data li span{
        font-size: 12px;
    }
    .project-data svg{
        width: 14px;
        height: 14px;
    }
    .slider-dots .swiper-pagination-bullet{
        width: 4px;
        height: 4px;
    }
    .slider-dots .swiper-pagination-bullet-active{
        width: 45px;
    }
    /* los dots de Torres Optima son mas grandes que los de BROM (Figma: 8px, barra 87) */
    .eco-dots, .torres-dots, .gallery-dots, .spaces-dots, .t1-gallery-dots, .cross-dots {
        gap: 8px;
    }
    .eco-dots .swiper-pagination-bullet, .torres-dots .swiper-pagination-bullet,
    .gallery-dots .swiper-pagination-bullet,
    .spaces-dots .swiper-pagination-bullet, .t1-gallery-dots .swiper-pagination-bullet,
    .cross-dots .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        border-radius: 4px;
    }
    .eco-dots .swiper-pagination-bullet-active, .torres-dots .swiper-pagination-bullet-active,
    .gallery-dots .swiper-pagination-bullet-active,
    .spaces-dots .swiper-pagination-bullet-active, .t1-gallery-dots .swiper-pagination-bullet-active,
    .cross-dots .swiper-pagination-bullet-active {
        width: 87px;
        background-color: var(--optima-terracotta);
    }
}
@media (min-width: 1300px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1140px;
        width: calc(100% - 160px);
        margin-right: auto;
        margin-left: auto;
    }
    .container.container-wide {
        max-width: 1160px;
        width: calc(100% - 140px);
    }
}
@media (max-width: 768px) {
    .custom-container {
        padding-left: 16px;
        padding-right: 16px;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media(min-width: 1600px) {
    
}
@media (min-width: 992px) {
    .intro-text{
        height: var(--intro-img-d);
        gap: 0;
        justify-content: space-between;
    }
    .intro-media img{
        height: var(--intro-img-d);
    }
    .band{
        height: var(--band-h-d);
    }
    .future-row > *:nth-child(3){
        margin-top: -80px;
    }
    .space-card{
        aspect-ratio: auto;
        height: var(--card-d);
    }
    .space-name{
        top: 20px;
        left: 20px;
    }
    .space-arrow{
        display: none;
    }
    .spaces-row{
        margin-left: 0;
        margin-right: 0;
        gap: 16px;
    }
    .spaces-row > *{
        flex: 0 0 calc((100% - 32px) / 3);
        width: auto;
        max-width: none;
        padding: 0;
    }
    .band-text{
        width: calc(100% / 12 * 7);
    }
    .form-row > *:nth-child(3){
        margin-top: 8px;
    }
    .seal{
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .seal-img{
        width: 80px;
    }
    .navbar-nav .nav-item.dropdown.is-open > .nav-link .nav-chevron {
        transform: rotate(180deg);
    }
    .navbar-nav .nav-item.dropdown.is-open > .mega {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity .25s ease-out, transform .25s ease-out, visibility 0s;
    }
    .navbar-nav .nav-item.dropdown.is-open > .mega-torres {
        clip-path: inset(0 0 -8px 0);
        transition: clip-path .3s ease-out .1s, visibility 0s;
    }
    .project-data{
        min-height: 89px;
    }
    /* al desplegarse, el cuerpo del acordeon respira 16 del titulo; el padding
       solo existe en el item activo (dentro del 0fr no puede encogerse) y se
       anima junto al despliegue */
    .eco-body > * {
        padding-top: 0;
        transition: padding-top .3s ease-out;
    }
    .eco-item.is-active .eco-body > * {
        padding-top: 16px;
    }
    /* pareja del px-lg-0: en desk el titulo va a sangre de columna y los
       textos recuperan el medio gutter del row (hereda --bs-gutter-x) */
    .plr-col {
        padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
        padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
    }
}
@media(max-width: 991px) {
    .pad-60m{padding: 60px 0;}
    .pt-60m{padding-top: 60px;}
    .pt-20m{padding-top: 20px;}
    .footer-row > *:nth-child(n+2){
        margin-top: 40px;
    }
    .footer-logo svg{
        width: 158px;
        height: 48px;
    }
    .box-rule-top{
        padding-top: 8px;
    }
    .pb-0m{padding-bottom: 0;}
    .intro-row > *:nth-child(n+2){margin-top: 40px;}
    .box-rule{
        padding-bottom: 24px;
    }
    header .nav-col{
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        padding: 0;
    }
    header .navbar-collapse{
        display: flex;
        flex-direction: column;
        /* el Figma alinea el menu arriba (contenido a 40 del borde del panel);
           el !important anula el justify-content-center del marcado */
        justify-content: flex-start !important;
        min-height: calc(100vh - 50px);
        min-height: calc(100dvh - 50px);
        max-height: calc(100vh - 50px);
        max-height: calc(100dvh - 50px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 40px 15px 40px 16px;
        background-color: var(--black);
    }
    header .navbar-collapse > :last-child{
        margin-top: auto;
    }
    .navbar-nav{
        align-items: flex-end;
        gap: 40px;
        width: 100%;
        text-align: right;
    }
    .navbar-nav .nav-item.dropdown{
        width: 100%;
    }
    .navbar-expand-lg .navbar-nav .mega{
        clip-path: none;
        display: grid;
        grid-template-rows: 0fr;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: inherit;
        opacity: 0;
        visibility: visible;
        transform: none;
        transition: grid-template-rows .3s ease-out, opacity .25s ease-out;
    }
    .navbar-nav .nav-item.dropdown.is-open > .mega{
        grid-template-rows: 1fr;
        opacity: 1;
    }
    .navbar-nav .nav-item.dropdown.is-open > .nav-link .nav-chevron{
        transform: rotate(180deg);
    }
    .navbar-nav .nav-item.dropdown.is-open ~ .nav-item .nav-link{
        color: var(--gray);
    }
    .mega > .container{
        width: 100%;
        max-width: 100%;
        min-height: 0;
        padding: 0;
        overflow: hidden;
    }
    .mega .row{
        margin: 0;
    }
    .mega .row > *{
        padding: 0;
    }
    .mega-list{
        gap: 24px;
        margin-top: 40px;
        align-items: flex-end;
    }
    .mega-group{
        gap: 0;
        align-items: flex-end;
        width: 100%;
        transition: row-gap .3s ease-out;
    }
    .mega-group.is-open{
        gap: 16px;
    }
    .mega-chevron{
        transform: none;
    }
    .mega-group.is-open .mega-chevron{
        transform: rotate(180deg);
    }
    .mega-group-head{
        justify-content: flex-end;
        gap: 8px;
        width: auto;
        font-size: 14px;
    }
    .mega-projects{
        display: grid;
        grid-template-rows: 0fr;
        width: 100%;
        transition: grid-template-rows .3s ease-out;
    }
    .mega-projects > *{
        overflow: hidden;
    }
    .mega-group.is-open .mega-projects{
        grid-template-rows: 1fr;
    }
    .mega-projects-list{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .mega-project{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        color: var(--white);
    }
    .mega-project.is-active .mega-project-name{
        text-decoration: none;
    }
    .mega-thumb{
        display: block;
        width: 100%;
    }
    .mega-thumb img{
        display: block;
        width: 100%;
        aspect-ratio: 104 / 80;
        height: auto;
        object-fit: cover;
    }
    .mega-project-row{
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    .mega-project-name{
        flex: 0 1 auto;
        min-width: 0;
        font-size: 12px;
        text-align: left;
    }
    .mega-arrow{
        width: 18px;
        height: 18px;
    }
    .mega-prev{
        justify-content: flex-end;
        gap: 8px;
        font-size: 14px;
    }
    .mega-prev-name{
        width: auto;
        font-size: 14px;
    }
    .mega-prev .mega-arrow{
        width: 24px;
        height: 24px;
    }
    .menu-footer{
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: flex-end;
        width: 100%;
        margin-top: auto;
        padding-top: 40px;
    }
    .menu-copy{
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid var(--white);
    }
    .project-data{
        min-height: 58px;
        color: var(--white);
    }
    .spaces-row > *:nth-child(2){
        margin-top: 40px;
    }
    .spaces-row > *:nth-child(n+3){
        margin-top: 16px;
    }
    /* bloques 01-04 en movil: mitades sin padding con gap de 16 (la
       separacion vertical la pone el nth-child de arriba) */
    .standard-row{
        margin-left: 0;
        margin-right: 0;
        column-gap: 16px;
    }
    .standard-row > *{
        flex: 0 0 calc(50% - 8px);
        width: auto;
        max-width: none;
        padding: 0;
    }
    /* sliders a sangre en movil (patron de cantabrico): el margen de 16
       al inicio y al final lo ponen los slidesOffset del init */
    .swiper{
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    .gap-16m{gap: 16px;}
    .mt-16m{margin-top: 16px;}
    .mt-17m{margin-top: 17px;}
    .mt-37m{margin-top: 37px;}
    .mt-24m{margin-top: 24px;}
    .mt-40m{margin-top: 40px;}
    .mb-16m{margin-bottom: 16px;}
    .mb-24m{margin-bottom: 24px;}
    .pb-24m{padding-bottom: 24px;}
    .pb-52m{padding-bottom: 52px;}
    .pb-56m{padding-bottom: 56px;}
    .pl-0m{padding-right: 0px;}
    .mb-40m{margin-bottom: 40px;}
    .pad-40m{padding: 40px 0;}
    .mb-8m{margin-bottom: 8px;}
    .mt-8m{margin-top: 8px;}
    .mb-9m{margin-bottom: 9px;}
    .pt-0m{padding-top: 0px;}
    .prl-0m{padding-left: 0; padding-right: 0;}
    .pt-24m{padding-top: 24px;}
    .pt-40m{padding-top: 40px;}
    .pb-51m{padding-bottom: 51px;}
    .pb-80m{padding-bottom: 80px;}
    .mt-36m{margin-top: 36px;}
    .pt-50m{padding-top: 50px;}
    .pt-90m{padding-top: 90px;}
    .pb-60m{padding-bottom: 60px;}
    .m-0m{margin: 0;}
    .mt-18m{margin-top: 18px;}
    .mt-34m{margin-top: 34px;}
    .mt-20m{margin-top: 20px;}
    .mt-22m{margin-top: 22px;}
    .mt-38m{margin-top: 38px;}
    .mt-62m{margin-top: 62px;}
    .mt-74m{margin-top: 74px;}
    .pt-19m{padding-top: 19px;}
    .pb-30m{padding-bottom: 30px;}
    .pb-36m{padding-bottom: 36px;}
    .pb-38m{padding-bottom: 38px;}
    .pb-37m{padding-bottom: 37px;}
    .pb-65m{padding-bottom: 65px;}
    .pt-118m{padding-top: 118px;}
    .pe-0m{padding-right: 0;}
    .mt-0m{margin-top: 0;}
    .mt-26m{margin-top: 26px;}
    .mt-151m{margin-top: 151px;}
    .text-underline-m{text-decoration: underline; text-underline-position: from-font;}
    .mt-54m{margin-top: 54px;}
    .mt-26m{margin-top: 26px;}
    .mt-32m{margin-top: 32px;}
    .mb-0m{margin-bottom: 0px;}
    .mb-32m{margin-bottom: 32px;}
    .mb-37m{margin-bottom: 38px;}
    .mb-39m{margin-bottom: 39px;}
    .mb-42m{margin-bottom: 42px;}
    .p-24m{padding: 24px;}
    .pb-40m{padding-bottom: 40px;}
    .pt-100m{padding-top: 100px;}
    .pb-64m{padding-bottom: 64px;}
    .pb-20m{padding-bottom: 20px;}
    .plr-0{padding-left: 0; padding-right: 0;}
    .gap-0m{gap: 0px;}
    .gap-8m{gap: 8px;}
    .gap-9m{gap: 9px;}
    .h-25m{height: 25px;}
}

@media(max-width: 768px) {
    .hero-section{
        height: 640px;
    }
    .hero-section > .container > .row{
        align-items: flex-end;
    }
    .hero-content{
        padding-bottom: 80px;
    }
    header{
        height: 50px;
    }
    .btn-main{
        height: 30px;
        padding: 0 16px;
        font-size: 12px;
    }
    .link-btn{
        font-size: 14px;
    }
}
@media(min-width: 415px) and (max-width: 768px) {
    .data-row > *:nth-child(3) .head-1m,
    .data-row > *:nth-child(4) .head-1m{
        min-height: 96px;
    }
}
@media(max-width: 375px) {
    .data-row div:first-child > p:first-child{ width: 80%;}
    .data-row .head-1m{
        min-height: 96px;
    }
}
@media(max-width: 320px) {
	
}


/* #Proyectos anteriores + Gracias
================================================== */
@media (min-width: 992px) {
    /* esta pagina esta dibujada en la reticula 1160 con gutter 16 */
    /* los frames dibujados en la reticula 1160 llevan tambien su gutter de 16:
       el contenedor ancho arrastra el gutter de su reticula */
    .container-wide .row {
        --bs-gutter-x: 16px;
    }
    .hero-project-media img {
        height: 447px;
    }
    .data-box {
        border-right: 1px solid currentColor;
    }
    .data-label {
        min-height: 2.4em;
        min-height: 2lh;
    }
    .gallery-media img {
        height: var(--gallery-h-d);
    }
    .gallery-row > *:nth-child(n+4) {
        margin-top: 28px;
    }
    .legacy-media img {
        height: 318px;
    }
    .legacy-name {
        min-height: 2.4em;
        min-height: 2lh;
    }
    .legacy-row {
        margin-left: 0;
        margin-right: 0;
        column-gap: 16px;
        row-gap: 24px;
    }
    .legacy-row > * {
        flex: 0 0 calc((100% - 48px) / 4);
        width: auto;
        max-width: none;
        padding: 0;
    }
    .thanks-media img {
        height: 340px;
    }
    .to-thanks-media img {
        height: 375px;
    }
}
@media (max-width: 991px) {
    .project-data-row {
        text-align: center;
    }
    .gallery-row > *:nth-child(n+2) {
        margin-top: 10px;
    }
    .legacy-row {
        --bs-gutter-x: 0;
        flex-wrap: nowrap;
    }
    .legacy-row > .legacy-item {
        flex: 0 0 282px;
        width: 282px;
    }
}

/* Retícula oficial de escritorio: contenedor 1140, 12 columnas, gutter 20.
   En móvil los rows conservan sus gutters propios (16 o 0 según el bloque). */
@media (min-width: 992px) {
    .row {
        --bs-gutter-x: 20px;
    }
    .header-torres .navbar .row {
        --bs-gutter-x: 20px;
    }
}

/* #Torres Optima
================================================== */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .mega-torres {
        padding: 40px 0;
        box-shadow: 0 4px 2px rgba(0, 0, 0, .25);
    }
    .navbar-expand-lg .navbar-nav {
        align-items: baseline;
    }
}
@media (min-width: 1200px) {
    .header-torres .navbar-collapse {
        padding-left: 44px;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .torres-list { min-width: 0; }
    .torres-list > li { flex: 1 1 0; min-width: 0; }
    .torres-list > li > .torres-card { width: 100%; }
    .lang-switch { white-space: nowrap; }
    .header-torres .navbar .btn-pill { padding: 0 8px; }
    .header-torres .navbar .row > *:last-child > .d-flex { gap: 12px; }
}
@media (max-width: 991px) {
    .header-torres {
        height: 80px;
    }
    .header-torres .nav-col {
        top: 100%;
    }
    .header-torres .navbar-collapse {
        min-height: calc(100vh - 80px);
        min-height: calc(100dvh - 80px);
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        overscroll-behavior: contain;
        background-color: var(--white);
        color: var(--black);
    }
    .header-torres .torres-nav:has(.dropdown.is-open) .nav-item:not(.dropdown) .nav-link {
        color: var(--gray);
    }
    .navbar-expand-lg .navbar-nav .mega-torres {
        color: var(--black);
    }
    .torres-list {
        justify-content: flex-end;
        padding-top: 40px;
    }
    .torres-list > li {
        flex: 1 1 0;
        min-width: 0;
    }
    .torres-list > li > .torres-card {
        width: 100%;
    }
    .torres-card-media img {
        aspect-ratio: 104 / 100;
        height: auto;
    }
    .torres-card-footer {
        align-items: flex-start;
        justify-content: space-between;
    }
    .torres-topbar {
        height: 30px;
    }
    .torres-brand svg {
        width: 26px;
        height: 8px;
    }
    .header-torres .navbar {
        height: 50px;
    }
    .navbar .navbar-brand-torres,
    .navbar .navbar-brand-torres svg {
        width: 132px;
    }
    .navbar .navbar-brand-torres svg {
        height: 16px;
    }
    .navbar .navbar-brand-torre img {
        width: auto;
        height: 16px;
    }
    .btn-pill {
        height: 30px;
        font-size: 12px;
    }
    .hero-torres-section {
        height: 608px;
    }
    .hero-torres-title,
    .hero-torres-block {
        width: 100%;
    }
    .hero-torres-actions {
        gap: 16px;
    }
}

/* #Torres Optima — secciones
================================================== */
@media (min-width: 992px) {
    .to-operation-media img { height: 499px; }
    .eco-item-media { display: none; }
    .eco-list { --bs-gutter-x: 0; flex-direction: column; gap: 16px; }
    .eco-list > .eco-item { width: 100%; }
    .to-gallery-row > *:nth-child(n+4) { margin-top: 16px; }
    .to-brom-footer { margin-top: 73px; }
    /* footer torres (frame): 4 bloques de 180 (20% del padre col-10) con
       between -> gaps de 81; los textos van nowrap y desbordan su caja de
       180 sin partir, como el nodo */
    .to-footer-cols > .to-footer-col {
        flex: 0 0 20%;
        width: 20%;
        white-space: nowrap;
    }
    /* el padre del formulario ya define el marco: los hijos van sin padding
       lateral y las mitades (correo/telefono) se separan con gap de 16 */
    .form-row {
        margin-left: 0;
        margin-right: 0;
        column-gap: 16px;
    }
    .form-row > * {
        padding-left: 0;
        padding-right: 0;
    }
    .form-row > .col-lg-6 {
        flex: 0 0 calc(50% - 8px);
        width: auto;
    }
    /* rejilla de fotos a sangre vertical del banner: gaps puros, sin margenes
       negativos del row (se salian del container) */
    .to-brom-photos {
        margin-left: 0;
        margin-right: 0;
        column-gap: 16px;
        row-gap: 20px;
    }
    .to-brom-photos > * {
        flex: 0 0 calc(50% - 8px);
        width: auto;
        max-width: none;
        padding: 0;
    }
}
@media (max-width: 991px) {
    .mt-80m { margin-top: 80px; }
    .text-start-m { text-align: left !important; }
    .to-operation-media-col { padding: 0; margin-left: -8px; }
    .to-operation-media { width: 66.7%; }
    .eco-media-item img,
    .eco-item-media img { height: 186px; }
    .eco-list { --bs-gutter-x: 0; flex-wrap: nowrap; }
    .eco-list > .eco-item { flex: 0 0 283px; width: 283px; padding-bottom: 16px; }
    .eco-list .eco-item-media { margin-bottom: 16px; }
    .eco-list .eco-body { grid-template-rows: 1fr; }
    .eco-list .eco-header { pointer-events: none; margin-bottom: 8px; }
    .eco-list .eco-icono { display: none; }
    /* en movil NO hay card stack: cada tarjeta fluye normal (colage arriba + texto) */
    .serv-track .serv-stage { position: static; top: auto; margin-bottom: 40px; box-shadow: none; }
    .serv-track .serv-stage:last-child { margin-bottom: 0; }
    .serv-track::after { display: none; }
    .serv-stage-media img { height: auto; }
    .serv-vinetas li + li { margin-top: 8px; }
    .t1-solidity-media-a { margin-top: 40px; }
    .t1-cert-seal { display: block; width: 40px; height: 40px; margin-bottom: 8px; }
    .to-brom-footer { margin-top: 40px; }
    .cross-media img { height: 216px; }
    .cross-panel { padding-bottom: 16px; }
    .to-torres-row { --bs-gutter-x: 0; flex-wrap: nowrap; }
    .to-torres-row > .torre-item { flex: 0 0 324px; width: 324px; }
    .torre-card { height: 374px; }
    .torre-panel { padding-bottom: 16px; }
    .torre-header { pointer-events: none; }
    .torre-header .eco-icono { display: none; }
    .torre-body { grid-template-rows: 1fr; }
    .torre-veil { display: none; }
    .torre-logo { width: 117px; height: 14px; }
    .to-location-media img { height: 220px; }
    .to-backing-media img { aspect-ratio: 343 / 263; height: auto; }
    .to-gallery-media img { height: 298px; }
    .to-gallery-row { --bs-gutter-x: 0; flex-wrap: nowrap; }
    .to-gallery-row > * { flex: 0 0 281px; width: 281px; }
    .to-mapa iframe { aspect-ratio: 343 / 213; height: auto; }
    .dist-item { padding: 8px 0; }
    .cert-seal { width: 32px; height: 32px; }
    .cert-logo { height: 10px; }
    .to-figures-row > * { flex: 0 0 50%; width: 50%; }
    .to-figures-row { --bs-gutter-x: 16px; justify-content: center; }
    .to-figures-row > *:nth-child(3) { margin-top: 40px; }
    .brom-media img { height: 300px; }
    .to-brom-photos { --bs-gutter-x: 0; flex-wrap: nowrap; }
    .to-brom-photos > * { flex: 0 0 285px; width: 285px; }
    .brom-logo { align-self: center; }
    .brom-logo svg { width: 196px; height: 60px; }
    .to-footer-cols { --bs-gutter-x: 16px; }
    .to-brochure { flex-direction: column; align-items: flex-start; gap: 16px; }
    .to-brochure-centro { align-items: center; }
    .to-footer-isotype img { width: 60px; height: 60px; }
    .to-footer-brom svg { width: 59px; height: 18px; }
}

/* #Torre Óptima 1
================================================== */
@media (min-width: 992px) {
    .t1-hero-media img { height: 504px; }
    .t1-solidity-media-a img { height: 414px; }
    .t1-solidity-media-b img { height: 462px; }
    .t1-solidity-row { align-items: flex-start; }
    .t1-solidity-tall { margin-top: -130px; }
    .t1-space-media img { height: 400px; }
    .t1-location-media img { height: 338px; }
    .t1-mapa iframe { height: 590px; }
    .serv-head { position: sticky; top: 168px; z-index: 2; background-color: var(--white); box-shadow: 0 -80px 0 var(--white); }
    .serv-stage .t1-serv-row { align-items: center; }
    .t1-cert-media img { height: 581px; }
    .to-form-row > div:first-child { display: flex; flex-direction: column; }
    .to-form-row .to-brochure { margin-top: auto; }
    .t1-gallery-media img { height: 349px; }
    .t1-gallery-row > *:nth-child(n+3) { margin-top: 16px; }
    .gallery-row-4 > *:nth-child(n+3) { margin-top: 0; }
    .gallery-row-4 > *:nth-child(n+5) { margin-top: 16px; }
    .t2-solidity-tall { margin-top: -145px; }
    .t3-solidity-b { margin-top: 190px; }
    .t3-space-media img { height: 336px; }
    .t3-serv-media img { height: 335px; }
    .cross-media img { height: 300px; }
    .cross-logo { height: 18px; }
    .t1-seals img { width: 55px; height: 55px; }
}
@media (max-width: 991px) {
    .pt-98m { padding-top: 98px; }
    .pb-41m { padding-bottom: 41px; }
    .pb-43m { padding-bottom: 43px; }
    .t1-hero-row { flex-direction: column-reverse; }
    .t1-hero-text { width: 100%; }
    .header-torres { transition-delay: 0s; }
    .t1-solidity-row > *:nth-child(n+2) { margin-top: 40px; }
    .t1-solidity-media-a img,
    .t1-solidity-media-b img { aspect-ratio: 327 / 430; height: auto; }
    .t1-solidity-tall { margin-top: 80px; }
    .t1-spaces-row { --bs-gutter-x: 0; flex-wrap: nowrap; }
    .t1-spaces-row > .space-item { flex: 0 0 283px; width: 283px; }
    .t1-spaces-action { justify-content: flex-start; }
    .t1-gallery-row { --bs-gutter-x: 0; flex-wrap: nowrap; }
    .t1-gallery-row > .gallery-item { flex: 0 0 281px; width: 281px; }
    .t1-cross-row { --bs-gutter-x: 0; flex-wrap: nowrap; }
    .t1-cross-row > .cross-item { flex: 0 0 324px; width: 324px; }
    .t1-mapa iframe { aspect-ratio: 343 / 260; height: auto; }
    .t3-solidity-b .t1-solidity-media-a { margin-top: 91px; }
    .solidity-stagger-right .t1-solidity-media-a { margin-top: 12px; }
    .solidity-stagger-right .t1-solidity-media-b { margin-top: 52px; }
    .t3-space-media img { height: 210px; }
    .t3-serv-media img { aspect-ratio: 343 / 279; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .btn-pill.btn-terracotta,
    .btn-pill.btn-outline-w {
        transition: none;
    }
}

/* #Torre Reforma 115
================================================== */
@media (min-width: 992px) {
    :root { --cw-wide: 936px; }
    /* --vw = ancho visible sin la barra de scroll (main.js); 100vw la incluye y
       la foto a sangre se pasaba unos px del borde, con scroll horizontal */
    .bleed-right { margin-right: calc((var(--cw-wide) - var(--vw, 100vw)) / 2); }
    .bleed-left { margin-left: calc((var(--cw-wide) - var(--vw, 100vw)) / 2); }
    /* el header de las fichas va en la reticula 1160: su row lleva el gutter 16
       del frame, no el 20 de la reticula oficial que hereda de Torres */
    .header-tr .navbar .row { --bs-gutter-x: 16px; }
    .tr-thanks-media { max-width: 569px; margin-left: auto; }
    /* el frame desk dibuja las distancias con las cifras antiguas de Syne
       (sin lnum): se apaga aqui el lining-nums global del body; el frame
       movil si lleva lnum, asi que solo aplica en desk */
    .tr-dist {
        font-variant-numeric: oldstyle-nums;
        font-feature-settings: "onum" 1;
    }
    .media-fill.bleed-left,
    .media-fill.bleed-right { width: auto; }
}
@media (min-width: 1200px) {
    :root { --cw-wide: 1160px; }
}
@media (max-width: 991px) {
    .header-tr .navbar-brand-tr,
    .header-tr .navbar-brand-tr svg {
        width: 171px;
        height: 11px;
    }
    header.header-tr .navbar-collapse > .menu-torres-footer {
        flex: 1 0 auto;
        margin-top: 60px;
    }
    .header-tr .menu-torres-copy {
        margin-top: auto;
    }
    .hero-tr-section {
        height: 710px;
    }
    .hero-tr-section > .container > .row {
        align-items: flex-start;
        padding-top: 118px;
    }
    .tr-data-grid {
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }
    .tr-data-row {
        grid-template-rows: auto minmax(12px, 1fr) auto auto;
        aspect-ratio: auto;
        min-height: 210px;
    }
    .tr-data-row + .tr-data-row { min-height: 228px; }
    .tr-data-cell { padding: 24px 16px; }
    .tr-data-row + .tr-data-row .tr-data-cell + .tr-data-cell h3 { max-width: 151px; }
    .tr-data-icon { width: 24px; height: 24px; }
    .tr-data-icon-leed { width: 28px; height: 28px; }
    .tr-loc-media img { aspect-ratio: 343 / 375; height: auto; }
    .tr-list-head svg { width: 18px; height: 18px; }
    .tr-map iframe { aspect-ratio: 343 / 231; height: auto; }
    .tr-dist > li { padding-bottom: 7px; }
    .tr-dist > li + li { margin-top: 8px; }
    .tr-band-section { min-height: 0; }
    .tr-stack { --stack-top: 120px; --stack-step: 46px; }
    .tr-stack-aside { position: static; }
    /* titulo fijo bajo el header mientras se apila la pila; main.js pone
       .tr-stack-fijo con --aside-top, --aside-h y --aside-mb. Las tarjetas se
       fijan debajo del titulo y el margin-bottom (alto de la 1a tarjeta + su
       margen) hace que el titulo se suelte en el mismo punto que la pila; el
       margen negativo de la columna de tarjetas lo compensa en el layout */
    .tr-stack.tr-stack-fijo { --stack-top: calc(var(--aside-top) + var(--aside-h)); }
    .tr-stack-fijo .tr-stack-aside {
        position: sticky;
        top: var(--aside-top);
        z-index: 2;
        padding-bottom: 16px;
        margin-bottom: var(--aside-mb);
    }
    .tr-stack-fijo .tr-stack-aside + * { margin-top: calc(0px - var(--aside-mb)); }
    .bg-smoke .tr-stack-fijo .tr-stack-aside { background-color: var(--smoke); }
    .bg-w .tr-stack-fijo .tr-stack-aside { background-color: var(--white); }
    .tr-card {
        flex-direction: column;
        height: auto;
    }
    .tr-cards::after { height: calc(20vh + 84px); }
    .tr-card-body {
        flex: 0 0 auto;
        gap: 8px;
        padding: 20px;
        border-right: 0;
        border-bottom: 1px solid var(--black);
    }
    .tr-card-media { flex: 0 0 auto; height: 186px; }
    .tr-cert-box { gap: 40px; width: 100%; padding: 24px 16px; }
    .tr-cert-box img { width: 60px; height: 60px; }
    .tr-cert-seals { gap: 24px; }
    .tr-evo-media img { aspect-ratio: 343 / 347; height: auto; }
    .tr-galm-r343-254 img { aspect-ratio: 343 / 254; height: auto; }
    .tr-galm-pair { display: flex; gap: 16px; }
    .tr-galm-pair > * { flex: 1 1 0; min-width: 0; }
    .tr-galm-pair img { aspect-ratio: 164 / 240; height: auto; }
    .tr-brochure { flex-direction: column; align-items: flex-start; gap: 16px; }
    .tr-brochure-center { align-items: center; }
    .brom-logo.brom-logo-tr { margin: 0 auto; }
    .brom-logo.brom-logo-tr svg { width: 198px; height: 60px; }
    .to-brom-footer.tr-brom-footer { margin-top: 40px; }
    .tr-footer-isotype { width: 60px; height: 60px; }
    .tr-footer-bar {
        padding-top: 8px;
    }
    /* el frame movil reparte LINKEDIN y su flecha a lo ancho de la columna */
    .tr-footer-row .footer-social {
        flex: 1 1 100%;
        justify-content: space-between;
    }
    .tr-footer-brom svg { width: 59px; height: 18px; }
    .tr-thanks-media img { aspect-ratio: 343 / 244; height: auto; }
}

/* #Montes Urales
================================================== */
@media (min-width: 992px) {
    /* el Figma alinea los textos de las tarjetas: los titulos ocupan siempre
       dos lineas aunque alguno quepa en una */
    .mu-facts .mu-fact > h3,
    .mu-facts-stack .mu-fact > h3 {
        min-height: 2.4em;
        min-height: 2lh;
    }
}
@media (max-width: 991px) {
    .header-tr .navbar-brand-tr.brand-mu760,
    .header-tr .navbar-brand-tr.brand-mu760 svg { width: 169px; height: 12px; }
    .header-tr .navbar-brand-tr.brand-mu770,
    .header-tr .navbar-brand-tr.brand-mu770 svg { width: 172px; height: 12px; }
    /* en MU 760 la barra movil no lleva fondo: se funde con el hero beige
       hasta que el header pasa a su estado con scroll */
    .header-mu.header-clear-m:not(.scroll-on):not(.menu-open) .navbar { background-color: transparent; }
    .header-mu.menu-beige.header-clear-m.menu-open .navbar { background-color: var(--beige); }
    .header-mu.menu-beige .navbar-collapse { background-color: var(--beige); }
    .header-mu.menu-pale-blue .navbar-collapse { background-color: var(--pale-blue); }
    /* el selector de idioma va anclado abajo, 40 sobre el copyright (20 + gap) */
    .header-mu .menu-torres-footer .lang-switch { margin-top: auto; }
    .header-mu .menu-torres-copy { margin-top: 20px; }
    /* una fila en desk que en movil reparte a sus nietos en una sola columna:
       las cols desaparecen (display contents) y cada hijo lleva su order */
    .row-flatten-m {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        margin-left: 0;
        margin-right: 0;
    }
    .row-flatten-m > * { display: contents; }
    .bleed-m {
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw);
    }
    .ar-m-375-266 img { aspect-ratio: 375 / 266; height: auto; }
    .ar-m-375-246 img { aspect-ratio: 375 / 246; height: auto; }
    .ar-m-375-276 img,
    .mu-map iframe { aspect-ratio: 375 / 276; height: auto; }
    .ar-m-343-382 img { aspect-ratio: 343 / 382; height: auto; }
    .ar-m-343-203 img { aspect-ratio: 343 / 203; height: auto; }
    .ar-m-283-328 img { aspect-ratio: 283 / 328; height: auto; }
    .ar-m-164-203 img { aspect-ratio: 164 / 203; height: auto; }
    .hero-mu-copy { display: block; height: auto; }
    .mu-facts { gap: 16px; }
    .mu-facts > * { flex: 0 0 calc(50% - 8px); }
    .mu-facts-stack { row-gap: 16px; }
    .mu-facts-stack > * { flex: 0 0 83.333%; }
    .mu-fact { gap: 16px; padding: 24px 8px; }
    .mu-band { padding: 24px 8px; }
    .mu-list .tr-list-head svg { width: 24px; height: 24px; }
    .mu-cards-row { --bs-gutter-x: 0; flex-wrap: nowrap; }
    .mu-cards-row > .mu-card { flex: 0 0 278px; width: 278px; }
    .mu-pair > :first-child,
    .mu-pair > :last-child { flex: 1 1 0; }
    .mu-panel { padding: 20px 0 0 10px; }
    .mu-panel > .row { margin-left: 0; margin-right: 0; }
    .mu-panel > .row > * { padding-left: 0; padding-right: 0; }
    .mu-panel-copy { width: 86.8%; }
    .mu-panel-media { width: 85%; margin-left: auto; }
    .mu-form-brochure { margin: 40px 0 0; }
    .mu-form-brochure .tr-brochure-links { gap: 20px; }
    .mu-footer .tr-brochure-center { gap: 8px; }
}
