/* ========================================
   DELUX ARRIENDOS - STYLE PREMIUM CORPORATIVO
   Azul claro + grises de lujo + textura corrugada
   ======================================== */

/* ------------------------------
   VARIABLES GLOBALES
--------------------------------*/
:root {
  --primary: #2b3c6f;
  --secondary: #f6c90e;
  --gray-light: #f4f5f7;
  --gray-medium: #d8dadd;
  --gray-dark: #5a5a5a;
  --text: #222;
  --radius: 14px;
  --font-main: "Poppins", "Segoe UI", sans-serif;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ------------------------------
   RESET BÁSICO
--------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:var(--font-main);
  color: var(--text);
  background: var(--gray-light) url("https://www.transparenttextures.com/patterns/corrugated-metal.png");
  background-attachment: fixed;
  background-size: cover;
  line-height: 1.6;
}

/* ------------------------------
   CONTENEDOR GENERAL
--------------------------------*/
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 🏠 Header con azul corporativo */
.header {
  background-color: #1f3b73; /* Azul corporativo */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* Contenedor principal */
.header .container {
  display: flex;
  align-items: flex-start; /* ✅ Alinea el contenido arriba */
  justify-content: flex-start;
  gap: 50px; /* Espacio entre logo/eslogan y menú */
  padding: 10px 1px ; /* Un poco menos de padding abajo */
}

/* ====== Logo con slogan ====== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img.logo-img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img.logo-img:hover {
  transform: scale(1.05);
}

/* ====== Slogan elegante ====== */
.slogan {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 1.05rem;
  font-weight: 500;
  color: #f1f1f1;
  border-left: 2px solid #ffc107;
  padding-left: 10px;
  margin-left: 5px;
}

.slogan span:first-child {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 500;
}

.slogan span:last-child {
  color: #ffc107;
  font-weight: 600;
  font-size: 1.15rem;
}

/* ====== Menú de navegación alineado al centro del logo ====== */
.nav {
  display: flex;
  align-items: center; /* ✅ Centrado verticalmente con logo y eslogan */
  margin-top: 10px; /* ✅ Lo sube a la altura exacta de la línea roja */
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav ul li {
  display: flex;
  align-items: center;
}

/* Links del menú */
.nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 6px 10px;
}

.nav a:hover {
  color: #ffc107;
}

/* 🔘 Botón Propiedades */
.btn-propiedades {
  background-color: #ffc107;
  color: #1f3b73;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(255, 193, 7, 0.3);
  margin-left: 10px;
}

.btn-propiedades:hover {
  background-color: #ffca2c;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(255, 193, 7, 0.4);
}

/* “Contáctanos” como texto normal */
.nav a.btn-primary,
.btn-primary {
  background: none !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  padding: 6px 10px !important;
  font-weight: 500 !important;
  transition: color 0.3s ease;
}

.nav a.btn-primary:hover {
  color: #ffc107 !important;
}

/* ==============================
   Media Queries - Responsive
============================== */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
  .nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .nav ul li {
    width: 100%;
    text-align: center;
  }

  .btn-propiedades {
    margin-left: 0;
    margin-top: 10px;
  }
}

/* Móviles pequeños */
@media (max-width: 576px) {
  .nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
  }

  .nav ul li {
    width: 100%;
    text-align: center;
  }

  .nav a,
  .btn-propiedades {
    width: 90%;
    margin: 5px 0;
    text-align: center;
    padding: 10px 0;
  }
}
/* ===== Botón hamburguesa ===== */
.menu-toggle {
  display: none; /* solo se mostrará en móviles */
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
}

/* =============================
   Media Queries para móviles
============================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 70px; /* altura del header */
    left: 0;
    width: 100%;
    background-color: #1f3b73;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    transition: max-height 0.3s ease-in-out;
    z-index: 999;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
  }

  .nav ul li {
    width: 100%;
    text-align: center;
  }

  .nav a,
  .btn-propiedades {
    width: 90%;
    margin: 5px 0;
    padding: 10px 0;
  }

  /* Cuando el menú está activo */
  .nav.active {
    max-height: 500px; /* ajusta según la cantidad de enlaces */
  }
}


