/* Contacto: reduce espacio horizontal entre bloques */
.contacto-row {
    gap: 0 !important;
    max-width: 900px;
    margin: 0 auto;
}
.oficina-block {
    min-width: 340px;
    padding-right: 0 !important;
}
.formulario-block {
    min-width: 340px;
    padding-left: 0 !important;
}
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* === 1. REGLAS GLOBALES === */
html {
    scroll-behavior: smooth;
}

/* === 2. TIPOGRAFÍAS Y UTILIDADES === */
.font-raleway {
    font-family: 'Raleway', Arial, sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-onest {
    font-family: 'Onest', sans-serif;
}

.f-80 {
    font-size: 80px;
}

.f-65 {
    font-size: 65px;
}

.f-58 {
    font-size: 58px;
}

.f-32 {
    font-size: 32px;
}

.f-20 {
    font-size: 20px;
}

.mt-10 {
    margin-top: 8rem;
}

.h415 {
    height: 415px;
}

.text-orange {
    color: #ff7f32;
}

.text-gray {
    color: #989898;
}

.text-decoration-none {
    text-decoration: none;
}

/* === 3. LAYOUT Y SECCIONES PRINCIPALES === */
header#main-head {
    height: 750px;
    min-height: 750px;
    background-image: url('/src/img/fondoHero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

section#lujo {
    height: 750px;
    min-height: 750px;
    background-image: url('/src/img/fondoLujo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

section#contacto {
    height: 750px;
    min-height: 750px;
    background-image: url('/src/img/fondoOscuro.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}



section#Mediterraneo {
    height: 700px;
    min-height: 700px;
    background-image: url('/src/img/fondoMediterrano.png');
    background-size: contain;
    background-position: right;
    background-repeat: no-repeat;
}

section#Calidades {
    position: relative;
    z-index: 2;
}

section#mapa iframe {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

/* === 4. NAVBAR Y MENÚ === */
.menu-underline {
    border-bottom: 1px solid #fff;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-nav .nav-link {
    color: #fff !important;
}

.menu__link {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding-bottom: 0.25rem;
    transition: color 0.2s;
}

.menu__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #e87732;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.4s cubic-bezier(.77, 0, .18, 1);
}

.menu__link:hover::after,
.menu__link:focus::after {
    clip-path: inset(0 0 0 0);
}

/*
.menu__link-bg {
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: #fff;
  transition: color 0.3s ease;
}
.menu__link-bg::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #e87732; 
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  border-radius: 6px; 
}
.menu__link-bg:hover::before,
.menu__link-bg:focus::before {
  transform: scaleY(1);
}
.menu__link-bg:hover,
.menu__link-bg:focus {
  color: #fff; 
}
*/

/* === 5. COMPONENTES === */
/* Botones */
.btn-catalogo {
    background-color: #e87732;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    padding: 0.7em 2em;
    border: none;
    border-top-left-radius: 1.2em;
    border-bottom-right-radius: 1.2em;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    transition: background 0.2s;
    box-shadow: none;
    outline: none;
    display: inline-block;
}

.btn-catalogo:hover,
.btn-catalogo:focus {
    background-color: #d96a28;
    color: #fff;
    text-decoration: none;
}

.btn-construccion {
    background-color: black;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    padding: 0.7em 2em;
    border: none;
    border-top-left-radius: 1.2em;
    border-bottom-right-radius: 1.2em;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    transition: background 0.2s;
    box-shadow: none;
    outline: none;
    display: inline-block;
}

.btn-construccion:hover,
.btn-construccion:focus {
    background-color: #d96a28;
    color: #fff;
    text-decoration: none;
}

.btn-enviar {
    background-color: #e87732;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    padding: 0.3em 1em;
    border: none;
    border-top-left-radius: 1.2em;
    border-bottom-right-radius: 1.2em;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    transition: background 0.2s;
    box-shadow: none;
    outline: none;
    display: inline-block;
}

.btn-enviar:hover,
.btn-enviar:focus {
    background-color: #d96a28;
    color: #fff;
    text-decoration: none;
}

/* Formularios */
.email__personalizado {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    width: 500px;
    padding: 1em;
    max-width: 100%;
}

.email__personalizado::placeholder {
    color: #fff;
}

/* Carrusel */
.carousel-inner img {
    height: 772.5px;
    object-fit: cover;
    width: 100%;
}

.multi-carousel .carousel-img {
    width: 15vw;
    height: 772.5px;
    object-fit: cover;
    transition:
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    z-index: 1;
}

.multi-carousel .carousel-item .carousel-img:nth-child(2) {
    width: 85vw;
    transform: scale(1.08);
    opacity: 1;
    z-index: 2;
}

.multi-carousel .carousel-item .carousel-img {
    z-index: 1;
}

#NuevoHogar .carousel-inner img {
    height: 500px;         /* Ajusta la altura según tu diseño */
    width: 100%;
    object-fit: contain;     /* Recorta para llenar el espacio */
    max-width: 100%;
    margin: 0 auto;
}

