:root {
  /* Paleta de la maqueta Base44 */
  --swish-grad: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  --swish-blue: #2563eb;
  --swish-green: #22c55e;
  --swish-orange: #f97316;
  --swish-dark: #0f172a;
  --bg-light: #f1f5f9;
  --glass: rgba(255, 255, 255, 0.95);
}

/* RESET Y FUENTE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif; /* Usando la fuente de la maqueta */
}

body {
  background: var(--bg-light);
  color: #1e293b;
  line-height: 1.6;
}

/* --- NUEVO HERO SECTION (MAQUETA STYLE) --- */
.hero-container {
  background: var(--swish-grad);
  color: white;
  padding: 40px 20px 110px 20px;
  text-align: center;
  position: relative;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-access {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out;
}

.main-logo {
  height: 100px;
  background: #0f172a; /* Fondo oscuro para el logo como en la foto */
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 25px;
}

/* BARRA DE BÚSQUEDA REDONDEADA */
.search-bar {
  background: white;
  border-radius: 50px;
  padding: 5px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-bottom: 25px;
}

.search-bar input {
  width: 100%;
  border: none;
  padding: 12px;
  font-size: 1rem;
  outline: none;
  color: #334155;
}

/* BOTONES HERO */
.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: var(--swish-green);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}

.btn-favorites {
  background: white;
  color: #1e293b;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}

.btn-whatsapp:hover, .btn-favorites:hover {
  transform: translateY(-3px);
}

/* --- GRILLA DE PRODUCTOS --- */
.container {
  max-width: 1200px;
  margin: 40px auto 40px auto; /* Sube las cartas sobre el hero */
  padding: 0 20px;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filters-header h2 {
  font-size: 1.5rem;
  color: #0f172a;
}

.card-count {
  background: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* --- TARJETAS ESTILO MAQUETA --- */
.card {
  background: white;
  border-radius: 24px; /* Súper redondeado como la maqueta */
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  position: relative;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.price-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--swish-orange);
  color: white;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10;
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card-info {
  padding: 20px;
  text-align: left;
}

.card-info h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #1e293b;
}

.tag-container {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  background: #f1f5f9;
  color: #64748b;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.btn-consultar {
  width: 100%;
  background: var(--swish-green);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* FOOTER DARK */
.footer-dark {
  background: #0f172a;
  color: white;
  text-align: center;
  padding: 60px 20px;
  margin-top: 50px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 15px;
}

/* ANIMACIONES */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* --- ESTILOS EXCLUSIVOS DEL ADMIN --- */
.admin-body {
    background: #f8fafc;
}

.admin-nav-header {
    background: #0f172a; /* Navbar oscura para diferenciar del cliente */
    padding: 15px 0;
}

.logo-admin {
    height: 50px;
    filter: brightness(1.2);
}

.hero-admin {
    padding: 40px 0;
    text-align: left;
}

/* Pestañas estilo Maqueta */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--swish-blue);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #e2e8f0;
}

/* Formulario y Gestión */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Dividimos en dos columnas */
    gap: 30px;
    align-items: start;
}

.admin-card-form {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-modern .input-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-modern label {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #475569;
}

.form-modern input {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline-color: var(--swish-blue);
}

.btn-save {
    width: 100%;
    background: var(--swish-blue);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

/* Lista de productos en Admin */
.admin-list-scroll {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Estilo de fila de producto */
.card-admin {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    transition: 0.2s;
}

.card-admin:hover {
    border-color: var(--swish-blue);
}

/* Responsive Admin */
@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}
/* --- ESTILOS DE FAVORITOS --- */
.fav-hero {
    background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%); /* Degradado rojizo como la maqueta */
    padding-bottom: 60px;
}

.icon-circle {
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}
.filters-section {
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.filter-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #475569;
}

input[type="range"] {
    accent-color: var(--swish-blue);
    cursor: pointer;
}

#btn-reset-filters {
    border: 1px solid #ddd;
    cursor: pointer;
    background: #f8fafc;
    transition: 0.2s;
}

