@import url("https://fonts.googleapis.com/css?family=Nunito+Sans:100,200,300,400,500,600,700,800&display=swap");

body {
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1.6;
    overflow-y: scroll; /* Asegura que la página sea scrollable */
    scroll-snap-type: y mandatory; /* Activa el scroll por sección */
}

section {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.full-height {
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header y Hero Image */
.hero {
    background-image: url('img/1.jpeg'); /* Reemplaza con tu imagen */
    background-color: rgba(0, 0, 0, 0.5); /* Capa oscura */
    background-blend-mode: multiply;
    justify-content: flex-start;
}

.hero-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
}

.contact-button {
    background-color: rgb(15,15,15); /* Amarillo Pulppo */
    color: #f5f4f3;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.contact-button-white {
    background-color: #ffffff; /* Amarillo Pulppo */
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    width: 30%;
}

.hero-content {
    padding-top: 170px; /* Espacio para el header fijo */
    text-align: left;
    max-width: 500px;
    padding-left: 40px;
    left: 10%;
    position: absolute;
}

.exclusive-tag {
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    margin-bottom: 10px;
    display: inline-block;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.property-meta {
    font-size: 1.2em;
    color: #eee;
    margin-bottom: 20px;
}

/* Agente Flotante dentro del Hero */
.hero .agent-info-floating {
    position: absolute; /* Cambiado a absolute para que quede dentro del hero */
    bottom: 0; /* Pegado a la parte inferior */
    left: auto;
    width: 60%; /* Ocupa todo el ancho del hero */
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px 20px;
    border-radius: 0; /* Sin bordes redondeados en la parte inferior */
    display: grid;
    grid-template-columns: auto 1fr auto; /* Tres columnas: foto | info | logo */
    align-items: center;
    gap: 15px;
    text-align: left; /* Alinear texto a la izquierda */
}

.hero .agent-info-floating .img-asesor {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.hero .agent-info-floating .agent-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero .agent-info-floating .agent-name {
    font-weight: bold;
    margin-bottom: 0;
}

.hero .agent-info-floating .agent-phone {
    font-size: 0.9em;
    color: #eee;
}

.hero .agent-info-floating .company-logo {
    height: 55px;
}

.company-logo {
    height: 20px;
}

h1 {
    font-family: Heldane, ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-weight: bold; /* Puedes ajustar el peso si es necesario */
    color: #ffffff; /* Color de texto predeterminado para títulos */
    /* Otros estilos comunes para títulos */
    line-height: 1.2;
    margin-bottom: 20px;
}

span.exclusive-tag img {
    max-width: 15px;
}

p.description-short {
    border-left: 2px solid #fce029;
    padding: 10px;
}

.dark {
    background-color: #202322;
}

.description-video-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas por defecto */
    gap: 20px;
    align-items: start;
}

.property-description {
    text-align: left;
}

.property-video {
    text-align: left;
}

.property-video h2 {
    margin-top: 0;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 560 / 315;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* Diseño responsivo para pantallas más pequeñas (opcional) */
@media (max-width: 1000px) {
    .description-video-container {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 40px; /* Aumentar el espacio entre elementos apilados */
    }

    .property-description,
    .property-video {
        text-align: center; /* Centra el contenido en pantallas pequeñas */
    }

    .hero .contact-button-white {
        display: none;
    }
    .hero-content{
        padding-left: 0;
        position: absolute;
        left: 10%;
    }
}

/* Botón de WhatsApp Flotante - Fijo en toda la pantalla */
.whatsapp-float {
    position: fixed; /* Se mantiene fixed para flotar */
    right: 20px;
    bottom: 20px; /* Ajustado para no superponerse con el asesor */
    background-color: #ffffff; /* Color verde de WhatsApp */
    color: #000000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    font-size: 2em;
    z-index: 1000;
    text-decoration: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.property-details-section {
    background-color: #202322; /* Fondo oscuro como en la imagen */
    color: #fff;
    padding: 40px 20px; /* Espaciado interno */
}

.property-details-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Distribución flexible de las columnas */
    gap: 20px;
    align-items: center;
    text-align: center;
    margin-top: 70px;
}

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

.detail-item i {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.detail-item span:first-child {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 5px;
}

.detail-item span:last-child {
    font-size: 0.9em;
    color: #aaa;
}

.detail-item.price {
    grid-column: 1 / -1; /* Ocupa todo el ancho en pantallas pequeñas */
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    background: white;
    padding: 10px;
}

@media (min-width: 768px) {
    .property-details-grid {
        grid-template-columns: repeat(6, 1fr); /* Seis columnas en pantallas más grandes */
    }

    .detail-item.price {
        grid-column: 7 / -1; /* Ocupa las últimas columnas en pantallas grandes */
        text-align: right;
        margin-top: 0;
    }
}

/* Líneas inferiores */
.detail-item span:first-child::after {
    content: "";
    display: block;
    width: 50px;
    height: 1px;
    background-color: #fce02a;
    margin: 5px auto 0;
}

@media (max-width: 767px) {
    .detail-item span:first-child::after {
        margin-left: auto;
        margin-right: auto;
    }
}
.detail-item.price span {
    color: #444;
}

.white-space {
    background: white;
}

.white-space h2 {
    color: #212322;
}

.amenity {
    display: inline-block;
    color: #6d6d6d;
    border: 1px solid;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin: 5px;
}

.amenities-grid.white-space {
    padding: 50px;
    text-align: left;
}

/* Estilos para la galería de imágenes con miniaturas (Thumbs gallery loop) */
.gallery-section {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Asegura que el contenido no se desborde */
}

.swiper-gallery-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.swiper-main {
    width: 100%;
    height: 80%; /* Ocupa la mayor parte del alto */
}

.swiper-main .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta la imagen dentro del contenedor sin recortar */
}

/* ... otros estilos de la galería ... */

.swiper-thumbs {
    width: 100%;
    height: auto; /* Ajusta la altura automáticamente según las miniaturas */
    margin-top: auto; /* Empuja las miniaturas hacia la parte inferior */
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden; /* Asegura que no haya desbordamiento vertical */
}

.swiper-thumbs .swiper-wrapper {
    display: flex; /* Alinea las miniaturas horizontalmente */
    align-items: center; /* Centra verticalmente las miniaturas */
    width: fit-content; /* El ancho del wrapper se ajusta al contenido */
}

.swiper-thumbs .swiper-slide {
    width: auto; /* El ancho de cada slide se basa en el contenido (la imagen) */
    height: 100%; /* Ocupa toda la altura del contenedor de miniaturas */
    opacity: 0.6;
    cursor: pointer;
    margin-right: 10px;
}

.swiper-thumbs .swiper-slide:last-child {
    margin-right: 0;
}

.swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #fce02a;
}

.swiper-thumbs .swiper-slide img {
    display: block;
    height: 100%; /* La altura de la imagen se ajusta al contenedor de la miniatura */
    width: auto; /* El ancho de la imagen se ajusta proporcionalmente */
    object-fit: contain; /* Asegura que la imagen completa sea visible */
}

/* ... el resto de tu CSS de la galería ... */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
}

/* Ocultar la paginación */
.swiper-pagination {
    display: none;
}
.swiper-button-next, .swiper-button-prev {
    color: #fce02c !important;
}

.swiper-pagination-bullet-active {
    background: #fce029 !important;
}
.dark-h2 {
    color: #212322;
}

.hero-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0px -5px 11px #6b6b6b;
}
span.tag {
    color: #444;
    border-radius: 5px;
    border: 1px solid;
    padding: 5px 10px;
    display: inline-block;
    margin: 5px;
}

.footer-agent {
    background-color: #0f0f0f;
    padding: 40px 20px;
    text-align: center;
  }
  .agent-info-full {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
  }
  .agent-full-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .agent-photo-full {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
  }
  .agent-name-full {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
  }
  .company-logo-full {
    height: 60px;
    margin-bottom: 10px;
    display: block;
  }
  .more-properties-link {
    text-decoration: none;
    color: #000;
    background-color: #fce02a;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
  }
  .more-properties-link:hover {
    background-color: #e6cb00;
  }