/* Variables de color */
:root {
    --primary-color: #2c3e50; /* Azul oscuro para elementos principales */
    --secondary-color: #34495e; /* Azul grisáceo para fondos secundarios */
    --accent-color: #c08c48; /* Tono dorado/cobre para acentos y llamadas a la acción */
    --light-color: #ecf0f1; /* Gris claro para fondos suaves */
    --dark-color: #2c3e50; /* Se mantiene igual que primary-color */
    --text-color: #333; /* Texto principal oscuro */
    --text-light: #fff; /* Texto claro */
    --overlay-color: rgba(0, 0, 0, 0.7); /* Overlay oscuro para imágenes */
    --transition: all 0.3s ease-in-out; /* Transición suave para efectos */
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Evita el scroll horizontal */
    background-color: var(--light-color); /* Fondo global más claro */
}

.container {
    width: 90%;
    max-width: 1200px; /* Aumentado para más espacio */
    margin: 0 auto;
    padding: 0 20px;

}

.container-feed {
    width: 90%;
    max-width: 1400px; /* Más ancho para la galería */
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 25px; /* Más espacio para títulos */
    color: var(--primary-color);
    text-align: center;
}

h1 { font-size: 3.5em; } /* Títulos más grandes en Hero */
h2 { font-size: 2.8em; }
h3 { font-size: 2.2em; }
h4 { font-size: 1.8em; }


p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

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

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
   
}

.btn:hover {
    background-color: darken(var(--accent-color), 10%);
    transform: translateY(-2px); /* Pequeño efecto de elevación */
}

.btn-primary {
    background-color: var(--accent-color);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: darken(var(--primary-color), 10%);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Header / Navbar */
.navbar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(44, 62, 80, 0.95); /* Ligeramente transparente al scrollear */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo img {
    height: 50px;
    /* filter: brightness(0) invert(1); Para logos claros en fondos oscuros */
    transition: var(--transition);
}

.navbar .nav-links {
    list-style: none;
    display: flex;
}

.navbar .nav-links li {
    margin-left: 30px;
}

.navbar .nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.05em;
    padding: 5px 0;
    position: relative;
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: var(--text-light);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section (Home Page) */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-accent);
    }

.home-hero {
    flex-direction: column; /* Mantenemos la dirección para estructuras de carrusel */
    justify-content: center;   /* Centra el contenido verticalmente */
    align-items: center;     /* Centra el contenido horizontalmente */
    padding-top: 140px;          /* Eliminamos el padding superior para un centrado perfecto */
}

#video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

  
.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    color: #ffffff;
}
        

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.search-bar {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.search-bar input {
    padding: 15px 20px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1.1em;
    width: 70%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-bar button {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 15px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1.1em;
    transition: var(--transition);
}

.search-bar button:hover {
    background-color: darken(var(--accent-color), 10%);
}

/* Hero Section (Inner Pages like Casas, Departamentos) */
.hero-inner {
    height: 60vh; /* Más corto para páginas internas */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-inner-bg.webp') center/cover no-repeat;
}

.hero-inner .hero-content h1 {
    font-size: 3.5em;
}

/* Main Carousel - Home Page */
.main-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Ancho máximo para el carrusel */
    margin-top: auto; /* Empuja el carrusel hacia abajo en el hero */
    margin-bottom: 50px; /* Espacio con la siguiente sección */
     height: 500px; /* Añade altura fija si lo prefieres */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-carousel {
    display: flex;
    width: 100%;
    transition: transform 0.8s ease-in-out; /* Transición más lenta y suave */
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    height: 450px; /* Altura fija para las imágenes del carrusel */
    display: flex;
    align-items: flex-end; /* Alinea el caption en la parte inferior */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.8); /* Oscurece ligeramente las imágenes */
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0)); /* Degradado en la parte inferior */
    padding: 30px;
    color: var(--text-light);
    text-align: left;
}

.carousel-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    text-align: left; /* Alineación del título */
}

