/* ════════════════════════════════════════════════════════════════════
   EDALST PETS — Rediseño de la PÁGINA DE INICIO (index.html)
   Archivo localizado: solo afecta el inicio. Reutiliza las variables
   de style.css (--orange, --yellow, --muted, etc.)
════════════════════════════════════════════════════════════════════ */

/* ── Sistema de contenedor central (reutilizable) ─────────────────── */
.container {
  width: min(1260px, calc(100% - 48px));
  margin-inline: auto;
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
}

html, body { overflow-x: clip; }

/* Tipografía redondeada para la portada (no afecta otras páginas) */
.hero-banner h1,
.featured-sec .section-heading h2,
.promo strong,
.galeria-header h2 {
  font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
}
.text-orange { color: var(--orange); }

/* ════════════════════════════════════════════════════════════════════
   1) HERO PRINCIPAL — banner redondeado de 2 columnas
════════════════════════════════════════════════════════════════════ */
.hero-index { padding: 18px 0 0; }

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(118deg, #ffffff 0%, #fff6eb 38%, #ffe9d2 68%, #ffddad 100%);
  box-shadow:
    0 24px 60px rgba(243, 123, 33, 0.10),
    0 6px 18px rgba(22, 32, 42, 0.05);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 5.5vw, 68px) clamp(28px, 5vw, 64px);
  min-height: 470px;
}

/* Capas decorativas del fondo (sin imágenes externas) */
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(340px 340px at 86% 24%, rgba(255, 210, 74, 0.28), transparent 70%),
    radial-gradient(420px 420px at 70% 95%, rgba(255, 171, 77, 0.18), transparent 72%),
    radial-gradient(300px 300px at 6% 88%, rgba(255, 255, 255, 0.75), transparent 70%);
}
.hero-banner::after {
  content: "";
  position: absolute;
  top: -20px; right: -40px; bottom: -20px; width: 58%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 110 110'%3E%3Cg fill='%23f37b21' fill-opacity='0.055' transform='rotate(16 55 55)'%3E%3Cellipse cx='55' cy='66' rx='15' ry='11.5'/%3E%3Cellipse cx='33' cy='44' rx='8' ry='10.5' transform='rotate(-20 33 44)'/%3E%3Cellipse cx='55' cy='35' rx='8' ry='10.5'/%3E%3Cellipse cx='77' cy='44' rx='8' ry='10.5' transform='rotate(20 77 44)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 110px 110px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
}

.hero-banner > * { position: relative; z-index: 1; }

/* Columna izquierda: texto */
.hero-side { max-width: 640px; }

.hero-side .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(243, 123, 33, 0.25);
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(243, 123, 33, 0.08);
}

.hero-banner h1 {
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 3.6vw + 0.6rem, 3.35rem); /* ≈ 44–53px escritorio */
  line-height: 1.14;
  font-weight: 700;
  color: var(--ink);
}

.hero-desc {
  margin: 0 0 30px;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border: 0;
  border-radius: 16px;
  background: var(--orange);
  color: #fff !important;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 12px 26px rgba(243, 123, 33, 0.35), 0 3px 8px rgba(243, 123, 33, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.hero-btn i {
  transition: transform 0.22s ease;
}
.hero-btn:hover {
  background: #e56f12;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(243, 123, 33, 0.42), 0 5px 12px rgba(243, 123, 33, 0.28);
}
.hero-btn:hover i { transform: translateX(3px) scale(1.1); }
.hero-btn:active { transform: translateY(-1px) scale(0.97); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6b5b46;
  font-size: 0.86rem;
  font-weight: 700;
}
.hero-trust i { color: var(--teal); }

/* Columna derecha: ilustración de mascotas */
.hero-illustration {
  display: grid;
  place-items: center;
  min-width: 0;
}
.hero-illustration svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(214, 118, 40, 0.14));
}

/* Huellitas / elementos flotantes alrededor */
.hero-float {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--orange);
  box-shadow: 0 6px 16px rgba(22, 32, 42, 0.10);
  pointer-events: none;
}
.hero-float.fa-solid { font-size: 1rem; }
.hero-float-1 { top: 12%; left: 46%;  width: 44px; height: 44px; color: var(--teal); }
.hero-float-2 { bottom: 14%; right: 6%; width: 54px; height: 54px; color: #f47f87; font-size: 1.15rem; }
.hero-float-3 { bottom: 24%; left: 3%;  width: 40px; height: 40px; color: #e9b928; }
.hero-float-4 { top: 20%; right: 8%;  width: 34px; height: 34px; }
.hero-float i { display: block; }

/* ════════════════════════════════════════════════════════════════════
   2) PRODUCTOS DESTACADOS — espaciado + tarjetas + skeleton
════════════════════════════════════════════════════════════════════ */
.featured-sec { padding-top: 74px; }

.featured-sec .section-heading { margin-bottom: 30px; }
.featured-sec .section-heading h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); color: var(--ink); }
.featured-sec .eyebrow { color: var(--orange); }

