html {
  scroll-behavior: smooth;
}

/* ===== Reset básico ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  padding-top: 80px; /* espacio para el header fijo */
}

/* ===== Header fijo ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(34, 34, 34, 0.9);
  color: white;
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

header .container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

header nav a:hover {
  color: #ff6b6b;
}

/* ===== Hero Section ===== */
.hero {
  background-image: url('../imagenes/apartment.jpeg'); 
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

/* capa oscura sobre la imagen */
.hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  top: 0;
  left: 0;
}

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

.hero h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

/* botón */
.hero button {
  background: #ff6b6b;
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.hero button:hover {
  background: #ff3b3b;
}

/* ===== Footer ===== */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 15px;
}

/* ===== Features Section ===== */

.features {
  padding: 60px 20px;
  text-align: center;
  background: #f5f5f5;
}

.features h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

.features-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.feature {
  background: white;
  padding: 25px;
  width: 250px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

/* ===== Gallery Section ===== */

/* ===== Gallery Section ===== */

.gallery {
  padding: 60px 20px;
  text-align: center;
}

.gallery h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 1000px;
  margin: auto;
}

.gallery-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

.gallery-container img:hover {
  transform: scale(1.03);
}

/* ===== Location Section ===== */

.location {
  padding: 60px 20px;
  text-align: center;
  background: #f5f5f5;
}

.location h2 {
  font-size: 36px;
  margin-bottom: 30px;
}

.map-container {
  max-width: 1000px;
  margin: auto;
  border-radius: 10px;
  overflow: hidden;
}

/* ===== Reviews Section ===== */

.reviews {
  padding: 60px 20px;
  text-align: center;
}

.reviews h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

.reviews-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
}

.review {
  background: #ffffff;
  padding: 25px;
  width: 280px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.review p:first-child {
  font-size: 20px;
  color: #ffb400;
}

.review span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

/* ===== WhatsApp Floating Button ===== */

.whatsapp-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  z-index: 1000;
}

.whatsapp-button img {
  width: 100%;
  height: 100%;
}

/* ===== Lightbox ===== */

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* ===== Pricing Section ===== */

.pricing {
  padding: 60px 20px;
  text-align: center;
  background: #f5f5f5;
}

.pricing h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

.pricing-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.price-card {
  background: white;
  padding: 30px;
  width: 250px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.price-card h3 {
  margin-bottom: 10px;
}

.price {
  font-size: 28px;
  font-weight: bold;
  margin: 15px 0;
}

.featured {
  border: 2px solid #ff6b6b;
}

/* ===== Calendar ===== */

.calendar {
  padding: 60px 20px;
  text-align: center;
}

.calendar-container {
  max-width: 1000px;
  margin: auto;
}

/* ===== Booking Links ===== */

.booking-links {
  padding: 60px 20px;
  text-align: center;
  background: #f5f5f5;
}

.booking-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.booking-button {
  padding: 15px 25px;
  font-size: 18px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
}

.airbnb {
  background: #ff385c;
}

.booking {
  background: #003580;
}

/* ===== Mobile Menu ===== */

.menu-toggle {
display: none;
font-size: 28px;
background: none;
border: none;
color: white;
cursor: pointer;
}

@media (max-width: 768px) {

.menu-toggle {
display: block;
}

.nav-menu {
display: none;
flex-direction: column;
background: #222;
width: 100%;
padding: 10px 0;
}

.nav-menu a {
padding: 10px;
}

.nav-menu.active {
display: flex;
}

header .container {
flex-direction: column;
}

}

/* ===== Availability Search ===== */

.search-box {
background:white;
padding:20px;
border-radius:10px;
max-width:900px;
margin:30px auto;
box-shadow:0 5px 20px rgba(0,0,0,0.1);
}

.search-box form {
display:flex;
gap:20px;
flex-wrap:wrap;
justify-content:center;
}

.search-field {
display:flex;
flex-direction:column;
}

.search-field input {
padding:8px;
border-radius:5px;
border:1px solid #ccc;
}

.search-field button {
background:#ff6b6b;
color:white;
border:none;
padding:10px 20px;
border-radius:5px;
cursor:pointer;
}

.search-field button:hover {
background:#ff3b3b;
}

#calendar-section{
padding:60px;
max-width:900px;
margin:auto;
}

#calendar{
margin-top:30px;
}

#calendar {
max-width:900px;
margin:40px auto;
}

.fc {
max-width:900px;
margin:auto;
}

.map-container iframe{
width:100%;
height:450px;
border:0;
}

.hero{
background-image:url("../imagenes/apartment.jpeg");
background-size:cover;
background-position:center;
height:70vh;
display:flex;
align-items:center;
justify-content:center;
color:white;
text-align:center;
}

.hero-content{
background:rgba(0,0,0,0.4);
padding:40px;
border-radius:10px;
}

.hero-buttons{
margin-top:20px;
}

.btn-primary{
background:#ff6b6b;
color:white;
padding:12px 20px;
border-radius:6px;
text-decoration:none;
margin-right:10px;
}

.btn-secondary{
background:#25D366;
color:white;
padding:12px 20px;
border-radius:6px;
text-decoration:none;
}

.gallery{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:15px;
max-width:1100px;
margin:auto;
padding:20px;
}

.gallery img{
width:100%;
height:220px;
object-fit:cover;
border-radius:10px;
cursor:pointer;
transition:transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover{
transform:scale(1.05);
box-shadow:0 10px 25px rgba(0,0,0,0.3);
}

.gallery{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:15px;
max-width:1100px;
margin:auto;
padding:20px;
align-items:stretch;
}

@media (max-width:768px){

.hero{
height:60vh;
padding:20px;
}

.hero h1{
font-size:26px;
}

.hero h2{
font-size:20px;
}

.hero-buttons{
display:flex;
flex-direction:column;
gap:10px;
}

}

@media (max-width:768px){

.gallery{
grid-template-columns:1fr;
}

.gallery img{
height:200px;
}

}

.map-container iframe{
width:100%;
border-radius:10px;
}

@media (max-width:768px){

nav{
flex-direction:column;
gap:10px;
}

}