.carousel-caption p {
    font-size: 1.1em;
    opacity: 0.9;
    line-height: 1.4;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--text-light);
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.8em;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* Propiedades Destacadas / Featured Properties */
.featured-properties {
    padding: 80px 0;
    background-color: var(--light-color);
}

.featured-properties.gray-bg {
    background-color: #2c3e50;
}

.featured-properties h2 {
    text-align: center;
    margin-bottom: 50px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Busque esta parte y cámbiela de 400px a auto */
.property-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 0; /* Quite el padding de aquí para que la imagen toque los bordes */
    height: auto !important; /* <--- CAMBIE ESTO */
}


.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.property-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease; /* Transición para zoom en hover */
}

.property-card:hover img {
    transform: scale(1.05);
}

.property-info {
    padding: 25px;
    flex-grow: 1; /* Permite que el contenido ocupe el espacio disponible */
    display: flex;
    flex-direction: column;
}

.property-info h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: left;
}

.property-info .location {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 10px;
}

.property-info .price {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.property-info .features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-left: 0;
}

.property-info .features li {
    font-size: 0.9em;
    color: #555;
}

.property-info .features i {
    margin-right: 5px;
    color: var(--accent-color);
}

.property-info .btn {
    align-self: flex-start; /* Alinea el botón a la izquierda */
    margin-top: auto; /* Empuja el botón hacia abajo */
}

.view-all-btn {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    text-align: center;
}

/* Sección "¿Por qué elegirnos?" */
.why-choose-us {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.why-choose-us h2 {
    color: var(--text-light);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.08); /* Fondo semi-transparente */
    padding: 30px;
    border-radius: 10px;
    transition: var(--transition);
}

.feature-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 3.5em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.8em;
    color: var(--text-light);
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1em;
    opacity: 0.9;
}

/* Testimonial Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--light-color);
    text-align: center;
    position: relative; /* Para posicionar los controles del carrusel */
}

.testimonials h2 {
    margin-bottom: 50px;
}

.testimonial-carousel {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Para un scroll más suave en iOS */
    position: relative;
    width: 100%;
    margin: 0 auto;
    max-width: 900px; /* Limita el ancho del carrusel de testimonios */
}

