/* ========== ESTILOS GENERALES ========== */
:root {
  /* Paleta de colores */
  --beige: #f5f5dc;
  --arena: #d2b48c;
  --gris-claro: #e0e0e0;
  --verde-oliva: #808000;
  --verde-musgo: #556b2f;
  --terracota: #e2725b;
  --negro-carbon: #2e2e2e;
  --azul-petroleo: #003d52;

  /* Fuentes */
  --font-titles: "Playfair Display", serif;
  --font-body: "Lora", serif;

  /* Tamaños */
  --header-height: 80px;
  --section-padding: 60px 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--negro-carbon);
  background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-titles);
  font-weight: 600;
  color: var(--azul-petroleo);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
}

a {
  text-decoration: none;
  color: var(--azul-petroleo);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--terracota);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
}

.separator {
  height: 3px;
  width: 60px;
  background-color: var(--terracota);
  margin: 0 auto;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--verde-musgo);
  color: white;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--verde-oliva);
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--terracota);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #d05a44;
  color: white;
}

.bg-light {
  background-color: var(--beige);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  width: auto;
  height: 70px;
}

.nav-toggle {
  display: block;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--negro-carbon);
}

.navigation {
  position: fixed;
  top: var(--header-height);
  left: -100%;
  width: 80%;
  height: calc(100vh - var(--header-height));
  background-color: white;
  transition: all 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.navigation.active {
  left: 0;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-items: center;
  list-style: none;
  padding: 20px;
}

.nav-links li {
  margin-bottom: 15px;
}

.nav-links a {
  display: block;
  font-size: 1.1rem;
  color: var(--negro-carbon);
  padding: 5px 0;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--terracota);
  padding-left: 5px;
}

.nav-links .btn-primary {
  color: #fff;
  padding: 8px 16px;
}

.nav-links .btn-primary:hover {
  color: #fff;
  padding: 8px 16px;
}

/* ========== HERO SECTION ========== */
.hero {
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/src/img/santa-monica-hero.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-container {
  width: 100%;
  padding: 0 20px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  color: white;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

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

/* ========== HISTORIA SECTION ========== */
.historia-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.historia-imagen {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.historia-texto {
  flex: 1;
}

/* ========== NOSOTROS SECTION ========== */
.nosotros-content {
  text-align: center;
}

.nosotros-texto {
  max-width: 800px;
  margin: 0 auto 40px;
}

.valores {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.valor {
  padding: 30px 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.valor:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.valor i {
  font-size: 2.5rem;
  color: var(--terracota);
  margin-bottom: 15px;
}

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

/* ========== GALERIA SECTION ========== */
.galeria-slider {
  position: relative;
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
}

.slide {
  position: relative;
}

.slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
}

.slide-info h3 {
  color: white;
  margin-bottom: 5px;
}

.slider-controls {
  position: absolute;
  bottom: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(50%);
  padding: 0 20px;
}

.slider-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-controls button:hover {
  background-color: white;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.galeria-item {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.galeria-item:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ========== CARACTERISTICAS SECTION ========== */
.caracteristicas-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.comodidades,
.plano {
  flex: 1;
}

.comodidades-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.comodidades-list li {
  display: flex;
  align-items: center;
}

.comodidades-list i {
  color: var(--terracota);
  margin-right: 10px;
  font-size: 1.2rem;
}

.plano-imagen {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gris-claro);
}

.dimensiones {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.dimension-item {
  flex: 1;
  min-width: 150px;
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dimension-item h4 {
  color: var(--verde-musgo);
  margin-bottom: 5px;
}

/* ========== UBICACION SECTION ========== */
.ubicacion-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mapa {
  flex: 3;
  height: 400px; /* Aumentar la altura */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gris-claro);
  position: relative;
  width: 100%;
}

.mapa-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mapa-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ubicacion-info {
  flex: 2;
}

.ubicacion-detalles {
  list-style: none;
  margin-top: 20px;
}

.ubicacion-detalles li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.ubicacion-detalles i {
  color: var(--terracota);
  margin-right: 10px;
  margin-top: 5px;
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--azul-petroleo);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80%;
  max-height: 80%;
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  margin: 0 auto;
}

.footer-logo img {
  width: 90%;
  height: auto;
}

.footer-logo p {
  color: var(--gris-claro);
}

.footer h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.contacto-info {
  list-style: none;
}

.contacto-info li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.contacto-info i {
  margin-right: 10px;
  color: var(--terracota);
}

.contacto-info a {
  color: white;
}

.redes-sociales {
  display: flex;
  list-style: none;
  gap: 15px;
}

.redes-sociales a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.redes-sociales a:hover {
  background-color: var(--terracota);
  transform: translateY(-3px);
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-family: var(--font-body);
}

.newsletter-form button {
  border-radius: 0 4px 4px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.footer-bottom p {
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.footer-links a {
  color: var(--gris-claro);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .navigation {
    position: static;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    padding: 0;
  }

  .nav-links li {
    margin: 0 0 0 20px;
  }

  .nav-links a {
    padding: 0;
  }

  .nav-links a:hover {
    padding-left: 0;
  }

  .historia-content {
    flex-direction: row;
  }

  .valores {
    grid-template-columns: repeat(3, 1fr);
  }

  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .caracteristicas-content {
    flex-direction: row;
  }

  .ubicacion-content {
    flex-direction: row;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-logo {
    margin: 0;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .section-header h2 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 3.5rem;
  }

  .hero-content p {
    font-size: 1.4rem;
  }
}

/* ========== ANIMACIONES ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Para el slider de la galería - se activará con JS */
.slide {
  display: none;
}

.slide.active {
  display: block;
}
