:root {
  --bg-main: #0f172a;
  --bg-header: #020617;
  --accent: lightseagreen;
  --text: #f8fafc;
}

/* --- BASE --- */
body {
  font-family: 'Franklin Gothic Medium', Arial, sans-serif;
  color: var(--text);
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
}

/* --- HEADER --- */
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-header);
  padding: 1.25rem;
  box-shadow: 0px 4px 15px rgba(32, 178, 170, 0.4);
  position: relative;
  z-index: 2000;
}

.title-main {
  font-size: 2.25rem;
  margin: 0;
  color: white;
}

/* NAV */
.nav-main {
  display: flex;
  gap: 1.5rem;
  font-size: 1.25rem;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* LINKS */
a {
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--accent);
}

/* --- CONTENEDOR --- */
.pets-gallery-container {
  background: linear-gradient(180deg, var(--bg-main) 0%, #1e293b 100%);
  border-top: 3px solid rgba(32, 178, 170, 0.5);
}

.pets-gallery-title {
  text-align: center;
  color: var(--accent);
  font-size: 2rem;
  margin: 2rem;
}

/* --- GALERÍA --- */
.pets-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PC */
  gap: 20px;
  padding: 20px;
}

/* --- TARJETAS --- */
.flip-card {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  overflow: hidden;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  background: #252525;
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
  text-align: center;
}

/* --- FOOTER --- */
footer {
  background-color: var(--bg-header);
  color: #94a3b8;
  text-align: center;
  padding: 2rem;
}

/* --- RESPONSIVE --- */

@media (max-width: 768px) {
  .pets-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: var(--bg-header);
    padding: 20px 0;
    z-index: 1000;
    text-align: center;
  }

  .nav-main.active {
    display: flex;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .pets-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}