/* ------------------------------
   BOTONES
--------------------------------*/
.btn-primary,
.btn-secondary,
.btn-link {
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-primary {
  background: var(--secondary);
  color: #222;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: #ffdc40;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #324780;
}

.btn-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.btn-link:hover {
  text-decoration: underline;
}

/* --------------------------------
   HERO CON CAMBIO AUTOMÁTICO
--------------------------------*/
.hero {
  position: relative;
  height: 60vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: url("/img/hero1.jpg") center/cover no-repeat;
  transition: background-image 1s ease-in-out;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.4); /* opcional: sombreado para mejorar legibilidad */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px; /* espacio lateral en móviles */
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero h1 span {
  color: var(--secondary);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ==============================
   Media Queries - Responsive
============================== */

/* Tablets / pantallas medianas */
@media (max-width: 992px) {
  .hero {
    height: 50vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* Móviles pequeños */
@media (max-width: 576px) {
  .hero {
    height: 40vh;
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
  }
}
/* -------------------------------
   HERO RESPONSIVE PARA CELULARES
------------------------------- */
@media (max-width: 576px) {
  .hero {
    height: 40vh; /* más pequeño para móviles */
    padding: 0 10px;
  }

  .hero-content {
    max-width: 90%; /* ocupa casi todo el ancho de la pantalla */
  }

  .hero h1 {
    font-size: 1.5rem; /* más pequeño */
    line-height: 1.2;  /* para que no ocupe tanto espacio */
  }

  .hero p {
    font-size: 0.8rem; /* más pequeño para que no se salga */
    margin-bottom: 1rem;
  }
}


/* ------------------------------
   BUSCADOR
--------------------------------*/
.buscador {
  background: #fff;
  margin-top: -3rem;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.buscador h2 {
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.buscador form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.buscador select,
.buscador input {
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius);
  font-size: 0.95rem;
  min-width: 180px;
  background-color: var(--gray-light);
  transition: all 0.3s ease;
}

.buscador select:focus,
.buscador input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 6px rgba(246, 201, 14, 0.3);
  outline: none;
  background-color: #fff;
}

.buscador button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.buscador button:hover {
  background: #364a86;
  transform: translateY(-2px);
}

/* ------------------------------
   RESPONSIVE
--------------------------------*/
@media (max-width: 768px) {
  .buscador form {
    flex-direction: column;
    gap: 1rem;
  }

  .buscador select,
  .buscador input,
  .buscador button {
    width: 100%;
  }
}


/* ------------------------------
   PROPIEDADES
--------------------------------*/
.propiedades {
  padding: 5rem 0;
  text-align: center;
}

.propiedades h2 {
  color: var(--primary);
  margin-bottom: 2rem;
}

.grid-propiedades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.prop-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.prop-card:hover {
  transform: translateY(-5px);
}

.prop-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.prop-info {
  padding: 1.2rem;
}

.prop-info h3 {
  font-size: 1.1rem;
  color: var(--primary);
}

.prop-info .precio {
  color: var(--secondary);
  font-weight: bold;
}

/* ------------------------------
   NOSOTROS
--------------------------------*/
.nosotros {
  background: var(--gray-light);
  padding: 5rem 0;
  text-align: center;
}

.nosotros h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.valores {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.valores div {
  background: #fff;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ------------------------------
   SERVICIOS
--------------------------------*/
.servicios {
  padding: 5rem 0;
  text-align: center;
}

.servicios h2 {
  color: var(--primary);
  margin-bottom: 2rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.servicio-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-5px);
}

/* ------------------------------
   PROPIETARIOS
--------------------------------*/
.propietarios {
  background: linear-gradient(to right, #e9ebf3, #fff);
  padding: 5rem 0;
  text-align: center;
}

.propietarios h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ------------------------------
   BLOG
--------------------------------*/
.blog {
  padding: 5rem 0;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ------------------------------
   TESTIMONIOS
--------------------------------*/
.testimonios {
  background: var(--gray-light);
  padding: 5rem 0;
  text-align: center;
}

.testimonios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.testimonio {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 350px;
  padding: 1.5rem;
}

/* ------------------------------
   CONTACTO
--------------------------------*/
.contacto {
  padding: 5rem 0;
  text-align: center;
}

.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.form-contacto input,
.form-contacto textarea {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-medium);
  font-size: 1rem;
}

.info-contacto p {
  color: var(--gray-dark);
}



/* ==== WhatsApp flotante ==== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}


/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}





   RESPONSIVE
--------------------------------
@media (max-width: 768px) {
  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .buscador form {
    flex-direction: column;
  }

  .valores {
    flex-direction: column;
  }
}
/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe5a;
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  filter: invert(1);
}
/* 🌟 Barra superior ultra premium con brillo animado */
.top-bar {
  position: relative;
  width: 100%;
  background: linear-gradient(90deg, #2e2e2e, #3a3a3a);
  color: #f5f5f5;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  letter-spacing: 0.4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  overflow: hidden;
  z-index: 1001;
  font-family: "Poppins", sans-serif;
}

/* Brillo animado */
.shine-effect {
  content: "";
  position: absolute;
  top: 0;
  left: -200%;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  animation: shine 5s linear infinite;
}

@keyframes shine {
  0% { left: -200%; }
  100% { left: 200%; }
}

/* Lado izquierdo (redes) */
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-link {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: scale(1.2);
}

/* Colores reales de cada red */
.whatsapp i { color: #25D366; }
.instagram i { color: #E1306C; }
.tiktok i {
  color: #010101;
  background: linear-gradient(45deg, #69C9D0, #EE1D52);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Lado derecho (info contacto) */
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-item {
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item i {
  margin-right: 6px;
  color: #25D366;
}

.info-item:hover {
  color: #25D366;
}

/* ==============================
   Media Queries - Responsive
============================== */

/* Tablets / pantallas medianas */
@media (max-width: 992px) {
  .top-bar {
    flex-direction: column;
    padding: 10px 20px;
    gap: 8px;
  }

  .top-bar-left, .top-bar-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

/* Móviles pequeños */
@media (max-width: 576px) {
  .top-bar {
    flex-direction: column;
    padding: 8px 10px;
    font-size: 13px;
    gap: 6px;
  }

  .top-bar-left, .top-bar-right {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }

  .social-link {
    font-size: 16px;
  }

  .info-item {
    font-size: 12px;
  }
}


.divider {
  color: rgba(255,255,255,0.3);
}
.btn-admin {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1d4ed8; /* azul */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}
.btn-admin:hover {
  background-color: #2563eb; /* azul más intenso al pasar el mouse */
}
/* ===== Footer Ultra Premium Azul + Dorado ===== */
.footer {
  background: linear-gradient(135deg, #0a1f44, #05214d); /* Azul corporativo oscuro */
  color: #f9c74f; /* Dorado corporativo */
  font-family: 'Poppins', sans-serif;
  padding: 60px 20px 20px;
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer h2, .footer h3 {
  font-weight: 600;
  color: #f9c74f;
  margin-bottom: 15px;
}

.footer p {
  color: #f9c74f99; /* Dorado con transparencia */
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #f9c74f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #ffd700; /* Dorado más brillante al pasar mouse */
}

/* Enlace tipo "botón" admin igual a los demás */
.footer-links ul li a.btn-admin {
  font-weight: 600;
  color: #f9c74f;
  transition: color 0.3s ease;
}

.footer-links ul li a.btn-admin:hover {
  color: #ffd700;
}

.footer-socials .social-icons {
  display: flex;
  gap: 15px;
}

.footer-socials .social img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s, filter 0.3s;
  filter: brightness(0.8);
}

.footer-socials .social img:hover {
  transform: scale(1.15);
  filter: brightness(1);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #033060; /* línea azul más oscura */
  padding-top: 20px;
  color: #f9c74f99;
  font-size: 14px;
}

.footer-bottom a {
  color: #f9c74f;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #ffd700;
}

/* Animación suave */
.animate-footer {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links, .footer-socials {
    margin-top: 30px;
  }
}
