/*
  Estilos de Villa JerMar

  Utilizamos una paleta de colores inspirada en el logo:
  - primary: tono aguamarina para elementos principales
  - accent: naranja suave para llamadas a la acción
  - light: fondo claro
  - dark: texto y detalles
*/

:root {
  --primary-color: #008a8f;
  --accent-color: #f6a340;
  --dark-color: #333333;
  --light-color: #f8f9fa;
  --max-width: 1200px;
}

/* Global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  background-color: var(--light-color);
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Navigation bar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 1rem;
  /* Inspirado en Casamares: fondo claro cremoso y línea inferior decorativa */
  background-color: #fbf5ef;
  border-bottom: 1px solid rgba(0, 138, 143, 0.2);
  z-index: 1000;
}

.logo {
  height: 100px;
  width: auto;
}

/* Navigation links */
.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  transition: color 0.2s ease-in-out;
  /* Inspirado en Casamares: línea inferior que aparece al pasar el cursor */
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
}

.nav-links li a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Hamburger menu for mobile */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 21px;
  justify-content: space-between;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--dark-color);
  border-radius: 3px;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  position: relative;
}

.nav-toggle-label span::before {
  top: -6px;
}
.nav-toggle-label span::after {
  top: 6px;
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  /*
    Reemplazamos el fondo de degradado por una combinación de imagen y degradado.
    Se utiliza una fotografía del frente de la casa para darle mayor personalidad al sitio.
    El degradado semitransparente en capas ayuda a que el texto sea legible sobre la imagen.
  */
  background: 
    linear-gradient(rgba(0, 138, 143, 0.65), rgba(246, 163, 64, 0.65)),
    url('../images/patio_chairs.jpeg') center/cover no-repeat;
  color: #ffffff;
  padding: 4rem 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* Promociones en el héroe */
.promo {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #d4882b;
}

.btn-secondary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #006b73;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section:nth-of-type(even) {
  background-color: #ffffff;
}

.section:nth-of-type(odd) {
  background-color: var(--light-color);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
}

/* About section paragraphs */
.about p {
  margin-bottom: 1rem;
  max-width: 900px;
}

/* Amenities list */
.amenities-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem 1.5rem;
  padding-left: 0;
  margin-top: 1rem;
}

.amenities-list li {
  padding-left: 1.2rem;
  position: relative;
  font-size: 1rem;
}

.amenities-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-note {
  margin-top: 1rem;
  font-style: italic;
  text-align: center;
  color: #666666;
}

/* Location section */
.location a.link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.location a.link:hover {
  text-decoration: underline;
}

/* Contact form */
.contact-form {
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 3px rgba(0, 138, 143, 0.3);
}

/* Footer */
footer {
  background-color: #ffffff;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #777777;
  border-top: 1px solid #eaeaea;
}

/* Sticky reservation bar */
.sticky-reserve {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--accent-color);
  color: #ffffff;
  text-align: center;
  padding: 0.75rem 1rem;
  z-index: 999;
}
.sticky-reserve a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

/* Floating WhatsApp button */
.whatsapp-button {
  position: fixed;
  bottom: 4.5rem;
  right: 1rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  text-decoration: none;
}

@media (min-width: 768px) {
  /* Hide sticky reserve bar on larger screens where navigation is visible */
  .sticky-reserve {
    display: none;
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fbf5ef;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
  }
  .nav-links li {
    border-bottom: 1px solid #eeeeee;
  }
  .nav-links li a {
    display: block;
    padding: 0.75rem 1rem;
  }
  .nav-toggle:checked + .nav-toggle-label + .nav-links {
    max-height: 400px;
  }
  .nav-toggle-label {
    display: flex;
  }
  .amenities-list {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
}