@charset "UTF-8";

/* =================== VARIABLES =================== */
:root {
  --color-primario: #DECE9A;
  --color-secundario: #0A3033;
  --color-gris-texto: #3C4043;
  --color-neutro: #575756;
}

/* =================== BASE =================== */
body {
  font-family: 'Ubuntu', sans-serif;
  color: var(--color-gris-texto);
  background-color: #fff;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--color-secundario);
  font-weight: 700;
}

/* =================== UTILIDADES =================== */
.bg-primary-custom {
  background-color: var(--color-primario) !important;
}

.alt-font {
  font-family: 'Cormorant Garamond', serif;
}

.pb-hero {
  padding-bottom: 10rem !important;
}

.pe-hero {
  padding-right: 8.5rem !important;
}

.palabra-destacada {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.2em;
}

/* =================== HERO =================== */
.hero-section {
  background: url('../img/ECOHOME-0.jpg') center/cover no-repeat;
  min-height: 80vh;
  padding: 80px 0;
  position: relative;
}

.hero-section .overlay {
  background-color: rgba(10, 48, 51, 0.6);
  z-index: 0;
}

.hero-text {
  font-family: 'Ubuntu', sans-serif;
  font-size: 4.1rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: white;
}

.hero-heading {
  font-size: 3.2rem;
  line-height: 1.2;
  font-family: 'Ubuntu', sans-serif;
}

.hero-subtext {
  font-size: 1.25rem;
  font-weight: 400;
}

.hero-brand {
  font-size: 1.4rem;
}

/* =================== SCROLL INDICATOR =================== */
.scroll-indicator {
  z-index: 2;
  color: white;
  opacity: 0.8;
}

.bounce {
  animation: scrollBounce 1.6s ease-in-out infinite;
  display: inline-block;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* =================== SECCIÓN MAPA =================== */
.section-dividida {
  background-color: var(--color-secundario);
  min-height: 500px;
  flex-direction: row;
}

.img-half {
  background-image: url('../img/mapa_macarena.png');
  background-size: cover;
  background-position: center;
  min-height: 500px;
  width: 100%;
}

.text-half {
  background-color: var(--color-secundario);
  min-height: 500px;
}

.contenido-texto {
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.section-dividida .lead {
  font-size: 1.3rem;
  line-height: 1.7;
}

/* =================== SECCIÓN SUN SUITES y VILLAS =================== */
.sun-suites-section,
.villas-campestres-section {
  min-height: 500px;
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.img-square-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.titulo {font-family: 'Ubuntu', sans-serif;}

.titulo-sun {
  font-family: 'Ubuntu', sans-serif;
  font-size: 4.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-secundario);
  text-transform: uppercase;
}

.lead-sun {
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--color-secundario);
  line-height: 1;
}

.sun-suites-text {
  padding-left: 8rem;
  padding-right: 4rem;
}

.sun-suites-slider-container,
.villas-campestres-slider-container {
  width: 100%;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.villas-campestres-text {
  text-align: right;
  padding-right: 8rem !important;
}

.divisor-movil {
  border-top: 2px solid var(--color-primario);
  width: 80%;
  margin: 2rem auto;
}

.footer-custom {
  background-color: #575756; 
}

.footer-custom p {
  color: #f8f9fa ;
  font-size: 0.9rem;
  font-family: 'Ubuntu', sans-serif;
}


/* =================== SECCIÓN CONTACTO =================== */
.contact-section {
  background-color: var(--color-primario);
  color: var(--color-secundario);
}

.contacto-pretitle {
  color: var(--color-secundario);
  font-family: 'Ubuntu', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.custom-input {
  border-radius: 0.5rem;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: #fff;
  color: var(--color-secundario);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.custom-input:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(10,48,51, 0.25);
  border: none;
}

.btn-enviar {
  background-color: var(--color-secundario) !important;
  color: #fff !important;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
  border: none;
}

.btn-enviar:hover {
  background-color: #062122 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* =================== POPUP =================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 48, 51, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background-color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.popup-content h5 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--color-secundario);
  margin-bottom: 0.5rem;
}

.popup-content p {
  font-size: 1rem;
  color: var(--color-gris-texto);
}

.contact-section .titulo-sun {
  font-size: 3.5rem;
}

.contact-section .lead-sun {
  font-size: 1.5rem;
}
/* =================== MEDIA QUERIES =================== */
@media (max-width: 767.98px) {
  .titulo-contacto,
  .titulo-sun {
    text-align: center;
    font-size: 2.5rem;
  }

  .contacto-pretitle {
   text-align: center !important;
  }

  .hero-heading {
    font-size: 2.2rem;
  }

  .hero-text-mobile {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    width: 100%;
    padding: 0 1.5rem !important;
  }

  .lead-sun,
  .sun-suites-text,
  .villas-campestres-text {
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem 2rem;
  }

  .section-dividida {
    flex-direction: column;
  }

  .img-half,
  .text-half {
    min-height: 300px;
    width: 100%;
  }

  .contenido-texto {
    max-width: 100%;
    text-align: center;
  }

  .sun-suites-slider-container,
  .villas-campestres-slider-container {
    padding: 0 1rem;
  }

  .sun-suites-section,
  .villas-campestres-section {
    margin-top: 4rem;
  }

  .villas-campestres-text {
    text-align: center;
    padding: 3rem 1.5rem 1.5rem 1.5rem !important;
  }

  .formulario-modern {
    padding: 2rem 1.5rem;
  }

  .icono-red {
    font-size: 1.25rem;
  }

  .social-icons {
    justify-content: center !important;
  }

  .popup-content {
    width: 90%;
    padding: 1.5rem 1rem;
  }
  .sun-suites-section .titulo-sun {
    margin-top: 4rem;
  }
}