.product-grid { gap: 20px; }

/* Tarjetas de producto pulidas (conserva estructura existente) */
.product-card {
  border-radius: 20px;
  border: 1.5px solid #eef2f6;
  padding: 14px 14px 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(22, 32, 42, 0.06);
}
.product-card:hover {
  border-color: rgba(243, 123, 33, 0.35);
  box-shadow: 0 20px 40px rgba(243, 123, 33, 0.13);
}
.product-image, .product-image-wrap { border-radius: 14px; overflow: hidden; }

/* Skeleton de carga mientras consulta Supabase */
.sk-card {
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1.5px solid #eef2f6;
  box-shadow: 0 6px 18px rgba(22, 32, 42, 0.05);
  grid-column: auto;
}
.sk-img {
  height: 175px;
  border-radius: 14px;
  margin-bottom: 14px;
  background: linear-gradient(100deg, #f2ece2 20%, #faf6ef 40%, #f2ece2 60%);
  background-size: 200% 100%;
  animation: skShimmer 1.4s ease-in-out infinite;
}
.sk-line {
  height: 14px;
  border-radius: 7px;
  margin-bottom: 10px;
  background: linear-gradient(100deg, #f2ece2 20%, #faf6ef 40%, #f2ece2 60%);
  background-size: 200% 100%;
  animation: skShimmer 1.4s ease-in-out infinite;
}
.sk-line.short { width: 55%; }
@keyframes skShimmer {
  from { background-position: 180% 0; }
  to   { background-position: -80% 0; }
}

/* Botón "Ver más productos" */
.featured-sec .cat-load-more-wrap { margin-top: 26px; }
.featured-sec .cat-load-more {
  min-width: 220px;
  padding: 13px 26px;
  border: 0;
  border-radius: 14px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(243, 123, 33, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.featured-sec .cat-load-more:hover {
  background: #e56f12;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(243, 123, 33, 0.36);
}

/* Estado sin productos (estilo local para el inicio) */
.product-grid .empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 52px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1.5px dashed #eadfcc;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}
.product-grid .empty-state i { font-size: 3rem; color: var(--orange); opacity: 0.85; }

/* ════════════════════════════════════════════════════════════════════
   3) TARJETAS DE CATEGORÍAS (promo grid)
════════════════════════════════════════════════════════════════════ */
.promo-grid {
  width: min(1260px, calc(100% - 48px));
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
}
.promo {
  min-height: 158px;
  padding: 22px 24px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.promo::before {
  content: "";
  position: absolute;
  right: -34px; top: -34px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.3s ease;
}
.promo:hover::before { transform: scale(1.25); }
.promo-orange { background: linear-gradient(135deg, #f37b21, #ffb14a); }
.promo-teal   { background: linear-gradient(135deg, #149c8a, #2f6fd6); }
.promo-dark   { background: linear-gradient(135deg, #24384a, #2f6fd6); }
.promo:hover { transform: translateY(-5px); box-shadow: 0 26px 54px rgba(22, 32, 42, 0.16); }
.promo span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.74rem;
}
.promo strong { position: relative; margin-top: 14px; }

/* ════════════════════════════════════════════════════════════════════
   4) GALERÍA DE MASCOTAS — panel independiente protagonista
════════════════════════════════════════════════════════════════════ */
.galeria-section {
  width: min(1260px, calc(100% - 48px));
  margin: clamp(80px, 9vw, 96px) auto 0;
  padding: 0 0 clamp(64px, 8vw, 88px);
}

.gallery-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(155deg, #fff6eb 0%, #f4fafe 52%, #e8f4fc 100%);
  box-shadow: 0 22px 54px rgba(23, 59, 88, 0.08);
  padding: clamp(30px, 4.5vw, 52px) clamp(18px, 4vw, 48px) clamp(30px, 4vw, 44px);
}

.gallery-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23149c8a' fill-opacity='0.045' transform='rotate(-12 60 60)'%3E%3Cellipse cx='60' cy='73' rx='13' ry='10'/%3E%3Cellipse cx='41' cy='54' rx='7' ry='9' transform='rotate(-20 41 54)'/%3E%3Cellipse cx='60' cy='45' rx='7' ry='9'/%3E%3Cellipse cx='79' cy='54' rx='7' ry='9' transform='rotate(20 79 54)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 60%);
          mask-image: linear-gradient(115deg, #000 0%, transparent 60%);
}
.gallery-panel > * { position: relative; z-index: 1; }

/* Decoraciones flotantes dentro del panel */
.gallery-float {
  position: absolute;
  z-index: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(23, 59, 88, 0.10);
  color: var(--teal);
  pointer-events: none;
}
.gallery-float-1 { top: 9%;  left: 3.5%;  width: 46px; height: 46px; color: #f47f87; }
.gallery-float-2 { top: 14%; right: 4%;   width: 40px; height: 40px; color: #e9b928; }
.gallery-float-3 { bottom: 9%; left: 6%;  width: 36px; height: 36px; }
.gallery-float i { display: block; }

.galeria-header {
  text-align: center;
  margin-bottom: 34px;
}
.galeria-header h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  color: var(--ink);
  font-weight: 700;
}
.galeria-header h2 i {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 10px 22px rgba(243, 123, 33, 0.35);
}
.galeria-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 58ch;
  margin-inline: auto;
}

/* Cuadrícula de fotos */
.galeria-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  align-items: start;
}
.galeria-card {
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(23, 59, 88, 0.08);
  animation: cardRise 0.55s ease both;
}
.galeria-card:nth-child(2) { animation-delay: 0.06s; }
.galeria-card:nth-child(3) { animation-delay: 0.12s; }
.galeria-card:nth-child(4) { animation-delay: 0.18s; }
.galeria-card:nth-child(5) { animation-delay: 0.24s; }
@keyframes cardRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.galeria-card-img-wrap { border-radius: 18px 18px 0 0; }
.galeria-card-info { padding: 11px 14px 13px; }
.galeria-card-likes {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ffeef0;
  color: #e04a5f;
  font-size: 0.76rem;
  font-weight: 800;
}

/* Cargando galería */
.galeria-loading {
  grid-column: 1 / -1;
  padding: 46px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  font-weight: 600;
}

/* Estado vacío mejorado */
.galeria-empty-fancy {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 20px 8px;
}
.gef-art {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.gef-art svg {
  width: min(330px, 74vw);
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(214, 118, 40, 0.10));
}
.gef-cam {
  position: absolute;
  right: 4%; bottom: 18%;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1.35rem;
  border: 5px solid #fff;
  box-shadow: 0 10px 24px rgba(20, 156, 138, 0.35);
}
.galeria-empty-fancy p {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
}
.galeria-empty-fancy small {
  margin-top: 8px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.galeria-ver-mas { text-align: center; margin-top: 32px; }
.btn-ver-galeria {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 999px;
  background: #fff;
  color: var(--orange);
  border: 2px solid rgba(243, 123, 33, 0.4);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(23, 59, 88, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.btn-ver-galeria i { transition: transform 0.22s ease; }
.btn-ver-galeria:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(243, 123, 33, 0.32);
}
.btn-ver-galeria:hover i { transform: translateX(4px); }

/* ════════════════════════════════════════════════════════════════════
   5) ANIMACIONES DE ENTRADA (secciones) + reducción de movimiento
════════════════════════════════════════════════════════════════════ */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* Huellitas flotando (hero + galería) */
@media (prefers-reduced-motion: no-preference) {
  .hero-float, .gallery-float { animation: floatBob 5.5s ease-in-out infinite; }
  .hero-float-2, .gallery-float-1 { animation-delay: 0.9s; }
  .hero-float-3, .gallery-float-2 { animation-delay: 1.6s; }
  .hero-float-4                    { animation-delay: 2.3s; }
  .gallery-float-3                 { animation-delay: 2.9s; }
  .hero-illustration svg { animation: floatSoft 7s ease-in-out infinite; }
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float, .gallery-float, .hero-illustration svg, .galeria-card,
  .sk-img, .sk-line { animation: none !important; }
  .hero-btn, .btn-ver-galeria, .promo, .hero-float, .gallery-float { transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ════════════════════════════════════════════════════════════════════
   6) RESPONSIVE — tablet y móvil
════════════════════════════════════════════════════════════════════ */
@media (max-width: 1020px) {
  .hero-banner {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
    gap: 30px;
  }
  .hero-side { margin-inline: auto; }
  .hero-side .eyebrow { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-desc { margin-inline: auto; }
  .hero-illustration { order: 2; }
  .hero-illustration svg { max-width: 420px; }
  .hero-float-1 { left: 8%; }
  .hero-float-4 { display: none; }
  .galeria-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
}

@media (max-width: 900px) {
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid .promo:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero-banner {
    border-radius: 18px;
    padding: 34px 22px 30px;
  }
  .hero-banner h1 { font-size: clamp(1.8rem, 7.2vw, 2.4rem); }
  .hero-btn { width: 100%; justify-content: center; min-height: 50px; }
  .hero-float-3 { display: none; }
  .hero-float { width: 36px !important; height: 36px !important; font-size: 0.85rem; }
  .featured-sec { padding-top: 56px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sk-img { height: 120px; }
  .promo-grid { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 12px; margin-top: -20px; }
  .promo { min-height: 112px; padding: 18px; }
  .promo strong { font-size: clamp(1.1rem, 4.5vw, 1.4rem); }
  .galeria-section { width: calc(100% - 32px); margin-top: 64px; padding-bottom: 56px; }
  .gallery-panel { border-radius: 20px; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .galeria-card-likes { font-size: 0.7rem; }
  .btn-ver-galeria { width: 100%; justify-content: center; }
  .gallery-float-2 { display: none; }
}

@media (max-width: 400px) {
  .product-grid, .galeria-grid { grid-template-columns: 1fr; }
}
