/* 
 * Estilos principales - Casa Lindo Lugar
 * Archivo modular y mantenible
 */

/* Variables CSS */
@import './styles/components/variables.css';
@import './styles/components/base.css';
@import './styles/components/navbar.css';
@import './styles/components/hero.css';
@import './styles/components/buttons.css';
@import './styles/components/cards.css';
@import './styles/components/social.css';
@import './styles/components/layout.css';
@import './styles/components/gallery.css';
@import './styles/components/responsive.css';

/* Variables adicionales para compatibilidad */
:root {
  --primary-color: var(--color-primario);
  --text-color: var(--color-texto);
}

/* Estilos básicos para asegurar visibilidad */
section {
  min-height: auto;
  position: relative;
  z-index: 1;
}

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

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* Asegurar que las secciones se vean */
#sobre, #casa, #servicios, #galeria, #ubicacion {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Galería básica */
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 20px !important;
  margin-top: 2rem !important;
}

.gallery-item {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 15px !important;
  box-shadow: 0 5px 20px rgba(113, 104, 91, 0.10) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  aspect-ratio: 4/3 !important;
}

.gallery-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: all 0.3s ease !important;
}

.gallery-item:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 30px rgba(113, 104, 91, 0.15) !important;
}

.gallery-item:hover img {
  transform: scale(1.05) !important;
}

.gallery-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%) !important;
  opacity: 0 !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1 !important;
}

.gallery-overlay i {
  color: white !important;
  font-size: 2rem !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  padding: 12px !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Estilos específicos para Casa Lindo Lugar */
.casa-card {
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.casa-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.casa-features {
  list-style: none;
  padding: 0;
}

.casa-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.casa-features li:last-child {
  border-bottom: none;
}

.casa-features i {
  font-size: 1.2rem;
}

/* Override para asegurar que los servicios se vean bien */
.servicio-item {
  padding: 1.5rem 1rem !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 2px 8px rgba(113, 104, 91, 0.08) !important;
}

.servicio-item:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.servicio-icon {
  font-size: 2.5rem !important;
  color: #71685b !important;
  margin-bottom: 1rem !important;
  display: block !important;
}

.servicio-text {
  font-weight: 500 !important;
  color: #272121 !important;
  font-size: 0.9rem !important;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  width: 60px !important;
  height: 60px !important;
  background: #25D366 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  color: white !important;
  font-size: 1.8rem !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
  transition: all 0.3s ease !important;
  z-index: 1000 !important;
  animation: float 3s ease-in-out infinite !important;
}

.whatsapp-float:hover {
  background: #128C7E !important;
  transform: scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6) !important;
  color: white !important;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* La Casa Section - Hero Style */
.casa-hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.casa-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.casa-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.casa-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.casa-content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 4rem 0;
}

.casa-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.casa-hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.caracteristicas-hero {
  margin-top: 3rem;
}

.caracteristica-hero-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.caracteristica-hero-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.caracteristica-hero-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
}

.caracteristica-hero-item h5 {
  color: white;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.caracteristica-hero-item p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Responsive adjustments for Casa Hero */
@media (max-width: 991.98px) {
  .casa-hero-title {
    font-size: 2rem;
  }
  
  .casa-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .casa-hero-section {
    min-height: 70vh;
  }
}

@media (max-width: 576px) {
  .casa-hero-title {
    font-size: 1.8rem;
  }
  
  .casa-hero-subtitle {
    font-size: 1rem;
  }
  
  .casa-hero-section {
    min-height: 60vh;
  }
  
  .casa-content-wrapper {
    padding: 2rem 0;
  }
  
  .caracteristica-hero-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .caracteristica-hero-icon {
    width: 50px;
    height: 50px;
  }
  
  .caracteristica-hero-icon i {
    font-size: 1.5rem !important;
  }
}
