/*
 * ===============================================
 * HERO PREMIUM ANIMATED - Boulangeri
 * ===============================================
 * Hero section con animaciones de fondo elegantes
 * partículas, gradientes animados y efectos premium
 * ===============================================
 */

/* ===================================================
   HERO PREMIUM CONTAINER
   =================================================== */

.hero-premium {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
}

/* ===================================================
   IMAGEN DE FONDO
   =================================================== */

.hero-premium__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.25;
}

/* ===================================================
   OVERLAYS GRADIENTES
   =================================================== */

/* Overlay base oscuro */
.hero-premium__overlay-base {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 1;
}

/* Gradiente animado (aurora boreal effect) */
.hero-premium__overlay-animated {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 21, 56, 0.3) 0%,
    transparent 30%,
    rgba(139, 21, 56, 0.2) 60%,
    transparent 100%
  );
  background-size: 400% 400%;
  animation: aurora-flow 15s ease-in-out infinite;
  z-index: 2;
}

@keyframes aurora-flow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ===================================================
   PARTÍCULAS FLOTANTES
   =================================================== */

.hero-premium__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: float-hero-particle 20s ease-in-out infinite;
}

/* Partículas doradas grandes - CAMBIADAS A BORDÓ */
.hero-particle--gold {
  background: radial-gradient(circle, rgba(139, 21, 56, 0.9), transparent);
  box-shadow: 0 0 20px rgba(139, 21, 56, 0.6);
}

/* Partículas bordó */
.hero-particle--bordo {
  background: radial-gradient(circle, rgba(139, 21, 56, 0.8), transparent);
  box-shadow: 0 0 15px rgba(139, 21, 56, 0.5);
}

/* Partículas blancas sutiles */
.hero-particle--white {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes float-hero-particle {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
    transform: translateY(50vh) translateX(var(--drift-x, 50px)) scale(1);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) translateX(var(--drift-x-end, -30px)) scale(0.5);
    opacity: 0;
  }
}

/* Posiciones y tamaños de partículas */
.hero-particle:nth-child(1) {
  left: 10%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
  animation-duration: 18s;
  --drift-x: 60px;
  --drift-x-end: -40px;
}

.hero-particle:nth-child(2) {
  left: 25%;
  width: 50px;
  height: 50px;
  animation-delay: 3s;
  animation-duration: 22s;
  --drift-x: -50px;
  --drift-x-end: 30px;
}

.hero-particle:nth-child(3) {
  left: 45%;
  width: 60px;
  height: 60px;
  animation-delay: 6s;
  animation-duration: 20s;
  --drift-x: 40px;
  --drift-x-end: -50px;
}

.hero-particle:nth-child(4) {
  left: 60%;
  width: 70px;
  height: 70px;
  animation-delay: 2s;
  animation-duration: 24s;
  --drift-x: -60px;
  --drift-x-end: 40px;
}

.hero-particle:nth-child(5) {
  left: 75%;
  width: 55px;
  height: 55px;
  animation-delay: 8s;
  animation-duration: 19s;
  --drift-x: 50px;
  --drift-x-end: -30px;
}

.hero-particle:nth-child(6) {
  left: 88%;
  width: 65px;
  height: 65px;
  animation-delay: 5s;
  animation-duration: 21s;
  --drift-x: -40px;
  --drift-x-end: 50px;
}

.hero-particle:nth-child(7) {
  left: 15%;
  width: 45px;
  height: 45px;
  animation-delay: 10s;
  animation-duration: 23s;
  --drift-x: 70px;
  --drift-x-end: -20px;
}

.hero-particle:nth-child(8) {
  left: 35%;
  width: 75px;
  height: 75px;
  animation-delay: 4s;
  animation-duration: 25s;
  --drift-x: -45px;
  --drift-x-end: 60px;
}

.hero-particle:nth-child(9) {
  left: 55%;
  width: 50px;
  height: 50px;
  animation-delay: 12s;
  animation-duration: 20s;
  --drift-x: 55px;
  --drift-x-end: -35px;
}

.hero-particle:nth-child(10) {
  left: 80%;
  width: 60px;
  height: 60px;
  animation-delay: 7s;
  animation-duration: 22s;
  --drift-x: -55px;
  --drift-x-end: 45px;
}

/* ===================================================
   CÍRCULOS BLUR (GEOMETRIC SHAPES)
   =================================================== */

.hero-premium__shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  animation: float-shape 30s ease-in-out infinite;
}

.hero-shape--1 {
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #8B1538, #b91d47);
  animation-delay: 0s;
}