/* Marquee */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    background: transparent;
    position: relative;
}

.marquee ul {
    display: inline-block;
    padding: 0;
    margin: 0;
    animation: marquee-left 15s linear infinite;
}

.marquee-rapida ul {
    animation-duration: 10s; /* Más rápida */
}

.marquee-lenta ul {
    animation-duration: 20s; /* Más lenta */
}

.marquee li {
    display: inline-block;
    margin: 0 2rem;
    font-size: 2rem;
    list-style: none;
}

/* Efecto clip-path en los títulos */
.titulo-unifamiliares,
.titulo-triplex {
    position: relative;
    display: inline-block;
}

.titulo-unifamiliares::after,
.titulo-triplex::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.08em;
    width: 100%;
    height: 3px;
    background: #e87732;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.4s cubic-bezier(.77, 0, .18, 1);
    z-index: 1;
}

.titulo-unifamiliares:hover::after,
.titulo-triplex:hover::after {
    clip-path: inset(0 0 0 0);
}

.titulo-unifamiliares.hovered::after,
.titulo-triplex.hovered::after {
    clip-path: inset(0 0 0 0);
}

/* Al hacer hover sobre el carrusel, activa el efecto en el título */
#carouselPlurifamiliares:hover ~ .titulo-unifamiliares::after,
#carouselTriplex:hover ~ .titulo-triplex::after {
    clip-path: inset(0 0% 0 0);
}
/* === 5. MAPA Y POPUP DE LEAFLET === */
        /* Estilos personalizados para el popup de Leaflet */
        .custom-popup .leaflet-popup-content-wrapper {
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        
        .custom-popup .leaflet-popup-tip {
            background: white;
        }
        
        /* Controles del mapa más discretos */
        .leaflet-control-zoom {
            border: none;
            border-radius: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .leaflet-control-zoom a {
            background-color: white;
            color: #666;
            border: none;
        }
        
        .leaflet-control-zoom a:hover {
            background-color: #ff7f32;
            color: white;
        }

        /* === Texto pop-up === */
        .mapa-link {
            text-decoration: none !important;
        }

        .mapa-link:hover,
        .mapa-link:focus {
            text-decoration: none !important;
        }

        /* Si quieres añadir un efecto hover */
        .mapa-link:hover h6 {
            color: #ff6b35 !important;
        }

@keyframes marquee-left {
    0% {
        transform: translateX(0%);
    }

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

/* Calidades hover */
.calidades-hover {
    width: 300px;
    height: 316px;
    background: transparent;
    border: 2px solid transparent;
    border-top-left-radius: 1.2em;
    border-bottom-right-radius: 1.2em;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    transition: background 0.3s;
}

.calidades-hover:hover {
    background: #e87732;
    border-color: #e87732;
}

.calidades-hover:hover img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

.calidades-hover:hover h5,
.calidades-hover:hover p {
    color: #fff !important;
    transition: color 0.3s;
}

/* === 6. ANIMACIONES Y EFECTOS === */
.fade-in-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-down.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.3s;
}

a.a-hover:hover {
    color: #e87732 !important;
    text-decoration: underline;
}



/*Prueba*/
#prueba {
    width: 100vw;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    background: #111;
    padding: 0;
    margin: 0;
}

#prueba section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background: transparent;
}

