@charset "UTF-8";
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
@import url("https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Martian+Mono:wght@100..800&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video{
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
} */

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

strong {
    font-weight: bold;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #F9F7F2;
    color: #000;
    font-family: 'Martian Mono';
    font-size: 18px;
    line-height: 1.4em;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@media screen and (min-width: 1025px) {

    body {
        cursor: none !important;
    }

    header {
        cursor: none !important;
    }

    .custom-cursor {
        position: fixed;
        width: 20px;
        height: 20px;
        background-color: rgb(255, 255, 0);
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
        pointer-events: none;
        transition: transform 0.1s ease;
        z-index: 1003;
    }

}

a {
    color: lightgray;
    font-weight: bold;
    text-decoration: none;
}

/*	Generales
	-------- */

#wrapper {
    height: 100vh;
}

.container-fluid {
    margin: 0 88px auto;
}

.img-responsive {
    width: 100%;
}

.fullscreen {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.cover {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.slick-slide,
.slick-slide img {
    outline: none;
}

.fluid-embed {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    max-width: 100%;
    height: 0;
    z-index: 2;
}

.fluid-embed video,
.fluid-embed iframe,
.fluid-embed object,
.fluid-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.transition {
    transition: all .25s ease-in-out;
    -webkit-transition: all .25s ease-in-out;
    -moz-transition: all .25s ease-in-out;
    -o-transition: all .25s ease-in-out;
}

.transition-quad {
    -webkit-transition: all 450ms cubic-bezier(0.250, 0.460, 0.450, 0.940);
    -moz-transition: all 450ms cubic-bezier(0.250, 0.460, 0.450, 0.940);
    -o-transition: all 450ms cubic-bezier(0.250, 0.460, 0.450, 0.940);
    transition: all 450ms cubic-bezier(0.250, 0.460, 0.450, 0.940);
}

/*.transition-info{
  -webkit-transition: all 600ms cubic-bezier(0.250, 0.460, 0.450, 0.940);
  -moz-transition: all 600ms cubic-bezier(0.250, 0.460, 0.450, 0.940);
  -o-transition: all 600ms cubic-bezier(0.250, 0.460, 0.450, 0.940);
  transition: all 600ms cubic-bezier(0.250, 0.460, 0.450, 0.940);
}*/
.v-middle {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

.bg-fixed {
    background-attachment: fixed;
    backface-visibility: inherit !important;
}

.bg-parallaxed {
    background-position: 50% 0;
}

html.frozen,
body.frozen {
    overflow: hidden;
    position: relative;
}

body.frozen:after {
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: fixed;
    background: transparent;
    z-index: 2;
}

span.close {
    background-image: url('../media/close.svg');
    background-size: 36px;
    background-repeat: no-repeat;
    width: 36px;
    height: 36px;
    cursor: pointer;
    position: absolute;
    transition: opacity .3s ease-in-out;
    -webkit-transition: opacity .3s ease-in-out;
    -moz-transition: opacity .3s ease-in-out;
    -o-transition: opacity .3s ease-in-out;
    display: none;
}

span.close.info {
    display: none;
}

/*	Header
	-------- */

/* Estilos generales para todos los tamaños de pantalla */

/* Logo siempre visible en escritorio y móvil */
.sdi__header__logo_container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1002;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sdi_logo {
    font-size: 20px;
    font-weight: 400;
    color: black;
}

@media screen and (max-width: 768px) {
    .sdi_logo {
        font-size: 18px;
    }
}

.sdi_logo_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    z-index: 1003;
}

/* Menú de hamburguesa */
.hamburger-menu {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1003;
    width: 30px;
    height: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
}

.hamburger-menu div {
    width: 100%;
    height: 3px;
    background-color: black;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Ocultar barra lateral en móviles */
@media screen and (max-width: 768px) {
    .side-bar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        z-index: 1001;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
    }

    .side-bar.active {
        display: block;
        transform: translateX(0);
    }

    .hamburger-menu {
        display: block;
    }

    .menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        padding-top: 60px;
    }

    .menu-item {
        padding: 15px;
        font-size: 15px !important;
        font-weight: 400;
        color: black;
        text-align: center;
        border-bottom: 1px solid #ddd;
        text-decoration: none;
    }

    .menu-item:hover {
        background-color: #f0f0f0;
    }
}

@media screen and (min-width: 1025px) {
    .menu .menu-item {
        font-size: 15px !important;
        padding: 5px !important;
    }
}

/* Estilos para tabletas y pantallas grandes (versión escritorio) */
@media screen and (min-width: 769px) {
    .sdi__header__logo_container {
        top: 50px;
        left: 50px;
        max-width: 200px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .sdi_logo {
        font-size: 20px;
    }

    .hamburger-menu {
        display: none;
    }

    .side-bar {
        position: absolute;
        width: 20%;
        height: 100%;
        left: 0;
        top: 0;
        z-index: 1001;
        display: block;
    }

    .menu {
        position: fixed;
        display: flex;
        flex-direction: column;
        bottom: 50px;
        left: 50px;
        color: black;
        font-weight: 350;
        width: 200px;
    }

    .menu-item {
        padding-top: 15px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 400;
        color: inherit;
        text-decoration: none;
        display: flex;
        align-items: center;
        position: relative;
    }

    .menu-item:hover {
        font-weight: 200;
        color: #fabeb4;
        text-decoration: none;
    }

    .menu-item.active::after {
        content: url('https://upload.wikimedia.org/wikipedia/commons/b/b5/Asterisk.svg');
        display: inline-block;
        margin-left: 2px;
        width: 10px;
        height: 10px;
        transform: scale(0.5);
        transform-origin: center;
        position: relative;
        top: -6px;
    }
}

/* WRAPPER */
.mobile-description {
    display: none;
}

/* Estilos para dispositivos móviles */
@media screen and (max-width: 768px) {
    .sdi_wrapper {
        position: absolute;
        width: 90%;
        left: 5%;
        right: 5%;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .mobile-description {
        display: block;
        text-align: left;
        color: #333;
        font-size: 12px;
        line-height: 15px;
        margin-bottom: 50px;
    }

    .thmb-box {
        margin-bottom: 10px !important;
    }

    .cover .title,
    .cover .ubicacion,
    .cover .fecha {
        display: none;
    }

}

@media screen and (max-width: 768px) {
    .sdi_wrapper {
        position: absolute;
        width: 90%;
        left: 5%;
        right: 5%;
        padding-top: 100px;
        padding-bottom: 100px;
    }

}

@media screen and (min-width: 769px) {
    .sdi_wrapper {
        position: absolute;
        max-width: 75%;
        right: 5%;
        padding-top: 50px;
        padding-bottom: 100px;
    }

}

@media screen and (min-width: 769px) {

    #fullpage {
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .item_project {
        -webkit-box-flex: 1;
        -ms-flex: 1 0 45%;
        flex: 1 0 45%;
        margin: 5px;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        max-width: 50%;
    }
}

@media screen and (min-width: 1280px) {
    .item_project {
        -webkit-box-flex: 1;
        -ms-flex: 1 0 25%;
        flex: 1 0 25%;
        margin: 5px;
        max-width: 33.3%;
    }
}

.item_project.image-v {
    padding: 0 55px;
}

.item_project.image-h {
    padding: 0 15px;
}

.thmb-box {
    position: relative;
    display: table;
    margin: 0 auto;
    margin-bottom: 60px;
}

.thmb-box .image-box {
    display: table-cell;
    vertical-align: middle;
}

.image-box .image {
    display: block;
    position: relative;
}

.thmb-box .cover {
    color: hsl(0, 0%, 96%);
    font-size: 16px;
    line-height: 19px;
    top: 0px;
    left: 0px;
    right: 0;
    bottom: 0;
    position: absolute;
    z-index: 2;
    opacity: 0;
    background: transparent;
    -webkit-transition: opacity .3s ease-in-out;
    -moz-transition: opacity .3s ease-in-out;
    -ms-transition: opacity .3s ease-in-out;
    -o-transition: opacity .3s ease-in-out;
    transition: opacity .3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* .image img:nth-child(2){
  opacity: 0;
}

.image:hover img:nth-child(2){
  opacity: 1;
}

.image:hover img:nth-child(1){
  opacity: 0;
} */

.thmb-box .image:hover .cover {
    opacity: 1;
}

body.color .thmb-box .cover {
    opacity: 1;
}

.image .cover .title {
    font-weight: 400;
    top: 20px;
    left: 20px;
    right: 20px;
    position: absolute;
}

.image .cover .ubicacion {
    font-size: 14px;
    font-weight: 400;
    bottom: 25%;
    left: 20px;
    right: 20px;
    position: absolute;
}

.image .cover .fecha {
    margin-top: 10px;
    font-size: 13px;
    position: absolute;
    font-weight: 300;
    /*transform: rotate(270deg);
  transform-origin: top right;
  */
    right: 40px;
    /*top: 60px;
  */
    left: 20px;
    bottom: 10%;
}

/*proyecto individual*/

body.single-project {
    overflow: hidden;
}

.project-header,
.project-footer {
    position: absolute;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    z-index: 1;
}

.project-header {
    font-size: 15px;
    position: absolute;
    margin: 0 auto;
    top: 50px;
    padding: 10px;
    text-align: center;
    width: 100%;
    z-index: 1;
}

@media screen and (max-width: 768px) {
    .project-header {
        font-size: 16px;
        position: absolute;
        margin: 0 auto;
        top: 100px;
        padding: 10px;
        text-align: center;
        width: 100%;
        z-index: 1;
    }
}

.project-header span {
    display: block;
    margin-bottom: 5px;
}

.project-footer {
    bottom: 50px;
}

.project-footer .info {
    cursor: pointer;
    display: inline-block;
    color: #00337F;
    padding-left: 15px;
    font-size: 15px;
    transition: all .25s ease-in-out;
    -webkit-transition: all .25s ease-in-out;
    -moz-transition: all .25s ease-in-out;
    -o-transition: all .25s ease-in-out;
}

.project-footer .info:hover {
    color: #9a9a9a;
}

.project-info {
    color: #00337F;
    font-style: italic;
    position: absolute;
    margin: 0 auto;
    top: 80px;
    padding: 10px;
    text-align: center;
    width: 100%;
    z-index: 1;
}

.single #wrapper.container-fluid {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.maioslider {
    height: calc(100vh - 200px);
    margin-top: 100px;
}

.slick-track {
    height: calc(100vh - 200px);
}

.maioslider .slider {
    text-align: center;
}

.maioslider .slick-slide:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.maioslider .slider .slide img {
    max-width: 45vw;
    max-height: 70vh;
    display: inline-block;
    margin: 0 auto;
    width: auto;
    vertical-align: middle;
}

@media screen and (max-width: 768px) {
    .maioslider .slider .slide img {
        max-width: 85vw;
        max-height: 60vh;
    }
}

.slick-arrow {
    display: block;
    position: absolute;
    height: 100%;
    width: 40%;
    z-index: 3;
    top: 0;
}

.slick-prev {
    left: 10%;
    cursor: url('../media/arrow-left.svg') -85 20, auto;
}

.slick-next {
    right: 10%;
    cursor: url('../media/arrow-right.svg') 85 20, auto;
}

html:not(.svg) .slick-prev,
html:not(.smil) .slick-arrow.slick-prev {
    left: 35px;
    width: 50px;
    height: 50px;
    cursor: default;
    background-image: url('../media/arrow-left.png');
    background-repeat: no-repeat;
    position: absolute;
    top: 40%;
}

html:not(.svg) .slick-next,
html:not(.smil) .slick-arrow.slick-next {
    right: 35px;
    width: 50px;
    height: 50px;
    cursor: default;
    background-image: url('../media/arrow-right.png');
    background-repeat: no-repeat;
    position: absolute;
    top: 40%;
}

.single-info {
    position: absolute;
    right: 0;
    width: 25vw;
    height: 100%;
    bottom: 0;
    z-index: 999;
    background: #fabeb4;
    transform: translate3d(100vw, 0, 0);
    -moz-transform: translate3d(100vw, 0, 0);
    -webkit-transform: translate3d(100, 0, 0);
}

.single-info #content {
    padding: 100px 20px 20px 20px;
    /* top 100px, laterales 40px */
    width: 25vw;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.home .single-info.opened {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.single-info #content .info {
    position: static !important;
    margin-bottom: 50px;
    /* aire con main */
    font-size: 14px;
    line-height: 16px;
    font-weight: 300;
}

.single-info #content .main {
    position: static !important;
    font-size: 14px;
    font-weight: 300;
    line-height: 18px;
}

.single-info #content .info p {
    margin-bottom: 12px;
}

.single-info #content .info span {
    font-weight: 600;
}

