/* ===============================
   RESET + BASE
================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #fff;
  color: #222;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   BOTONES
================================ */
.btn {
  display: inline-block;
  background: #FFD600; /* amarillo */
  color: #000;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 16px;
  transition: all 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

/* ===============================
   MENÚ PRINCIPAL
================================ */
.main-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #FFD600;
  flex-wrap: wrap;
  position: relative; /* CLAVE */
  z-index: 10;
  border-bottom: 2px solid #000;
}

.main-menu .menu-logo img {
  max-height: 50px;
}

.main-menu .menu-items {
  list-style: none;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.main-menu .menu-items li a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

.main-menu .menu-items li a:hover {
  background: #ffe034;
  color: #000;
}

/* Botón destacado Comprar */
.main-menu .menu-items li a.btn {
  background: #000;
  color: #FFD600;
  font-weight: 700;
  padding: 10px 20px;
}

.main-menu .menu-items li a.btn:hover {
  background: #333;
  color: #FFD600;
}

/* RESPONSIVE MENÚ */
@media (max-width: 768px) {
  .main-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-menu .menu-items {
    flex-direction: column;
    width: 100%;
  }

  .main-menu .menu-items li a {
    width: 100%;
    text-align: left;
    padding-left: 16px;
  }

  .main-menu .menu-logo {
    margin-bottom: 12px;
  }
}

/* ===============================
   HERO
================================ */
.hero {
  text-align: center;
  padding: 48px 16px;
  background: #FFD600;
}

.hero img {
  max-width: 180px;
  margin: 0 auto 16px;
}

.hero h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

/* ===============================
   TEXTOS
================================ */
.hero-texto,
.beneficios,
.cierre {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.beneficios {
  background: #f6f6f6;
  border-radius: 12px;
}

.cierre h2 {
  font-size: 1.5rem;
}

/* ===============================
   VIDEO
================================ */
.video-funcionamiento {
  padding: 40px 20px;
  text-align: center;
}

.video-container {
  max-width: 800px;
  margin: 20px auto;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* ===============================
   BLOG
================================ */
.blog {
  padding: 48px 20px;
  max-width: 1100px;
  margin: auto;
}

.blog h2 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.8rem;
}

.blog-item {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #ddd;
}

.blog-item h3 {
  font-size: 1.4rem;
  margin: 12px 0;
  text-align: center;
}

.blog-item p {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.blog-img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 16px auto;
  border-radius: 12px;
}

.blog-item iframe {
  display: block;
  width: 100%;
  max-width: 640px;
  height: 360px;
  margin: 20px auto;
  border-radius: 12px;
}

/* ===============================
   ÚLTIMOS REGISTRADOS
================================ */
.ultimos-registrados {
  padding: 48px 20px;
  background: #fff;
  text-align: center;
}

.ultimos-registrados h2 {
  font-size: 1.8rem;
  margin-bottom: 32px;
}

.registrados-carrusel {
  display: flex;
  gap: 20px;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.registrado-item {
  flex: 0 0 160px;
  scroll-snap-align: center;
  text-align: center;
}

.registrado-item img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: block;
}

.foto-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 10px;
}

.registrado-item p {
  font-weight: 600;
}

/* ===============================
   BOTONES DE COMPARTIR
================================ */
.share-buttons {
  text-align: center;
  margin: 24px 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.share-buttons a {
  text-decoration: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.2s;
}

.share-buttons a:nth-child(1) {
  background: #25d366; /* WhatsApp verde */
}

.share-buttons a:nth-child(2) {
  background: #1877f2; /* Facebook azul */
}

.share-buttons a:hover {
  opacity: 0.85;
}

/* ===============================
   GANADOR
================================ */
.ganador {
  padding: 40px 20px;
  background: #ffe034;
  border-radius: 16px;
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
}

.ganador-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ganador-mascota,
.ganador-premio {
  width: 250px;
  border-radius: 16px;
  border: 2px solid #000;
}

.ganador-datos p {
  font-size: 1.2rem;
  font-weight: 600;
}

/* ===============================
   INSTAGRAM
================================ */
.instagram {
  padding: 48px 20px;
  text-align: center;
  background: #f6f6f6;
}

.instagram h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.instagram-embed {
  max-width: 540px;
  margin: 0 auto 24px;
}

.instagram-embed iframe {
  width: 100%;
  height: 640px;
  border: none;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.4rem;
  }

  .blog-item iframe {
    height: 220px;
  }

  .ganador-mascota,
  .ganador-premio {
    width: 180px;
  }
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

.contenedor-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.producto {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.producto img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
}

.producto h3 {
    margin: 10px 0;
    font-size: 18px;
}

.descripcion {
    font-size: 14px;
    color: #555;
    min-height: 40px;
}

.precio {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.btn-comprar {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

.btn-comprar:hover {
    background: #218838;
}

.producto {
    display: flex;
    flex-direction: column;
}

.btn-comprar {
    margin-top: auto;
}

