/* ----- Reset / Variables ------ */

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }


    body {
        font-family: "Raleway", "Raleway-bold", "Raleway-thin", "Garet", "Montserrat", "Open-Sauce";
        --font-color: #fff;
        --header-button-hover: #ccc;
        --box-color: #eaeaea;
        --box-fontcolor: #2b2b2b;
        --footer-color: #a0a0a0;
        --foter-backround: #676669;
        --produccion-background: #29282a;
        --produccion-boton-hover: #b3977a;
        --produccion-boton: #8f6629;
        --dot-color: #bbb;
        --dot-color-active: #333;
        --contacto-color: #e8e8e8;
        --contacto-font: #676669;
        --contacto-font-label: #29282a;
        height: 100%;

    }

    html, body {
        overscroll-behavior: none;
    }

    body.no-scroll {
    overflow: hidden;
    height: 100vh;
    }


    body.no-scroll .main-content {
    background: transparent !important;
}

    :root{
        --header-h: 96px; /* ajustá al alto real del header */
    }

/* Smooth scroll nativo + padding para anclas */
    html {
        scroll-behavior: smooth;
    }


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

    .header {
        position: fixed;
        top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        z-index: 1000;
        background-color: transparent;
        transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
        backdrop-filter: none;
    }

    .header.scrolled {
        background-color: rgba(84, 83, 83, 0.7);
        backdrop-filter: blur(6px);
    }

    .header-inner.no-border {
        border-bottom: none;
    }


    .main-content {
        padding-top: 0;
        transition: padding-top 0.3s ease;
    }

    .main-content.with-padding {
        padding-top: 100px; /* solo se aplica si se scrollea */
    }

    .header-inner {
        width: 90%;
        max-width: 1200px;
        display: flex;
        justify-content: space-between;
        padding: 0.1rem;
        gap: 30px;
        transition: border-bottom 0.3s ease;
        align-items: center;
    }

    .header-marca {
        display: flex;
        gap: 10px;
        align-items: center;
        z-index: 1100;
        }

    .header-marca a {
        text-decoration: none;
    }

    .header__logo {
        height: 3.5rem;
        width: 3.5rem;
        margin-top: 12px;
    }

    .titulo-marca {
        align-items: center;
        color: var(--font-color);
        font-size: clamp(1rem, 3vw, 1.5rem);
        font-family: "Raleway-thin";
        letter-spacing: 0.23em;
    }

    .titulo-marca span {
        font-family: "Raleway-bold";
        letter-spacing: 0.4em;
    }

    .header__nav {
        display: flex;
        align-items: center;
    }

    .header__nav-list {
        display: flex;
        gap: 30px;
        list-style: none;
        font-family: "Garet";
        font-weight: bold;
    }

    .header__nav-item a {
        text-decoration: none;
        color: var(--font-color);
        font-size: clamp(0.9rem, 2.5vw, 0.9rem);
        position: relative;
        transition: color 0.3s ease;
    }

    .header__nav-item a:hover {
        color: var(--header-button-hover);
    }

    .header__open-nav-button {
        all: unset;
        cursor: pointer;
        font-size: 2rem;
        display: none;
        background: none;
        border: none;
        color: var(--font-color);
        cursor: pointer;
        z-index: 1400;
    }

    .overlay-blur {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: 999;
    }

    body.menu-open .overlay-blur {
        opacity: 1;
        pointer-events: auto;
    }

    .header__nav-item a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0%;
        height: 2px;
        background-color: var(--header-button-hover);
        transition: width 0.3s ease;
    }

    .header__nav-item a:hover::after {
        width: 100%;
    }


/* ----- Inicio ------ */

    .inicio {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: left;
        height: 100vh;
        color: var(--font-color);
        background-image: image-set(
            url("Inicio/casachat-640.webp") 1x,
            url("Inicio/casachat-1280.webp") 2x
        );
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        z-index: 0;
        overflow: hidden;
    }

    /* Oscurecer solo la parte inferior de la imagen de INICIO */
    .inicio::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,0.15) 100%
        );
        pointer-events: none;
        z-index: 1;
    }

    /* Mantener texto y contenido por encima del overlay */
    .inicio > * {
        position: relative;
        z-index: 2;
    }

    .inicio-content {
        padding-left: 10vw;
        padding-bottom: 24vh;
        padding-right: 10vw;
        text-align: left;
        max-width: 60vw;
    }

    .inicio-content h2 {
        font-size: clamp(2rem, 3.5vw, 3.5rem);
        font-family: "Raleway";
        animation: fadeInUp 1.2s ease-out forwards;
        animation-delay: 0.2s;
        opacity: 0;
    }

    .inicio-content h2 strong {
        font-family: "Raleway-bold";
    }

    .inicio-content p {
        font-family: "Garet";
        font-size: clamp(0.8rem, 1.8vw, 1.2rem);
        animation: fadeInUp 1.4s ease-out forwards;
        animation-delay: 0.4s;
        opacity: 0;
    }

    .inicio-content.hide-content {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }


