/* ============================================
   FABRIEMPANADAS - Home / Landing Page
   ============================================ */

/* --------------------------------------------
   HERO SECTION
   -------------------------------------------- */
#inicio {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 60%, #8B4513 100%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(245,124,0,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(251,192,45,0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(245,124,0,0.08) 0%, transparent 40%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding: 0;
  }
}

/* Contenido hero */
.hero-content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content { text-align: left; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(245,124,0,0.2);
  border: 1px solid rgba(245,124,0,0.4);
  color: var(--secondary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  animation: fadeInDown 0.6s ease forwards;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  animation: fadeIn 0.8s ease 0.2s both;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 0.8s ease 0.4s both;
}

@media (min-width: 1024px) {
  .hero-subtitle { margin-left: 0; }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  animation: fadeIn 0.8s ease 0.6s both;
}

@media (min-width: 1024px) {
  .hero-buttons { justify-content: flex-start; }
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  justify-content: center;
  animation: fadeIn 0.8s ease 0.8s both;
}

@media (min-width: 1024px) {
  .hero-stats { justify-content: flex-start; }
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--secondary);
  display: block;
}

.hero-stat-label {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Imagen hero */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s ease 0.3s both;
}

.hero-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-img-wrapper img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(245,124,0,0.3), rgba(251,192,45,0.2));
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(245,124,0,0.4);
  gap: var(--space-md);
}

.hero-img-placeholder span:first-child {
  font-size: 5rem;
  animation: float 3s ease infinite;
}

.hero-img-placeholder span:last-child {
  color: rgba(255,255,255,0.5);
  font-size: var(--font-size-sm);
}

/* Floating cards en hero */
.hero-float-card {
  position: absolute;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--dark);
  animation: float 4s ease infinite;
}

.hero-float-card.card-1 {
  top: 10%;
  right: -10px;
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  bottom: 15%;
  left: -10px;
  animation-delay: 1.5s;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.5);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeIn 1s ease 1.5s both;
}

.scroll-dot {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollDot 1.5s ease infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  100%      { transform: translateY(12px); opacity: 0; }
}

/* --------------------------------------------
   NOSOTROS
   -------------------------------------------- */
#nosotros .container > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 1024px) {
  #nosotros .container > div {
    grid-template-columns: 1fr 1fr;
  }

  #nosotros .container > div > div:first-child {
    order: 1 !important;
  }

  #nosotros .container > div > div:last-child {
    order: 2 !important;
  }
}

/* --------------------------------------------
   BENEFICIOS
   -------------------------------------------- */
#beneficios {
  background: var(--light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}

.benefit-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-primary);
  border-color: var(--primary);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.benefit-card h3 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-sm);
  color: var(--dark);
}

.benefit-card p {
  font-size: var(--font-size-sm);
  color: var(--gray);
}

/* --------------------------------------------
   PRODUCTOS DESTACADOS
   -------------------------------------------- */
#productos {
  background: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--gray-border);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--light);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--light), #FFE0B2);
}

.product-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
}

.product-body {
  padding: var(--space-lg);
}

.product-category {
  font-size: var(--font-size-xs);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
}

.product-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

.product-desc {
  font-size: var(--font-size-sm);
  color: var(--gray);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-size {
  font-size: var(--font-size-xs);
  color: var(--gray);
  margin-bottom: var(--space-md);
}

.product-pricing {
  margin-bottom: var(--space-md);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-border);
}

/* --------------------------------------------
   MAYORISTAS / B2B
   -------------------------------------------- */
#mayoristas {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  position: relative;
  overflow: hidden;
}

#mayoristas::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,124,0,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.wholesalers-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .wholesalers-inner { grid-template-columns: 1fr 1fr; }
}

.wholesalers-content h2 {
  color: #ffffff;
  margin-bottom: var(--space-md);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.wholesalers-content h2 span {
  color: var(--secondary);
}

.wholesalers-content p {
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-md);
}

.wholesalers-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.wholesalers-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: rgba(255,255,255,0.85);
  font-size: var(--font-size-base);
}

.wholesalers-item .icon {
  width: 42px;
  height: 42px;
  background: rgba(245,124,0,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.wholesalers-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.wholesaler-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.wholesaler-card:hover {
  background: rgba(245,124,0,0.15);
  border-color: rgba(245,124,0,0.4);
  transform: translateY(-4px);
}

.wholesaler-card .icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.wholesaler-card h4 { color: #ffffff; font-size: var(--font-size-base); margin-bottom: var(--space-xs); }
.wholesaler-card p { color: rgba(255,255,255,0.6); font-size: var(--font-size-sm); }

/* --------------------------------------------
   TESTIMONIOS
   -------------------------------------------- */
#testimonios {
  background: var(--light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: var(--space-lg);
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-stars {
  color: var(--secondary);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-md);
}

.testimonial-text {
  color: var(--gray);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: var(--font-size-base);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  color: var(--dark);
  font-size: var(--font-size-sm);
}

/* --------------------------------------------
   CTA FINAL
   -------------------------------------------- */
#cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: var(--space-md);
}

.cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------
   HERO VIDEO DE FONDO
   -------------------------------------------- */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Por defecto en móvil: mostrar móvil, ocultar desktop */
.hero-video-desktop { display: none; }
.hero-video-mobile  { display: block; }

/* En pantallas grandes: mostrar desktop, ocultar móvil */
@media (min-width: 768px) {
  .hero-video-desktop { display: block; }
  .hero-video-mobile  { display: none; }
}

/* Overlay para legibilidad del texto */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(78, 42, 18, 0.45) 0%,
    rgba(78, 42, 18, 0.28) 50%,
    rgba(78, 42, 18, 0.12) 100%
  );
}

/* Asegurar que el contenido quede sobre el video */
#inicio .hero-bg-pattern,
#inicio .container,
#inicio .hero-scroll {
  position: relative;
  z-index: 1;
}