/* ===== PAGE TEMPLATES UNIFIED STYLES ===== */
:root {
  --rosa-mad: #ff007a;
  --rosa-neon: #ff00ff;
  --negro-mad: #0a0a0a;
  --blanco-mad: #ffffff;
  --gris-oscuro: #1a1a1a;
  --espacio-xs: 0.5rem;
  --espacio-sm: 1rem;
  --espacio-md: 2rem;
  --espacio-lg: 3rem;
}

/* Tipografías (las defines en functions.php con @font-face) */
.page-template {
  font-family: 'Bahianita', sans-serif;
  background: var(--negro-mad);
  color: var(--blanco-mad);
}

/* Hero común */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: var(--espacio-lg);
  background: linear-gradient(135deg, var(--rosa-mad) 0%, var(--rosa-neon) 100%);
  border-bottom: 4px solid var(--rosa-neon);
}

.page-hero-content {
  max-width: 800px;
  padding: 2rem;
}

.page-hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.page-hero-title {
  font-family: 'PunkType', 'Impact', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--blanco-mad);
  text-shadow: 0 0 20px var(--rosa-neon);
  margin: 0.5rem 0;
}

.page-hero-tagline {
  font-size: 1.5rem;
  color: #ddd;
}

/* Secciones */
.page-section {
  padding: var(--espacio-lg) 0;
}

.page-section-title {
  font-family: 'PunkType', 'Impact', sans-serif;
  font-size: 2.2rem;
  color: var(--rosa-mad);
  text-align: center;
  margin-bottom: var(--espacio-md);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Tarjetas de galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--rosa-mad);
  background: rgba(0,0,0,0.7);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1;
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--rosa-neon);
  box-shadow: 0 10px 30px rgba(255,0,122,0.8);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-title {
  font-family: 'New Slenderman', sans-serif;
  font-size: 1.8rem;
  color: var(--rosa-mad);
}

.gallery-overlay-category {
  font-family: 'Bahianita', sans-serif;
  font-size: 1.2rem;
  color: #ddd;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.4rem;
  border-radius: 30px;
  font-family: 'Bahianita', sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--rosa-mad);
  color: var(--blanco-mad);
}

.btn-primary:hover {
  background: transparent;
  color: var(--rosa-mad);
  border-color: var(--rosa-mad);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,0,122,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--rosa-mad);
  border-color: var(--rosa-mad);
}

.btn-secondary:hover {
  background: var(--rosa-mad);
  color: var(--blanco-mad);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,0,122,0.4);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-3px);
}

/* Modal de zoom */
.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.image-modal.active {
  display: flex;
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 85vh;
  border: 2px solid var(--rosa-mad);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(255,0,122,0.8);
}

.image-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-modal-close:hover {
  color: var(--rosa-mad);
  transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .page-hero-title {
    font-size: 2rem;
  }
}