/* --- Reseteo BÃ¡sico y Variables --- */
:root {
    --color-primario: #0a2f51; /* Azul oscuro */
    --color-secundario: #b8860b; /* Dorado/Lujo */
    --color-texto: #333;
    --color-fondo: #f9f9f9;
    --color-blanco: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--color-fondo);
    color: var(--color-texto);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header y NavegaciÃ³n --- */
.header {
    background-color: var(--color-blanco);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==== SECCIÃ“N DEL LOGO ACTUALIZADA Y AJUSTADA (90px) ==== */
.logo {
    text-decoration: none;
    display: block;
}

.logo img {
    /* Altura ajustada a 90px */
    max-height: 90px; 
    width: auto; 
    display: block; 
}
/* ==== FIN DE LA ACTUALIZACIÃ“N ==== */

.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: var(--color-primario);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom 0.3s;
}

.nav a:hover,
.nav a.active {
    color: var(--color-secundario);
    border-bottom: 2px solid var(--color-secundario);
}

/* --- Botones --- */
.btn {
    display: inline-block;
    background-color: var(--color-secundario);
    color: var(--color-blanco);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #a0740a;
    transform: translateY(-2px);
}

.btn-small {
    display: inline-block;
    background-color: var(--color-primario);
    color: var(--color-blanco);
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s;
    margin-top: 10px; 
}

.btn-small:hover {
    background-color: #07223b;
}


/* --- PÃ¡gina de Inicio (Hero) --- */
.hero {
    height: 60vh; /* Reducido un poco */
    /* background-image ajustada para la imagen del home */
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4)), url('../img/inmuebles.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-blanco);
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 2.8em; 
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

.welcome {
    padding: 30px 20px;
    text-align: center;
}

/* --- NUEVA SECCIÃ“N SERVICIOS (INICIO) --- */
.services-section {
    padding: 20px 20px 40px 20px;
}
.section-title {
    text-align: center;
    color: var(--color-primario);
    margin-bottom: 30px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.service-item {
    background-color: var(--color-blanco);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--color-secundario);
}
.service-item h3 {
    color: var(--color-primario);
    margin-bottom: 10px;
}
/* --- FIN NUEVA SECCIÃ“N --- */

/* --- Contenido de PÃ¡ginas Generales --- */
.page-content {
    padding: 40px 20px;
    background-color: var(--color-blanco);
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-content h2 {
    color: var(--color-primario);
    margin-bottom: 20px;
}

.page-content h3 {
    color: var(--color-secundario);
    margin-top: 30px;
    margin-bottom: 10px;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* --- PÃ¡gina de Propiedades (Grid) --- */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.property-card {
    background-color: var(--color-fondo);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; 
    flex-direction: column; 
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

.card-content {
    padding: 20px;
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

/* Estilo para la lista de caracterÃ­sticas */
.card-content ul {
    list-style-position: inside;
    padding-left: 5px;
    margin-top: 10px;
    font-size: 0.9em;
    flex-grow: 1; 
}
.card-content ul li {
    margin-bottom: 5px;
}

.card-content h3 {
    margin-top: 0;
    color: var(--color-primario);
}

.price {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--color-secundario);
    margin: 10px 0 5px 0;
}

/* Estilo para notas de precio */
.price-notes {
    font-size: 0.7em;
    color: #555;
    font-weight: normal;
}

/* --- PÃ¡gina de Contacto --- */
.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* --- Footer (ACTUALIZADO) --- */
.footer {
    background-color: var(--color-primario);
    color: #f0f0f0;
    padding: 30px 20px;
    margin-top: 40px;
}
/* Flexbox para alinear contenido y redes */
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    text-align: left;
}
.footer-content {
    flex: 2 1 300px; 
}
.footer-content p {
    margin-bottom: 5px;
}
.social-links {
    flex: 1 1 150px; 
    text-align: right;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer a {
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: 500; 
}

.footer a:hover {
    text-decoration: underline;
}

/* --- BotÃ³n Flotante de WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366; /* Color de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    /* Para que el texto '[Icono de WhatsApp]' desaparezca o se vea mejor */
    overflow: hidden; 
    text-indent: -9999px; /* Oculta el texto */
}



/* Si desea que aparezca una letra o sÃ­mbolo, se puede usar :before
.whatsapp-float:before {
    content: "W"; 
    text-indent: 0;
    color: #FFF;
    font-weight: bold;
    font-size: 1.5em;
}
*/



/*css de modal de las cards*/
/* Miniaturas */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}
.gallery-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-thumbs img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

/* Modal */
.img-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}
.img-modal-overlay.open {
  display: flex;
}
.img-modal-dialog {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#imgModalImage {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  background: #fff;
}

/* Botones */
.img-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 40px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.img-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 44px;
  height: 60px;
  font-size: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  user-select: none;
}
.img-modal-nav.prev { left: -56px; }
.img-modal-nav.next { right: -56px; }


@media (max-width: 768px) {
  .img-modal-nav.prev { left: 8px; }
  .img-modal-nav.next { right: 8px; }
  .img-modal-close { top: -10px; right: -10px; }
}
/*fin de css de las cards */


/*inicio de icono de whatsapp*/
#fixedWhatsAppIcon {
  display: block;
  position: fixed;
  right: 20px;
  bottom: 60px;
  width: 50px;
  height: 50px;
  background-color: #54b460;
  text-align: center;
  line-height: 50px;
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  z-index: 9999;
}
#fixedWhatsAppIcon:hover {
  background-color: #339933;
}

/*fin de icono flotante de whatsapp*/