body {
    overflow-x: hidden;
}

.hero {
    height: 98vh;
    position: relative;
}


.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}


.hero .container {
    position: relative;
    z-index: 2;

    transform: translateY(20vh);
}

.hero-text {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
}

.hero .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
}

.nuestro-espacio {
    min-height: 85vh;
    padding-left: 120px;
    padding-right: 0;
    padding-bottom: 0;
}

.espacio-contenido {
    max-width: 630px;
}

.espacio-text {
    width: 85%;
}

.nuestro-espacio-content,
.nuestro-espacio .row {
    min-height: inherit;
}

.nuestro-espacio-imagen {
    display: flex;
    justify-content: flex-end;
    height: 100%;
}

.nuestro-espacio-imagen img {
    width: 100%;
    height: 100%;
    max-height: 90vh;
    object-fit: cover;
}


.cards-servicios {
    width: 100%;
    background-color: var(--index-principal);
}

.card-servicio {
    position: relative;
    display: block;
    height: 340px;
    overflow: hidden;
    background: #000;
}

.card-servicio img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    filter: grayscale(100%) sepia(12%) saturate(55%) brightness(0.9)
        contrast(0.92);

    opacity: 0.9;

    transition: 0.2s;
}

.card-servicio::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(139, 135, 132, 0.32);
    pointer-events: none;
    transition: 0.2s;
}

.card-servicio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(40, 40, 40, 0.28);
    z-index: 1;
    transition: 0.2s;
}

.card-servicio-content {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    text-align: center;
}

.card-servicio-content h3 {
    margin: 0;
    font-family: "Aboreto", serif;
    font-size: clamp(1.4rem, 2vw, 2.3rem);
    line-height: 1.2;
    letter-spacing: 2px;
    color: #f4efe8;
}


.card-servicio:hover img {
    opacity: 0.95;
    filter: grayscale(0%) sepia(0%) saturate(100%) brightness(1) contrast(1);
}

.card-servicio:hover .card-servicio::after {
    background: none;
}

.card-servicio:hover .card-servicio-overlay {
    background: rgba(40, 40, 40, 0);
}


@media (max-width: 991.98px) {
    .card-servicio {
        height: 300px;
    }
}


@media (max-width: 767.98px) {
    .card-servicio {
        height: 240px;
    }

    .card-servicio-content h3 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}


.calidad-profesional {
    background: var(--index-secundario-light);
    overflow: hidden;
}


.calidad-content {
    height: 100%;
    padding: 60px 70px 40px 70px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


.logos-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    gap: 36px 36px;
    align-items: start;
    justify-content: center;
}


.logo-box {
    width: auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    padding: 12px 18px;
}


.logo-box img {
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;


    filter: grayscale(100%) brightness(0.52) contrast(0.9) sepia(4%);

    opacity: 0.65;
    transition:
        opacity 0.3s ease,
        filter 0.3s ease;
}


@media (max-width: 991.98px) {
    .logos-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 16px;
    }

    .logo-box {
        width: 100%;
        height: 88px;
    }
}


@media (max-width: 767.98px) {
    .logos-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .logo-box {
        height: 82px;
    }
}


.calidad-image {
    height: 100%;
    min-height: 100%;
}

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



.galeria-espacios {
    width: 100%;
    overflow: hidden;
}

.galeria-item {
    display: block;
    width: 100%;
    height: 100%;
}

.galeria-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.galeria-item:hover img {
    transform: scale(1.03);
}

.seccion-reserva {
    background: #f2f2f2;
    padding: 64px 0;
}

.reserva-text {
    max-width: 540px;
    font-size: 1.15rem;
    line-height: 1.35;
    color: var(--index-principal);
    font-weight: 300;
}


.reserva-info {
    padding-top: 4.5rem;
}

.reserva-contacto {
    text-align: right;
}

.reserva-contacto p {
    color: #9a9a9a;
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
}


