/* =========================================
   1. BASE & CONFIGURACIÓN GENERAL
========================================= */
@font-face {
    font-family: 'Roboto';
    src: url('Assets/Font-Roboto/Roboto-Italic-VariableFont_wdth\,wght.ttf') format('truetype');
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    background-color: #f4f2ed;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.text-orange {
    color: #fea501 !important;
}

/* =========================================
   2. NAVEGACIÓN (Estilos Base - Móvil)
========================================= */
.nav {
    z-index: 100;
    background-color: #f5f3eda6;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.nav-ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0;
}

.nav-ul li:not(.nav-dot-container) {
    display: flex;
    width: 100%;
    background-color: #fea501;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.nav-ul a {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 15px 0;
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    font-size: 1.3rem;
}

.nav-dot-container {
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
    width: 100%;
    margin: 10px 0;
    max-height: none !important;
    opacity: 1 !important;
}

.nav-dot {
    width: 35px;
    height: 35px;
    background-color: #fea501;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}

.nav-dot::before {
    content: ". . .";
    color: white;
    font-size: 2.2rem;
    line-height: 0;
    margin-bottom: 9px;
}

#menu-check:checked~.nav-ul li:not(.nav-dot-container) {
    max-height: 100px;
    opacity: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#menu-check:checked~.nav-ul .nav-dot {
    transform: rotate(90deg);
}

/* =========================================
   3. CONTENIDO GENERAL (Móvil)
========================================= */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.logo img {
    width: 50%;
    height: auto;
}

.hero {
    background-image: url(Assets/About/BG-Desktop.jpg);
    background-size: cover;
    background-position: center;
    min-height: 60vh;
}

.nuestroProyecto {
    padding: 6rem 0;
}

.container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nuestroProyecto-container .title {
    font-size: 3.5rem;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
}

.nuestroProyecto-container p {
    color: #fea501;
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-top: 10px;
    text-align: center;
}

.nuestroProyecto-dot {
    width: 70px;
    height: 70px;
    background-color: #fea501;
    border-radius: 50%;
    margin: 4rem 0;
}

/* MASTER PLAN (Móvil) */
.master-plan {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    background-color: #e6c17d;
    color: white;
}

.master-plan-image {
    grid-column: span 2;
}

.master-plan-image img {
    width: 100%;
    height: 45vh;
    object-fit: cover;
}

.master-plan-info,
.master-plan-amenidades {
    padding: 2.5rem 1.5rem;
}