.testimonial-slide {
    flex: 0 0 100%; /* Cada slide ocupa el 100% del ancho del contenedor */
    padding: 30px;
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-slide p {
    font-style: italic;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

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

.client-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 0 5px rgba(var(--accent-color-rgb), 0.2);
}

.client-info h4 {
    font-size: 1.4em;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.client-info span {
    font-size: 0.9em;
    color: #777;
}

.testimonial-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(var(--primary-color-rgb), 0.1); /* Botones semi-transparentes */
    color: var(--primary-color);
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-control:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-control.prev {
    left: 20px;
}

.testimonial-control.next {
    right: 20px;
}

/* Blog Section */
.blog {
    padding: 80px 0;
    background-color: #f7f7f7;
}

.blog h2 {
    margin-bottom: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-post h3 {
    font-size: 1.7em;
    padding: 20px 25px 0;
    margin-bottom: 10px;
    text-align: left;
    color: var(--primary-color);
}

.blog-post .post-meta {
    font-size: 0.9em;
    color: #777;
    padding: 0 25px;
    margin-bottom: 15px;
}

.blog-post p {
    padding: 0 25px 20px;
    color: #555;
    flex-grow: 1;
}

.blog-post .read-more {
    display: block;
    padding: 15px 25px;
    background-color: var(--accent-color);
    color: var(--text-light);
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
}

.blog-post .read-more:hover {
    background-color: darken(var(--accent-color), 10%);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact h2 {
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info, .contact-form {
    background-color: var(--text-light);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-info h3, .contact-form h3 {
    font-size: 2em;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: left;
}

.contact-info p {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.1em;
}

.contact-info p i {
    margin-right: 10px;
    color: var(--accent-color);
}

.social-icons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.8em;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.2);
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.form-message {
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Mapa Section */
.map-section {
    padding: 0; /* Sin padding, el mapa ocupa todo el ancho */
    margin-top: 50px;
}

.container-mapa {
    width: 100%;
    max-width: none; /* Asegura que el contenedor del mapa se extienda completamente */
    padding: 0;
}

#map {
    height: 450px; /* Altura del mapa */
    width: 100%;
    border-radius: 0; /* Sin bordes redondeados para el mapa */
}


/* Chatbot */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.chatbot-toggle:hover {
    transform: translateY(-5px) scale(1.05);
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.chatbot-container.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Playfair Display', serif;
}

.chatbot-header h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.5em;
}

.close-chatbot {
    font-size: 1.8em;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-chatbot:hover {
    transform: rotate(90deg);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f7f7f7;
    border-bottom: 1px solid #eee;
}

.message {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 0.95em;
    line-height: 1.4;
}

.user-message {
    background-color: var(--accent-color);
    color: var(--text-light);
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background-color: #e0e0e0;
    color: var(--text-color);
    align-self: flex-start;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.chatbot-input {
    display: flex;
    padding: 15px;
    background-color: var(--text-light);
    border-top: 1px solid #eee;
}

.chatbot-input input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 1em;
}

.chatbot-input button {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-input button:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}


/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 60px 0 20px;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-links h3,
.footer-newsletter h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.6em;
}

.footer-about p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-light);
    opacity: 0.9;
    position: relative;
}

.footer-links ul li a::before {
    content: '\203A'; /* Chevron derecho */
    margin-right: 8px;
    color: var(--accent-color);
    transition: margin-right 0.2s ease;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}
.footer-links ul li a:hover::before {
    margin-right: 12px;
}

.footer-newsletter p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter button {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background-color: darken(var(--accent-color), 10%);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.footer-bottom p {
    margin: 10px 0;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--text-light);
    font-size: 1.4em;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: scale(1.1);
}


/* Gallery Page Specific Styles (casas.html, departamentos.html) */
.gallery-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.gallery-section h2 {
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    background-color: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Altura fija para las imágenes de la galería */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5), rgba(0,0,0,0)); /* Degradado más pronunciado */
    color: var(--text-light);
    padding: 20px;
    transform: translateY(100%); /* Oculto por defecto */
    transition: transform 0.4s ease-in-out;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.8em;
    margin-bottom: 8px;
    color: var(--text-light);
    text-align: left;
}

.gallery-overlay p {
    font-size: 0.95em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.gallery-overlay .price {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.gallery-overlay .features-overlay {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.gallery-overlay .features-overlay span {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-overlay .features-overlay i {
    margin-right: 5px;
    color: var(--accent-color);
}

.gallery-overlay .btn {
    margin-top: 10px;
}

/* Pagination (Example) */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.pagination a {
    color: var(--primary-color);
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: var(--transition);
}

.pagination a.active,
.pagination a:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
}


/* Lightbox/Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Fondo más oscuro */
    overflow: auto;
    backdrop-filter: blur(5px); /* Efecto de desenfoque */
}

.modal-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px; /* Ancho máximo para el modal */
    top: 50%;
    transform: translateY(-50%); /* Centrado vertical */
    animation: fadeInModal 0.3s forwards; /* Animación de entrada */
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-60%) scale(0.95); }
    to { opacity: 1; transform: translateY(-50%) scale(1); }
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    z-index: 10;
}

