/* ==========================================================================
   WagglyPetMania — index.css
   --------------------------------------------------------------------------
   Estilos específicos de la página de inicio: hero, ventajas, categorías,
   productos destacados, banner promocional, testimonios y CTA final.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 4rem 0 6rem;
  overflow: hidden;
  background:
    radial-gradient(920px 480px at 88% -12%, var(--accent-100), transparent 62%),
    radial-gradient(720px 420px at -8% 42%, #e8f1fb, transparent 56%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-800);
  background: var(--accent-100);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.4rem;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(114, 47, 55, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(114, 47, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(114, 47, 55, 0); }
}

.hero h1 { margin-bottom: 1.1rem; }

.hero-content > p {
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-trust .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-100);
  color: var(--accent-800);
  font-size: 0.7rem;
  margin-right: 0.35rem;
}

/* --- Imagen y tarjetas flotantes --- */
.hero-media {
  position: relative;
}

.hero-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}

.hero-card strong { display: block; font-size: 0.95rem; color: var(--primary-900); }
.hero-card span { font-size: 0.78rem; color: var(--text-muted); }

.hero-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  border-radius: 12px;
  background: var(--accent-100);
}

.hero-card-1 { top: 7%; left: -6%; animation-delay: 0s; }
.hero-card-2 { bottom: 9%; right: -4%; animation-delay: 1.6s; }

/* --------------------------------------------------------------------------
   2. FRANJA DE VENTAJAS
   -------------------------------------------------------------------------- */
.features {
  padding: 0.5rem 0 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 14px;
  color: var(--accent-800);
  background: var(--accent-100);
}

.feature-icon svg { width: 26px; height: 26px; }

.feature h3 { margin-bottom: 0.45rem; font-size: 1.05rem; }
.feature p { font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   3. CATEGORÍAS
   -------------------------------------------------------------------------- */
.categories { background: var(--surface); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  box-shadow: var(--shadow-sm);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover img { transform: scale(1.08); }

.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(10, 31, 54, 0) 30%, rgba(10, 31, 54, 0.75));
  color: var(--white);
}

.category-overlay h3 { color: var(--white); margin-bottom: 0.25rem; }
.category-overlay span { font-size: 0.9rem; font-weight: 500; opacity: 0.85; }

/* --------------------------------------------------------------------------
   4. PRODUCTOS DESTACADOS
   -------------------------------------------------------------------------- */
.featured-products { background: var(--bg); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.products-more {
  text-align: center;
  margin-top: 2.8rem;
}

/* --------------------------------------------------------------------------
   5. BANNER PROMOCIONAL
   -------------------------------------------------------------------------- */
.promo {
  padding: 0;
}

.promo-inner {
  background:
    radial-gradient(600px 340px at 90% -30%, rgba(114, 47, 55, 0.28), transparent 60%),
    linear-gradient(135deg, var(--primary-900), var(--primary));
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  margin: 3rem auto 0;
  color: var(--white);
}

.promo-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.promo h2 { color: var(--white); max-width: 28ch; margin-bottom: 0.9rem; }
.promo p { color: #b9c9da; margin-bottom: 1.8rem; }

/* --------------------------------------------------------------------------
   6. TESTIMONIOS
   -------------------------------------------------------------------------- */
.testimonials { background: var(--surface); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-stars { color: var(--star); letter-spacing: 3px; }

.testimonial blockquote {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text);
  flex: 1;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}

.testimonial figcaption strong {
  display: block;
  font-size: 0.92rem;
  color: var(--primary-900);
}

.testimonial figcaption span:not(.avatar) { font-size: 0.8rem; color: var(--text-muted); }

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c, var(--primary));
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   7. CTA FINAL
   -------------------------------------------------------------------------- */
.cta-banner {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, var(--accent-600), var(--accent));
}

.cta-inner { text-align: center; }

.cta-inner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-inner p { color: rgba(255, 255, 255, 0.88); margin-bottom: 2rem; font-size: 1.05rem; }

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.cta-outline:hover { background: var(--white); color: var(--accent-800); }

/* --------------------------------------------------------------------------
   8. RESPONSIVE DE LA PORTADA
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { max-width: 560px; margin-inline: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding-top: 2.5rem; }
  .hero-card-1 { left: 2%; top: 4%; }
  .hero-card-2 { right: 2%; }
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .promo-inner { padding: 2.5rem 1.6rem; }
}