.master-plan-info {
    text-transform: uppercase;
    line-height: 1.1;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.master-plan-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.master-plan-info p {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.master-plan-amenidades h3 {
    font-size: 1.6rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.nuestroProyecto-logos {
    display: flex;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.nuestroProyecto-logos img {
    height: 50px;
}

/* --- ESTILOS DEL CARRUSEL MODELOS --- */
.carousel-section {
    padding: 2rem 0;
    background-color: #f4f2ed;
}

.carousel-container {
    position: relative;
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

.slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.slide-image img {
    max-width: 100%;
    height: auto;
}

.info-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin: 0;
}

.area-detail {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    justify-items: center;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-item img {
    height: 40px;
    margin-bottom: 0.5rem;
}

.info-item p {
    font-size: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    color: black;
}

.tower-location {
    grid-column: span 3;
    margin-top: 1rem;
}

.tower-location img {
    max-width: 120px;
}

/* Flechas Carrusel Modelos (Diseño Vidrio) */
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-150%);
    width: 45px;
    height: 45px;
    background-color: rgba(213, 208, 208, 0.2);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.arrow-btn::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 3px solid white;
    border-right: 3px solid white;
    display: block;
}

.arrow-btn.prev {
    left: 10px;
}

.arrow-btn.prev::before {
    transform: rotate(-135deg);
    margin-left: 5px;
}

.arrow-btn.next {
    right: 10px;
}

.arrow-btn.next::before {
    transform: rotate(45deg);
    margin-right: 5px;
}

.arrow-btn:hover {
    background-color: #fea501;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #fea501;
}

/*==================================
        Amenidades (Móvil)
===================================*/
.amenidades {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    min-height: 60vh;
}

.amenidades-render {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.render-carousel-track {
    display: flex;
}

.render-slide {
    min-width: 100%;
}

.render-slide img {
    width: 100%;
    height: auto;
}

/* Flechas Carrusel Amenidades (Diseño Vidrio) */
.render-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.render-arrow-btn::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 3px solid white;
    border-right: 3px solid white;
    display: block;
}

.render-arrow-btn.prev {
    left: 15px;
}

.render-arrow-btn.prev::before {
    transform: rotate(-135deg);
    margin-left: 5px;
}

.render-arrow-btn.next {
    right: 15px;
}

.render-arrow-btn.next::before {
    transform: rotate(45deg);
    margin-right: 5px;
}

.render-arrow-btn:hover {
    background-color: #fea501;
}

.amenidades-list {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5rem 0;
}

/* Aplicamos el ancho al picture para que contenga correctamente la imagen */
.amenidades-list picture {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.amenidades-list img {
    width: 90%;
    height: auto;
    max-width: 450px; /* Evita que la versión móvil se estire demasiado en tablets */
}

/*==================================
        Sección Galería
===================================*/
.seccion-galeria {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.galeria-carousel-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.galeria-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
}

.galeria-slide {
    min-width: 100%;
    height: 100%;
}

.galeria-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Flechas Carrusel Galería (Diseño Vidrio Original) */
.galeria-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.galeria-arrow-btn::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 3px solid white;
    border-right: 3px solid white;
    display: block;
}

.galeria-arrow-btn.prev {
    left: 20px;
}

.galeria-arrow-btn.prev::before {
    transform: rotate(-135deg);
    margin-left: 5px;
}

.galeria-arrow-btn.next {
    right: 20px;
}

.galeria-arrow-btn.next::before {
    transform: rotate(45deg);
    margin-right: 5px;
}

.galeria-arrow-btn:hover {
    background-color: #fea501;
    transform: translateY(-50%) scale(1.1);
}

/*==================================
        Sección Ubicación
===================================*/
.ubicacion {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 6rem 0;
}

/* Contenedor principal: apila los elementos en columna en móvil */
.ubicacion>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    width: 90%;
    max-width: 1200px;
}

/* Contenedores de las imágenes */
.ubicacion>div>div {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Control del tamaño de los SVG para móvil */
.ubicacion img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
}

/*==================================
        Sección Contacto
===================================*/
.contacto {
    background-color: #261c21;
    padding: 6rem 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.contacto-container {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacto-title {
    text-align: center;
    font-size: 2.2rem;
    color: white;
    text-transform: uppercase;
    margin-bottom: 4rem;
    line-height: 1.3;
}

.contacto-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    color: #fea501;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 1.5rem;
    border: none;
    background-color: #f4f2ed;
    font-family: inherit;
    font-size: 1.4rem;
    outline: none;
    color: #2c2c2c;
}

.form-submit {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-enviar {
    background-color: #fea501;
    color: white;
    border: none;
    padding: 1.2rem;
    font-size: 1.4rem;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    font-family: inherit;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-enviar:hover {
    background-color: #d18700;
}

/*==================================
        WhatsApp Flotante
===================================*/
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/*==================================
        Footer (Móvil)
===================================*/
.footer {
    background-color: #161616;
    /* Color súper oscuro calcado de tu diseño */
    color: #f4f2ed;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    /* Separación entre los 3 bloques */
    text-align: center;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-info p {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 300;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

.footer-social img {
    width: 35px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-social img:hover {
    transform: scale(1.1);
    /* Pequeño efecto al pasar el mouse */
}

.footer-credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-credits p {
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-credits img {
    height: 40px;
    /* Ajusta este valor dependiendo de cómo venga tu SVG */
    width: auto;
}

/* =========================================
   4. MEDIA QUERY (Escritorio 811px+)
========================================= */
@media (min-width: 811px) {
    .nav {
        height: 57px;
        display: flex;
        align-items: center;
    }

    .nav-ul {
        flex-direction: row;
        justify-content: center;
        gap: 5rem;
        height: 100%;
    }

    .nav-ul li:not(.nav-dot-container) {
        max-height: none;
        opacity: 1;
        background: none;
        width: auto;
    }

    .nav-ul a {
        color: black;
        padding: 0 10px;
        font-size: 1.2rem;
    }

    .nav-ul a:hover {
        color: #fea501;
    }

    .nav-dot-container {
        order: 0;
        width: auto;
        margin: 0;
    }

    .nav-dot {
        width: 32px;
        height: 32px;
    }

    .nav-dot::before {
        display: none;
    }

    .logo img {
        width: 30%;
    }

    .hero {
        min-height: 100vh;
    }

    .nuestroProyecto {
        padding: 8rem 0;
    }

    .nuestroProyecto-container .title {
        font-size: 5.5rem;
    }

    .nuestroProyecto-container p {
        color: #fea501;
        font-size: 1.6rem;
        text-transform: uppercase;
        text-align: center;
        justify-content: center;
    }

    .nuestroProyecto-dot {
        width: 90px;
        height: 90px;
    }

    /* MASTER PLAN DESKTOP (Solución Grid) */
    .master-plan {
        display: grid;
        grid-template-columns: 50% 50%;
        /* Mitad para imagen, mitad para texto */
        text-align: left;
        width: 100%;
    }

    .master-plan-image {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        /* Obliga a la imagen a abarcar la altura de los 2 bloques de texto */
    }

    .master-plan-image img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        /* Cambiamos 100vh por 100% para evitar desbordamientos */
        object-fit: cover;
    }

    .master-plan-info {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        /* Fila superior derecha */
        padding: 4rem 4rem 2rem 8rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        /* Empuja el texto hacia el centro vertical */
    }

    .master-plan-amenidades {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        /* Fila inferior derecha */
        padding: 2rem 4rem 4rem 8rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .master-plan-info h2 {
        font-size: 6rem;
        margin-bottom: 2rem;
        letter-spacing: 2px;
    }

    .master-plan-info p {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .master-plan-amenidades h3 {
        font-size: 3.5rem;
        margin-top: 3rem;
        margin-bottom: 1rem;
    }

    .master-plan-amenidades p {
        font-size: 2rem;
    }

    .nuestroProyecto-logos img {
        height: 70px;
    }

    .render-carousel-container {
        height: 100vh;
    }

    .amenidades-list {
        padding: 10rem 0;
    }

    .amenidades-list img {
        width: 100%; 
        max-width: 1200px; /* Límite de ancho para la versión de escritorio */
    }

    /* CARRUSEL MODELOS DESKTOP */
    .slide-content {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: space-around;
        width: 100%;
        padding: 0 50px;
    }

    .slide-image {
        width: 50%;
    }

    .slide-info {
        width: 45%;
    }

    .info-header h2 {
        font-size: 4.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .info-header p {
        font-size: 1.8rem;
        text-align: center;
        line-height: 1.5;
    }

    /* TRIÁNGULO INVERTIDO (3-2-1) + TORRE */
    .info-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 2rem 0;
        max-width: 550px;
        margin: 3rem auto 0;
    }

    .info-item:nth-child(1) {
        grid-column: 1 / 3;
    }

    .info-item:nth-child(2) {
        grid-column: 3 / 5;
    }

    .info-item:nth-child(3) {
        grid-column: 5 / 7;
    }

    .info-item:nth-child(4) {
        grid-column: 2 / 4;
    }

    .info-item:nth-child(5) {
        grid-column: 4 / 6;
    }

    .info-item:nth-child(6) {
        grid-column: 3 / 5;
    }

    .tower-location {
        grid-column: 3 / 5;
        grid-row: 4;
        margin-top: 2rem;
    }

    .amenidades {
        padding: 0;
    }

    .tower-location img {
        max-width: 160px;
    }

    .galeria-carousel-container {
        height: 100vh;
    }

    .galeria-arrow-btn {
        width: 60px;
        height: 60px;
    }

    /* UBICACIÓN DESKTOP */
    .ubicacion {
        padding: 8rem 0;
        min-height: auto;
    }

    .ubicacion>div {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5rem;
        width: 100%;
        max-width: 1600px;
        padding: 0 4rem;
    }

    /* Contenedor del Mapa (Izquierda) */
    .ubicacion>div>div.mapa {
        width: 60%;
        display: flex;
        justify-content: flex-start;
    }

    /* Contenedor de Destinos (Derecha) */
    .ubicacion>div>div.destinos {
        width: 40%;
        display: flex;
        justify-content: flex-start;
    }

    /* --- ESTA ES LA CLAVE PARA QUE CREZCA --- */
    /* Apuntamos directamente a la imagen dentro de .mapa para quitarle el límite móvil */
    .mapa img {
        width: 100%;
        max-width: 1200px;
        /* Le damos permiso de crecer a lo grande */
    }

    /* Controlamos el tamaño de la lista de destinos para que no se vea desproporcionada */
    .destinos img {
        width: 100%;
        max-width: 450px;
    }

    /* CONTACTO DESKTOP */
    .contacto {
        padding: 10rem 0;
        min-height: 80vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .contacto-title {
        font-size: 3.5rem;
        margin-bottom: 6rem;
    }

    .contacto-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 columnas iguales */
        gap: 3rem 5rem;
    }

    /* Acomodamos el botón en la columna derecha para que alinee con "Teléfono" */
    .form-submit {
        margin-top: 0;
        justify-content: center;
        align-items: flex-end;
        /* Lo empuja hacia abajo para alinearse con el input */
    }

    .btn-enviar {
        width: 70%;
        /* En escritorio no abarca todo el ancho, como en tu diseño */
        padding: 1.5rem;
        margin-top: 2.5rem;
    }

    /* FOOTER DESKTOP */
    .footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 4rem 6rem;
        text-align: left;
    }

    /* Le damos a cada bloque el mismo peso (flex: 1) para que el de en medio quede perfectamente centrado */
    .footer-info {
        flex: 1;
        align-items: flex-start;
    }

    .footer-social {
        flex: 1;
        gap: 3.5rem;
    }

    .footer-social img {
        width: 40px;
        /* Iconos un poco más grandes en PC */
    }

    .footer-credits {
        flex: 1;
        flex-direction: row;
        /* Ponemos el texto y el logo lado a lado */
        justify-content: flex-end;
        /* Lo empujamos todo a la derecha */
    }

    .footer-credits img {
        height: 50px;
    }
}