.modal-prev, .modal-next {
    background: rgba(0, 0, 0, 0.6); /* Fondo más oscuro para botones */
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px; /* Iconos más grandes */
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-prev:hover, .modal-next:hover {
    background: var(--accent-color); /* Fondo de acento al pasar el ratón */
    transform: scale(1.1);
}


/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.2em;
    }

    .main-carousel-container {
        max-width: 90%;
    }

    .testimonial-carousel {
        max-width: 700px;
    }

    .properties-grid,
    .features-grid,
    .blog-grid,
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        flex-direction: column;
        position: fixed;
        width: 100%;
        height: 100vh;
        top: 70px; /* Ajusta según la altura de tu navbar */
        left: 0;
        background-color: var(--primary-color);
        padding-top: 20px;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 998;
    }

    .navbar .nav-links.active {
        transform: translateX(0);
    }

    .navbar .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .navbar .nav-links a {
        font-size: 1.3em;
        padding: 10px 0;
        display: block;
    }

    .hamburger {
        display: flex;
        z-index: 1000;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1em;
    }

    .search-bar {
        flex-direction: column;
        align-items: center;
    }

    .search-bar input,
    .search-bar button {
        width: 90%;
        max-width: 350px;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .search-bar button {
        margin-bottom: 0;
    }

    .property-card {
        height: auto;
    }
    .carousel-item {
        height: auto;
    }
    .blog-post,
    .gallery-item {
        margin: 0 auto;
        max-width: 400px; /* Limita el ancho en móviles */
    
    }

    .footer-bottom {
        flex-direction: column;
        padding-top: 20px;
    }

    .footer-bottom p {
        margin-bottom: 15px;
    }

    .chatbot-container {
        width: 90%;
        right: 5%;
        left: 5%;
    }
    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
    }
    .modal-nav button {
        font-size: 20px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.6em; }
    h4 { font-size: 1.4em; }

    .hero-content {
        padding: 15px;
    }

    .main-carousel-container {
        height: 300px;
        margin: 0 auto;
    }
    .carousel-slide {
        height: 300px; /* Más pequeño en móviles */
    }
    .carousel-caption h3 {
        font-size: 1.8em;
    }
    .carousel-caption p {
        font-size: 0.9em;
    }
    .carousel-control {
        font-size: 1.5em;
        padding: 10px;
    }

    .testimonial-slide {
        padding: 20px;
    }

    .chatbot-header h3 {
        font-size: 1.2em;
    }
    .close-chatbot {
        font-size: 1.5em;
    }
    .message {
        font-size: 0.85em;
    }
}


/* comentarios  */

/* Estilos para comentarios */
.comments-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.comment-form-container, .comments-list {
    flex: 1;
    min-width: 300px;
}

.comment-form {
    background: #2c3e50;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #1321b5;
    border-radius: 4px;
    font-size: 16px;
    background: rgba(255,255,255,0.9);
    color: #333;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comments-list h3 {
    margin-bottom: 20px;
    color: #333;
}

#commentsContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-name {
    font-weight: bold;
    display: block;
}

.comment-date {
    font-size: 12px;
    color: #777;
}

.no-comments, .error-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

.comments-footer {
    margin-top: 30px;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a5276;
    color: #1a5276;
}

.btn-outline:hover {
    background: #1a5276;
    color: white;
}

#loadingIndicator {
    margin-top: 15px;
    color: #666;
}
/* Añadir estos estilos al final del archivo */