#btn-reset-filters:hover {
    background: #e2e8f0;
}
/* --- AJUSTE DE PRECISIÓN PARA FILTROS Y TÍTULO --- */

/* 1. Espaciado para que los botones no peguen con el título */
.quick-filters {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 40px; /* Esto da el aire necesario */
    overflow-x: auto;
    padding-bottom: 10px;
}

/* 2. Alineación: Título a la izquierda, Contador a la derecha */
.filters-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

/* 3. Estilo del contador para que parezca una etiqueta profesional */
.card-count {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}
.lang-switcher {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 50px;
}

.btn-lang {
    background: none;
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-lang.active {
    background: white;
    color: var(--swish-blue);
}
/* Estilo del Selector Global */
.global-selector select {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.global-selector select option {
    color: #0f172a;
}

/* Link Secreto para Admin */
.admin-link-secret {
    text-decoration: none;
    color: transparent; /* Nadie lo ve */
    font-size: 1px;
    position: absolute;
    top: 10px;
    right: 10px;
}
/* --- ESTILOS PARA LA WISHLIST VACÍA --- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px dashed #cbd5e1;
    margin: 40px 0;
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.empty-state p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 25px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.btn-share-list {
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    transition: transform 0.2s;
}
/* Estilos para las pestañas del Admin */
.tab-content {
    display: none; /* Escondido por defecto */
    animation: fadeIn 0.4s ease;
}

.tab-content.active-content {
    display: block; /* Solo se muestra la activa */
}

.tab-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 10px 20px;
    background: #e2e8f0;
    color: #475569;
}

.tab-btn.active {
    background-color: #2563eb !important; /* Azul intenso */
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- DISEÑO DE COMENTARIOS MEJORADO --- */

.user-comments-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    margin: 40px 0;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.add-comment-box {
    margin-top: 30px;
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
}

/* El formulario: ahora nombre y texto en orden */
#comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#comment-form input, 
#comment-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

#comment-form textarea {
    height: 100px;
    resize: none; /* Evita que el usuario deforme el cuadro */
}

/* Efecto al escribir */
#comment-form input:focus, 
#comment-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* EL BOTÓN: Ya no es gigante */
.btn-save {
    background: #2563eb;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    width: fit-content; /* Solo mide lo que mide el texto */
    align-self: flex-start; /* Alineado a la izquierda */
    transition: all 0.3s;
}

.btn-save:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Estilo para los comentarios que ya están publicados */
.comment-card {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 5px solid #2563eb;
}
/* --- AJUSTE DE PRECISIÓN: IMÁGENES Y OFERTAS --- */

/* 1. Unifica el tamaño de todas las imágenes */
.card img {
    width: 100%;
    height: 320px; /* Altura fija para que la rejilla sea perfecta */
    object-fit: cover; /* Recorta la imagen para que llene el espacio sin estirarse */
    object-position: top; /* Enfoca la parte de arriba (donde suele estar la cara del jugador) */
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Efecto de "Cámara Lenta" al pasar el mouse */
.card:hover img {
    transform: scale(1.1);
}

/* 3. Etiqueta de Oferta (Badge) - Estilo Pro */
.offer-badge {
    position: absolute;
    top: 15px;
    left: 15px; /* A la izquierda para no chocar con el precio que está a la derecha */
    background: #ef4444; /* Rojo intenso de alerta */
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    border: 2px solid white;
}

/* 4. Contenedor de la info para que no se mueva nada */
.card-info {
    padding: 20px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px; /* Asegura que todos los textos estén alineados */
}

/* 5. Ajuste para que el precio tachado se vea bien */
.price-tag {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
/* --- DISEÑO DE BOTONES DE FILTRO --- */
.quick-filters {
    display: flex;
    gap: 12px;
    margin: 20px 0 30px 0;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* Esconde scroll en Firefox */
}

.quick-filters::-webkit-scrollbar { display: none; } /* Esconde scroll en Chrome */

.filter-tag {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-tag:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.filter-tag.active {
    background: var(--swish-blue, #2563eb);
    color: white;
    border-color: var(--swish-blue, #2563eb);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Ajuste para que el buscador no recargue la página */
.search-bar {
    position: relative;
}
/* --- ESTILO DE LOS BOTONES DE FILTRO --- */
.quick-filters {
    display: flex;
    gap: 12px;
    margin: 20px 0 30px 0;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: none;
}

.quick-filters::-webkit-scrollbar {
    display: none;
}

.filter-tag {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-tag:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.filter-tag.active {
    background: #2563eb; /* Azul NBA */
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* --- MEJORA DEL BUSCADOR --- */
.search-bar input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.search-bar input:focus {
    border-color: #2563eb;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

/* --- DISEÑO DE LOS COMENTARIOS --- */
.comment-card {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #2563eb;
}

.comment-card strong {
    color: #1e293b;
    font-size: 1rem;
}

.comment-card small {
    color: #94a3b8;
}
/* Mejora visual para los campos de texto de comentarios */
#comm-name, #comm-text {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
    width: 100%; /* Para que se vean bien alineados */
    margin-bottom: 10px;
}

#comm-name:focus, #comm-text:focus {
    border-color: #2563eb;
}

.add-comment-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
/* --- ESTILOS FINALES DE COPYRIGHT Y FOOTER --- */

.footer-dark {
    background: #0f172a; /* Azul muy oscuro, casi negro */
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    border-top: 4px solid #2563eb; /* Línea azul brillante arriba */
}

.footer-logo {
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Contenedor legal del Copyright */
.copyright-section {
    margin: 25px auto;
    max-width: 400px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.copyright-section p {
    margin: 5px 0;
    font-family: 'Inter', sans-serif;
}

/* Estilo para el link de WhatsApp en el Footer */
.footer-wa {
    display: inline-block;
    background: rgba(34, 197, 94, 0.1); /* Verde suave de fondo */
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #22c55e;
    transition: all 0.3s ease;
}

.footer-wa:hover {
    background: #22c55e;
    color: white !important;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .footer-dark {
        padding: 40px 15px;
    }
    
    .copyright-section {
        width: 90%;
    }
}

/* Estilo para el Badge de Categoría en las Cartas */
.tag-container {
    margin: 10px 0;
}

.tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
/* Arreglo del contenedor de la carta para el descuento */
.product-card {
    position: relative; /* Esto hace que el -10% se quede DENTRO de la carta */
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

/* El distintivo de descuento correctamente ubicado */
.offer-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444; /* Rojo vibrante */
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.8rem;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* El botón de Consultar con su estilo original */
.btn-consultar-custom {
    background: #2563eb !important; /* Azul original */
    color: white !important;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    flex-grow: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-consultar-custom:hover {
    background: #1d4ed8 !important;
    transform: scale(1.02);
}
/* --- ANIMACIONES DE LAS CARTAS (OPCIÓN 1) --- */

.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden; /* Importante para el destello */
}

/* Elevación al pasar el mouse */
.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    border-color: #2563eb !important;
}


.product-card:hover::before {
    animation: shine 1.2s forwards;
}

@keyframes shine {
    from { top: -150%; left: -150%; }
    to { top: 50%; left: 50%; }
}

/* --- ANIMACIÓN DEL BOTÓN CONSULTAR (VIBRACIÓN) --- */

@keyframes shakeButton {
    0% { transform: translateX(0); }
    25% { transform: translateX(3px); }
    50% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.btn-consultar:hover {
    animation: shakeButton 0.4s ease-in-out infinite;
    filter: brightness(1.1);
}

/* --- ANIMACIÓN DEL CORAZÓN (SALTO) --- */

@keyframes heartJump {
    0% { transform: scale(1); }
    30% { transform: scale(1.5) rotate(-15deg); }
    50% { transform: scale(1.2) rotate(15deg); }
    80% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Esta clase se añade por JS al hacer clic */
.heart-active span {
    display: inline-block;
    animation: heartJump 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #ef4444;
}

/* --- EFECTO DE CLIC (PRESIÓN) --- */

.btn-consultar:active, .fav-btn:active {
    transform: scale(0.9);
}

/* --- ESTILO EXTRA PARA COMENTARIOS --- */
.comment-item {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
