* {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary: #AD5B26;
    --primary-gradient: linear-gradient(135deg,
            #AD5B26 0%,
            #C97330 35%,
            #E6A56E 75%,
            #F4D5B8 100%);
    --dark: #1F1F1F;
    --bg-light: #f4ece3;
    --white: #FFF;
    --radius: 14px;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: "Montserrat", sans-serif;
    background: var(--white);
    color: #333;
    overflow-x: hidden;
    transition: transform .35s ease;
}

body.menu-open {
    overflow: hidden;
    height: 100vh;
}

.page-wrapper {
    transition: transform 0.35s ease;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;
    z-index: 900;
}

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

/* ===========================
   MOBILE MENU
=========================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    gap: 22px;
    transform: translateX(-100%);
    transition: 0.35s ease;
    z-index: 999;
}

body.menu-open .mobile-menu {
    transform: translateX(0);
}

body.menu-open .page-wrapper {
    transform: translateX(250px);
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 14px 25px;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-logo {
    width: 100%;
    padding: 20px 0 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu-logo img {
    width: 140px;
    filter: brightness(1);
}

/* ===========================
   HEADER
=========================== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: background-color .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
}

.solid-header {
    background-color: var(--white);
}

.solid-header .nav a {
    color: var(--dark);
}

.header-container {
    max-width: 1300px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    padding: 8px 25px;
    align-items: center;
}

.logo img {
    height: 42px;
}

.nav a {
    margin-left: 32px;
    text-decoration: none;
    color: var(--white);
    font-size: .95rem;
    padding-bottom: 4px;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 2px;
    width: 0;
    background: var(--primary);
    transition: .3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* ===========================
   MENU BUTTON
=========================== */
.menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 5000 !important;
}

.menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: .3s;
}

.solid-menu-button span {
    background: var(--dark) !important;
}

body.menu-open .menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

body.menu-open .menu-btn span:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===========================
   HERO
=========================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .42), rgba(0, 0, 0, .25));
    z-index: -1;
}

.hero-content {
    color: #fff;
    opacity: 0;
    animation: fadeUp 1.2s ease forwards;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    width: 100%;
    padding: 0 40px;
    position: relative;
    text-align: left;
    z-index: 2;
}

.hero-left {
    max-width: 600px;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 360px;
    max-width: 40vw;
    filter: drop-shadow(0 10px 35px rgba(0, 0, 0, .6));
}

.hero-content h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    font-weight: 800;
}

.hero-content p {
    margin-top: 15px;
    font-size: 1.25rem;
}

.cta {
    position: relative;
    display: inline-block;
    margin-top: 25px;
    padding: 20px 25px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(173, 91, 38, 0.5);
    overflow: hidden;
    transition: .3s;
}

.cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: .5s;
}

.cta:hover {
    background: #b46a34;
}

.cta:hover::after {
    left: 150%;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   SECCIONES GENERALES
=========================== */
section {
    margin: auto;
    padding: 70px 25px;
}

/* ===========================
   SERVICIOS
=========================== */
.serv-title {
    position: relative;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--dark);
    padding-bottom: 5px;
}

.serv-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.nosotros p {
    max-width: 700px;
    margin: 0 auto 45px;
}

.servicios {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.serv-item {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: .3s;
}

.serv-item h3 {
    position: relative;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.serv-item h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.serv-icon {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.serv-icon img {
    width: 95%;
    object-fit: contain;
}

.serv-vermas {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dark);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: .25s ease;
}

.serv-vermas i {
    color: var(--primary);
    margin-top: 2px;
    font-size: 1.3rem;
    transition: .25s ease;
}

.serv-vermas:hover {
    color: #8a451d;
}

.serv-vermas:hover i {
    transform: translateX(4px);
}

/* ===========================
   OBRAS
=========================== */
.obras {
    background: var(--bg-light);
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 70px 25px;
}

.obras-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--dark);
    text-align: center;
    position: relative;
}

.obras-title::after {
    content: "";
    width: 100px;
    height: 4px;
    background: var(--primary);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.obras-galeria {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    border: 1px solid var(--dark);
}

.obra-card {
    position: relative;
    border: 1px solid var(--dark);
    overflow: hidden;
    cursor: pointer;
}

.obra-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.obra-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    transition: .3s ease;
    display: flex;
    align-items: flex-end;
    padding: 15px;
    pointer-events: none;
}

