.cabecera {
  width: 90% !important;
  margin: clamp(13px, 3.5vw, 30px) auto;
  margin-bottom: 5px;
  font-size: clamp(11px, 2.5vw, 17px);
}
/* =====================================================
   GRID DE MASCOTAS
===================================================== */
.pets-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 👈 6 en pantallas grandes */
  gap: clamp(2px, 1.5vw, 10px);
  padding: clamp(5px, 3vw, 15px);
  width: 100%;
  max-width: 1400px;
  margin: 0px auto;
}

/* =====================================================
   TARJETA
===================================================== */
.pet-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.pet-card:hover {
  transform: translateY(-5px);
}


/* =====================================================
   IMAGEN
===================================================== */
.img-box {
  position: relative;
  width: 100%;
  height: clamp(140px, 20vw, 200px);
  overflow: hidden;
  padding: 10px;
  background: white;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}


/* =====================================================
   INFO GENERAL
===================================================== */
.pet-info {
  display: flex;
  flex-direction: column;
  gap: clamp(0px, 1vw, 8px);
  background: #ffffff;
  padding: 10px;
  padding-top: 0px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}


/* =====================================================
   FILA SUPERIOR (edad + likes)
===================================================== */
.pet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}


/* =====================================================
   EDAD
===================================================== */
.edad {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(9px, 2vw, 12px);
  padding: 3px 7px;
  border-radius: 8px;
}

.edad.macho {
  background: greenyellow;
  color: #ffffff;
}

.edad.hembra {
  background: deeppink;
  color: #ffffff;
}


/* ICONO SEXO */
.icono-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(16px, 2vw, 22px);
  height: clamp(16px, 2vw, 22px);
  border-radius: 50%;
}

.edad.macho .icono-wrapper {
  background: #ffffff;
}

.edad.hembra .icono-wrapper {
  background: #ffffff;
}

.icono-sexo {
  font-size: clamp(10px, 2.5vw, 13px);
}


/* =====================================================
   LIKES
===================================================== */
.likes {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(10px, 2.5vw, 13px);
  font-weight: 600;
  color: #777;
}

.likes i {
  font-size: clamp(11px, 2.5vw, 14px);
  color: #fe6665;
}

/* Desktop */
.likes-text {
  display: inline;
}

/* Mobile */
.likes-num {
  display: none;
}


/* =====================================================
   NOMBRE + VERIFICADO
===================================================== */
.pet-nombre {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #222;
}

.nombre-texto {
  line-height: 1.2;
  font-size: clamp(14px, 2.7vw, 17px);
  text-transform: capitalize;
  margin-bottom: -5px;
  margin-top: 3px;
}

.perfil-img {
  width: clamp(17px, 1.5vw, 20px);
  height: clamp(17px, 1.5vw, 20px);
  object-fit: contain;
  flex-shrink: 0;
}

/* =====================================================
   ETIQUETA VERIFICADO (ABAJO IZQUIERDA)
===================================================== */

/* ICONO */
.icono-verificado {
  width: clamp(17px, 2.5vw, 20px);
  height: clamp(17px, 2.5vw, 20px);
  color: #3bbcff; /* 👈 celeste verificado */
  top: 5px;
}


/* =====================================================
   RAZA
===================================================== */
.pet-raza {
  font-size: clamp(10px, 2.2vw, 13px);
  color: #888;
  letter-spacing: 0.4px;
  margin-bottom: -5px;
}


/* =====================================================
   ETIQUETA NUEVO
===================================================== */
.etiqueta {
  position: absolute;
  top: clamp(6px, 1vw, 10px);
  left: clamp(6px, 1vw, 10px);
  background: #fff;
  font-size: clamp(9px, 3vw, 11px);
  padding: 3px 7px;
  border-radius: 6px;
  color: #333;
  z-index: 5;
}

/* =====================================================
   TARJETA AGREGAR PRODUCTO
===================================================== */
.pets-container .agregar-mascota {
  display: flex;
  justify-content: center;
  background: transparent;
  box-shadow: none;
}

.pets-container .agregar-mascota .img-box {
  display: flex;
  align-items: center;
  justify-content: center;

  height: clamp(140px, 20vw, 180px);
  border-radius: 12px;

  background-image: url("../../img/agregar_mascota.png");
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;

  border: 3px solid #2196f3;
}

.pets-container .agregar-mascota i {
  font-size: clamp(30px, 4vw, 50px);
  color: #2196f3;
}

/* =====================================================
   BOTONES (LIKE / CONFIG)
===================================================== */

.config-mascota, .config-producto,
.favorito{

  position: absolute;
  
  top: clamp(15px, 2.5vw, 20px);
  right: clamp(15px, 2.5vw, 20px);

  width: clamp(32px, 5.5vw, 36px);
  height: clamp(32px, 5.5vw, 36px);

  font-size: clamp(16px, 4vw, 20px);

  border-radius: 12px;
  background: #ffffff;
  color: #dfdfdf;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
}


/* =====================================================
   LIKE STATES
===================================================== */

.favorito:not(.activo):hover {
  background: #ffffff;
  color: #fe6665;
  transform: scale(1.1);
}

.favorito.activo {
  background: #ffffff;
  color: #fe6665;
}

.favorito.activo:hover {
  transform: scale(1.15);
}


/* =====================================================
   ANIMACIÓN CORAZÓN
===================================================== */
.corazon-float {
  position: fixed;
  color: #fe6665;
  pointer-events: none;
  animation: corazonSube 1.2s ease-out forwards;
  z-index: 99999;
}

@keyframes corazonSube {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  70% { transform: translateY(-60px) scale(1.4); }
  100% { opacity: 0; transform: translateY(-120px) scale(1.8); }
}


/* =====================================================
   MENU CONFIG
===================================================== */
.menu-mascota {
  position: absolute;
  top: clamp(40px, 7vw, 50px);
  right: clamp(5px, 1vw, 12px);
  display: none;
  flex-direction: column;
  padding: 5px;
  border-radius: 5px;
  z-index: 99999;
  background: white;
}

.menu-mascota button {
  font-size: clamp(9px, 1vw, 11px);
  padding: 6px;
  border: none;
  cursor: pointer;
  background: white;
}

.menu-mascota button:hover {
  background: #7256cf;
  color: white;
}

/* =========================
   RESPONSIVE 
========================= */

@media (min-width: 1000px) {
  .pets-container {
    width: 85%;
  }
}

/* Laptop */
@media (max-width: 1200px) {
  .pets-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet grande */
@media (max-width: 992px) {
  .pets-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .nombre-texto, .pet-raza {
    margin-bottom: 0px;
  }
}

/* Celular */
@media (max-width: 480px) {
  .pets-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .likes-text {
    display: none;
  }

  .likes-num {
    display: inline;
  }
}