/* xixurepo - Estilo principal para la consultora inmobiliaria */

/* Variables CSS */
:root {
  --xixurepo-white: #ffffff;
  --xixurepo-dark-blue: #161a30;
  --xixurepo-medium-blue: #31304d;
  --xixurepo-gray: #b6bbc4;
  --xixurepo-cream: #f0ece5;

  /* Espaciado */
  --xixurepo-space-xs: 0.5rem;
  --xixurepo-space-sm: 1rem;
  --xixurepo-space-md: 2rem;
  --xixurepo-space-lg: 3rem;
  --xixurepo-space-xl: 5rem;

  /* Transiciones */
  --xixurepo-transition: all 0.3s ease;
}

/* Reseteo y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--xixurepo-dark-blue);
  background-color: var(--xixurepo-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  margin-bottom: var(--xixurepo-space-md);
  color: var(--xixurepo-dark-blue);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--xixurepo-space-sm);
}

a {
  color: var(--xixurepo-medium-blue);
  text-decoration: none;
  transition: var(--xixurepo-transition);
}

img {
  max-width: 100%;
  height: auto;
}

.xixurepo-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--xixurepo-space-sm);
}

.xixurepo-section {
  padding: var(--xixurepo-space-lg) 0;
}

.xixurepo-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--xixurepo-medium-blue);
  color: var(--xixurepo-white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--xixurepo-transition);
  text-align: center;
}

.xixurepo-btn:hover {
  background-color: var(--xixurepo-dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.xixurepo-btn-secondary {
  background-color: var(--xixurepo-cream);
  color: var(--xixurepo-dark-blue);
}

.xixurepo-btn-secondary:hover {
  background-color: var(--xixurepo-gray);
}

.xixurepo-text-center {
  text-align: center;
}

/* Header y navegación */
.xixurepo-header {
  background-color: var(--xixurepo-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.xixurepo-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--xixurepo-space-sm) 0;
}

.xixurepo-logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--xixurepo-dark-blue);
}

.xixurepo-logo span {
  color: var(--xixurepo-medium-blue);
}

.xixurepo-nav-links {
  display: flex;
  list-style: none;
}

.xixurepo-nav-links li {
  margin-left: var(--xixurepo-space-md);
}

.xixurepo-nav-links a {
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0;
}

.xixurepo-nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--xixurepo-medium-blue);
  transition: var(--xixurepo-transition);
}

.xixurepo-nav-links a:hover::after {
  width: 100%;
}

.xixurepo-burger {
  display: none;
  cursor: pointer;
}

.xixurepo-burger div {
  width: 25px;
  height: 3px;
  margin: 5px;
  background-color: var(--xixurepo-dark-blue);
  transition: var(--xixurepo-transition);
}

/* Hero section */
.xixurepo-hero {
  height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(22, 26, 48, 0.7), rgba(22, 26, 48, 0.7)),
    url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--xixurepo-white);
}

.xixurepo-hero-content {
  max-width: 700px;
}

.xixurepo-hero h1 {
  font-size: 3rem;
  margin-bottom: var(--xixurepo-space-sm);
  color: var(--xixurepo-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.xixurepo-hero p {
  font-size: 1.2rem;
  margin-bottom: var(--xixurepo-space-md);
}

/* Sección de servicios */
.xixurepo-services {
  background-color: var(--xixurepo-cream);
}

.xixurepo-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--xixurepo-space-md);
}

.xixurepo-service-card {
  background-color: var(--xixurepo-white);
  padding: var(--xixurepo-space-md);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--xixurepo-transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.xixurepo-service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.xixurepo-service-icon {
  font-size: 2.5rem;
  margin-bottom: var(--xixurepo-space-sm);
  color: var(--xixurepo-medium-blue);
}

/* Sección de propiedades destacadas */
.xixurepo-properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--xixurepo-space-md);
}

.xixurepo-property-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--xixurepo-transition);
}

.xixurepo-property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.xixurepo-property-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.xixurepo-property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--xixurepo-transition);
}

.xixurepo-property-card:hover .xixurepo-property-img img {
  transform: scale(1.1);
}

.xixurepo-property-content {
  padding: var(--xixurepo-space-sm);
  background-color: var(--xixurepo-white);
}

.xixurepo-property-price {
  color: var(--xixurepo-medium-blue);
  font-weight: 700;
  font-size: 1.2rem;
}

.xixurepo-property-features {
  display: flex;
  margin-top: var(--xixurepo-space-sm);
}

