/* ── VARIABLES ── */
:root {
  --cream:       #f5ede0;
  --brown:       #3d2314;
  --mocha:       #7b4a2e;
  --tan:         #c49a6c;
  --dark-bg:     #1e1510;
  --btn-bg:      #3d2314;
  --btn-hover:   #5a3520;
  --text-dark:   #2b1a0f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.superpet-landing {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
}

img { display: block; }

/* ════════════════════════════════
   HERO
════════════════════════════════ */

/*
  Estrategia de capas (de atrás hacia adelante):
    0 · Fondo crema (.hero background)
    1 · hero-top-img   — PNG con hojas superiores (posición normal, empuja el contenido)
    2 · hero-body      — zona central. El perro vive aquí como absolute
    3 · hero-dog       — absolute dentro de hero, z-index 2
    4 · hero-bot-img   — PNG wave+hojas inferiores, z-index 4, margin-top negativo
                         para que tape la parte baja del perro
*/

.hero {
  background: var(--cream);
  position: relative;   /* contexto para el perro */
  overflow: visible;    /* permite que el perro sobresalga si es necesario */
}

/* ── PNG superior: hojas top ── */
.hero-top-img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* ── Zona central: texto + perro ── */
.hero-body {
  position: relative;
  min-height: clamp(220px, 28vw, 360px);
  display: flex;
  align-items: center;
  /* SIN overflow:hidden — el perro necesita sobresalir hacia abajo */
}

/* ── Texto ── */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 16px 24px 84px 10%;
  max-width: 52%;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 8rem);
  font-weight: 800;
  line-height: 1.0;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.hero p.tagline {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: var(--mocha);
  margin-bottom: 26px;
  font-weight: 500;
}
.hero p.tagline span { font-weight: 800; }

/* ── Perro: absolute en .hero, pegado derecha, bottom justo donde
      comienza hero-bot-img (que hace margin-top negativo).
      z-index 2 → queda sobre la burbuja pero bajo bot-img (z:4) ── */
.hero-dog {
  position: absolute;
  right: 0;
  /* bottom = altura aproximada del bot-img que sube con margin-top negativo */
  bottom: clamp(30px, 8vw, 20px);
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
}
.hero-dog img {
  height: clamp(220px, 44vw, 510px);
  width: auto;
  object-fit: contain;
  display: block;
}

/* ── PNG inferior: wave + hojas bot ── */
.hero-bot-img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 4;           /* encima del perro → tapa sus patas */
  margin-top: clamp(-60px, -8vw, -30px); /* sube y solapa el perro abajo */
  pointer-events: none;
}

/* ── Burbuja decorativa (círculo crema a la derecha) ── */
.hero-bubble {
  position: absolute;
  border-radius: 50%;
  background: #ddd0be;
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
}
.hero-bubble-1 {
  width: clamp(160px, 26vw, 320px);
  height: clamp(160px, 26vw, 320px);
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
}

/* ── Responsive móvil ── */
@media (max-width: 640px) {
  .hero-content { max-width: 60%; padding: 12px 16px 20px 16px; }
  .hero-bubble-1 { right: 0; opacity: 0.3; }
}
@media (max-width: 400px) {
  .hero-content { max-width: 65%; }
}

/* ════════════════════════════════
   BTN
════════════════════════════════ */
.btn-superpet {
  background: var(--btn-bg);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 30px;
  padding: 11px 28px;
  text-decoration: none !important;
  display: inline-block;
  transition: background .2s, transform .15s;
}
.btn-superpet:hover {
  background: var(--btn-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-superpet.light {
  background: var(--cream);
  color: var(--brown);
}
.btn-superpet.light:hover { background: #e8d9c5; }

/* ════════════════════════════════
   SUBTITLE BAND
════════════════════════════════ */
.subtitle-band {
  background: #fff;
  text-align: center;
  padding: 24px 20px 16px;
  font-size: clamp(.95rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: var(--text-dark);
}

/* ════════════════════════════════
   CATEGORIES
════════════════════════════════ */
.categories {
  background: #fff;
  padding: 8px 16px 36px;
}

.cat-item { text-align: center; }

.cat-icon {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  transition: transform .2s;
  cursor: pointer;
}
.cat-icon:hover { transform: scale(1.08); }
.cat-icon img { width: 52px; height: 52px; object-fit: contain; }

.cat-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

/* ════════════════════════════════
   PRODUCT SECTIONS
════════════════════════════════ */
.prod-section {
  background: #fff;
  padding: 48px 24px;
}
.prod-section.dark {
  background: var(--dark-bg);
  color: #f0e4d4;
}

.prod-img-circle {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: url('deco-circular.png') center center / contain no-repeat;
}

/* Carousel ocupa el 100% del círculo */
.prod-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}
.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}
.carousel-slide img.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Texto de producto */
.prod-text h2 {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 8px;
}
.prod-section.dark .prod-text h2 { color: #e8c99a; }

.prod-text p {
  font-size: .88rem;
  color: #5a3c26;
  line-height: 1.55;
  margin-bottom: 18px;
}
.prod-section.dark .prod-text p { color: #c8ae94; }

/* fila con imagen a la derecha en desktop */
@media (min-width: 768px) {
  .prod-row-right { flex-direction: row-reverse; }
}

/* ════════════════════════════════
   WAVE DECORATIVA (entre secciones)
════════════════════════════════ */
.wave-divider {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -2px;
  margin-bottom: -2px;
}

/* ════════════════════════════════
   TIPS WAVE WRAP
════════════════════════════════ */
.tips-wave-wrap {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
  line-height: 0;
}
.tips-wave-svg {
  display: block;
  width: 100%;
  height: 90px;
}
.tips-wave-leaves {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 60px;
  pointer-events: none;
}
.wleaf { position: absolute; }

/* ════════════════════════════════
   TIPS SECTION
════════════════════════════════ */
.tips-section {
  background: var(--cream);
  padding: 8px 24px 56px;
}
.tips-section h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--brown);
  text-align: center;
  margin-bottom: 6px;
}
.tips-section .sub {
  text-align: center;
  color: var(--mocha);
  font-size: .9rem;
  margin-bottom: 36px;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.tip-icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tip-icon img {
  width: 38px; height: 38px;
  object-fit: contain;
}
.tip-content h4 {
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 4px;
  color: var(--brown);
}
.tip-content p {
  font-size: .85rem;
  color: #6b4530;
  line-height: 1.5;
}

/* ════════════════════════════════
   RESPONSIVE MÓVIL
════════════════════════════════ */
@media (max-width: 576px) {
  .hero-content {
    padding: 20px 16px 28px;
    max-width: 60%;
  }

  .prod-img-circle {
    width: 140px;
    height: 140px;
  }

  .cat-icon {
    width: 72px;
    height: 72px;
  }
  .cat-icon img { width: 40px; height: 40px; }

  .cat-label { font-size: .65rem; }

  .prod-section { padding: 32px 16px; }

  .tip-icon { width: 52px; height: 52px; }
  .tip-icon img { width: 30px; height: 30px; }

  .hero-bot-img {
    margin-top: clamp(-60px, 0vw, 0px);
  }

  .hero-dog {
    right: 0;
    bottom: clamp(0px, 8vw, 0px);
  }
}

@media (max-width: 400px) {
  .hero-content { max-width: 65%; }
  .prod-img-circle { width: 120px; height: 120px; }
}