.hero-shape--2 {
  top: 60%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: linear-gradient(225deg, #8B1538, #ff69b4);
  animation-delay: 5s;
}

.hero-shape--3 {
  bottom: 15%;
  left: 50%;
  width: 250px;
  height: 250px;
  background: linear-gradient(315deg, #b91d47, #8B1538);
  animation-delay: 10s;
}

@keyframes float-shape {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -40px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 30px) scale(0.9);
  }
}

/* ===================================================
   CONTENIDO DEL HERO
   =================================================== */

.hero-premium__content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--color-white);
  max-width: 900px;
  padding: var(--spacing-6);
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================
   FRASE POÉTICA SUPERIOR
   =================================================== */

.hero-premium__tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-4);
  opacity: 0;
  animation: fadeInText 1.5s ease-out 0.3s forwards;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================
   TÍTULO PRINCIPAL
   =================================================== */

.hero-premium__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--spacing-6);
  line-height: 1.2;
  opacity: 0;
  animation: fadeInTitle 1.5s ease-out 0.6s forwards;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Espaciado entre líneas del título */
.hero-premium__title br {
  display: block;
  content: "";
  margin-bottom: 0.3em;
}

@keyframes fadeInTitle {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-premium__title-highlight {
  color: var(--color-white);
  font-style: italic;
  position: relative;
  display: inline-block;
  text-shadow: 
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(139, 0, 0, 0.3);
}

/* Underline animado en el highlight - BORDÓ */
.hero-premium__title-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
  opacity: 0.7;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* ===================================================
   SUBTÍTULO
   =================================================== */

.hero-premium__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-8);
  line-height: 1.6;
  opacity: 0;
  animation: fadeInText 1.5s ease-out 0.9s forwards;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================================
   FRASE POÉTICA INFERIOR
   =================================================== */

.hero-premium__quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin-top: var(--spacing-8);
  margin-bottom: var(--spacing-8);
  opacity: 0;
  animation: fadeInText 1.5s ease-out 1.5s forwards;
  letter-spacing: 0.03em;
  position: relative;
  padding: 0 var(--spacing-8);
}

.hero-premium__quote::before,
.hero-premium__quote::after {
  content: '"';
  font-size: 2em;
  color: var(--color-primary);
  opacity: 0.5;
  position: absolute;
}

.hero-premium__quote::before {
  left: 0;
  top: -10px;
}

.hero-premium__quote::after {
  right: 0;
  bottom: -20px;
}

/* ===================================================
   BOTONES
   =================================================== */

.hero-premium__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  align-items: center;
  opacity: 0;
  animation: fadeInText 1.5s ease-out 1.2s forwards;
}

@media (min-width: 640px) {
  .hero-premium__buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Botón primario hero */
.btn-hero-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #b91d47 100%);
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-lg);
  font-weight: 700;
  padding: 18px 36px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(139, 21, 56, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  z-index: 1;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #b91d47 0%, #ff69b4 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-hero-primary:hover::before {
  opacity: 1;
}

.btn-hero-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 50px rgba(139, 21, 56, 0.6);
}

.btn-hero-primary span {
  position: relative;
  z-index: 1;
}

/* Botón outline hero */
.btn-hero-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-lg);
  font-weight: 600;
  padding: 16px 34px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.btn-hero-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-hero-outline:hover::before {
  opacity: 1;
}

.btn-hero-outline:hover {
  border-color: var(--color-white);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ===================================================
   SCROLL INDICATOR
   =================================================== */

.hero-premium__scroll-indicator {
  position: absolute;
  bottom: var(--spacing-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2);
  opacity: 0;
  animation: fadeInScroll 1.5s ease-out 2s forwards;
}

@keyframes fadeInScroll {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero-premium__scroll-text {
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-premium__scroll-icon {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  position: relative;
}

.hero-premium__scroll-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0.3;
  }
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 768px) {
  .hero-premium__quote::before,
  .hero-premium__quote::after {
    font-size: 1.5em;
  }
  
  .hero-premium__quote {
    padding: 0 var(--spacing-4);
  }
  
  .hero-particle {
    width: 40px !important;
    height: 40px !important;
  }
  
  .hero-shape {
    filter: blur(40px);
    opacity: 0.1;
  }
  
  .hero-shape--1,
  .hero-shape--2,
  .hero-shape--3 {
    width: 200px;
    height: 200px;
  }
}

/* ===================================================
   PATTERN DECORATIVO DE FONDO
   =================================================== */

.hero-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}