/* ----- Nosotros / Carrusel ------ */

    /* Compensar header fijo al navegar desde otra página vía ancla (#produccion, etc.) */
    #nosotros, #produccion, #galeria, #contacto {
        scroll-margin-top: var(--header-h, 96px);
    }

    .carrusel {
        display: flex;
        flex-direction: column;
        height: 90vh;
        justify-content: center;
        background-color: var(--font-color);
        color: var(--box-fontcolor);

    }

    .nosotros-content {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: clamp(24px, 4vw, 64px);
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        overflow: visible;
    }

    /* Animaciones carousel — solo cuando JS cargó (body.js-loaded) */
    .js-loaded .nosotros-texto,
    .js-loaded .nosotros-imagen {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.65s ease, transform 0.65s ease-out;
    }
    .js-loaded .nosotros-imagen {
        transition-delay: 0.12s;
    }
    .nosotros-texto.anim-in,
    .nosotros-imagen.anim-in {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }



    .valor-container {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .nosotros-texto__titulo {
        font-size: clamp(2rem, 3.5vw, 3rem);
        margin-bottom: 2rem;
        font-family: "Raleway";
    }


    .valor-texto__titulo {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
        margin-bottom: 1.2rem;
        font-family: "Garet";
        text-align: right;
    }


    .nosotros-texto__titulo .highlight {
        font-family: "Raleway-bold";
    }

    .nosotros-texto__1 {
        text-align: left;
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        font-family: "Open-Sauce";
        margin-bottom: 2rem;
    }

    .nosotros-texto__1 span, .nosotros-texto__2 span, .nosotros-texto__3 span {
        font-family: "Open-Sauce-Bold";
    }


    .nosotros-texto__2 {
        text-align: right;
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        font-family: "Open-Sauce";
        margin-bottom: 2rem;
    }

    .nosotros-texto__3 {
        text-align: left;
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        font-family: "Open-Sauce";
        margin-bottom: 2rem;
    }

    .valor-texto {
        flex: 1 1 400px;
        max-width: 1200px;
    }

    .valor-texto__1, .valor-texto__2,.valor-texto__3 {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        font-family: "Open-Sauce";
        margin-bottom: 2rem;
        text-align: left;
    }

    .valor-texto__1 {
        margin-top: 2rem;
    }

    .valor-texto__2 {
        text-align: right;
    }

    .valor-texto span {
        font-family: "Open-Sauce-bold";
    }

    .nosotros-imagen {
        max-width: 500px;
        position: relative;
        margin-top: 1rem;
    }


    .nosotros-imagen img {
        width: 100%;
        display: block;
        z-index: 10;
    }

    .valor-imagen picture,
    .valor-imagen img {
        display: block;
        width: 90%;
    }

    .caption-box{
        position: absolute;
        font-family: "Open-Sauce-thin";
        bottom: -110px;
        right: -15px;
        background-color: var(--box-color);
        color: var(--box-fontcolor);
        padding: 10rem 0 0.8rem 1.5rem;
        font-size: clamp(0.3rem, 3vw, 0.9rem);
        max-width: 450px;
        z-index: -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .caption-text {
        margin: 0;
        font-style: italic;
        flex: 1;
    }

    .caption-arrow {
        width: 90px;
        height: 90px;
        stroke: #000;
        flex-shrink: 0;
        position: static;
    }


    .valores-box__texto {
        font-weight: bold;
        letter-spacing: 1px;
    }


    .valores-box {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-color: rgba(232, 232, 232, 0.6);
        color: #222;
        padding: 1rem;
        font-family: "Garet";
        font-size: clamp(1rem, 2vw,1.5rem);
        max-width: 1100px;
        margin: -4rem auto 0;
        position: relative;
        z-index: 1;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        }


    .valores-box__texto {
        font-weight: bold;
        letter-spacing: 1px;
        word-spacing: 10px;
        background-size: 0% 2px;
        transition: background-size 0.3s ease;
    }

    .valores-box__texto:hover {
        background-size: 100% 2px;
    }

    .valores-caption-arrow {
        width: clamp(32px, 5vw, 60px);
        height: clamp(32px, 5vw, 60px);
        stroke: #000;
        position: absolute;
        bottom: 0;
        left: 0;
        transform: translate(-25%, 50%);
    }

    .carrusel {
        position: relative;
        overflow: hidden;
        background-color: var(--font-color);
        color: var(--box-fontcolor);
    }

    .carrusel-inner {
        display: flex;
        transition: transform 0.5s ease;
        width: 100%;
    }

    .slide {
        width: 100%;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .carrusel-dots {
        position: absolute;
        bottom: 1.5rem;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 10px;
        z-index: 10;
    }
    .carrusel-inner.grabbing { cursor: grabbing; }
    .carrusel, .carrusel-inner { touch-action: pan-y; }


    .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: var(--dot-color);
        transition: background-color 0.3s ease;
        cursor: pointer;
    }

    .dot.active {
        background-color: var(--dot-color-active);
    }

/* Botones flecha */
.carrusel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.carrusel-arrow--prev {
    left: clamp(8px, 3vw, 24px);
}

.carrusel-arrow--next {
    right: clamp(8px, 3vw, 24px);
}

.carrusel-arrow svg {
    display: block;
}


/* ----- Producción ------ */

    .producto-overlay,
    .producto-overlay:link,
    .producto-overlay:visited,
    .producto-overlay:hover,
    .producto-overlay:focus {
    text-decoration: none;
    color: inherit;
    }


    .produccion {
        display: flex;
        background-color: var(--produccion-background);
        color: var(--font-color);
        min-height: 100vh;
    }

    .produccion-wrap {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 3rem 2rem 2rem 2rem;
    }

    .productos-titulo {
        font-size:clamp(1.6rem,3.5vw,2.4rem);
        font-weight: 700;
        font-family: "Raleway-bold";
        margin-bottom: clamp(1rem, 2.5vw, 2rem);
    }

    .productos-grid {
        display: grid;
        gap: clamp(0.9rem, 2vw, 1.25rem);
        justify-items: center;
    }

    .producto-card {
        position: relative;
        font-family: "Open-Sauce";
        width: 100%;
        max-width: 1200px;                   /* no más ancho que el wrap */
        height: clamp(100px, 18vw, 140px);   /* alto responsive */
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: flex-end;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
        transition: transform 0.25s ease;
    }

    .producto-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .producto-card::before {
        content:"";
        position:absolute;
        inset:0;
        background: rgba(0,0,0,.25);
        z-index:1;
        pointer-events:none;
    }

    .producto-card::after{
        content:"";
        position:absolute;
        inset:0;
        background: linear-gradient(
            to top,
            rgba(0,0,0,.82) 0%,
            rgba(0,0,0,.60) 35%,
            rgba(0,0,0,.20) 70%,
            rgba(0,0,0,0) 100%
        );
        z-index:2;
        pointer-events:none;
    }


    .producto-card:hover {
        transform: scale(1.02);
    }

    .producto-overlay {
        height: clamp(100px, 18vw, 150px);
        position:relative;
        z-index:3;
        background:none;
        display:flex;
        flex-direction:column;
        justify-content:flex-end;
        align-items:flex-start;
        gap:.6rem;
        padding:clamp(1rem, 2.5vw, 1.5rem);
        width:100%;
        box-sizing:border-box;
    }

    .producto-overlay h3 {
        font-size: 1.2rem;
        margin: 0 0 .5rem 0;
        font-weight: 700;
    }

    .producto-overlay p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        }

    .btn-ver-mas {
        display: inline-flex;               /* ancho según contenido */
        align-items: center;
        justify-content: center;
        gap: .35rem;
        padding: .5rem .9rem;               /* más "botón" y menos "píldora gigante" */
        border-radius: 6px;
        background-color: var(--produccion-boton);
        color: var(--font-color);
        font-weight: 600;
        font-size: .7rem;
        line-height: 1;
        width: auto;                        /* clave para que no estire */
        align-self: flex-start;               /* 🔑 se pega a la derecha */
        border: 0;
        text-decoration: none;
        transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
    }

    .btn-ver-mas:hover {
        background-color: var(--produccion-boton-hover);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0,0,0,.24);
    }

    .btn-ver-mas:active {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(0,0,0,.24);
    }