.xixurepo-property-feature {
  display: flex;
  align-items: center;
  margin-right: var(--xixurepo-space-sm);
  font-size: 0.9rem;
}

.xixurepo-property-feature svg {
  width: 18px;
  height: 18px;
  margin-right: 5px;
}

/* Sección de productos */
.xixurepo-products {
  background-color: var(--xixurepo-white);
}

.xixurepo-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--xixurepo-space-md);
}

.xixurepo-product-card {
  background-color: var(--xixurepo-cream);
  padding: var(--xixurepo-space-md);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--xixurepo-transition);
}

.xixurepo-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.xixurepo-product-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--xixurepo-dark-blue);
  margin: var(--xixurepo-space-sm) 0;
}

.xixurepo-product-price span {
  font-size: 1rem;
  color: var(--xixurepo-gray);
}

.xixurepo-product-features {
  list-style: none;
  margin-bottom: var(--xixurepo-space-md);
}

.xixurepo-product-features li {
  margin-bottom: var(--xixurepo-space-xs);
  padding-bottom: var(--xixurepo-space-xs);
  border-bottom: 1px solid rgba(182, 187, 196, 0.3);
}

/* Sección Acerca de */
.xixurepo-about {
  background-color: var(--xixurepo-medium-blue);
  color: var(--xixurepo-white);
}

.xixurepo-about h2 {
  color: var(--xixurepo-white);
}

.xixurepo-about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--xixurepo-space-lg);
  align-items: center;
}

.xixurepo-about-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Sección de testimonios */
.xixurepo-testimonials {
  background-color: var(--xixurepo-cream);
}

.xixurepo-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--xixurepo-space-md);
}

.xixurepo-testimonial-card {
  background-color: var(--xixurepo-white);
  padding: var(--xixurepo-space-md);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.xixurepo-testimonial-text {
  font-style: italic;
  margin-bottom: var(--xixurepo-space-sm);
}

.xixurepo-testimonial-author {
  display: flex;
  align-items: center;
}

.xixurepo-testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: var(--xixurepo-space-sm);
  object-fit: cover;
}

.xixurepo-testimonial-info h4 {
  margin: 0;
  font-size: 1rem;
}

.xixurepo-testimonial-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--xixurepo-gray);
}

/* Sección de contacto */
.xixurepo-contact {
  background-color: var(--xixurepo-white);
}

.xixurepo-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--xixurepo-space-lg);
}

.xixurepo-contact-info {
  margin-bottom: var(--xixurepo-space-md);
}

.xixurepo-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--xixurepo-space-sm);
}

.xixurepo-contact-icon {
  margin-right: var(--xixurepo-space-sm);
  color: var(--xixurepo-medium-blue);
}

.xixurepo-form-group {
  margin-bottom: var(--xixurepo-space-sm);
}

.xixurepo-form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.xixurepo-form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--xixurepo-gray);
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  transition: var(--xixurepo-transition);
}

.xixurepo-form-control:focus {
  border-color: var(--xixurepo-medium-blue);
  outline: none;
}

textarea.xixurepo-form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.xixurepo-footer {
  background-color: var(--xixurepo-dark-blue);
  color: var(--xixurepo-white);
  padding: var(--xixurepo-space-lg) 0;
}

.xixurepo-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--xixurepo-space-md);
}

.xixurepo-footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--xixurepo-space-sm);
  color: var(--xixurepo-white);
}

.xixurepo-footer-links h3 {
  color: var(--xixurepo-white);
  font-size: 1.2rem;
  margin-bottom: var(--xixurepo-space-sm);
}

.xixurepo-footer-links ul {
  list-style: none;
}

.xixurepo-footer-links li {
  margin-bottom: var(--xixurepo-space-xs);
}

.xixurepo-footer-links a {
  color: var(--xixurepo-gray);
}

.xixurepo-footer-links a:hover {
  color: var(--xixurepo-white);
}