.single-info span.close {
    top: 35px;
    right: 35px;
}

body.open-single span.close:hover {
    opacity: .5 !important;
}

body.open-single .single-info {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
}

@media screen and (max-width: 768px) {
    .single-info {
        position: absolute;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        bottom: 0;
        z-index: 999;
        background: #fabeb4;
        /*transform: translate3d(0, calc(100vh - 90px), 0);
  -moz-transform: translate3d(0, 100vh, 0);
  -webkit-transform: translate3d(0, 100vh, 0);
  */
        transform: translate3d(0, 100vh, 0);
    }

    .single-info #content {
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .home .single-info.opened {
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .single-info #content .info {
        top: 50px !important;
    }

    .single-info #content .info p {
        margin-bottom: 12px;
    }
}

/* -------------PAGINA REFORMAS------------- */

#wrapper.main-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    width: 100vw;
    max-width: 100%;
    padding-top: 50px;
    overflow-y: auto;
}

#wrapper.main-container>div {
    margin-bottom: 50px;
}

.reformas-header {
    text-align: center;
    width: 100%;
    z-index: 1;
    font-size: 18px;
}

.reformas-header span {
    display: block;
    margin-bottom: 5px;
}

.reformas-texto {
    text-align: center;
    width: 40%;
    z-index: 1;
    font-size: 15px;
}