/* ----- Galería ------ */

    /* Contenedor */
    .galeria {
        min-height: 100vh;
        display: flex;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        background: var(--font-color);
        color: var(--box-fontcolor);
        padding: 0rem 2rem 2rem 2rem;
    }

    .galeria-wrap {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .galeria-titulo {
        font-family:"Raleway";
        font-size:clamp(1.4rem,3.5vw,2.6rem);
        margin-bottom:clamp(16px,3vw,24px);
    }

    .galeria-titulo strong{
        font-family:"Raleway-bold";
    }

    .galeria-grid{
        display:grid;
        grid-template-columns: repeat(9, 1fr); /* más granular */
        grid-auto-rows: 150px;   /* ajustá a 160–170 si querés un poco más alto */
        gap: 5px;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Ítems + overlay/hover */
    .gal-item{
        position:relative;
        overflow:hidden;
        background: var(--box-color)
    }

    .gal-item img{
        width:100%;
        height:100%;
        object-fit:cover;
        object-position:center;
        transition: transform .5s ease, filter .5s ease; display:block;
    }

    .gal-item:hover img{
        transform:scale(1.05); filter:brightness(.92);
    }

    .overlay-text{
        position:absolute;
        left:0;
        right:0;
        bottom:0;
        padding:.85rem 1rem;
        background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
        color:#fff; font-family:"Garet",sans-serif; font-size:1rem;
        opacity:0; transform:translateY(14px); transition:opacity .35s, transform .35s;
    }

    .gal-item:hover .overlay-text{ opacity:1; transform:translateY(0); }

    .i1  { grid-column: 1 / 3; grid-row: 1 / 3; }
    .i2  { grid-column: 3 / 4; grid-row: 1 / 3; }
    .i3  { grid-column: 4 / 6; grid-row: 1 / 2; }
    .i4  { grid-column: 6 / 8; grid-row: 1 / 3; }
    .i5  { grid-column: 8 / 10; grid-row: 1 / 2; }
    .i6  { grid-column: 1 / 4; grid-row: 3 / 4; }
    .i7  { grid-column: 4 / 6; grid-row: 2 / 3; }
    .i8  { grid-column: 4 / 5; grid-row: 3 / 4; }
    .i9  { grid-column: 5 / 7; grid-row: 3 / 4; }
    .i10 { grid-column: 7 / 8; grid-row: 3 / 4; }
    .i11 { grid-column: 8 / 9; grid-row: 2 / 4; }
    .i12 { grid-column: 9 / 10; grid-row: 2 / 4; }

    .galeria-mas{
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        margin-top: clamp(16px, 3vw, 24px);
        align-self: flex-end;   /* se pega al lado derecho de galeria-wrap */

        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        font-family: "Garet", sans-serif;
        font-weight: 700;
        letter-spacing: .02em;
        text-decoration: none;
        color: var(--box-fontcolor);

        background-image: linear-gradient(currentColor, currentColor);
        background-repeat: no-repeat;
        background-size: 0% 2px;
        background-position: 0 100%;
        transition: background-size .25s ease, transform .15s ease, color .2s ease;
    }

    .galeria-mas::after{
        content: "→";
        display: inline-block;
        transform: translateX(0);
        transition: transform .2s ease;
    }

    .galeria-mas:hover{
        background-size: 100% 2px;
        transform: translateY(-1px);
    }

    .galeria-mas:hover::after{
        transform: translateX(3px);
    }


/* ----- Contacto ------ */

.contacto--minimal {
    background-color: var(--contacto-color);
    color: var(--box-fontcolor);
}

.contacto-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem 3rem;
}

.contacto-header { margin-bottom: 2.5rem; }

.contacto-titulo {
    font-family: "Raleway";
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
    color: var(--box-fontcolor);
}

.contacto-texto {
    font-family: "Open-Sauce";
    font-size: 0.9rem;
    color: var(--contacto-font);
    opacity: .9;
}

.contacto-divider {
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.15);
    margin-bottom: 2.5rem;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contacto-info__eyebrow {
    font-family: "Garet";
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--contacto-font);
    margin-bottom: 1rem;
}

.contacto-info__block { margin-bottom: 1.25rem; }

.contacto-info__label {
    font-family: "Garet";
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--contacto-font);
    margin-bottom: 0.3rem;
}

.contacto-info__value {
    font-family: "Open-Sauce";
    font-size: 0.9rem;
    color: var(--box-fontcolor);
    line-height: 1.5;
}

.contacto-cta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contacto-cta__title {
    font-family: "Raleway";
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--box-fontcolor);
    margin-bottom: 0.5rem;
}

.contacto-cta__sub {
    font-family: "Open-Sauce";
    font-size: 0.88rem;
    color: var(--contacto-font);
    line-height: 1.65;
}

.contacto-microguide {
    border-left: 2px solid rgba(0,0,0,0.15);
    padding-left: 1.25rem;
}

.contacto-microguide__label {
    font-family: "Garet";
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--contacto-font);
    margin-bottom: 0.6rem;
}

.contacto-microguide ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contacto-microguide li {
    font-family: "Open-Sauce";
    font-size: 0.85rem;
    color: var(--box-fontcolor);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.contacto-microguide li::before {
    content: "·";
    color: var(--produccion-boton);
    font-weight: 700;
    flex-shrink: 0;
}

.contacto-microguide li span {
    font-size: 0.75rem;
    color: var(--contacto-font);
}

.contacto-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contacto-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--box-fontcolor);
    font-family: "Garet";
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid var(--box-fontcolor);
    width: fit-content;
    transition: color 0.2s, border-color 0.2s, gap 0.2s;
}

.contacto-btn-wa:hover {
    color: var(--produccion-boton);
    border-color: var(--produccion-boton);
    gap: 1rem;
}

.contacto-btn-wa svg { width: 16px; height: 16px; flex-shrink: 0; }

.contacto-wa-number {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: "Open-Sauce";
    font-size: 0.78rem;
    color: var(--contacto-font);
}