.obra-overlay span {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

.obra-card:hover .obra-overlay {
    opacity: 1;
}

.obra-hidden {
    display: none;
}

/* VER MÁS */
.btn-ver-mas {
    position: relative;
    top: -20px;
    width: 100%;
    padding: 26px 35px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    background: linear-gradient(to top, var(--bg-light) 80%, transparent 100%);
    color: var(--dark);
    display: block;
    transition: .3s;
}

.btn-ver-mas i {
    position: relative;
    top: 2px;
}

.ver-menos {
    background: transparent;
    color: var(--dark);
    top: -20px;
}

/* ===========================
   LIGHTBOX
=========================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: .3s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius);
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 3.2rem;
    color: var(--white);
    cursor: pointer;
    font-weight: 400;
    transition: .3s ease;
}

.close-lightbox:hover {
    opacity: .8;
}


/* ===========================
   FAQ
=========================== */
.faq-section {
    padding: 70px 25px;
    max-width: 900px;
    margin: auto;
}

.faq-title {
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    color: var(--dark);
    margin-bottom: 40px;
    position: relative;
}

.faq-title::after {
    content: "";
    width: 100px;
    height: 4px;
    background: var(--primary);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 5px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    font-size: 1.5rem;
    transition: .3s;
    color: var(--primary);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 5px;
    transition: max-height .3s ease;
}

.faq-answer p {
    padding: 0 0 18px;
    font-size: 1rem;
    color: #444;
}

/* ===========================
   FOOTER
=========================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 25px 30px;
    margin-top: 80px;
}

.footer-grid {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    width: 160px;
    filter: brightness(0.95);
}

.footer-slogan {
    margin-top: 12px;
    font-size: 1rem;
    color: #ddd;
    font-weight: 500;
    letter-spacing: .5px;
}

.footer-location {
    font-size: .9rem;
    margin-top: 7px;
    opacity: .5;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: var(--white);
    font-weight: 700;
}

.footer-col a {
    display: block;
    color: #ccc;
    text-decoration: none;
    font-size: .95rem;
    margin-bottom: 8px;
    transition: .25s ease;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-col-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px;
}

.footer-qr-box {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.footer-qr {
    width: 150px;
}

.footer-social {
    text-align: center;
    margin: 45px 0 25px;
}

.footer-social a {
    border: 2px solid var(--white);
    border-radius: 50%;
    padding: 3px 5px 0;
    color: var(--white);
    font-size: 2rem;
    margin: 0 15px;
    transition: .2s ease;
}

.footer-social a:hover {
    background: var(--white);
    color: var(--primary);
}

.footer-line {
    opacity: .2;
    margin: 10px auto 20px;
    max-width: 1200px;
}

.copyright {
    text-align: center;
    font-size: 1rem;
    opacity: .8;
}

.footer-dev {
    text-align: center;
    font-size: .8rem;
    opacity: .6;
}

.footer-dev a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ===========================
   ANIMACIONES
=========================== */
.animate,
.animate-left,
.animate-right,
.animate-zoom {
    opacity: 0;
}

.animate {
    transform: translateY(40px);
    transition: all .9s ease;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

.animate-left {
    transform: translateX(-40px);
    transition: all .9s ease;
}

.animate-left.show {
    opacity: 1;
    transform: translateX(0);
}

.animate-right {
    transform: translateX(40px);
    transition: all .9s ease;
}

.animate-right.show {
    opacity: 1;
    transform: translateX(0);
}

.animate-zoom {
    transform: scale(.8);
    transition: all .9s ease;
}

.animate-zoom.show {
    opacity: 1;
    transform: scale(1);
}

/* ===========================
   MEDIA QUERIES
=========================== */
@media (max-width: 1113px) {
    .serv-item h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .serv-item p {
        font-size: .9rem;
    }

    .serv-item img {
        width: 80%;
    }
}

@media (max-width: 900px) {
    .servicios {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-qr-box {
        justify-content: center;
    }

    .footer-col-group {
        justify-items: center;
        text-align: center;
    }
}

@media (max-width: 850px) {
    .nav {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .header {
        z-index: 50;
    }

    .hero {
        padding: 5px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 35px;
        padding: 0;
    }

    .hero-right {
        order: -1;
        margin-bottom: 0;
    }

    .hero-right .hero-logo {
        width: 150px;
        max-width: 60vw;
    }

    .hero-left {
        max-width: 100%;
    }
}

@media (max-width: 825px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
}

@media (max-width: 700px) {
    .serv-item h3 {
        margin-bottom: 15px;
    }

    .serv-item img {
        width: 95%;
    }
}

@media (max-width: 665px) {
    .confian-item {
        padding: 0 30px;
    }
}

@media (max-width: 600px) {
    .faq-title {
        font-size: 1.9rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 18px 5px;
    }

    .confian-track {
        gap: 50px;
    }

    .confian-item img {
        height: 70px;
    }

    .serv-title,
    .confian-title,
    .obras-title,
    .faq-title {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .footer-col-group {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        justify-items: center;
    }

    .footer-col a {
        text-align: left;
    }
}

@media (max-width: 500px) {
    .confian-item {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .servicios {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .footer-col-group {
        gap: 0;
    }

    .footer-col-group .footer-col h4 {
        font-size: .9rem;
    }

    .footer-col-group .footer-col a {
        font-size: .8rem;
    }
}

@media (max-width: 400px) {
    .faq-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 1024px) {
    .obra-overlay {
        opacity: 1 !important;
        pointer-events: none;
        background: none;
        align-items: flex-end;
        padding: 0;
    }

    .obra-overlay span {
        background: rgba(0, 0, 0, .65);
        padding: 6px 12px;
        margin: 0 0 10px 10px;
        border-radius: 6px;
        font-size: 1rem;
        font-weight: 600;
    }
}


/* ===========================
   SOBRE NOSOTROS
=========================== */
.sobre-nosotros {
    width: 100%;
    height: 100vh;
    /* altura más baja */
    display: flex;
    align-items: stretch;
    background: #000;
    overflow: hidden;
    /* evita espacios invisibles */
    padding: 0;
    /* NINGÚN padding aquí */
}

.sobre-wrapper {
    width: 100vw;
    /* Cubre 100% del viewport real */
    height: 100%;
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

/* TEXT */
.sobre-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding-left: 25px;
    /* el padding SOLO va en el texto */
    padding-right: 50px;
    box-sizing: border-box;
    min-width: 300px;
}

.sobre-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
    position: relative;
}

.sobre-text h2::after {
    content: "";
    width: 90px;
    height: 4px;
    background: var(--bg-light);
    position: absolute;
    bottom: -6px;
    left: 0;
    border-radius: 2px;
}

.sobre-text p {
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-top: 20px;
}

/* IMAGE */
.sobre-img {
    flex: 1;
    height: 100%;
    margin: 0;
    /* SIN margen */
    padding: 0;
    /* SIN padding */
}

.sobre-img img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    /* llena el espacio sin deformarse */
    object-position: center;
    display: block;
    /* elimina espacio fantasma inline */
    border: none;
}

.mobile-img {
    display: none;
}

@media (max-width: 900px) {

    .mobile-img {
        display: block;
    }

    .sobre-nosotros {
        height: auto;
    }

    .sobre-wrapper {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    /* --- CONVERTIMOS LA COLUMNA DEL TEXTO EN UN CONTENEDOR ORDENABLE --- */
    .sobre-text {
        display: flex;
        flex-direction: column;
        padding: 20px 25px;
        width: 100%;
    }

    .sobre-text h2 {
        order: 1;
    }

    /* --- HACEMOS QUE EL CONTENEDOR DE LA IMAGEN SE "META" DENTRO DEL TEXTO --- */
    .sobre-img {
        order: 2;
        width: 100%;
        display: contents;
        /* truco clave */
    }

    .sobre-img img {
        width: 100%;
        height: auto;
        max-height: 340px;
        margin: 20px 0;
        border-radius: var(--radius);
    }

    .sobre-text p {
        order: 3;
        text-align: justify;
        margin-top: 10px;
    }

    .sobre-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .pc-img {
        display: none;
    }
}


/* ===========================
   CONFÍAN EN NOSOTROS
=========================== */

.slider {
    width: 100%;
    overflow: hidden;
    margin-top: 25px;
}

.slide-track {
    display: flex;
    gap: 50px;
    align-items: center;
}

/* Cada logo */
.slide img {
    height: 80px;
    object-fit: contain;
    filter: grayscale(0%);
    transition: opacity .3s ease;
}

/* MOBILE: carrusel infinito */
@media (max-width: 768px) {
    .slide-track {
        animation: scrollInfinite 5s linear infinite;
    }

    @keyframes scrollInfinite {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }
}

/* PC: mostrar solo los 3 logos originales, centrados, sin animación */
@media (min-width: 769px) {
    .slider {
        overflow: visible;
    }

    .slide-track {
        animation: none !important;
        transform: none !important;

        display: flex;
        justify-content: center;
        gap: 80px;
    }

    /* Ocultamos los duplicados en PC */
    .slide:nth-child(n + 4) {
        display: none;
    }

    .slide img {
        height: 95px;
    }
}

.confian-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--dark);
    position: relative;
}

.confian-title::after {
    content: "";
    width: 110px;
    height: 4px;
    background: var(--primary);
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-radius: 2px;
}