.app-teeth-gallery {
  width: 100%;
  background-color: #ffffff;
  padding: 80px 20px;
}

.teeth-gallery {
  max-width: 1200px;
  margin: 0 auto;
}

.teeth-gallery__head {
  text-align: center;
  margin-bottom: 40px;
}

.teeth-gallery__head .eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6ea89f;
  margin-bottom: 8px;
}

.teeth-gallery__head h2 {
  font-family: 'Special Gothic Condensed One', sans-serif, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #1e293b;
  margin-bottom: 12px;
}

.teeth-gallery__head .desc {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Filtros */
.teeth-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.teeth-filters .filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.teeth-filters .filter-btn:hover,
.teeth-filters .filter-btn.active {
  background-color: #6ea89f;
  border-color: #6ea89f;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(110, 168, 159, 0.25);
}

/* Cuadrícula */
.teeth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.teeth-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #f1f5f9;
}

.teeth-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.09);
}

/* --- AJUSTES CLAVE PARA LAS IMÁGENES --- */
.teeth-card__media {
  width: 100%;
  height: 320px; /* <--- Sube este número (prueba de 300px a 340px según qué tan grandes las quieras) */
  overflow: hidden;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teeth-card__media img {
  width: 100%;
  height: 100%;
  /* Cambiamos a 'contain' con un pequeño padding interno para que 
     NADA de la foto del tratamiento dental quede cortada o fuera del cuadro */
  object-fit: contain; 
  padding: 12px; 
  transition: transform 0.5s ease;
}

.teeth-card:hover .teeth-card__media img {
  transform: scale(1.05);
}
/* ------------------------------------- */

.teeth-card__body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.teeth-card__body h3 {
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 8px;
  font-weight: 700;
}

.teeth-card__body p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}