.contacto-wa-dot {
    width: 7px;
    height: 7px;
    background: #25d366;
    border-radius: 50%;
    flex-shrink: 0;
    animation: waPulse 2s ease-in-out infinite;
}

.footer-wa-link { font-weight: 600 !important; }


/* ----- Footer ------ */

    footer {
        background-color: var(--foter-backround);
        color: var(--font-color);
        font-family: "Raleway";
        padding: 2rem;
    }
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2.5px solid #fff;
        padding: 2rem;
        color: var(--font-color);
        flex-wrap: wrap;
        flex-direction: row;
        text-decoration: none;
    }


    /* Fila clickeable (icono + texto) */
    .footer-left a.footer-row{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0.3rem 0;
        font-size: clamp(0.8rem, 1vw, 1rem);
        color: inherit;
        text-decoration: none;
        border-bottom: 1px solid transparent;
        transition: color .25s ease, border-color .25s ease;
    }

    /* Hover/teclado */
    .footer-left a.footer-row:hover{
        color: var(--header-button-hover);
    }

    .footer-left a.footer-row:focus-visible{
        outline: 2px solid var(--header-button-hover);
        outline-offset: 2px;
        border-radius: 4px;
    }

    /* Iconos siguen el color del texto (incluye hover) */
        .footer-left a.footer-row .icon svg{
        stroke: currentColor !important; /* sobreescribe la regla previa del footer */
    }




    .footer-left p {
        margin: 0.3rem 0;
        font-size: clamp(0.8rem, 1vw, 1rem);
        display: flex;
        align-items: center;
        text-align: left;
        gap: 0.5rem;
    }

    .footer-left .icon svg {
        stroke: var(--font-color);
        width: 18px;
        height: 18px;
    }

    .footer-right a {
        margin-left: 1.5rem;
        color: var(--font-color);
        transition: color 0.3s ease;
        display: inline-flex;
        align-items: center;
    }

    .footer-right a svg {
        width: 28px;
        height: 28px;
        stroke: var(--font-color);
    }

    .footer-copyright {
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 1rem;
        color: var(--footer-color);
        font-size: clamp(0.8rem, 1vw, 1rem);

    }


/* ----- Páginas de producto ------ */

    .productos-page .header {
        background: var(--font-color);
        color: var(--box-fontcolor);
        position: sticky;
        top: 0;
        z-index: 1000;
        height: 80px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .productos-page .header .titulo-marca,
    .productos-page .header__nav a {
        color: var(--box-fontcolor);                 /* forzamos el texto oscuro */
    }

    .productos-page .header__logo {
        filter: none;                /* evita invertir el logo */
    }

    .productos-page .main-content {
        padding-top: 10px;           /* deja espacio debajo del header */
    }

    /* Para que al hacer scroll los anclajes no queden tapados */
    .productos-page section {
        scroll-margin-top: 96px;     /* 80px de header + 16px de respiro */
    }


    .productos-page .header__open-nav-button {
    color: #000 !important;  /* negro */
    }

/* Que los anclajes no queden tapados por el header en esta página */
    .productos-page section { scroll-margin-top: 96px; }

.prod-hero {
  position: relative;
  height: 70vh;
  min-height: 400px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.prod-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.62) 100%);
}

.prod-hero--madera   { background-image: url('Produccion/Madera/madera3.webp'); }
.prod-hero--aluminio { background-image: url('Produccion/Aluminio/aluminio-back.jpg'); }
.prod-hero--pvc      { background-image: url('Produccion/PVC/back-pvc.jpg'); }
.prod-hero--galeria  { background-image: url('Inicio/casachat-1280.webp'); }

.prod-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.prod-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Garet", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.prod-back:hover { color: #fff; }

.prod-hero-content h1 {
  font-family: "Raleway";
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.prod-hero-content h1 strong { font-family: "Raleway-bold"; }

.prod-hero-content p {
  font-family: "Open-Sauce";
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  opacity: 0.8;
  max-width: 540px;
  line-height: 1.6;
}

.page-madera .header,
.page-aluminio .header,
.page-pvc .header,
.galeria-page .header {
  background-color: rgba(30, 28, 26, 0.78);
  backdrop-filter: blur(6px);
}

.prod-intro {
  background: #fff;
  padding: 4rem 2rem;
}

.prod-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.prod-intro-texto h2 {
  font-family: "Raleway";
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: #29282a;
}
.prod-intro-texto h2 strong { font-family: "Raleway-bold"; }

.prod-intro-texto p {
  font-family: "Open-Sauce";
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  line-height: 1.75;
  color: #555;
  margin-bottom: 1.2rem;
}

.prod-intro-img {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 6px;
}
.prod-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prod-tipos {
  background: #f7f6f4;
  padding: 4rem 2rem;
}

.prod-tipos-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.prod-tipos h2 {
  font-family: "Raleway";
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 300;
  margin-bottom: 2.5rem;
  color: #29282a;
}
.prod-tipos h2 strong { font-family: "Raleway-bold"; }

.tipos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  justify-content: center;
}

.page-madera .tipos-grid {
  grid-template-columns: repeat(3, 1fr);
}

.page-pvc .tipos-grid {
  grid-template-columns: repeat(2, minmax(0, 420px));
}

.page-aluminio .tipos-grid {
  grid-template-columns: repeat(5, 1fr);
}

.tipo-card, .tipo-card-madera {
  position: relative;
  height: 280px;
  border-radius: 6px;
  overflow: hidden;
  background: #ccc;
}

.tipo-card-madera img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.tipo-card img {
  width: 200%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.tipo-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.85);
}

.tipo-card-madera:hover img {
  transform: scale(1.04);
  filter: brightness(0.85);
}

.tipo-card::after, .tipo-card-madera::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
}

.tipo-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1.2rem 1.4rem;
}

.tipo-card-label h3 {
  font-family: "Raleway";
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.3rem;
}
.tipo-card-label h3 strong { font-family: "Raleway-bold"; }