@media screen and (max-width: 768px) {
    .reformas-header {
        margin-top: 75px !important;
        font-size: 16px;
    }

    .reformas-texto {
        width: 80%;
        font-size: 14px;
    }
}

/* Estilos generales para los comparadores */
.comparador {
    margin: auto;
    position: relative;
    display: grid;
    place-items: center;
}

.comparador-v {
    width: 25%;
    min-width: 300px;
}

.comparador-h {
    width: 40%;
    min-width: 500px;
}

.caption {
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
}

.comparador .comparison {
    width: 100%;
    height: 100%;
    position: relative;
    display: grid;
    place-items: center;
}

.comparador .comparison figure {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    display: grid;
    place-items: center;
}

.comparador .comparison figure>img,
.comparador .comparison figure>div>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comparador .comparison figure>div {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.comparador .comparison .divisor {
    clip-path: inset(0 50% 0 0);
    box-shadow: 0 5px 10px -2px rgba(0, 0, 0, 0.3);
}

/* Asegúrate de que el slider se ajuste al tamaño del contenedor */
input[type=range] {
    -webkit-appearance: none;
    -moz-appearance: none;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    width: 90%;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]:active {
    outline: none;
}

input[type=range]::-moz-range-track {
    -moz-appearance: none;
    height: 15px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

input[type=range]::active {
    border: none;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 15px;
    background: #fff;
    border-radius: 0;
}

input[type=range]::-moz-range-thumb {
    -moz-appearance: none;
    width: 20px;
    height: 15px;
    background: #fff;
    border-radius: 0;
}

input[type=range]:focus::-webkit-slider-thumb {
    background: rgba(255, 255, 255, 0.5);
}

input[type=range]:focus::-moz-range-thumb {
    background: rgba(255, 255, 255, 0.5);
}

/* -------------- ABOUT Y CONTACTO -------------- */

#wrapper.about-container {
    height: 100vh;
    width: 80vw;
    top: 0;
    right: 0;
    padding-top: 50px;
    padding-bottom: 50px;
    overflow-y: auto;
    position: absolute;
    display: flex;
}

.about {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    align-items: center;
    padding: 0 20px;
}

.izquierda {
    width: 50%;
}

.derecha {
    width: 50%;
}

.about-descr {
    font-size: 13px;
    line-height: 20px;
    align-self: center;
    margin-top: 30px;
}

.about-foto {
    width: 100%;
    max-height: 80%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.about-foto img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    #wrapper.about-container {
        flex-direction: column;
        height: 100vh;
        width: 100vw;
        top: 0;
        right: 0;
        padding-top: 80px;
        padding-bottom: 50px;
    }

    .izquierda {
        width: 100%;
    }

    .derecha {
        width: 100%;
        margin-top: 75px;
    }
}

/* CONTACTO */

#wrapper.contact-container {
    height: 100vh;
    width: 80vw;
    top: 0;
    right: 0;
    padding-top: 50px;
    padding-bottom: 50px;
    overflow-y: auto;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    max-width: 80%;
    max-height: 80%;
    font-size: 14px;
    font-weight: 300;
}

.contact-text>span {
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .contact-text {
        font-size: 14px;
    }
}

.correo {
    color: #00337F;
    margin-bottom: 50px !important;
}

.correo:hover {
    color: #fabeb4;
}

/* ========== responsive.patch.css (override no destructivo) ========== */
/* Carga este archivo DESPUÉS de styles/style.css en TODAS las páginas. */

/* --- 1) Correcciones de wrapper en móvil: evitar scroll roto por absolute --- */
@media screen and (max-width: 768px) {
    .sdi_wrapper {
        position: relative !important;
        width: 90%;
        left: 5%;
        right: 5%;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    /* Tipografía un poco mayor en móviles pequeños */
    .mobile-description {
        font-size: 14px;
        line-height: 18px;
    }

    .sdi_logo {
        font-size: 16px;
    }

    .menu-item {
        font-size: 16px;
    }
}

/* --- 2) Sidebar móvil más usable: 80% de ancho y animación desde la izquierda --- */
@media screen and (max-width: 768px) {
    .side-bar {
        width: 80% !important;
        left: -100% !important;
        transform: none !important;
        transition: left 0.3s ease !important;
    }

    .side-bar.active {
        display: block !important;
        left: 0 !important;
    }
}

/* --- 3) Tablets (769px–1024px): dos columnas cómodas, wrapper más ancho --- */
@media screen and (min-width: 769px) and (max-width: 1024px) {

    /* Mantiene tu flex actual pero ajusta tamaños */
    #fullpage {
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .item_project {
        -webkit-box-flex: 1;
        -ms-flex: 1 0 48%;
        flex: 1 0 48%;
        max-width: 48%;
        margin: 0;
    }

    .item_project.image-v {
        padding: 0 30px;
    }

    .item_project.image-h {
        padding: 0 12px;
    }

    .sdi_wrapper {
        max-width: 90%;
        right: 5%;
    }

    .menu {
        left: 30px;
        bottom: 30px;
    }
}

/* --- 4) Desktop grande (≥1280px): separación homogénea sin cambiar tu 3-col --- */
@media screen and (min-width: 1280px) {
    #fullpage {
        gap: 16px;
    }

    .item_project {
        margin: 0;
    }
}

/* --- 5) Proyectos individuales (slider Slick): imágenes más generosas en móvil --- */
@media screen and (max-width: 768px) {
    .maioslider .slider .slide img {
        max-width: 90vw !important;
        max-height: 70vh !important;
    }
}

/* --- 6) Reformas (comparador): mantener mínimos pero permitir crecer fluido --- */
@media screen and (max-width: 768px) {

    .comparador-h,
    .comparador-v {
        width: 90% !important;
        min-width: 0 !important;
    }
}

