/* Ruta: public/css/propuestas.css — Propuestas
   Estructura: cabecera (portada + índice) sobre fondo gris general,
   y una franja de ANCHO COMPLETO por cada propuesta, alternando
   fondo blanco / tinte guinda claro, con numeración editorial,
   ícono, título, frase y flyer ampliable en visor.

   Paleta de marca (misma que sobre-albert.css):
   - Principal Guinda: #4A0A12
   - Oscuro Secundario: #2D0A0F
   - Intermedio: #6B0F1A
   - Acento Rojo: #CC0000
   - Fondo General: #F5F5F5
   - Tinte guinda claro (franjas pares): #FBF3F4
   - Tipografías: 'Space Grotesk' (títulos), 'Inter' (cuerpo)
*/

.propuestas-cabecera,
.propuestas-bloque {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1F1A1B;
  width: 100%;
  box-sizing: border-box;
}

.propuestas-cabecera *, .propuestas-cabecera *::before, .propuestas-cabecera *::after,
.propuestas-bloque *, .propuestas-bloque *::before, .propuestas-bloque *::after {
  box-sizing: border-box;
}

/* ═══════════════ CABECERA: PORTADA + ÍNDICE ═══════════════ */
.propuestas-cabecera {
  background-color: #F5F5F5;
  padding: 4rem 1.25rem 4.5rem;
}

.propuestas-cabecera__contenedor {
  max-width: 1140px;
  margin: 0 auto;
}

.propuestas-portada {
  text-align: center;
  margin-bottom: 3.5rem;
}

.propuestas-portada__etiqueta {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  background-color: #CC0000;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.propuestas-portada__titulo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #4A0A12;
  margin: 0 0 0.9rem;
}

.propuestas-portada__linea {
  display: block;
  width: 72px;
  height: 3px;
  margin: 0 auto 2rem;
  background-color: #CC0000;
  border-radius: 2px;
}

.propuestas-portada__imagen-wrapper {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(74, 10, 18, 0.16);
  border: 1px solid #E8E2E3;
}

.propuestas-portada__imagen {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Índice: tarjetas de acceso rápido ─── */
.propuestas-indice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.propuestas-indice__tarjeta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem 1.25rem;
  background-color: #FFFFFF;
  border: 1px solid #E8E2E3;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.propuestas-indice__tarjeta:hover,
.propuestas-indice__tarjeta:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(74, 10, 18, 0.18), 0 2px 6px rgba(0, 0, 0, 0.05);
  border-color: #CC0000;
}

.propuestas-indice__icono {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #FBEAEA;
  color: #CC0000;
}

.propuestas-indice__icono svg {
  width: 24px;
  height: 24px;
}

.propuestas-indice__titulo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #4A0A12;
}

.propuestas-indice__ver {
  font-size: 0.75rem;
  font-weight: 600;
  color: #CC0000;
}

/* ═══════════════ FRANJAS DE PROPUESTA (ancho completo) ═══════════════ */
.propuestas-bloque {
  background-color: #FFFFFF;
  padding: 4.5rem 1.25rem;
  scroll-margin-top: 90px; /* deja espacio para el header fijo al hacer scroll */
}

.propuestas-bloque--tintado {
  background-color: #FBF3F4;
}

.propuestas-bloque__contenedor {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.propuestas-bloque__numero {
  position: absolute;
  top: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(74, 10, 18, 0.07);
  pointer-events: none;
  user-select: none;
}

.propuestas-bloque__encabezado {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
}

.propuestas-bloque__icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background-color: #4A0A12;
  color: #FFFFFF;
}

.propuestas-bloque__icono svg {
  width: 30px;
  height: 30px;
}

.propuestas-bloque__titulo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: #4A0A12;
  margin: 0 0 0.75rem;
}

.propuestas-bloque__linea {
  display: block;
  width: 64px;
  height: 3px;
  margin: 0 auto 1.1rem;
  background-color: #CC0000;
  border-radius: 2px;
}

.propuestas-bloque__frase {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #4A3F41;
  margin: 0 auto;
  max-width: 560px;
}

.propuestas-bloque__imagen-wrapper {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(74, 10, 18, 0.16);
  border: 1px solid #E8E2E3;
}

.propuestas-bloque__imagen {
  display: block;
  width: 100%;
  height: auto;
}

/* ═══════════════ OVERLAY DE LUPA (portada + cada flyer) ═══════════════ */
.propuestas-zoom-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(to top, rgba(45, 10, 15, 0.55) 0%, rgba(45, 10, 15, 0) 45%);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.propuestas-zoom-overlay__icono {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.94);
  font-size: 1.3rem;
}

.propuestas-portada__imagen-wrapper:hover .propuestas-zoom-overlay,
.propuestas-portada__imagen-wrapper:focus-visible .propuestas-zoom-overlay,
.propuestas-bloque__imagen-wrapper:hover .propuestas-zoom-overlay,
.propuestas-bloque__imagen-wrapper:focus-visible .propuestas-zoom-overlay {
  opacity: 1;
}

/* En celular no hay hover: se muestra siempre un aviso chico fijo abajo
   a la derecha, para que el usuario sepa que puede ampliar la imagen. */
@media (hover: none) {
  .propuestas-zoom-overlay {
    opacity: 1;
    inset: auto;
    bottom: 0.75rem;
    right: 0.75rem;
    left: auto;
    top: auto;
    flex-direction: row;
    background: rgba(45, 10, 15, 0.82);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
  }

  .propuestas-zoom-overlay__icono {
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
    background-color: transparent;
  }
}

/* ═══════════════ VISOR / LIGHTBOX DEL FLYER ═══════════════ */
.propuestas-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.propuestas-modal[hidden] {
  display: none;
}

.propuestas-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(20, 4, 6, 0.88);
}

.propuestas-modal__contenido {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  width: 100%;
}

.propuestas-modal__imagen {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto;
}

.propuestas-modal__cerrar {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background-color: #FFFFFF;
  color: #4A0A12;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════ ANIMACIÓN DE APARICIÓN AL HACER SCROLL ═══════════════ */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 480px) {
  .propuestas-indice {
    grid-template-columns: repeat(2, 1fr);
  }

  .propuestas-bloque__numero {
    font-size: 4rem;
    top: -1.6rem;
  }

  .propuestas-bloque {
    padding: 3.5rem 1.25rem;
  }
}