.xixurepo-footer-bottom {
  margin-top: var(--xixurepo-space-lg);
  padding-top: var(--xixurepo-space-sm);
  border-top: 1px solid rgba(182, 187, 196, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.xixurepo-footer-bottom p {
  margin: 0;
}

.xixurepo-social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-left: var(--xixurepo-space-xs);
  transition: var(--xixurepo-transition);
}

.xixurepo-social-link:hover {
  background-color: var(--xixurepo-medium-blue);
  transform: translateY(-3px);
}

/* Política de privacidad y términos */
.xixurepo-policy {
  padding: var(--xixurepo-space-xl) 0;
}

.xixurepo-policy h1 {
  margin-bottom: var(--xixurepo-space-md);
}

.xixurepo-policy h2 {
  margin-top: var(--xixurepo-space-lg);
  margin-bottom: var(--xixurepo-space-sm);
}

.xixurepo-policy p {
  margin-bottom: var(--xixurepo-space-sm);
}

.xixurepo-policy ul {
  margin-bottom: var(--xixurepo-space-md);
  padding-left: var(--xixurepo-space-md);
}

.xixurepo-policy li {
  margin-bottom: var(--xixurepo-space-xs);
}

/* Página de agradecimiento */
.xixurepo-thankyou {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--xixurepo-space-md);
}

.xixurepo-thankyou h1 {
  margin-bottom: var(--xixurepo-space-md);
}

.xixurepo-thankyou p {
  max-width: 600px;
  margin: 0 auto var(--xixurepo-space-lg);
}

/* Zoom para imágenes */
.xixurepo-zoom-container {
  position: relative;
  overflow: hidden;
}

.xixurepo-zoom-img {
  transition: transform 0.5s ease;
  cursor: zoom-in;
}

.xixurepo-zoom-img:hover {
  transform: scale(1.05);
}

.xixurepo-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: var(--xixurepo-space-md);
}

.xixurepo-slideshow-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.xixurepo-slideshow-img {
  min-width: 100%;
  height: 400px;
  object-fit: cover;
}

.xixurepo-slideshow-controls {
  position: absolute;
  bottom: var(--xixurepo-space-sm);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.xixurepo-slideshow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--xixurepo-transition);
}

.xixurepo-slideshow-dot.active {
  background-color: var(--xixurepo-white);
}

.xixurepo-slideshow-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 var(--xixurepo-space-sm);
}

.xixurepo-slideshow-btn {
  background-color: rgba(49, 48, 77, 0.7);
  color: var(--xixurepo-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--xixurepo-transition);
}

.xixurepo-slideshow-btn:hover {
  background-color: var(--xixurepo-medium-blue);
}

/* Estilos responsive */
@media (max-width: 991px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .xixurepo-services-grid,
  .xixurepo-properties-grid,
  .xixurepo-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .xixurepo-about-content,
  .xixurepo-contact-grid,
  .xixurepo-footer-grid {
    grid-template-columns: 1fr;
    gap: var(--xixurepo-space-md);
  }

  .xixurepo-hero {
    height: 70vh;
  }

  .xixurepo-hero h1 {
    font-size: 2.5rem;
  }

  .xixurepo-nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background-color: var(--xixurepo-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--xixurepo-transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .xixurepo-nav-links.active {
    right: 0;
  }

  .xixurepo-nav-links li {
    margin: var(--xixurepo-space-sm) 0;
  }

  .xixurepo-burger {
    display: block;
    z-index: 101;
  }

  .xixurepo-burger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .xixurepo-burger.active div:nth-child(2) {
    opacity: 0;
  }

  .xixurepo-burger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .xixurepo-slideshow-img {
    height: 300px;
  }
}

@media (max-width: 767px) {
  .xixurepo-services-grid,
  .xixurepo-properties-grid,
  .xixurepo-products-grid,
  .xixurepo-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .xixurepo-hero {
    height: 60vh;
    text-align: center;
  }

  .xixurepo-hero-content {
    margin: 0 auto;
  }

  .xixurepo-hero h1 {
    font-size: 2rem;
  }

  .xixurepo-hero p {
    font-size: 1rem;
  }

  .xixurepo-section {
    padding: var(--xixurepo-space-md) 0;
  }

  .xixurepo-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .xixurepo-footer-bottom p {
    margin-bottom: var(--xixurepo-space-sm);
  }

  .xixurepo-slideshow-img {
    height: 250px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .xixurepo-hero h1 {
    font-size: 1.75rem;
  }

  .xixurepo-btn {
    padding: 0.7rem 1.2rem;
    font-size: 14px;
  }

  .xixurepo-slideshow-img {
    height: 200px;
  }
}

@media (max-width: 320px) {
  .xixurepo-hero h1 {
    font-size: 1.5rem;
  }

  .xixurepo-btn {
    padding: 0.6rem 1rem;
    font-size: 13px;
  }

  .xixurepo-slideshow-img {
    height: 180px;
  }
}