/* --- 2.1) iPad / Tablets (769–1024px): usar menú hamburguesa como en móvil --- */
@media screen and (min-width: 769px) and (max-width: 1024px) {

    /* Mostrar icono hamburguesa */
    .hamburger-menu {
        display: block !important;
    }

    /* Sidebar tipo overlay (oculta por defecto, 80% ancho) */
    .side-bar {
        position: fixed !important;
        top: 0;
        left: -100% !important;
        width: 80% !important;
        height: 100% !important;
        background-color: white;
        z-index: 1001;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        transform: none !important;
        transition: left 0.3s ease !important;
        display: block !important;
    }

    .side-bar.active {
        left: 0 !important;
    }

    /* Menú vertical dentro del overlay */
    .menu {
        position: static !important;
        display: flex !important;
        flex-direction: column;
        width: 100%;
        height: 100%;
        padding-top: 60px;
        color: black;
    }

    .menu-item {
        padding: 15px;
        font-size: 18px;
        font-weight: 400;
        text-align: center;
        border-bottom: 1px solid #ddd;
        text-decoration: none;
    }

    .menu-item:hover {
        background-color: #f0f0f0;
    }
}

/* === Ajustes solicitados (móvil) === */

/* INFO (about): evitar que la foto se “cuele” entre el texto */
@media screen and (max-width: 768px) {
    #wrapper.about-container {
        display: flex;
        flex-direction: column;
    }

    .about {
        display: block;
        position: relative;
    }

    .about.izquierda,
    .izquierda {
        width: 100% !important;
    }

    .about.derecha,
    .derecha {
        width: 100% !important;
        margin-top: 24px !important;
    }

    .about-descr {
        width: 100%;
        margin-bottom: 16px;
        position: relative;
        z-index: 1;
    }

    .about-foto {
        width: 100%;
        margin-top: 16px;
        clear: both;
        position: relative;
        z-index: 0;
    }

    .about-foto img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
}

/* REFORMAS: sin scroll lateral, horizontales a ancho completo y centrar verticales/horizontales */
@media screen and (max-width: 768px) {

    body,
    html {
        overflow-x: hidden;
    }

    #wrapper.main-container {
        width: 100vw !important;
        max-width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .comparador {
        width: 100% !important;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .comparador-h,
    .comparador-v {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Las fotos horizontales se ajustan al ancho de pantalla */
    .comparador-h .comparison figure>img,
    .comparador-h .comparison figure>div>img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    /* Centrado visual consistente entre verticales y horizontales */
    .comparador .comparison {
        width: 100%;
    }

    .comparador .comparison figure {
        width: 100%;
    }

    /* Control deslizante ocupa el ancho disponible */
    .comparador input[type=range] {
        width: 95% !important;
    }
}

/* CONTACTO: bajar el bloque de texto en móvil */
@media screen and (max-width: 768px) {
    #wrapper.contact-container {
        width: 100vw !important;
    }

    .contact-text {
        top: 65% !important;
        transform: translate(-50%, -50%);
        max-width: 90% !important;
    }
}

/* === Fixes adicionales solicitados === */

/* ABOUT (móvil): asegurar que texto e imagen no se superpongan */
@media screen and (max-width: 768px) {

    .about-container,
    #wrapper.about-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .about-descr {
        width: 100% !important;
        margin: 0 0 16px 0 !important;
        position: relative;
        z-index: 2;
    }

    .about-foto {
        width: 100% !important;
        margin: 16px 0 0 0 !important;
        position: relative;
        z-index: 1;
        clear: both;
    }

    .about-foto img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
        display: block;
    }
}

