/* ==========================================================================
   PORTFOLIO PREVIEW – FBH PHOTOGRAPHY
   Versión PRO – Responsive + Full Speed + Glass Adaptive + Titles White BG
   ========================================================================== */

/* MOBILE FIRST (base) */
.home-portfolio-preview {
  width: 100%;
  max-width: 1200px;
  margin: 70px auto;
  padding: 0 18px;
  text-align: center;
}

/* ==========================================================================
   TITLES – Adaptados para fondo blanco (Glass + Glow suave)
   ========================================================================== */

/* TÍTULO PRINCIPAL (arriba, fondo blanco) */
.hpp-title-main {
  font-family: 'Inter Tight', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #1f2937; /* Gris oscuro editorial */
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hpp-title-main strong {
  color: #000000;
}

/* SUBTÍTULO */
.hpp-lead {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.05rem;
  color: #555555;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.55;
  opacity: 0.92;
  text-shadow: 0 0 8px rgba(255,255,255,0.35);
}

/* ==========================================================================
   GRID
   ========================================================================== */

.hpp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 30px;
}

/* ==========================================================================
   CARD – Glassmorphism adaptativo
   ========================================================================== */

.hpp-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform .35s ease, box-shadow .35s ease, border .35s ease;
  will-change: transform;
}

@media (hover: hover) {
  .hpp-item:hover {
    transform: translateY(-4px);
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.55),
      0 0 14px rgba(0, 255, 200, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }
}

/* Background layer */
.hpp-card-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
}

/* ==========================================================================
   IMAGE
   ========================================================================== */

.hpp-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform .45s ease, filter .45s ease;
  will-change: transform;
}

@media (hover: hover) {
  .hpp-item:hover .hpp-img {
    transform: scale(1.05);
    filter: brightness(1.18);
  }
}

/* ==========================================================================
   GLOW (solo desktop)
   ========================================================================== */

@media (min-width: 768px) {
  .hpp-item::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 45px;
    background: linear-gradient(90deg,
      #00f0ff,
      #ff00cc,
      #ff9900,
      #a64dff,
      #00ff99
    );
    background-size: 400% 400%;
    animation: glowShift 12s linear infinite;
    filter: blur(28px);
    opacity: 0.55;
    z-index: 1;
    pointer-events: none;
  }
}

@keyframes glowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==========================================================================
   META
   ========================================================================== */

.hpp-meta {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  text-align: left;
}

.hpp-cat {
  font-family: 'Inter Tight', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: #ffffff;
  opacity: .85;
}

/* TÍTULO DENTRO DE LAS IMÁGENES (este sí es blanco) */
.hpp-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

/* ==========================================================================
   CTA BUTTON – Profesional estilo Apple Glass
   ========================================================================== */

.hpp-actions {
  margin-top: 40px;
}

.hpp-view-all {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.10);
  color: #111111;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.2px;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.08),
    0 0 0 1px rgba(255,255,255,0.65) inset;
  transition: all .28s ease;
}

@media (hover: hover) {
  .hpp-view-all:hover {
    background: rgba(255,255,255,0.92);
    transform: translateY(-3px);
    box-shadow:
      0 12px 32px rgba(0,0,0,0.12),
      0 0 0 1px rgba(255,255,255,0.85) inset;
  }
}

/* ==========================================================================
   DESKTOP OPTIMIZADO
   ========================================================================== */

@media (min-width: 768px) {
  .home-portfolio-preview {
    margin: 90px auto;
  }

  .hpp-title-main {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .hpp-lead {
    font-size: 1.15rem;
    margin-bottom: 45px;
  }

  .hpp-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
  }

  .hpp-item,
  .hpp-card-bg {
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
  }
}