.tipo-card-label p {
  font-family: "Open-Sauce";
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

.prod-tabla {
  background: #fff;
  padding: 4rem 2rem;
}

.prod-tabla-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.prod-tabla h2 {
  font-family: "Raleway";
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 300;
  margin-bottom: 2.5rem;
  color: #29282a;
}
.prod-tabla h2 strong { font-family: "Raleway-bold"; }

.tabla-wrap {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
}

table.specs {
  width: 100%;
  border-collapse: collapse;
  font-family: "Open-Sauce";
  font-size: 0.88rem;
  min-width: 560px;
}

table.specs thead {
  background: #29282a;
  color: #fff;
}

table.specs thead th {
  padding: 1rem 1.4rem;
  text-align: left;
  font-family: "Garet", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

table.specs tbody tr {
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: background 0.2s;
}
table.specs tbody tr:last-child { border-bottom: none; }
table.specs tbody tr:hover { background: #f7f6f4; }

table.specs td {
  padding: 0.9rem 1.4rem;
  color: #444;
  line-height: 1.5;
  vertical-align: top;
}

table.specs td:first-child {
  font-family: "Garet", sans-serif;
  font-weight: 700;
  color: #29282a;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.prod-galeria {
  background: #29282a;
  padding: 4rem 2rem;
}

.prod-galeria-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.prod-galeria h2 {
  font-family: "Raleway";
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 300;
  margin-bottom: 2rem;
  color: #fff;
}
.prod-galeria h2 strong { font-family: "Raleway-bold"; }

.prod-foto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.prod-foto-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.prod-foto-grid img:hover {
  transform: scale(1.03);
  filter: brightness(0.85);
}

.prod-foto-grid .span2 {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.prod-cta {
  background: #f7f6f4;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.prod-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.prod-cta h2 {
  font-family: "Raleway";
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 300;
  color: #29282a;
}
.prod-cta h2 strong { font-family: "Raleway-bold"; }

.prod-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  background: #29282a;
  font-family: "Garet", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s, gap 0.2s;
}
.prod-cta-btn:hover { background: #8f6629; gap: 1rem; }

.prod-otros {
  background: #fff;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.prod-otros-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.prod-otros p {
  font-family: "Garet", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.2rem;
}

.prod-otros-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.prod-otros-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #29282a;
  font-family: "Garet", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.2rem;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.prod-otros-link:hover { border-color: #8f6629; background: #faf8f4; }

.prod-ventajas {
  background: #29282a;
  padding: 2rem;
}

.prod-ventajas-alum {
  background: #29282a;
  padding: 2rem;
}

.prod-ventajas-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 0;
}

.prod-ventajas-inner-alum {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 0;
}

.ventaja-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.25rem 2rem;
}

.ventaja-item-alum {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1rem;
}

.ventaja-item:first-child { padding-left: 0; }
.ventaja-item:last-child  { padding-right: 0; }

.ventaja-item + .ventaja-item {
  border-left: 1px solid rgba(255,255,255,0.1);
}

.ventaja-num {
  font-family: "Raleway-bold";
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #b3977a;
  line-height: 1;
}

.ventaja-label {
  font-family: "Open-Sauce";
  font-size: 0.82rem;
  line-height: 1.4;
  color: #b3977a;
}

.ventaja-label-alum {
  font-family: "Open-Sauce";
  font-size: 1.5rem;
  flex: 1;
  white-space: nowrap;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

.ventaja-logo {
  height: 4rem;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}
.ventaja-logo-alum {
  height: 4rem;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}

/* Aluminio grid layout */
.aluminio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.aluminio-catalogo {
  margin-top: 2rem;
  text-align: center;
}
.aluminio-catalogo-btn {
  display: inline-block;
  font-family: "Raleway-bold";
  font-size: 1rem;
  color: #29282a;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  padding: 0.7rem 1.6rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.aluminio-catalogo-btn:hover {
  background: rgba(179,151,122,0.1);
  border-color: #b3977a;
  color: #b3977a;
}

.aluminio-item {
  background: #fff;
  border-radius: 6px;
  padding: 1.4rem 1.2rem;
  border-top: 2px solid #b3977a;
}

.aluminio-item--wide {
  grid-column: span 3;
  max-width: 33.33%;
}

.aluminio-item h3 {
  font-family: "Raleway-bold";
  font-size: 0.95rem;
  color: #29282a;
  margin-bottom: 0.4rem;
}

.aluminio-item p {
  font-family: "Open-Sauce";
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
}

/* PVC sistemas layout */
.pvc-sistema {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.pvc-sistema:last-child { margin-bottom: 0; }

.pvc-sistema-foto {
  flex-shrink: 0;
  width: 400px;
  height: 200px;
  border-radius: 6px;
  overflow: hidden;
}
.pvc-sistema-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pvc-sistema-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.pvc-sistema-texto {
  flex: 1;
}
.pvc-sistema-texto h3 {
  font-family: "Open-Sauce";
  font-size: 0.95rem;
  font-weight: 400;
  color: #29282a;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}
.pvc-sistema-texto h3 strong { font-family: "Raleway-bold"; }
.pvc-sistema-texto p {
  font-family: "Open-Sauce";
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

.pvc-sistema-perfil {
  flex-shrink: 0;
}
.pvc-sistema-perfil img {
  max-width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
}


/* ----- Madera ------ */

.madera-section {
    background: var(--font-color);
    padding: 2rem 2rem;
}

.page-madera .header{
    background-color: rgba(84, 83, 83, 0.7);
    backdrop-filter: blur(6px);
}

.page-madera .header.scrolled{
    background-color: rgba(84, 83, 83, 0.7);
    backdrop-filter: blur(6px);
}

.page-madera .titulo-marca,
.page-madera .header__nav-item a,
.page-madera .header__open-nav-button {
    color: #fff !important;
}

.page-madera .header__nav-item a:hover{
    color: #e6d7c6 !important;
}


.madera-grid {
    display: grid;
    grid-template-columns: 0.6fr 1fr; /* 50% y 50% */
    gap: 3rem;
    max-width: 1600px;
    margin: 0 auto;
    align-items: stretch; /* <- CLAVE para estirar ambos lados */
    min-height: 680px;    /* <- LA ALTURA BASE DEL BLOQUE */
}

/* Izquierda: imagen ocupa todo el alto */
.madera-imagen {
    height: 100%;
}

.madera-imagen img {
    width: 100%;
    height: 100%;            /* SE ESTIRA VERTICALMENTE */
    object-fit: cover;       /* RECORTA SIN DEFORMAR */
    border-radius: 8px;
}

/* Derecha: contenido organizado verticalmente */
.madera-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
    padding-right: 1rem;
}

/* Título */
.madera-wrap h2 {
    font-family: "Raleway";
    font-size: clamp(2rem, 2.6vw, 2.8rem);
    margin: 0;
    color: var(--box-fontcolor);
}

.madera-wrap h2 strong {
    font-family: "Raleway-Bold";
}

/* Texto general */
.madera-wrap .general {
    font-family: "Open-Sauce";
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
    max-width: 90%;
    margin: 0;
}

/* Cards */
.madera-grid2 {
    display: grid;
    gap: 1.5rem;
}

/* Cada card */
.madera-card {
    position: relative;
    width: 100%;
    height: clamp(170px, 23vw, 240px);
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease;
    cursor: pointer;
}

.madera-card:hover {
    transform: scale(1.01);
}

/* Oscurecimiento */
.madera-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Texto sobre card */
.madera-card h3,
.madera-card p {
    z-index: 2;
    padding: 1rem 1rem;
    color: var(--box-color);
}

.madera-card h3 {
    font-size: 1.2rem;
    align-items: flex-start;
    font-weight: 700;
}

.madera-card p {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.madera-card .entrada {
    margin-top: 0.5rem;
    padding: 0.8rem 1rem;
}

.madera-card .ventanas{
    margin-top: 0;
    padding: 0.3rem 1rem;
}

.madera-card .ventanas-lista{
    padding: 0.5rem 2rem;
    list-style: disc;
}

.madera-card .ventanas-lista li{
    color: var(--box-color);
    font-size: 0.95rem;
    opacity: 0.9;
}


/* ----- Aluminio ------ */

    .aluminio-section {
        position: relative;
        display: flex;
        height: 100vh;
        background: url('Galeria/Aluminio/DSC01879.jpg') no-repeat center center;
        background-size: cover;
        background-attachment: fixed;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        z-index: 0;
        overflow: hidden;
    }

    .aluminio-section {
        padding: 10rem 2rem;
    }

    .aluminio-texto {
        position: relative;
        display: flex;
        height: 100%;
        gap: 20px;
    }

    .aluminio-texto h2 {
        position: absolute;
        font-size: clamp(1.8rem, 2.1vw, 2.2rem);
        font-family: "Raleway";
        text-align: left;
    }

    .aluminio-texto h2 strong {
        font-family: "Raleway-bold";
    }

    .aluminio-texto p {
        padding-top: 15rem;
        color: var(--box-fontcolor);
        font-size: clamp(1rem, 1vw, 1.5rem);
        max-width: 40vw;
    }


/* ----- PVC ------ */

    .pvc-section {
        padding: 1rem;
    }

    .pvc-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 1rem;
        gap: 40px;
        align-items: center;
        min-height: 420px;
    }

    .pvc-imagen img {
        width: 100%;
        max-height: 900px;
        object-fit: cover;
    }

    .pvc-texto {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 20px;
    }

    .pvc-texto h2 {
        position: absolute;
        top: 0;             /* pegado arriba */
        right: 0;
        margin: 0 0 20px 0;
        font-size: clamp(1.8rem, 2.1vw, 2.2rem);
        color: var(--box-fontcolor);
        font-family: "Raleway";
        text-align: right;
    }

    .pvc-texto h2 strong {
        font-family: "Raleway-Bold";
    }

    .pvc-texto p {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        font-size: 1.1rem;
        line-height: 1.6;
        color: var(--box-fontcolor);
    }


/* ----- Galería page ------ */

.galeria-hero {
  position: relative;
  height: 38vh;
  min-height: 320px;
  background: url('Inicio/casachat-1280.webp') center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: var(--header-h, 80px) 2rem 2.5rem;
  overflow: hidden;
}

.galeria-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}

.galeria-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.galeria-hero-content h1 {
  font-family: "Raleway";
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}
.galeria-hero-content h1 strong { font-family: "Raleway-bold"; }

.galeria-hero-content p {
  font-family: "Open-Sauce";
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  opacity: 0.85;
}

.galeria-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Garet", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 0.8rem;
  transition: color 0.2s;
  position: relative;
  z-index: 2;
}
.galeria-back:hover { color: #fff; }

.galeria-filtros {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: var(--header-h, 96px);
  z-index: 100;
  padding: 0 2rem;
}

.galeria-filtros-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.galeria-filtros-inner::-webkit-scrollbar { display: none; }

.filtro-btn {
  all: unset;
  cursor: pointer;
  font-family: "Garet", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  padding: 1rem 1.2rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.filtro-btn:hover { color: #333; }
.filtro-btn.active {
  color: #29282a;
  border-bottom-color: #8f6629;
}

.galeria-full {
  background: #f7f6f4;
  padding: 2.5rem 2rem 4rem;
}

.galeria-full-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-masonry {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.masonry-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.galeria-masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
  display: block;
  background: #ede9e4;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.galeria-masonry-item.hidden {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  display: none;
}

.galeria-masonry-item img {
  width: 100%;
  height: auto;
  min-height: 150px;
  max-height: 480px;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.5s ease, filter 0.5s ease;
}
.galeria-masonry-item img.img-loaded {
  opacity: 1;
}
.galeria-masonry-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.88);
}

.item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}
.galeria-masonry-item:hover .item-overlay { opacity: 1; }

.item-overlay-loc {
  font-family: "Garet", sans-serif;
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: 0.06em;
}

.item-overlay-cat {
  font-family: "Open-Sauce";
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,18,16,0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 78vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lb-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  border-radius: 4px;
  pointer-events: none;
}

.lightbox-img {
  max-width: 78vw;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transition: opacity 0.28s ease, transform 0.28s ease;
  will-change: opacity, transform;
}

.lightbox-caption {
  position: absolute;
  bottom: -2.2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Open-Sauce";
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

.lightbox-close {
  all: unset;
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  line-height: 1;
  transition: color 0.2s;
  z-index: 2100;
}
.lightbox-close:hover { color: #fff; }

.lightbox-nav {
  all: unset;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2100;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav--prev { left: 2.5rem; }
.lightbox-nav--next { right: 2.5rem; }
.lightbox-nav svg { display: block; }

.lightbox-counter {
  position: fixed;
  top: 1.6rem;
  right: 1.5rem;
  font-family: "Garet", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
}

.galeria-cta {
  background: #29282a;
  color: #fff;
  padding: 3.5rem 2rem;
  text-align: center;
}

.galeria-cta h2 {
  font-family: "Raleway";
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  margin-bottom: 0.8rem;
}
.galeria-cta h2 strong { font-family: "Raleway-bold"; }

.galeria-cta p {
  font-family: "Open-Sauce";
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.galeria-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #29282a;
  background: #fff;
  font-family: "Garet", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  transition: background 0.2s, gap 0.2s;
}
.galeria-cta-btn:hover { background: #f0ebe3; gap: 1rem; }


/* ----- Animaciones ------ */

    @keyframes fadeInUp {
        0% {
            opacity: 0;
            transform: translateY(30px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
        }

@keyframes waPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.7); opacity: 0.5; }
}


/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */

/* --- Header --- */

@media (max-width: 1300px) {
    .header__nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(8px);
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .header__nav.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .header__nav-list {
        display: none; /* oculto por defecto */
        flex-direction: column;
        align-items: center;
        font-size: clamp(3rem, 3vw, 4rem);
        gap: 20px;
    }

    .header__nav-list.active {
        display: flex;
        flex-direction: column;
    }

    .header__open-nav-button {
        display: block;
        position: relative;
        color: var(--font-color);
    }

    .header-inner {
        padding: 0.8rem;
    }

    .header-marca {
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 1000;
    }

    .header__logo {
        height: 50px;
        width: auto;
    }
}

/* --- Inicio --- */

@media (min-width: 900px) {
    .inicio {
        background-image: image-set(
        url("Inicio/casachat-960.webp") 1x,
        url("Inicio/casachat.webp") 2x
        );
    }
}

@media (max-width: 1200px) {
    .inicio-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-bottom: 10rem;
        max-width: 70vw;
    }

    .inicio-content h2,
    .inicio-content p {
        width: 100%; /* para que se alineen igual */
    }
}

@media (max-width: 900px) {
    .inicio-content {
        max-width: 80vw;
    }
}

@media (max-width: 768px) {
  .inicio { background-attachment: scroll; } /* evita jank en iOS/Android */
}

@media (max-width: 600px) {
    .inicio-content {
        max-width: 94vw;
        padding-left: 5vw;
        padding-right: 5vw;
        padding-bottom: 4rem;
    }
}

/* --- Nosotros / Carrusel --- */

@media (max-width: 1200px) {

    /* Carrusel: que NO fuerce alto de pantalla */
    .carrusel {
        height: auto;
        min-height: auto;
        padding: 1.5rem 0 1rem;
        display: block;
    }

    /* Cada slide con algo de padding interno */
    .slide {
        padding: 1.5rem 1rem 0.5rem;
    }

    /* Dots: vuelven al flujo normal en mobile */
    .carrusel-dots {
        position: static;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    /* El resto de lo que ya tenés, lo podés dejar igual */
    .nosotros-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .valor-container {
        flex-wrap: wrap;
        display: block;
    }

    .nosotros-texto__titulo,
    .valor-texto__titulo {
        text-align: center;
        padding: 0;
    }

    .valor-texto__titulo {
        margin-top: 2rem;
    }

    .valor-texto {
        max-width: 1100px;
    }

    .valor-texto__1 {
        margin-top: 0;
    }

    .nosotros-texto__2,
    .nosotros-texto__3 {
        margin-top: 2rem;
    }

    .nosotros-imagen {
        margin: 0 auto;
        overflow: hidden;
    }

    .valor-imagen {
        margin: 0 auto;
        height: clamp(200px, 35vh, 600px);
        overflow: hidden;
    }

    .valor-imagen picture,
    .valor-imagen img {
        display: block;
        width: 100%;
    }

    .valor-imagen img {
        display:block;
        width:100%;
        height:100%;
        object-fit: cover;
    }

    .nosotros-imagen img {
        display: block;
        width: 100%;
        height: 30vh;
        object-fit: cover;
        border-radius: 8px;
    }

    .dot {
        width: 7px;
        height: 7px;
    }

    .caption-box {
        position: static !important;
        max-width: 100%;
        margin: 1rem auto 0 auto;
        padding: 1rem;
        background-color: var(--box-color);
        color: var(--box-fontcolor);
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        z-index: auto;
    }

    .caption-arrow {
        width: 30px !important;
        height: 30px !important;
        stroke-width: 0.8;
    }

    .valores-box {
        z-index: 1;
        padding: 1rem 1rem;
        max-width: 95%;
        margin-top: 0.2rem;
    }

    .valores-box__texto {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .carrusel-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .valores-box__texto {
        word-spacing: 4px;
        letter-spacing: 0.5px;
    }
}

/* --- Producción --- */

@media (max-width: 1200px) {
    .produccion-content {
        flex-direction: row;
        text-align: center;
    }

    .produccion {
        padding: 2rem 0;
        display: block;
        min-height: auto;
    }

    .productos-titulo {
        margin-left: 0.4rem;

    }

    .produccion-content img {
        max-width: 100%;
    }

    .producto-overlay {
        height: 38vh;
    }

    .producto-card {
        width: 85vw;
        justify-content: center;
        max-width: 1000px;
        height: 30vh;
        overflow: hidden;
    }
}

@media (max-width: 600px) {
    .producto-card {
        width: 100%;
        max-width: 100%;
        height: clamp(160px, 45vw, 220px);
    }

    .producto-overlay {
        height: clamp(160px, 45vw, 220px);
    }
}

/* --- Galería --- */

@media (max-width: 1100px) {
    .galeria {
        min-height: auto;
        padding: 2rem 1rem;
        display: block;
    }
    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 160px;
        gap: 10px;
        padding: 0.4rem;
    }
    .galeria-grid > .gal-item {
        grid-column: auto !important;
        grid-row: auto !important;
        height: auto;
    }

    .galeria-titulo {
        margin-left: 0.4rem;
    }

    .galeria-mas {
        align-self: center;
    }
}

@media (max-width: 700px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 8px;
    }
    .galeria-mas {
        align-self: center;
    }
}

/* --- Contacto --- */

@media (max-width: 1200px) {
    .contacto-inner { padding: 2.5rem 1.5rem; }
    .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contacto--minimal { padding: 2.2rem 2rem; }
    .contacto--minimal .contacto-form { grid-template-columns: 1fr; gap: 1rem; }
    .contacto--minimal .btn-enviar { padding-top: .6rem; }
}

/* --- Footer --- */

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 2rem;
        gap: 1.5rem;
    }
    .footer-right {
        width: 100%;
        justify-content: center;
    }
    .footer-right a {
        margin: 0;
    }
    .footer-right a svg {
        width: 20px;
        height: 20px;
    }
}

/* --- Header --- */

@media (max-width: 500px) {
    .header__open-nav-button {
        margin-bottom: 0.2rem;
    }

    .header-inner {
        padding: 1rem 0 1rem 0;
    }
}

/* --- Páginas de producto --- */

@media (max-width: 900px) {
  .prod-hero { background-attachment: scroll; }
  .prod-intro-inner { grid-template-columns: 1fr; }
  .prod-intro-img { height: 280px; }
  .tipos-grid { grid-template-columns: 1fr 1fr; }
  .page-madera .tipos-grid { grid-template-columns: repeat(2, 1fr); }
  .page-pvc .tipos-grid { grid-template-columns: repeat(2, 1fr); }
  .page-aluminio .tipos-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-foto-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-foto-grid .span2 { grid-column: span 2; }
  .prod-ventajas-inner { grid-template-columns: repeat(2, 1fr); }
  .ventaja-item + .ventaja-item { border-left: none; }
  .ventaja-item { padding: 0.75rem 1rem; }
  .ventaja-item:first-child { padding-left: 0; }
  .ventaja-item:last-child  { padding-right: 0; }
  .prod-ventajas-inner-alum { grid-template-columns: 1fr; }
  .ventaja-label-alum { font-size: 1.2rem; width: auto; }
  .galeria-masonry { gap: 8px; }
  .aluminio-grid { grid-template-columns: repeat(2, 1fr); }
  .aluminio-item--wide { grid-column: span 2; max-width: 50%; }
}

/* --- Madera --- */

@media (max-width: 1100px) {
    .madera-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .madera-imagen {
        height: 350px;
    }

    .madera-wrap {
        padding-right: 0;
    }
}

@media (max-width: 700px) {
    .madera-section {
        padding: 3rem 1.5rem;
    }

    .madera-card {
        height: clamp(160px, 40vw, 240px);
    }
}

@media (max-width: 640px) {

  .tabla-wrap {
    border-radius: 4px;
  }

  table.specs {
    min-width: unset;
    font-size: 0.8rem;
  }

  table.specs thead th {
    padding: 0.75rem 0.8rem;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  table.specs td {
    padding: 0.75rem 0.8rem;
    line-height: 1.45;
  }

  /* Característica: más corta y en color dorado */
  table.specs td:first-child {
    font-size: 0.75rem;
    color: #8f6629;
    white-space: normal;
    width: 38%;
  }

  /* Valor: ocupa el resto */
  table.specs td:last-child {
    width: 62%;
  }

}

@media (max-width: 600px) {
  .tipos-grid { grid-template-columns: 1fr; }
  .page-madera .tipos-grid,
  .page-pvc .tipos-grid { grid-template-columns: 1fr; }
  .page-aluminio .tipos-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-tipos { padding: 2.5rem 1rem; }
  .prod-tipos h2 { margin-bottom: 1.5rem; }
  .tipo-card, .tipo-card-madera { height: 220px; }
  .prod-foto-grid { grid-template-columns: 1fr 1fr; gap: 5px; }
  .prod-ventajas-inner { grid-template-columns: 1fr; }
  .ventaja-item { padding: 0.75rem 0; }
  .ventaja-item:first-child { padding-left: 0; }
  .ventaja-item:last-child { padding-right: 0; }
  .ventaja-item + .ventaja-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
  .prod-ventajas-alum { padding: 1.5rem 1rem; }
  .ventaja-item-alum { flex-direction: column; align-items: center; gap: 0.8rem; padding: 0.75rem 0; text-align: center; }
  .ventaja-label-alum { font-size: 1rem; white-space: normal; }
  .ventaja-logo { height: 2.2rem; }
  .ventaja-logo-alum { height: 2.5rem; align-self: center; }
  .aluminio-catalogo-btn { font-size: 0.85rem; padding: 0.6rem 1.2rem; }
  .galeria-masonry { gap: 6px; }
  .masonry-col { gap: 6px; }
  .lightbox-img-wrap { max-width: 96vw; max-height: 90vh; }
  .lightbox-img { max-width: 96vw; max-height: 82vh; }
  .lightbox-nav { width: 36px; height: 36px; background: rgba(0,0,0,0.4); }
  .lightbox-nav--prev { left: 0.6rem; }
  .lightbox-nav--next { right: 0.6rem; }
  .galeria-full { padding: 1.5rem 0.75rem 3rem; }
  .galeria-filtros { padding: 0 0.5rem; }
  .aluminio-grid { grid-template-columns: 1fr; }
  .aluminio-item--wide { grid-column: span 1; max-width: 100%; }
  .pvc-sistema { flex-direction: column; gap: 1rem; }
  .pvc-sistema-foto { width: 100%; height: 180px; flex-shrink: 1; }
  .pvc-sistema-info { align-items: flex-start; }
  .pvc-sistema-perfil img { max-width: 80px; }
  .prod-hero-content { padding: 0 1.2rem 2rem; }
  .prod-cta { padding: 2.5rem 1.2rem; }
  .prod-cta-inner { flex-direction: column; align-items: center; text-align: center; }
  .prod-otros { padding: 2rem 1.2rem; }
  .galeria-cta { padding: 2.5rem 1.2rem; }
  .galeria-hero { padding: var(--header-h, 80px) 1.2rem 2rem; }
}

@media (max-width: 480px) {
    .madera-section { padding: 36px 18px; }
    .madera-texto h2 { font-size: 1.4rem; }
    .madera-texto p { font-size: 0.975rem; line-height: 1.55; }
    .madera-imagen img { max-height: 240px; border-radius: 6px; }
}

/* --- Hover / pointer queries --- */

@media (hover: hover) {
    .carrusel-arrow:hover {
        background: rgba(0,0,0,0.12);
        transform: translateY(-50%) scale(1.03);
        box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    }
}

@media (hover: none) {
  .item-overlay { opacity: 1; }
  .galeria-masonry-item:hover img { transform: none; filter: none; }
  .tipo-card:hover img { transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
    .madera-section [data-aos] { transition: none !important; }
}

/* ----- WhatsApp flotante ------ */

.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: wa-pulse 3s ease-in-out 1.5s infinite;
}

@media (max-width: 600px) {
  .wa-float {
    width: 50px;
    height: 50px;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
  }
  .wa-float svg {
    width: 26px;
    height: 26px;
  }
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
  animation: none;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}
