/* Paleta de colores cálidos */
:root {
  --color-primario: #bb8e76;      /* terracota muy suave */
  --color-secundario: #f0d4b4;    /* beige claro suave */
  --color-terciario: #f8e9da;     /* beige muy claro */
  --color-acento: #d4b292;        /* durazno suave */
  --color-fondo: #fffbf7;         /* blanco cálido muy sutil */
  --color-texto: #6b5a4c;         /* marrón grisáceo */
  --color-texto-claro: #fffcf9;   /* blanco cálido */
}

/* Estilos principales */
html { scroll-behavior: smooth; }

body {
  background-color: var(--color-fondo);
  color: var(--color-texto);
}

/* ===== COMPONENTES PRINCIPALES ===== */
/* Hero */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: var(--color-texto-claro);
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: url('assets/ensueno_serrano/hero.jpg') no-repeat center center;
  background-size: cover;
  z-index: -1;
  transform: translateZ(0);
  will-change: transform;
}

.overlay { 
  background: rgba(0,0,0,0.25);
  height: 100%; 
}

/* Efectos de animación */
.fade-in { 
  opacity: 0; 
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.visible { 
  opacity: 1; 
  transform: none;
}

/* Navbar */
.navbar-transparent {
  background: transparent !important;
  box-shadow: none;
  transition: background 0.3s, padding 0.3s;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.navbar-sticky {
  background: rgba(187, 142, 118, 0.85) !important; /* Color primario con transparencia */
  box-shadow: 0 2px 8px rgba(187, 142, 118, 0.15);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition: background 0.3s, padding 0.3s;
}

.navbar .nav-link.active, 
.navbar .nav-link:focus, 
.navbar .nav-link:hover {
  color: #fff !important;
  text-decoration: underline;
}

/* ===== BOTONES ===== */
.btn-light {
  background-color: var(--color-acento);
  border-color: var(--color-acento);
  color: var(--color-texto-claro);
}

.btn-light:hover, 
.btn-light:focus {
  background-color: var(--color-primario);
  border-color: var(--color-primario);
  color: var(--color-texto-claro);
}

/* ===== CONTACTO FLOTANTE ===== */
.contacto-flotante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
}

.btn-whatsapp {
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.btn-whatsapp:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transform: scale(1.07);
}

@media (max-width: 600px) {
  .btn-whatsapp {
    padding: 4px;
  }
  
  .btn-whatsapp img {
    width: 40px;
    height: 40px;
  }
}

/* ===== ALOJAMIENTOS ===== */
.cabana-img { 
  height: 220px; 
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(.22,1,.36,1), box-shadow 0.5s; 
}

/* ===== SERVICIOS ===== */
#servicios .row > div {
  font-size: 1.08rem;
}

#servicios img {
  flex-shrink: 0;
}

.servicio-icono svg {
  display: block;
  color: var(--color-primario);
}

/* ===== UBICACIÓN ===== */
.ubicacion-mapa-wrapper {
  max-width: 700px;
  background: var(--color-terciario);
  border: none;
  box-shadow: 0 5px 15px rgba(187, 142, 118, 0.08);
  padding: 24px;
}

@media (max-width: 900px) {
  .ubicacion-mapa-wrapper {
    max-width: 100%;
    padding: 8px;
  }
}

#ubicacion .ratio {
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
}

/* ===== TIPOGRAFÍA ===== */
body, 
p, 
.card-text, 
.lead, 
.text-muted, 
#servicios .fw-semibold, 
.alojamiento-card .card-text {
  font-family: 'Open Sans', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, 
.navbar, 
.navbar-brand, 
.nav-link, 
.alojamiento-card .card-title, 
#servicios h2, 
#servicios .fw-semibold {
  font-family: 'Open Sans', sans-serif !important;
  letter-spacing: 0.01em;
  color: var(--color-primario);
}

.navbar-brand, .nav-link {
  font-weight: 600;
}

/* ===== CARDS ===== */
.alojamiento-card {
  background-color: var(--color-terciario);
  border-color: var(--color-secundario);
  transition: transform 0.3s ease;
}

.alojamiento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(187, 142, 118, 0.12);
}

.alojamiento-card .card-title {
  font-weight: 700;
  color: var(--color-primario);
}

/* ===== FOOTER ===== */
.footer-custom {
  background: rgba(187, 142, 118, 0.92);
  color: var(--color-texto-claro);
}

.footer-icon-link {
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-icon-link:hover {
  opacity: 1;
}

.social-icon {
  display: block;
}

.footer-logo {
  border: 2px solid #eee;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Powered by Viajerix */
.footer a img {
  transition: opacity 0.3s ease;
}

.footer a:hover img {
  opacity: 0.8;
}

.filter-white {
  filter: brightness(0) invert(1);
}

.contacto-icon {
  display: inline-block;
  vertical-align: middle;
}

/* ===== MODAL GALERÍA ===== */
.modal-content {
  background: rgba(30, 30, 30, 0.92); /* gris oscuro con transparencia */
  border: none;
  box-shadow: none;
}

.modal-header {
  border-bottom: none;
}

.modal-body {
  padding: 0;
}

.carousel-inner {
  border-radius: 0;
  background: transparent;
}

.carousel-inner img {
  object-fit: contain !important;
  background: rgba(30, 30, 30, 0.92); /* mismo fondo que el modal */
}

/* ===== SOBRE EL LUGAR ===== */
#sobre img {
  max-height: 300px;
  object-fit: cover;
}

#sobre .row {
  display: flex;
  flex-wrap: wrap;
}

#sobre .col-md-6:first-child {
  flex: 1 1 50%;
  text-align: left;
  margin-bottom: 0;
}

#sobre .col-md-6:last-child {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767.98px) {
  #sobre .row {
    flex-direction: column !important;
  }
  #sobre .col-md-6 {
    max-width: 100%;
    flex: 0 0 100%;
  }
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  #sobre .col-md-6 {
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .alojamiento-card {
    margin-bottom: 1.5rem;
  }
}

/* Notificación promocional flotante igual a Lindo Lugar */
.promo-flotante {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1001;
  max-width: 320px;
  animation: slideInLeft 0.8s ease-out;
}
.promo-content {
  background: linear-gradient(135deg, rgba(194, 164, 118, 0.9) 0%, rgba(184, 149, 107, 0.9) 100%);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}
.promo-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.9rem;
}
.promo-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
.promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.promo-text {
  margin-bottom: 12px;
}
.promo-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.promo-text p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.95;
}
.promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: #C2A476;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.2s;
  width: 100%;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: none;
}
.promo-btn:hover {
  background: white;
  color: #C2A476;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.promo-flotante.hidden {
  animation: slideOutLeft 0.5s ease-in forwards;
}
@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}
