/* Fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

/* Variables CSS para colores */
:root {
  --primary-color: #8B4513; /* Marrón tierra */
  --secondary-color: #D2B48C; /* Beige claro */
  --accent-color: #A0522D; /* Marrón rojizo */
  --text-dark: #333;
  --text-light: #f4f4f4;
  --bg-light: #f9f9f9;
  --bg-dark: #eaeaea;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fff; /* Fondo blanco para el cuerpo */
  .footer {
  background-color: #222;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

.footer .social-links {
  margin-top: 10px;
}

.footer .social-links a {
  color: #fff;
  margin: 0 10px;
  font-size: 20px;
  transition: color 0.3s;
}

.footer .social-links a:hover {
  color: #25d366;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  padding: 15px;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
  text-align: center;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}

}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tipografía */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  margin-bottom: 15px;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
  margin-bottom: 10px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

/* Botones */
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 12px 25px;
  border-radius: 5px;
  transition: background 0.3s ease;
  margin-top: 20px;
  font-weight: bold;
}

.btn:hover {
  background: var(--accent-color);
}

.btn-small {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 8px 15px;
  border-radius: 3px;
  transition: background 0.3s ease;
  font-size: 0.9em;
  font-weight: bold;
}

.btn-small:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

/* Header */
.header {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

.header .logo {
  margin: 0;
  font-size: 2em;
  color: var(--text-light);
}

.header .nav ul {
  display: flex;
  gap: 25px;
}

.header .nav a {
  color: var(--text-light);
  font-weight: bold;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.header .nav a:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  background-image: url("img/sparzahotel.jpg"); /* Imagen de portada */
  background-size: cover;       /* Que cubra toda la pantalla */
  background-position: center;  /* Centrada */
  height: 100vh;                /* Toda la altura de la pantalla */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}


.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Overlay oscuro para mejor legibilidad del texto */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h2 {
  font-size: 3.5em;
  margin-bottom: 15px;
  color: var(--text-light);
}

.hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
}

/* Secciones Generales */
.section {
  padding: 80px 0;
  text-align: center;
}

.section:nth-of-type(even) { /* Estilo para secciones alternas */
  background-color: var(--bg-light);
}

.section h3 {
  font-size: 2.5em;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 10px auto 0;
}

.section p {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1em;
}

/* Acerca de Nosotros */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.about-item {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.about-item:hover {
  transform: translateY(-5px);
}

.about-item img {
  max-width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.about-item h4 {
  color: var(--accent-color);
  margin-bottom: 10px;
}

/* Habitaciones */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.room-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease;
}

.room-card:hover {
  transform: translateY(-5px);
}

.room-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.room-card h4 {
  padding: 15px 20px 0;
  color: var(--accent-color);
}

.room-card p {
  padding: 0 20px;
  font-size: 0.95em;
  margin-bottom: 10px;
}

.room-card ul {
  padding: 0 20px 15px;
  list-style: disc;
  margin-left: 20px;
  font-size: 0.9em;
  color: #555;
}

.room-card ul li {
  margin-bottom: 5px;
}

.room-card .btn-small {
  margin: 0 20px 20px;
}

/* Habitaciones - Estilos para el despliegue */
.room-card {
  text-align: center; /* Centra el título y los botones */
}

.room-card h4 {
  padding: 15px 20px 0; /* Mantén el padding del título */
}

.room-toggle {
  display: none; /* Oculta el checkbox real */
}

.room-details-content {
  max-height: 0; /* Oculta el contenido por defecto */
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding: 0 20px; /* Padding inicial para la transición */
  text-align: left; /* Alinea el texto de los detalles a la izquierda */
}

/* Oculta el botón "Cerrar Detalles" por defecto */
.room-card .hide-details {
  display: none;
}

/* Estilos para los botones de alternancia */
.toggle-btn {
  margin-top: 15px; /* Espacio entre el título/imagen y el botón */
  margin-bottom: 15px; /* Espacio entre el botón y el contenido (cuando visible) */
}

/* Cuando el checkbox está marcado (detalles visibles) */
.room-toggle:checked ~ .room-details-content {
  max-height: 500px; /* Suficiente altura para mostrar el contenido */
  padding: 0 20px 20px; /* Restaura el padding cuando es visible */
}

.room-toggle:checked + .show-details {
  display: none; /* Oculta el botón "Ver Detalles" */
}

.room-toggle:checked ~ .hide-details {
  display: inline-block; /* Muestra el botón "Cerrar Detalles" */
}

/* Ajustes de padding para el contenido dentro de room-details-content */
.room-details-content p {
  padding: 0; /* Elimina el padding directo del párrafo */
  margin-bottom: 10px;
}

.room-details-content ul {
  padding: 0; /* Elimina el padding directo de la lista */
  list-style: disc;
  margin-left: 20px; /* Añade el margen para los puntos de la lista */
  font-size: 0.9em;
  color: #555;
}

.room-details-content ul li {
  margin-bottom: 5px;
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.service-item h4 {
  color: var(--accent-color);
  margin-bottom: 10px;
}

.service-item p {
  font-size: 0.9em;
  margin-bottom: 0;
}

/* Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* Contacto */
.contact-info {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  padding: 30px;
  background: var(--bg-light);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.map-placeholder {
  margin-top: 30px;
  border: 1px solid var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.map-placeholder iframe {
  width: 100%;
  height: 450px; /* Ajusta esta altura si lo deseas */
  display: block;
}

.map-placeholder p {
  font-size: 0.9em;
  color: #777;
  margin: 10px 0;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 30px 0;
  text-align: center;
  font-size: 0.9em;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer .social-links {
  display: flex;
  gap: 15px;
}

.footer .social-links img {
  width: 24px;
  height: 24px;
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%); /* Hace los iconos blancos */
  transition: transform 0.3s ease;
}

.footer .social-links img:hover {
  transform: translateY(-3px);
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
  .header .container {
      flex-direction: column;
      text-align: center;
  }

  .header .nav ul {
      flex-direction: column;
      gap: 10px;
      margin-top: 15px;
  }

  .hero-content h2 {
      font-size: 2.5em;
  }

  .hero-content p {
      font-size: 1em;
  }

  .section {
      padding: 60px 0;
  }

  .section h3 {
      font-size: 2em;
  }

  .about-grid, .room-grid, .services-grid, .gallery-grid {
      grid-template-columns: 1fr; /* Una columna en móviles */
  }

  .room-card, .about-item, .service-item {
      margin: 0 auto;
      max-width: 400px; /* Limita el ancho en móviles */
  }

  .contact-info {
      padding: 20px;
  }
}

@media (max-width: 480px) {
  .header .logo {
      font-size: 1.8em;
  }

  .hero {
      min-height: 400px;
      padding: 100px 15px;
  }

  .hero-content h2 {
      font-size: 2em;
  }

  .hero-content p {
      font-size: 0.9em;
  }

  .btn {
      padding: 10px 20px;
      font-size: 0.9em;
  }

  .section {
      padding: 40px 0;
  }

  .section h3 {
      font-size: 1.8em;
  }

  .section p {
      font-size: 0.9em;
      margin-bottom: 20px;
  }
}.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  padding: 15px;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
  text-align: center;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}

