/* static/css/home.css */

/* static/css/home.css */

/* ===== 1. HERO SECTION (Fondo Vibrante de Marca) ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  
  /* Imagen de fondo */
  background-image: url("https://images.unsplash.com/photo-1545316467-f703554f85e4?q=80&w=2071&auto=format&fit=crop"); 
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
}

/* Capa oscura (Para que el texto blanco resalte) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 1;
}

/* ✅ DEGRADADO DE MARCA: Amarillo -> Naranja -> Rojo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Mismos colores que en Clases para consistencia */
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.85), rgba(249, 115, 22, 0.85), rgba(220, 38, 38, 0.85));
  opacity: 0.8; /* Ajusta qué tan fuerte se ve el color (0.4 - 0.6 es ideal) */
  mix-blend-mode: overlay; /* Fusión profesional con la foto */
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 24px;
  /* Sombra para que el texto no se pierda en el color */
  text-shadow: 0 4px 12px rgba(0,0,0,0.5); 
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-family: 'Lato', sans-serif;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
}

/* Botón Hero Transparente/Glass */
.btn-hero {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background: #fff;
  color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ===== 2. SECCIÓN VALORES (NUEVO) ===== */
.values-section {
  padding: 4rem 0;
  background: #fff;
  position: relative;
  z-index: 2;
  margin-top: -50px; /* Superposición sutil */
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.value-card {
  text-align: center;
  padding: 2rem;
  transition: transform 0.3s ease;
}
.value-card:hover { transform: translateY(-5px); }

.value-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  background: var(--bg-page);
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ===== 3. PARALLAX & GALERÍA ===== */
.parallax {
  background-color: var(--bg-page); /* Fallback */
  padding-bottom: 4rem;
}

.section-head {
  text-align: center;
  padding: 3rem 0;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Galería Moderna (Masonry limpio) */
.gallery-wrap {
  background: transparent; /* Quitamos fondo de tarjeta para que respire */
  padding: 0; 
}

.gallery-masonry {
  column-count: 3;
  column-gap: 20px;
}

@media (max-width: 992px) { .gallery-masonry { column-count: 2; } }
@media (max-width: 576px) { .gallery-masonry { column-count: 1; } }

.gallery-item {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: none;
  background: #000;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  cursor: zoom-in;
  transition: all 0.3s ease;
  display: block; /* Importante para botones */
  padding: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
  opacity: 0.95;
}

/* Efecto Hover */
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.25);
}

.gallery-item:hover img {
  transform: scale(1.1);
  opacity: 0.7; /* Oscurecer un poco para resaltar el texto si hubiera */
}

/* Chips Flotantes */
.gallery-chip {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transform: translateY(0);
  transition: transform 0.3s ease;
  z-index: 2;
}

.gallery-item:hover .gallery-chip {
  transform: scale(1.05);
}

/* Modal Ajustado */
.gallery-modal-frame {
  background: black; /* Fondo negro para resaltar foto */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#galleryModalImg {
  max-height: 85vh;
  max-width: 100%;
  object-fit: contain;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .hero { min-height: 80vh; background-attachment: scroll; }
  .hero-title { font-size: 2.5rem; }
  .values-section { border-radius: 20px 20px 0 0; padding: 3rem 0; }
}