.reserva-btn {
    background: #7f7a76;
    color: #fff;
    padding: 10px 34px;
    font-size: 1rem;
    transition: 0.3s ease;
}

.reserva-btn:hover {
    background: #6f6a66;
    color: #fff;
}


.reserva-linea {
    margin: 2rem 0 1rem;
    border-top: 1px solid var(--principal);
    opacity: 1;
}


.reserva-redes {
    justify-content: flex-end;
}

.red-social {
    background: #d3cbc1;
    color: #7f7a76;
    padding: 10px 24px;
    font-size: 0.95rem;
    transition: 0.3s ease;
}

.red-social:hover {
    background: #c6beb4;
    color: #6e6965;
}

@media (max-width: 1199.98px) {
    .nuestro-espacio {
        min-height: auto;
        padding-top: 64px;
        padding-left: 64px;
    }

    .espacio-contenido {
        max-width: 100%;
    }

    .espacio-text {
        width: 100%;
    }

    .nuestro-espacio .row {
        row-gap: 40px;
    }

    .nuestro-espacio-imagen {
        height: 520px;
    }
}


@media (max-width: 991.98px) {
    .reserva-info {
        padding-top: 0;
    }

    .reserva-contacto,
    .reserva-redes {
        text-align: left;
        justify-content: flex-start;
    }

    .reserva-text {
        max-width: 100%;
    }
}


@media (max-width: 575.98px) {
    .seccion-reserva {
        padding: 60px 0;
    }

    .reserva-title {
        margin-bottom: 1.5rem;
    }

    .reserva-text {
        font-size: 1rem;
    }

    .red-social,
    .reserva-btn {
        width: 100%;
        text-align: center;
    }
}


@media (max-width: 991.98px) {
    .galeria-item img {
        height: 190px;
    }
}



@media (max-width: 767.98px) {
    .nuestro-espacio {
        padding: 50px 20px;
    }

    .nuestro-espacio .row {
        row-gap: 30px;
    }

    .espacio-contenido {
        text-align: left;
    }

    .espacio-text {
        width: 100%;
        font-size: 16px;
        line-height: 1.6;
    }

    .nuestro-espacio-imagen {
        height: 340px;
    }

    .nuestro-espacio-imagen img {
        border-radius: 12px;
    }
}


.galeria-item {
    display: block;
    overflow: hidden;
}

.galeria-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: 0.3s ease;
}

.galeria-item:hover img {
    transform: scale(1.03);
}


@media (max-width: 991.98px) {
    .galeria-item img {
        height: 260px;
    }
}


@media (max-width: 767.98px) {
    .galeria-item img {
        height: 190px;
    }
}

@media (max-width: 767.98px) {
    .galeria-item img {
        height: 170px;
    }
    .logos-grid {
        display: grid;
        grid-template-columns: repeat(2, 280px);
        gap: 16px 18px;
        justify-content: center;
        align-content: center;
    }
    .aboreto-title {
        font-size: 44px;
    }
}


@media (max-width: 575.98px) {
    .galeria-item img {
        height: 150px;
    }
}


@media (max-width: 1399.98px) {
    .calidad-content {
        padding: 50px 45px 35px;
    }

    .logos-grid {
        grid-template-columns: repeat(2, 280px);
        gap: 16px 18px;
    }

    .logo-box {
        width: 280px;
        height: auto;
        aspect-ratio: 350 / 101;
    }
}


@media (max-width: 991.98px) {
    .calidad-content {
        padding: 40px 20px;
    }

    .calidad-title {
        font-size: 2.6rem;
        margin-bottom: 24px;
    }

    .calidad-image {
        min-height: 420px;
    }
}


@media (max-width: 575.98px) {
    .calidad-title {
        font-size: 2rem;
    }

    .logos-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        justify-items: center;
    }

    .calidad-image {
        min-height: 320px;
    }
}


@media (min-width: 992px) {
    .hero-text {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .hero-text {
        font-size: 1rem;
    }
}