#prueba section .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111;
}

#prueba section h1 {
    color: white;
    text-shadow: 1px 1px 3px black;
    z-index: 1;
    font-size: 3em;
    font-weight: 400;
}

.footer-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logos img {
    display: block;
    max-width: 180px;
    width: 100%;
    margin-bottom: 8px;
}

.logo-alma-b {
    width: 150px;
    height: 36px;
    object-fit: contain;
}

.logo-longline {
    width: 300px !important;
    height: 73px !important;
    max-width: 300px !important;
    min-width: 300px !important;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 576px) {
    .footer-logos img {
        max-width: 120px;
        margin-bottom: 6px;
    }
    .h415 {
        min-height: 120px;
        padding-bottom: 24px;
        padding-top: 24px;
    }
    footer.bg-dark {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .footer-logos {
        gap: 4px;
    }
    .footer-logos,
    .d-block.mt-3 {
        font-size: 0.95rem;
    }
    .footer-logos img.logo-alma-b {
        margin-bottom: 0;
    }

    .logo-longline {
        width: 220px !important;
        height: 54px !important;
        max-width: 220px !important;
        min-width: 220px !important;
    }
}

/* === 7. MEDIA QUERIES: ADAPTACIÓN BÁSICA A MÓVIL === */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .f-80 {
        font-size: 2.2rem;
    }

    .f-58 {
        font-size: 1.5rem;
    }

    .f-32 {
        font-size: 1.1rem;
    }

    .f-18 {
        font-size: 0.95rem;
    }

    .mt-10 {
        margin-top: 2.5rem;
    }

    .h415 {
        height: auto;
        min-height: 350px;
        padding: 2rem 0;
        background-size: cover;
    }

    .carousel-inner img,
    .multi-carousel .carousel-img {
        height: 220px;
        width: 100vw;
        object-fit: cover;
    }

    .multi-carousel .carousel-img {
        width: 90vw;
    }

    .email__personalizado {
        width: 90vw;
        min-width: 0;
        padding: 0.7em;
    }

    .btn-catalogo,
    .btn-construccion,
    .btn-enviar {
        font-size: 1rem;
        padding: 0.5em 1.2em;
    }

    .calidades-hover {
        width: 90vw;
        height: auto;
        min-height: 180px;
        margin-bottom: 1.5rem;
    }

    .row.align-items-stretch>div[class^="col-"] {
        margin-bottom: 1.5rem;
    }

    .marquee li {
        font-size: 1.1rem;
        margin: 0 0.7rem;
    }

    .w-50 {
        width: 95% !important;
    }

    .container {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
}

@media (max-width: 576px) {
    .footer-logos img {
        max-width: 120px;
        margin-bottom: 6px;
    }
    .h415 {
        min-height: 120px;
        padding-bottom: 24px;
        padding-top: 24px;
    }
    footer.bg-dark {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .footer-logos {
        gap: 4px;
    }
    .footer-logos,
    .d-block.mt-3 {
        font-size: 0.95rem;
    }
    .footer-logos img.logo-alma-b {
        margin-bottom: 0;
    }

    .logo-longline {
        width: 220px !important;
        height: 54px !important;
        max-width: 220px !important;
        min-width: 220px !important;
    }
}

/* Botones del slider */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #e87732 !important;
    border-radius: 50%;
    background-size: 60% 60%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}