/* INDEX (móvil/tablet): igualar márgenes izquierda/derecha en .item_project */
@media screen and (max-width: 1024px) {
    .item_project {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #fullpage {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* REFORMAS (móvil): añadir margen interior a fotos respecto a bordes de pantalla */
@media screen and (max-width: 768px) {

    .comparador,
    .comparador-h,
    .comparador-v {
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box;
    }

    .comparador .comparison figure>img,
    .comparador .comparison figure>div>img {
        width: 100% !important;
        height: auto !important;
    }
}

/* === Nuevos ajustes (móvil) — About, Home, Reformas === */

/* 1) ABOUT (superposición texto/imagen): forzar flujo vertical sin solapes */
@media screen and (max-width: 768px) {

    /* Romper el layout absoluto y alturas fijas */
    #wrapper.about-container {
        position: relative !important;
        height: auto !important;
        width: 100vw !important;
        padding-top: 80px !important;
        padding-bottom: 50px !important;
        display: block !important;
        overflow: visible !important;
    }

    .about {
        display: block !important;
        height: auto !important;
    }

    .izquierda,
    .derecha {
        width: 100% !important;
    }

    /* El texto primero, la foto después (orden natural) */
    .about.izquierda,
    .izquierda {
        order: 0;
    }

    .about.derecha,
    .derecha {
        order: 1;
        margin-top: 24px !important;
    }

    /* Quitar límites de altura que provocan solapes */
    .about-foto {
        max-height: none !important;
        margin-top: 16px !important;
    }

    .about-foto img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* 2) HOME (márgenes desiguales): container y cards con padding simétrico */
@media screen and (max-width: 768px) {

    /* Elimina el margen lateral heredado y usa padding parejo */
    .container-fluid {
        margin: 0 auto !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Las tarjetas sin padding extra para que el ancho sea uniforme */
    .item_project.image-v,
    .item_project.image-h {
        padding: 0 !important;
    }

    /* Asegura que las imágenes ocupen el ancho disponible del contenedor */
    .img-responsive {
        width: 100% !important;
        height: auto !important;
    }

    /* Un pequeño gap vertical consistente */
    .thmb-box {
        margin-bottom: 24px !important;
    }
}

/* 3) REFORMAS: pequeño margen con el borde y sin scroll lateral */
@media screen and (max-width: 768px) {

    body,
    html {
        overflow-x: hidden !important;
    }

    #wrapper.main-container {
        width: 100vw !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .comparador {
        width: calc(100% - 24px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .comparador-h,
    .comparador-v {
        min-width: 0 !important;
    }

    .comparador .comparison figure {
        width: 100% !important;
    }

    .comparador .comparison figure>img,
    .comparador .comparison figure>div>img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .comparador input[type=range] {
        width: 96% !important;
    }
}

/* === Ajustes adicionales (móvil + tablet) — Home y hamburguesa por la derecha === */

/* 1) HOME (miniaturas con margenes simétricos en móvil) */
@media screen and (max-width: 768px) {

    /* Contenedor a ancho completo con padding parejo */
    .sdi_wrapper {
        width: 100% !important;
        left: auto !important;
        right: auto !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .container-fluid {
        margin: 0 auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Miniaturas sin padding extra para igualdad exacta */
    .item_project.image-v,
    .item_project.image-h {
        padding: 0 !important;
    }

    /* El grid/lista no añade desplazamientos extra */
    #fullpage {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* 2) Hamburguesa desde la DERECHA (móvil y tablet) */
@media screen and (max-width: 768px) {
    .side-bar {
        left: auto !important;
        right: -100% !important;
        transition: right 0.3s ease !important;
    }

    .side-bar.active {
        left: auto !important;
        right: 0 !important;
    }
}

/* iPad / tablets (769–1024px): también desde la derecha */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .side-bar {
        left: auto !important;
        right: -100% !important;
        transition: right 0.3s ease !important;
    }

    .side-bar.active {
        left: auto !important;
        right: 0 !important;
    }
}

/* === Ajuste: menú desplegable ocupa todo el ancho en móvil y tablet === */
@media screen and (max-width: 768px),
screen and (min-width: 769px) and (max-width: 1024px) {
    .side-bar {
        width: 100% !important;
    }

    .menu {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 !important;
    }

    .menu-item {
        display: block;
        width: 100% !important;
        padding: 20px 0 !important;
        font-size: 22px !important;
        font-weight: 500;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .menu-item:last-child {
        border-bottom: none;
    }
}

/* === Menú desplegable ocupa todo el alto (móvil + tablet) === */

/* MÓVIL (≤768px): distribuir items a lo alto y aumentar tipografía */
@media screen and (max-width: 768px) {
    .side-bar {
        padding-top: 80px !important;
    }

    .menu {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-evenly !important;
        align-items: stretch !important;
        height: calc(100vh - 100px) !important;
        padding-top: 0 !important;
        padding-bottom: 20px !important;
    }

    .menu-item {
        font-size: 20px !important;
        padding: 0 20px !important;
        text-align: left !important;
        border-bottom: none !important;
    }

    .menu-item:last-child {
        margin-bottom: 0 !important;
    }
}

/* TABLET (769–1024px): mismo comportamiento y un toque más grande */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .side-bar {
        padding-top: 90px !important;
    }

    .menu {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-evenly !important;
        align-items: stretch !important;
        height: calc(100vh - 110px) !important;
        padding-top: 0 !important;
        padding-bottom: 24px !important;
    }

    .menu-item {
        font-size: 22px !important;
        padding: 0 28px !important;
        text-align: left !important;
        border-bottom: none !important;
    }
}

/* === Ajustes Home (márgenes miniaturas) + Menú centrado y más grande === */

/* 1) HOME (móvil): miniaturas con pequeños márgenes laterales */
@media screen and (max-width: 768px) {

    /* Añadimos un gutter suave sin ocupar 100% exacto */
    .sdi_wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Un leve padding por tarjeta para que no “peguen” a los bordes */
    .item_project {
        padding: 0 6px !important;
    }

    .item_project.image-v,
    .item_project.image-h {
        padding: 0 6px !important;
    }

    /* Asegura que las imágenes respeten el gutter */
    .thmb-box,
    .image-box,
    .image {
        width: 100% !important;
    }

    .img-responsive {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

/* 2) Menú desplegable centrado y con tipografía mayor */

/* MÓVIL */
@media screen and (max-width: 768px) {
    .menu {
        justify-content: space-evenly !important;
        align-items: stretch !important;
    }

    .menu-item {
        font-size: 24px !important;
        padding: 8px 20px !important;
        text-align: center !important;
    }
}

/* TABLET */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .menu {
        justify-content: space-evenly !important;
        align-items: stretch !important;
    }

    .menu-item {
        font-size: 26px !important;
        padding: 10px 28px !important;
        text-align: center !important;
    }
}

/* === Ajustes adicionales — Home (márgenes en miniaturas) + Menú centrado === */

/* 1) HOME (móvil): miniaturas con margen lateral sutil */
@media screen and (max-width: 768px) {
    .sdi_wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    #fullpage {
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 12px !important;
    }

    .item_project {
        margin: 0 auto 20px auto !important;
        width: calc(100% - 24px) !important;
    }

    .img-responsive {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

/* 2) Menú desplegable (móvil y tablet): texto más grande y centrado */
@media screen and (max-width: 768px) {
    .menu {
        justify-content: space-evenly !important;
        align-items: center !important;
        text-align: center !important;
    }

    .menu-item {
        font-size: 24px !important;
        padding: 10px 0 !important;
        text-align: center !important;
        width: 100% !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .menu {
        justify-content: space-evenly !important;
        align-items: center !important;
        text-align: center !important;
    }

    .menu-item {
        font-size: 26px !important;
        padding: 12px 0 !important;
        text-align: center !important;
        width: 100% !important;
    }
}

/* === Nuevo layout para página About (desktop y tablet) === */
/* === About: imagen centrada (35%) + panel lateral con estilo proyectos === */
.about-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.about-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-image img {
    max-width: 40vw;
    max-height: 40vh;
    object-fit: contain;
    display: block;
}

/* Panel lateral derecho: igual que .single-info en proyectos */
.about-info {
    position: fixed;
    top: 0;
    right: 0;
    width: 33vw;
    height: 100vh;
    background: #fabeb4;
    color: #fff;
    padding: 40px 30px;
    overflow-y: auto;
    z-index: 1001;
}

.about-info h1,
.about-info p {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 13px;
    font-weight: 300;
    color: black;
}

/* === En móvil: imagen más grande y panel bajo === */
@media screen and (max-width: 768px) {
    .about-wrapper {
        margin-top: 100px !important;
        flex-direction: column;
        height: auto;
    }

    .about-image {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px auto;
        margin-bottom: 50px !important;
    }

    .about-image img {
        max-width: 60vw;
        max-height: 40vh;
    }

    .about-info {
        position: relative;
        width: 100%;
        height: auto;
        box-shadow: none;
        padding: 20px;
    }

    .side-bar.active~.about-info,
    body.frozen .about-info {
        pointer-events: none !important;
    }
}

/* === Proyecto individual (móvil): asegurar visibilidad de imágenes en .maioslider === */
@media screen and (max-width: 768px) {

    /* Contenedor del slider ocupa el alto disponible */
    .maioslider {
        position: relative !important;
        display: block !important;
        margin-top: 80px !important;
        height: calc(100vh - 160px) !important;
        z-index: 1;
    }

    /* Cadena de contenedores de Slick a 100% de alto */
    .maioslider .slider,
    .maioslider .slick-list,
    .maioslider .slick-track {
        height: 100% !important;
    }

    /* Cada slide llena el contenedor y centra su contenido */
    .maioslider .slider .slide {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Fallback: si Slick aún no inicializó, muestra las diapositivas */
    .maioslider .slider:not(.slick-initialized) .slide {
        display: block !important;
    }

    /* Imágenes ajustadas al viewport sin recortes */
    .maioslider .slider .slide img {
        max-width: 92vw !important;
        max-height: calc(100vh - 190px) !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

/* === About móvil: asegurar que el menú hamburguesa quede por ENCIMA del panel lateral === */
@media screen and (max-width: 768px) {

    /* Elevar jerarquía del menú y el header */
    .hamburger-menu {
        z-index: 2003 !important;
    }

    .sdi__header__logo_container {
        z-index: 2003 !important;
    }

    .side-bar {
        z-index: 2002 !important;
        position: fixed !important;
    }

    /* Bajar el panel lateral de About para que no tape el menú */
    .about-info {
        z-index: 1000 !important;
    }

    /* Opcional: mientras el menú está activo, impedir interacción con el panel */
    .side-bar.active~.about-info,
    body.frozen .about-info {
        pointer-events: none !important;
    }
}

/* ====== POINT 1 TUNING: Home gutters 1025–1280 + menu sizing by breakpoint ====== */

/* A) Home layout between 1025px and 1280px: perfect two-column grid with symmetric gutters */
@media screen and (min-width: 1025px) and (max-width: 1280px) {

    /* Container lateral breathing room (symmetrical) */
    .container-fluid {
        margin: 0 64px auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Main wrapper shouldn't introduce extra asymmetry */
    .sdi_wrapper {
        right: 5% !important;
        left: auto !important;
        max-width: 75% !important;
        padding-top: 50px !important;
        padding-bottom: 80px !important;
    }

    /* Use consistent gap instead of ad-hoc margins */
    #fullpage {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: stretch !important;
        gap: 24px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Exactly two columns with symmetric width */
    .item_project {
        flex: 1 0 calc(50% - 24px) !important;
        max-width: calc(50% - 24px) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Harmonize inner paddings so thumbs align */
    .item_project.image-v,
    .item_project.image-h {
        padding: 0 8px !important;
    }

    .thmb-box {
        margin-bottom: 28px !important;
    }
}

/* B) Menu sizing by desktop breakpoints */

/* 1025–1280px: slightly larger for better readability on medium desktops */
@media screen and (min-width: 1025px) and (max-width: 1280px) {
    .menu .menu-item {
        font-size: 16px !important;
        padding: 6px 0 !important;
    }
}

/* ≥1281px: compact 15px as requested */
@media screen and (min-width: 1281px) {
    .menu .menu-item {
        font-size: 15px !important;
        padding: 5px 0 !important;
    }
}

/* ====== POINT 2: About — tipografías y jerarquías del panel derecho ====== */

/* Desktop / Tablet: panel derecho con jerarquía clara y legible */
@media screen and (min-width: 769px) {
    .about-info {
        width: 25vw !important;
        padding: 48px 32px !important;
        color: #111 !important;
        background: #fabeb4 !important;
    }

    /* Título principal */
    .about-info h1,
    .about-info .title {
        font-weight: 500;
        font-size: clamp(18px, 1.6vw, 24px);
        line-height: 1.25;
        margin: 0 0 14px 0;
        color: #111;
    }

    /* Subtítulos / secciones */
    .about-info h2,
    .about-info h3 {
        font-weight: 500;
        font-size: clamp(16px, 1.3vw, 20px);
        line-height: 1.3;
        margin: 18px 0 8px 0;
        color: #222;
    }

    /* Párrafos */
    .about-info p,
    .about-info li,
    .about-info .text,
    .about-info .body {
        font-size: clamp(13px, 1.05vw, 16px);
        line-height: 1.65;
        margin: 0 0 12px 0;
        color: #111;
        font-weight: 300;
    }

    /* Listas */
    .about-info ul {
        list-style: disc;
        padding-left: 20px;
        margin: 0 0 12px 0;
    }

    .about-info ol {
        list-style: decimal;
        padding-left: 22px;
        margin: 0 0 12px 0;
    }

    /* Enlaces dentro del panel */
    .about-info a {
        color: #00337F;
        text-decoration: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
        padding-bottom: 1px;
    }

    .about-info a:hover {
        color: #111;
        border-bottom-color: rgba(0, 0, 0, 0.35);
    }

    /* Separación entre bloques */
    .about-info .section+.section,
    .about-info p+h2,
    .about-info p+h3 {
        margin-top: 18px;
    }
}

/* Móvil: mantenemos el panel en flujo, con escala legible */
@media screen and (max-width: 768px) {
    .about-info {
        padding: 24px 18px !important;
        color: #111 !important;
        background: #fabeb4 !important;
    }

    .about-info h1,
    .about-info .title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .about-info h2,
    .about-info h3 {
        font-size: 18px;
        margin: 16px 0 8px;
    }

    .about-info p,
    .about-info li,
    .about-info .text,
    .about-info .body {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Opcional: cuando el menú está abierto en móvil, atenuar el panel para mayor claridad */
@media screen and (max-width: 768px) {

    .side-bar.active~.about-info,
    body.frozen .about-info {
        opacity: 0.25;
    }
}

/* ====== POINT 2 update: About panel width 35% ====== */
@media screen and (min-width: 769px) {
    .about-info {
        width: 35vw !important;
    }
}

/* ====== POINT 3: Proyectos — hover flechas vs cursor amarillo + alturas ====== */

/* A) Desktop: ocultar círculo amarillo (.custom-cursor) al pasar sobre slider con flechas */
@media screen and (min-width: 1025px) {
    .maioslider:hover~.custom-cursor {
        display: none !important;
    }
}

/* B) Ajuste de alturas por dispositivo */

/* Tablets (769–1024px): slider más contenido */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .maioslider {
        height: calc(100vh - 180px) !important;
        margin-top: 80px !important;
    }

    .slick-track {
        height: calc(100vh - 180px) !important;
    }

    .maioslider .slider .slide img {
        max-width: 70vw !important;
        max-height: calc(100vh - 200px) !important;
    }
}

/* Móviles (≤768px): ya ajustado antes, pero refinamos */
@media screen and (max-width: 768px) {
    .maioslider {
        height: calc(100vh - 160px) !important;
        margin-top: 90px !important;
    }

    .slick-track {
        height: calc(100vh - 160px) !important;
    }

    .maioslider .slider .slide img {
        max-width: 88vw !important;
        max-height: calc(100vh - 190px) !important;
    }
}

/* ====== POINT 5: Accesibilidad y detalles ====== */

/* A) Focus states visibles y consistentes */
:focus-visible {
    outline: 2px solid #00337F !important;
    outline-offset: 3px !important;
}

.menu .menu-item:focus-visible,
.hamburger-menu:focus-visible,
a:focus-visible,
button:focus-visible,
.slick-prev:focus-visible,
.slick-next:focus-visible {
    outline: 2px solid #00337F !important;
    outline-offset: 4px !important;
    border-radius: 4px;
}

/* Skip link (salto directo al contenido) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    background: #00337F;
    color: #fff;
    padding: 10px 14px;
    z-index: 3001;
    border-radius: 4px;
}

.skip-link:focus {
    left: 10px;
}

/* B) Tamaños táctiles mínimos (44px) */

/* Móvil y tablet: botones y targets al menos de 44px de alto */
@media screen and (max-width: 1024px) {

    .menu .menu-item,
    .hamburger-menu,
    .slick-prev,
    .slick-next,
    .project-footer .info {
        min-height: 44px !important;
        line-height: 44px !important;
    }

    .hamburger-menu {
        width: 44px !important;
        height: 44px !important;
    }

    .hamburger-menu div {
        height: 3px;
    }

    /* barras internas sin crecer */
}

/* Desktop: mantener foco visible sin cambiar layout */
@media screen and (min-width: 1025px) {
    .menu .menu-item {
        min-height: 28px;
    }
}

/* C) prefers-reduced-motion: reducir animaciones/transiciones */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    /* Slick: sin auto-animaciones visibles */
    .slick-track {
        transition: none !important;
    }
}

/* D) Enlaces dentro de overlays con mejor contraste al enfocar */
.side-bar .menu-item:focus-visible,
.about-info a:focus-visible {
    background: rgba(0, 0, 0, 0.05);
}

/* E) Mejorar accesibilidad del color de los enlaces en paneles */
.about-info a {
    color: #00337F;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.about-info a:hover,
.about-info a:focus-visible {
    color: #001f4f;
    border-bottom-color: rgba(0, 0, 0, 0.5);
}

/* ====== v6: Hamburguesa con fondo Home + menú sin subrayado/azul + Home móvil/iPad sin duotono ====== */

/* 1) Fondo del menú hamburguesa igual al fondo de Home (#F9F7F2) */
@media screen and (max-width: 1024px) {
    .side-bar {
        background-color: #F9F7F2 !important;
    }
}

/* 2) Menú: sin subrayado ni azul al pasar por encima (hover/focus/active) */
.side-bar .menu-item,
.side-bar .menu-item:link,
.side-bar .menu-item:visited {
    color: #000 !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.side-bar .menu-item:hover,
.side-bar .menu-item:focus,
.side-bar .menu-item:active,
.menu .menu-item:hover,
.menu .menu-item:focus,
.menu .menu-item:active {
    color: #000 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    background: rgba(0, 0, 0, 0.06);
}

/* Extra: enlaces dentro del menú (si fueran <a>) mantienen estilo */
.side-bar a.menu-item {
    color: #000 !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.side-bar a.menu-item:hover,
.side-bar a.menu-item:focus {
    color: #000 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    background: rgba(0, 0, 0, 0.06);
}

/* ====== v7: Fix Home touch (sin duotono + tap funcional) + iPad top spacing ====== */

/* 1) Dispositivos táctiles (móvil + iPad): desactivar por completo el overlay/duotono y habilitar tap */
@media (hover: none),
(pointer: coarse) {

    /* El overlay no debe verse ni interceptar eventos */
    .thmb-box .cover {
        opacity: 0 !important;
        background: transparent !important;
        pointer-events: none !important;
    }

    /* Si hay modo color forzado, lo anulamos en táctiles */
    body.color .thmb-box .cover {
        opacity: 0 !important;
    }

    /* Anula cualquier hover que el navegador emule en táctiles */
    .thmb-box .image:hover .cover {
        opacity: 0 !important;
        background: transparent !important;
    }

    /* Asegura que la imagen / link reciba el tap */
    .thmb-box .image,
    .thmb-box .image-box,
    .thmb-box .image a,
    .img-responsive {
        pointer-events: auto !important;
    }

    /* Por si el "duotono" se aplicara con filtros en img */
    .thmb-box .image img {
        filter: none !important;
        -webkit-filter: none !important;
    }

    /* Feedback de tap opcional (muy sutil) */
    .thmb-box .image:active img {
        opacity: 0.95;
        transition: opacity .15s;
    }
}

/* 2) iPad / tablets: separar la grilla del logo (más aire arriba) */
@media screen and (min-width: 769px) and (max-width: 1024px) {

    /* Si el wrapper está anclado a la derecha, añadimos padding superior extra */
    .sdi_wrapper {
        padding-top: 140px !important;
    }

    /* Alternativa adicional si #fullpage tiene poco margen superior */
    #fullpage {
        margin-top: 12px !important;
    }
}

/* ====== v8: Home táctil — desactivar cambio de imagen (duotono) y ocultar título/desc en hover/tap ====== */

/* 1) En dispositivos táctiles: no cambiar a la imagen duotono (2ª imagen) */
@media (hover: none),
(pointer: coarse) {

    /* Si hay dos <img> dentro de .image, ocultamos la 2ª para que no "reemplace" a la principal */
    .thmb-box .image img:nth-child(2) {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Por si hubiera reglas de hover que cambian opacidades intercambiando imágenes */
    .thmb-box .image:hover img:nth-child(1),
    .thmb-box .image:active img:nth-child(1) {
        opacity: 1 !important;
    }

    .thmb-box .image:hover img:nth-child(2),
    .thmb-box .image:active img:nth-child(2) {
        opacity: 0 !important;
    }

    /* 2) Ocultar título, ubicación, fecha (overlay .cover) al hacer hover/tap */
    .thmb-box .cover,
    .thmb-box .image:hover .cover,
    .thmb-box .image:active .cover {
        opacity: 0 !important;
        background: transparent !important;
        pointer-events: none !important;
    }

    /* Asegurar que el tap abre el proyecto (el enlace recibe el evento) */
    .thmb-box .image,
    .thmb-box .image a,
    .thmb-box .image-box,
    .img-responsive {
        pointer-events: auto !important;
    }
}

/* 3) En desktop, si quieres mantener overlay solo en hover (sin cambios aquí).
      Si prefieres ocultarlo también en desktop, descomenta:
@media (hover: hover) {
  .thmb-box .cover,
  .thmb-box .image:hover .cover{
  opacity: 0 !important;
  pointer-events: none !important;
}
}
*/

/* === Touch (móvil + iPad): clic directo, sin duotono ni overlay visible === */
@media (hover: none),
(pointer: coarse) {

    /* El contenedor debe posicionar el overlay */
    .thmb-box .image {
        position: relative !important;
    }

    /* El enlace .cover ocupa toda la miniatura y es transparente */
    .thmb-box .image .cover {
        position: absolute !important;
        inset: 0 !important;
        /* top/right/bottom/left: 0 */
        display: block !important;
        background: transparent !important;
        z-index: 5 !important;
        pointer-events: auto !important;
        text-decoration: none !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        touch-action: manipulation !important;
    }

    /* No mostrar el contenido textual del overlay en táctiles */
    .thmb-box .image .cover .title,
    .thmb-box .image .cover .ubicacion,
    .thmb-box .image .cover .fecha {
        display: none !important;
        visibility: hidden !important;
    }

    /* Desactivar por completo la imagen de duotono (2ª imagen) */
    .thmb-box .image img:nth-child(2),
    #image2 {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Por si algún hover cambiara opacidades, neutralízalo */
    .thmb-box .image:hover img,
    .thmb-box .image:active img {
        opacity: 1 !important;
        filter: none !important;
        -webkit-filter: none !important;
    }
}

/* === PATCH FINAL (append) ===================================== */
/* Tipografía: más legible en texto largo, mantén Martian para marca */
body {
    font-family: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sdi_logo,
.menu,
.correo {
    font-family: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Header en móviles muy pequeños: respiración en bordes */
@media (max-width: 360px) {
    .sdi__header__logo_container {
        top: 10px;
        left: 10px;
    }
}

/* Sidebar móvil más usable (80% ancho) + overlay del resto de la pantalla */
@media (max-width: 768px) {
    .side-bar {
        width: 80% !important;
        /* deja 20% como zona de cierre */
        left: -100% !important;
        transform: none !important;
        transition: left .3s ease !important;
        box-shadow: 8px 0 24px rgba(0, 0, 0, .15);
    }

    .side-bar.active {
        left: 0 !important;
    }

    /* Overlay global cuando el menú está abierto */
    body.nav-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .25);
        backdrop-filter: blur(1px);
        z-index: 1000;
        /* debajo de .side-bar (1001) según tu CSS */
    }
}

/* Wrapper en móvil: flow natural para evitar scroll raro */
@media (max-width: 768px) {
    .sdi_wrapper {
        position: relative !important;
    }

    .mobile-description {
        font-size: 14px;
        line-height: 18px;
    }

    .sdi_logo {
        font-size: 16px;
    }

    .menu-item {
        font-size: 16px;
    }
}

/* Comparadores (Reformas): que no se desborden en móvil */
@media (max-width: 768px) {

    .comparador-h,
    .comparador-v {
        width: 100% !important;
        min-width: 0 !important;
    }

    .caption {
        font-size: 12px;
    }
}

/* Contacto: links clicables con estilo sutil */
.contact-text a {
    color: #00337F;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}

.contact-text a:hover,
.contact-text a:focus {
    color: #fabeb4;
    border-bottom-color: currentColor;
    outline: none;
}



/* === HOME thumbnails: posición uniforme de ubicación y fecha === */
:root {
    /* Ajusta estos valores si quieres más/menos margen o separación */
    --cover-pad: 20px;
    /* distancia al borde (izq/abajo) */
    --cover-gap: 6px;
    /* espacio entre ubicación y fecha */
}

/* El overlay ya es absolute; le damos padding uniforme y usamos flex */
.thmb-box .cover {
    padding: var(--cover-pad);
    display: flex;
    /* ya lo tenías, reforzamos */
    flex-direction: column;
    /* título arriba, meta abajo */
    align-items: flex-start;
}

/* Volvemos estáticos los spans para entrar en el flujo del flex */
.image .cover .title,
.image .cover .ubicacion,
.image .cover .fecha {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
}

/* Título arriba; empujamos la "ubicación" hacia el fondo de la tarjeta */
.image .cover .ubicacion {
    margin-top: auto;
    /* se ancla abajo por el padding del .cover */
}

/* "Fecha" justo debajo de "ubicación" con separación constante */
.image .cover .fecha {
    margin-top: var(--cover-gap);
}

/* (Opcional) un pelín más de legibilidad en desktop */
@media (min-width: 769px) {
    .image .cover .ubicacion {
        font-size: 14px;
    }

    .image .cover .fecha {
        font-size: 13px;
    }
}

/* Fix: sin subrayado en los textos de las miniaturas del home */
.thmb-box .cover,
.thmb-box .cover:hover,
.thmb-box .cover:focus {
    text-decoration: none !important;
}

.thmb-box .cover .title,
.thmb-box .cover .ubicacion,
.thmb-box .cover .fecha {
    text-decoration: none !important;
}

/* === SINGLE-INFO — Responsive fix (móvil e iPad) ==================== */
/* MÓVIL (≤768px) */
@media (max-width: 768px) {

    /* El panel ocupa la pantalla entera cuando se abre, y no “empuja” horizontalmente */
    .single-info {
        position: fixed !important;
        inset: 0 !important;
        /* top/right/bottom/left: 0 */
        width: 100% !important;
        height: 100vh;
        /* fallback */
        height: 100dvh;
        /* viewport real en iOS/Android */
        transform: translateY(100%) !important;
        /* oculto por defecto (tu JS lo muestra con body.open-single) */
        background: #fabeb4;
        z-index: 999;
        overflow-x: hidden !important;
        /* <- sin scroll horizontal */
    }

    body.open-single .single-info {
        transform: translateY(0) !important;
    }

    /* El contenido del panel se adapta al ancho y no se corta */
    .single-info #content {
        width: 100% !important;
        /* <- quita el 25vw en móvil */
        max-width: 100% !important;
        height: 100% !important;
        padding: 100px 20px 24px 20px !important;
        /* 100 top, laterales con aire */
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column !important;
        gap: 50px !important;
        /* 50px entre .info y .main */
        overflow-x: hidden !important;
        /* <- evita “corte” lateral */
        overflow-y: auto !important;
        /* scroll solo interno si hace falta */
        -webkit-overflow-scrolling: touch;
    }

    /* Neutraliza márgenes heredados de la .container-fluid interna del panel */
    .single-info #content .container-fluid {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }

    /* Que todo dentro respete el ancho del panel */
    .single-info #content * {
        max-width: 100% !important;
    }

    .single-info #content p,
    .single-info #content li,
    .single-info #content span {
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    /* Orden natural sin posiciones absolutas */
    .single-info #content .info,
    .single-info #content .main {
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* iPAD / TABLET (769–1024px) — mismo comportamiento que móvil */
@media (min-width: 769px) and (max-width: 1024px) {
    .single-info {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100vh;
        height: 100dvh;
        transform: translateY(100%) !important;
        background: #fabeb4;
        z-index: 999;
        overflow-x: hidden !important;
    }

    body.open-single .single-info {
        transform: translateY(0) !important;
    }

    .single-info #content {
        width: 100% !important;
        /* <- quita el 25vw en iPad */
        max-width: 100% !important;
        height: 100% !important;
        padding: 100px 24px 24px 24px !important;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column !important;
        gap: 50px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .single-info #content .container-fluid {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .single-info #content p,
    .single-info #content li,
    .single-info #content span {
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
}