/* Sistema de estrellas */
.star-rating {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.star {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star:hover,
.star.active {
    color: #f1c40f;
}

/* Ajustes para los comentarios sin foto */
.client-info {
    display: block;
    margin-top: 15px;
}

.client-info img {
    display: none;
}

.client-name {
    font-weight: bold;
    font-size: 1em; /* Asegura un tamaño legible */
}

.comment-date {
    font-size: 0.8rem;
    color: #777;
    display: block;
    margin-top: 5px;
}


.cta-button {
    background-color: white;
    border: 2px solid var(--text-light);
    padding: 15px 40px;
    font-size: 1rem;
    margin-top: 20px;
    justify-content: center;
    
}



/* hero */
/* Estilos para la sección Hero interna (ej. en casas.html) */
.hero-inner {
    position: relative; /* Necesario para posicionar contenido o pseudo-elementos */
    width: 100%;
    height: 100vh; /* O la altura que desees, por ejemplo, 400px, 80vh. Vh = viewport height */
    overflow: hidden; /* Asegura que la imagen no se salga si es muy grande */
    display: flex; /* Para centrar contenido si lo hubiera, aunque la imagen lo cubra */
    align-items: center;
    justify-content: center;
}

/* Ajustes para el carrusel dentro del hero (si solo es una imagen grande, el carrusel es redundante) */
.hero-inner .carousel {
    position: absolute; /* Para que ocupe todo el espacio del hero-inner */
    top: 0;
    left: 0;
    width: 100%;
    height: 110%; /* Lo mantengo como lo tenías, para un posible efecto de "overflow" */
    overflow: hidden; /* Importante para el recorte de la imagen */
}

.hero-inner .carousel-inner {
    width: 100%;
    height: 100%;
    /* Si tienes múltiples imágenes y un carrusel real, esto manejará el translateX */
    /* Para una sola imagen de fondo, esto es principalmente un contenedor */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
}


/* galeria  */

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: auto;
    overflow: hidden; /* Asegura que nada se salga del contenedor */
}

.property-card.horizontal-layout {
    display: flex;
    flex-direction: row;
    gap: 100px;
    padding: 200px;
    align-items: flex-start;
}

.property-images {
    position: relative;
    height: 100%; /* Ocupa todo el alto disponible */
}

.property-carousel {
  position: relative;
    aspect-ratio: 16/9; /* Proporción de aspecto */
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.property-carousel .carousel-item.active {
    opacity: 1;
}
.gallery-section {
    padding: 40px 0;
    background-color: #f9f9f9;
    justify-content: center;
    text-align: center;
    font-size: medium;
}
/* 
------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Grid de propiedades */
.properties-section {
    padding: 80px 0;
}

.properties-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); /* Use specific shadow, not a variable */
    transition: all 0.3s ease-in-out; /* Use specific transition, not a variable */
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.property-images {
    position: relative;
}

.property-image img { /* This rule seems unused in your HTML structure */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease-in-out; /* Use specific transition */
}

.property-card:hover .property-image img { /* This rule seems unused */
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    z-index: 10;
}

.property-details { /* This class doesn't appear in your HTML */
    padding: 20px;
}

.property-location {
    color: #777;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    color: var(--primary-color);
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-description {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: justify;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.property-btn {
    width: 100%;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .filters { /* This class doesn't appear in your HTML */
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group { /* This class doesn't appear in your HTML */
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn { /* This class doesn't appear in your HTML */
        margin-left: 0;
        margin-top: 10px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el carrusel dentro de las propiedades */

.property-carousel {
    position: relative;
    /* height: 100%; Eliminated previous fixed height */
    aspect-ratio: 16 / 9; /* Default aspect ratio for a fluid height based on width */
    overflow: hidden;
    border-radius: 10px; /* Apply border-radius here */
}

.property-carousel .carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.property-carousel .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.property-carousel .carousel-item.active {
    opacity: 1;
}

.property-carousel img {
    width: 100%;
    height: 70%;
    object-fit: cover; /* Ensures images cover the area without distortion */
}

/* Controles del carrusel */
.property-carousel .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3); /* Lighter background for better contrast on images */
    border: none;
    color: var(--primary-color); /* Darker color for icon */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.property-carousel .carousel-control:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--accent-color); /* Accent color on hover */
}

.property-carousel .prev {
    left: 15px;
}

.property-carousel .next {
    right: 15px;
}

/* Indicadores */
.property-carousel .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.property-carousel .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.property-carousel .indicator.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Diseño horizontal para la propiedad */
.property-card.horizontal-layout {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 20px;
    align-items: flex-start;
}

.property-card.horizontal-layout .property-images {
    flex: 1;
    min-width: unset; /* Reset min-width for mobile */
    position: relative;
}

.property-card.horizontal-layout .property-info {
    flex: 1;
}

/* Responsive para el layout horizontal de las tarjetas de propiedad */
@media (max-width: 250px) {
    .property-card.horizontal-layout {
        flex-direction: column; /* Apilar imagen e información */
        align-items: center; /* Centrar elementos cuando están apilados */
    
    }
    
    .property-card.horizontal-layout .property-images {
        width: 100%; /* Ocupar todo el ancho disponible */
        height: 900;
        margin-bottom: 5px; /* Espacio entre imagen y descripción */
    }
    
    .property-carousel {
       height: 500px; /* Altura más compacta para móvil */
        aspect-ratio: 1; /* Proporción cuadrada (opcional, ajusta según diseño) */
    }

    /* Controles más pequeños para facilitar el uso en pantallas táctiles */
    .property-carousel .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 1.5em;
        padding: 0; /* Asegura que el tamaño se base en width/height */
        opacity: 0.8;
    }

    .property-carousel .prev {
        left: 10px;
    }

    .property-carousel .next {
        right: 10px;
    }

    /* Indicadores más compactos */
    .property-carousel .carousel-indicators {
        bottom: 10px;
        gap: 5px;
    }

    .property-carousel .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Refinamientos adicionales para pantallas muy pequeñas (teléfonos) */
@media (width: 1200px) {


    .property-card.horizontal-layout .property-images {
        aspect-ratio: 4 / 1; /* Una relación más cuadrada para móviles */
    }

    .property-carousel {
        aspect-ratio: 4 / 4; /* Ajusta el carrusel a esta relación de aspecto para móviles */
        height: 400px;
        width: 100%;
    }

    .property-carousel .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 1.2em;
        opacity: 0.7;
    }

    .property-carousel .prev {
        left: 5px;
    }

    .property-carousel .next {
        right: 5px;
    }

    .property-carousel .carousel-indicators {
        bottom: 5px;
        gap: 3px;
    }

    .property-carousel .indicator {
        width: 8px;
        height: 8px;
    }

    /* Ajustes específicos para el carrusel principal del hero en index.html */
    .main-carousel-container .carousel-control {
        width: 35px;
        height: 5px;
        font-size: 1.2em;
        left: 10px;
        right: 10px;
    }
}


/* Estilos para el modal/lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.modal-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.modal-prev, .modal-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
}

.modal-prev:hover, .modal-next:hover {
    background: rgba(0, 0, 0, 0.8);
}
.horizontal-layout {
    display: flex;
}


/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-image {
    width: 100%;
    height: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover {
    color: #ccc;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.modal-prev, .modal-next {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px;
    z-index: 1001;
}

.hero-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
        }


.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Relación 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



.image-casa {
    position: relative;
    width: 10%;
    height: 50%;
}

.hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgb(252, 254, 255);
            z-index: 0;
        }

.animated-text {
            display: inline-block;
            position: relative;
        }


.animated-text::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 3px;
            bottom: -10px;
            left: 0;
            background-color: var(--color-primary);
            transform: scaleX(0);
            transform-origin: bottom right;
            transition: transform 0.5s ease-out;
        }
        
        .animated-text:hover::after {
            transform: scaleX(1);
            transform-origin: bottom left;
        }

        .property-carousel img.ajuste-especial {
    object-position: 50% 20%;
}

.map {
    height: 450px; /* Altura del mapa */
    width: 100%;
    border-radius: 0;
    justify-items: center;
}

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

@media (max-width: 768px) {
    /* Ajustes para el modal en móvil */
    .modal-content {
        position: relative;
        width: 95%; /* Ocupa casi todo el ancho */
        max-width: none; /* Elimina el límite máximo */
        top: 70%;
        transform: translateY(-50%); /* Centrado vertical */
        padding: 10px; /* Espacio interno */
    }

    .modal-image {
        max-height: 110vh; /* Limita la altura */
        width: 1100px; /* Ancho automático manteniendo proporción */
        margin: 0 auto; /* Centrado horizontal */
        display: block;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .modal-nav {
        top: 50%;
        width: 100%;
        padding: 0 10px;
    }

    .modal-prev, .modal-next {
        padding: 10px;
        font-size: 20px;
    }
}


/* Estilos para el contenedor del mapa */
.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 50px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
    filter: grayscale(20%) contrast(110%) brightness(90%);
    transition: filter 0.3s ease;
}

.map-container iframe:hover {
    filter: grayscale(0%) contrast(100%) brightness(100%);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .map-container {
        padding: 0 10px;
        border-radius: 0;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .map-container iframe {
        height: 250px;
    }
}




/* --- Video Modal Styles --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    align-items: center;
    justify-content: center;
}

.modal-content-video {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.modal-content-video video {
    width: 100%;
    height: auto;
    display: block;
}

.close-modal-video {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above the video */
}

.close-modal-video:hover,
.close-modal-video:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Style for the video button */
.video-btn {
    display: block; /* Make it a block element to center with text-align */
    margin: 10px auto; /* Center the button */
    padding: 10px 20px;
    background-color: #007bff; /* Example blue color, adjust as needed */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    text-decoration: none; /* Remove underline if it's an <a> tag */
}

.video-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}





/* Ajuste para el hero general si es necesario, para que el nuevo contenedor no quede tapado por el video */
        .home-hero {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding-top: 100px; /* Ajusta según la altura de tu navbar y contenido superior */
            padding-bottom: 50px;
            height: auto;
            min-height: 100vh;
            overflow: hidden;
        }

        .hero-content {
            z-index: 10;
            margin-bottom: 30px;
        }

        /* Contenedor de los 4 apartados */
        .new-hero-container {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Cambiado de 4 a 5 columnas */
    gap: 15px;
    width: 90%; /* Aumentado el ancho para acomodar 5 elementos */
    max-width: 1400px; /* Aumentado el máximo */
    margin: 30px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

/* Estilos para cada apartado */
.new-hero-item {
    position: relative;
    height: 250px; /* Reducida la altura para mejor proporción */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 10px;
    overflow: hidden;
    background-color: #333;
}


        .new-hero-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        }

        /* Carrusel interno dentro de cada apartado */
        .inner-carousel {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .inner-carousel-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.8s ease-in-out; /* Transición más suave para las imágenes */
        }

        .inner-carousel-slide.active {
            opacity: 1;
        }

        .inner-carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            filter: brightness(0.8); /* Oscurece las imágenes para que el texto sea legible */
            transition: transform 0.5s ease;
        }

        .new-hero-item:hover .inner-carousel-slide img {
            transform: scale(1.03); /* Ligero zoom al pasar el ratón */
        }

        /* Botones de control del carrusel interno */
        .inner-carousel-control {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            padding: 8px 12px;
            cursor: pointer;
            font-size: 1.2em;
            border-radius: 50%;
            z-index: 10;
            opacity: 0; /* Inicialmente ocultos */
            transition: opacity 0.3s ease;
        }

        .new-hero-item:hover .inner-carousel-control {
            opacity: 1; /* Mostrar al pasar el ratón */
        }

        .inner-carousel-control:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

        .inner-carousel-control.prev {
            left: 10px;
        }

        .inner-carousel-control.next {
            right: 10px;
        }

        /* Estilos para el texto del nombre de la propiedad */
        .new-hero-text {
            position: absolute; /* Posición absoluta para superponerse */
            bottom: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0)); /* Degradado oscuro en la parte inferior */
            z-index: 2;
            color: var(--text-light);
            font-family: 'Playfair Display', serif;
            font-size: 1.5em;
            font-weight: 700;
            padding: 20px 10px 15px; /* Ajusta el padding para que el texto no toque el borde */
            text-align: center;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }

        /* Responsive para el nuevo hero */
       @media (max-width: 1200px) {
    .new-hero-container {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en pantallas medianas */
        width: 95%;
    }
}

@media (max-width: 768px) {
    .new-hero-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}

@media (max-width: 480px) {
    .new-hero-container {
        grid-template-columns: 1fr; /* 1 columna en móviles */
    }
    .new-hero-item {
        height: 200px;
    }
}

.share-btn {
    display: block;
    margin: 15px auto 0;
    text-align: center;
    width: fit-content;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    background-color: #a5783d; /* Un tono más oscuro del acento */
    transform: translateY(-2px);
}