/* ==========================
   General
========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  line-height: 1.6;
  padding: 10px;
  background-color: #fdfdfd;
  z-index: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================
   Header
========================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Nav flex: separa links y iconos */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
 
  /* ocupa todo el espacio disponible */
}

.nav-left,
.nav-right {
  display: flex;
  gap: 20px;
  /* espacio uniforme entre enlaces e iconos */
}

.nav-left a {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.3s;
}

.nav-left a:hover {
  background-color: rgba(45, 106, 79, 0.2);
}

.nav-right a {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B3954;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-right a:hover {
  transform: scale(1.3);
  color: #115E67;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 20px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav-left,
  .nav-right {
    gap: 15px;
  }
}



/* ==========================
   Hero
========================== */
.hero-section {
  display: flex;
  justify-content: center;   /* 🔥 centra horizontalmente */
  align-items: center;
  gap: 300px;                 /* 🔥 espacio entre texto y carrusel */
  padding: 48px;
  background: linear-gradient(90deg, #0F4B2D 0%, #115E67 100%);
  color: #fff;
  animation: gradientBG 15s ease infinite;
  background-size: 200% 200%;
  flex-wrap: wrap;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


.hero-left {
  flex: 1 1 30%;     /* 🔥 texto ocupa 45% */
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;  /* mantiene letras alineadas a la izquierda */
}



.hero-left h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-left p {
  margin-bottom: 20px;
}

.btn-cta {
  display: inline-block;
  max-width: 200px;
  width: auto;
  padding: 10px 18px;
  text-align: center;
  border-radius: 8px;
  background: #fff;
  color: #0B3954;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s, background 0.3s;
}

.btn-cta:hover {
  background: #FFC107;
  transform: translateY(-3px) scale(1.05);
}

.hero-right img {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 0px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Responsive Hero */
@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 26px;
  }

  .hero-left,
  .hero-right {
    width: 100%;
  }

  .hero-left h1 {
    font-size: 30px;
  }
}

/* ==========================
   Propiedades Carousel
========================== */
.propiedades {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.propiedades-carousel {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.prop-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
}

.prop-cards::-webkit-scrollbar {
  display: none;
}

.prop-card {
  flex: 0 0 600px;
  max-width: 400px;
  height: 700px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.prop-card:hover {
  transform: translateY(-5px);
}

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

.prop-body {
  padding: 15px;
}

/* Tags */
.tags {
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  background: #00b4d8;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  padding: 4px 20px;
  border-radius: 20px;
  margin-right: 6px;
}

.tag.tipo {
  background: #0077b6;
}

/* Título e ID */
.prop-body h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.prop-body .id {
  font-size: 25px;
  color: #555;
  margin-bottom: 10px;
}

/* Lista de características */
.features {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #333;
  flex: 1;
  /* 🔹 Para que la lista crezca si es necesario */
}

.features li {
  margin-bottom: 30px;
}

/* Precio */
.price {
  font-size: 22px;
  font-weight: bold;
  background: #103a57;
  color: #fff;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  align-self: flex-start;
  /* 🔹 Mantiene el precio alineado a la izquierda */
}

/* Botones del carrusel */
.prop-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border: none;
  background-color: rgba(15, 75, 45, 0.9);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s;
}

.prop-btn:hover {
  background-color: #115E67;
  transform: scale(1.1);
}

.prop-btn.left {
  left: 0;
}

.prop-btn.right {
  right: 0;
}

/* Responsive Carrusel */
@media (max-width: 768px) {
  .prop-card {
    flex: 0 0 85%;
    max-width: 85%;
  }

  .prop-btn {
    display: none;
  }
}

/* ==========================
   Testimonios
========================== */
.testimonios {
  padding: 80px 20px;
  background: #f5f5f5;
  text-align: center;
}

.testimonios-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.testimonio-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.testimonio-card p {
  font-style: italic;
  margin-bottom: 15px;
}

/* ==========================
   Contacto
========================== */
/* Contacto */
.contacto {
  padding: 40px 20px;
  text-align: center;
}

.contacto-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.contacto-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.contacto-form button {
  background: #0077b6;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}

.contacto-form button:hover {
  background: #023e8a;
}

.contacto-mapa {
  flex: 1;
  min-width: 300px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Íconos */
.contact-icons {
  margin-top: 20px;
}

.contact-icons a {
  margin: 0 10px;
  font-size: 28px;
  color: #0077b6;
  transition: color 0.3s;
}

.contact-icons a:hover {
  color: #023e8a;
}


/* ==========================
   Footer
========================== */
.footer {
  background: #11137c;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer h3 {
  margin-bottom: 10px;
}

.footer-social {
  margin: 15px 0;
}

.footer-social a {
  margin: 0 10px;
  color: #fff;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  color: #FFD700;
  transform: scale(1.2);
}

.footer-copy {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.8;
}

/* ==========================
   Animaciones de Scroll
========================== */
.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================
   Preloader
========================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #0F4B2D;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ==========================
   Carrusel Hero derecha
========================== */
.hero-right {
  flex: 1 1 45%;     /* 🔥 carrusel ocupa 45% */
  display: flex;
  justify-content: center;  /* 🔥 centrado */
  align-items: center;
  position: relative;
}
.hero-right .carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: auto;
  overflow: hidden;
}

.hero-right .carousel {
  display: flex;
  gap: 20px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.hero-right .carousel::-webkit-scrollbar {
  display: none;
}

.hero-right .card {
  flex: 0 0 calc(35% - 10px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.hero-right .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Imagen ocupa 50% de la tarjeta */
.hero-right .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Mapa ocupa 50% de la tarjeta */
.hero-right .card iframe {
  width: 100%;
  height: 160px;
  border: 0;
}

/* Botones del carrusel */
.hero-right .carousel-btn {
  position: absolute;
  top: 45%;
  width: 40px;
  height: 40px;
  border: none;
  background-color: #E64A19;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.hero-right .carousel-btn:hover {
  transform: scale(1.1);
  background-color: #1D2A62;
}

.hero-right .carousel-btn.left {
  left: -10px;
}

.hero-right .carousel-btn.right {
  right: -10px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-section {

    flex-direction: column;
    text-align: center;
  }

  .hero-right .carousel-wrapper {
    max-width: 100%;
    margin-top: 500px;
  }

  .hero-right .card {
    flex: 0 0 100%;
  
  }

  .hero-right .carousel-btn {
    top: 60%;
  }
}

/* ==========================
   Global Scroll suave
========================== */
html {
  scroll-behavior: smooth;
}

/* ==========================
   Media Queries extra
========================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .hero-left h1 {
    font-size: 24px;
  }

  .btn-cta {
    max-width: 100%;
  }
}

/* ==========================
   FIn Style.css
========================== */