/* ==========================================
   1. VARIABLES GLOBALES & RESETEO
   ========================================== */
:root {
  --primary-red: #800020; /* Rojo Borgoña elegante */
  --secondary-red: #b30026;
  --white: #ffffff;
  --black: #333333;
  --gray-light: #f4f7f6;
  --gray-medium: #888888;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Lexend", sans-serif;
  color: var(--black);
  line-height: 1.6;
  scroll-behavior: smooth;
  background-color: var(--white);
}

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

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  color: var(--secondary-red);
}

/* CONTENEDOR GENERAL */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================
   2. CABECERA & NAVEGACIÓN
   ========================================== */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 30px 0;
  color: var(--white);
  background: transparent;
  transition: var(--transition);
}

.header-static {
  position: relative !important;
  background-color: var(--primary-red) !important;
  color: var(--white);
  border-bottom: 3px solid var(--secondary-red);
  transition: var(--transition);
}

.header-static .logo h1 {
  color: var(--white);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 200;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 55px;
  width: auto;
  display: block;
}

.logo h1 {
  font-family: "Lexend", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--white);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--secondary-red);
  border-bottom: 2px solid var(--secondary-red);
}

/* ==========================================
   3. SECCIÓN HERO / BANNER PRINCIPAL
   ========================================== */
.hero-section {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-red);
  background-image: url("imagenes/imagen-hero1.jpeg");
  transition: background-image 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-text h2 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-text p {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Controles y Puntos del Carrusel */
.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
}

.carousel-btn {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--white);
  color: var(--black);
}

.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--white);
}

/* ==========================================
   4. SECCIÓN DE FILTROS Y PROPIEDADES
   ========================================== */
.properties-section {
  padding: 80px 0;
  background-color: var(--gray-light);
}

.filter-controls {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.filter-controls h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.filter-group {
  display: flex;
  gap: 20px;
}

.filter-group select {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
}

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

.property-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.property-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.property-card-content {
  padding: 20px;
}

.property-type {
  color: var(--secondary-red);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 5px;
}

.property-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: rgb(52, 50, 50);
}

.property-meta {
  font-size: 0.9rem;
  color: var(--gray-medium);
  margin-bottom: 15px;
}

/* ==========================================
   5. SECCIÓN INFO & PÁGINAS INTERNAS
   ========================================== */
.info-section {
  padding: 80px 0;
  background-color: var(--white);
}

.info-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.info-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.info-text p {
  margin-bottom: 20px;
  color: var(--gray-medium);
}

.compra-section,
.arriendo-section,
.quienes-section {
  padding: 80px 0;
}

.compra-container,
.arriendo-container {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.compra-intro,
.arriendo-intro {
  font-size: 1.1rem;
  color: var(--gray-medium);
  margin-bottom: 30px;
  line-height: 1.8;
}

.arriendo-section {
  background-color: #f4f7f9;
}

.quienes-section {
  background-color: var(--white);
}

.terminos-section {
  padding: 80px 0;
}

.terminos-container {
  max-width: 900px;
  text-align: justify;
  margin: 0 auto;
}

.terminos-intro {
  font-size: 1.1rem;
  color: var(--gray-medium);
  margin-bottom: 30px;
  line-height: 1.8;
}

.quienes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.quienes-imagen img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Listas con viñetas personalizadas */
.lista-servicios {
  text-align: left;
  display: inline-block;
  list-style: none;
  margin: 20px 0;
}

.lista-servicios li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  line-height: 1.5;
}

.lista-servicios li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-red);
  font-weight: bold;
  font-size: 1.2rem;
}

.lista-servicios li strong {
  color: var(--primary-red);
}

/* ==========================================
   6. SECCIÓN DETALLE DE PROPIEDAD
   ========================================== */
.detalle-container {
  padding: 100px 0;
}

.detalle-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.detalle-imagen img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.detalle-info h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.detalle-desc {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

.precio-destacado {
  font-size: 1.5rem;
  color: var(--secondary-red);
  font-weight: bold;
  margin-bottom: 20px;
}

/* Ficha técnica */
.lista-caracteristicas {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  border-top: 1px solid #eaeaea;
}

.lista-caracteristicas li {
  padding: 10px 0;
  border-bottom: 1px solid #eaeaea;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
}

.lista-caracteristicas strong {
  color: var(--primary-red);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.lista-caracteristicas span {
  color: #444;
  font-weight: 500;
}

.detalle-precio-box {
  background-color: var(--gray-light);
  padding: 12px 20px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-left: 4px solid var(--primary-red);
}

.precio-label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #333;
}

.precio-valor {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-red);
}

/* ==========================================
   7. FOOTER & BOTONES
   ========================================== */
.main-footer {
  background-color: var(--primary-red);
  color: var(--white);
  padding: 60px 0 20px;
}

.main-footer h3 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-info p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-info p i {
  margin-right: 10px;
  color: var(--secondary-red);
}

.footer-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-form input,
.footer-form textarea {
  padding: 12px;
  border-radius: 4px;
  border: none;
  background: rgba(0, 0, 0, 0.15);
  color: var(--white);
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Botones */
.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-red);
  color: var(--white);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--secondary-red);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--secondary-red);
  color: var(--white);
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-red);
}

.btn-container {
  margin-top: 30px;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

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

.whatsapp-text {
  font-family: "Rethink Sans", sans-serif;
}

/* ==========================================
   8. MEDIA QUERIES & DISEÑO RESPONSIVE
   ========================================== */
.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--white);
  transition: 0.3s;
}

@media (max-width: 1303px) {
  .hamburger {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: -100%;
    top: 75px;
    flex-direction: column;
    background-color: var(--primary-red);
    width: 100%;
    text-align: center;
    transition: 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid var(--secondary-red);
  }

  .main-nav.active {
    left: 0;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px;
  }

  .main-nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .main-header {
    height: 60px;
    padding: 12px 0;
  }

  .main-nav {
    top: 60px;
  }

  .logo h1 {
    font-size: 1.15rem;
    letter-spacing: 1px;
  }

  .logo-img {
    height: 42px;
  }

  /* Ajustes para que los filtros de select se vean compactos y ordenados en celular */
  .filter-group {
    flex-direction: column;
    gap: 12px;
  }

  .filter-group select {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .carousel-controls,
  .carousel-dots {
    display: none !important;
  }

  .info-content,
  .quienes-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Imagen de Quién Soy ordenada abajo y reducida en tamaño para móviles */
  .quienes-grid .quienes-imagen {
    order: 2;
    max-width: 220px;
    margin: 0 auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .detalle-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .detalle-container {
    padding: 40px 0;
  }
}

/* ==========================================
   ESTILOS SLIDER MANUAL & FAQ
   ========================================== */
.detalle-imagen-slider {
  position: relative;
  width: 100%;
}

.slider-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background-color: #000;
}

.slider-container img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.detalle-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: 2px solid var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 10;
}

.detalle-slider-btn:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.slider-counter {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 10;
}

/* Estilos limpios para Preguntas Frecuentes (FAQ) */
.faq-section {
  padding: 80px 0;
  background-color: var(--gray-light);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #eee;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--black);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-red);
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--secondary-red);
}

/* Cuando la pregunta está activa, rotamos la flecha */
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  color: var(--gray-medium);
  font-size: 0.95rem;
}

/* Cuando el item está activo, mostramos el texto con su altura automática */
.faq-item.active .faq-answer {
  padding: 0 20px 20px 20px;
  max-height: 300px;
}
