:root {
  --primary: #ff0036;
  --primary-dark: #cc002b;
  --primary-light: #ff335e;
  --secondary: #000000;
  --secondary-light: #111111;
  --accent: #ffffff;
  --accent-dark: #dddddd;
  --text-light: #ffffff;
  --text-dark: #111111;
  --text-gray: #aaaaaa;
  --bg-dark: #0a0a0a;
  --bg-light: #1a1a1a;
  --overlay: rgba(0, 0, 0, 0.7);
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(255, 0, 54, 0.3);
  }

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}
/* Menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Video Background */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.video-bg.active {
  opacity: 0.7;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  margin-right: 15px;
  margin-bottom: 15px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 5%;
  background: rgba(0, 0, 0, 0.9);
}

.logo {
  height: 60px;
  filter: drop-shadow(0 0 5px var(--primary));
  transition: var(--transition);
}

.logo:hover {
  filter: drop-shadow(0 0 15px var(--primary));
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  transition: var(--transition);
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Sections */
.section {
  padding: 100px 10%;
  min-height: auto; /* Eliminamos el min-height: 100vh */
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}


.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--primary);
}

.section-content {
  font-size: 1.2rem;
  line-height: 1.8;
  background: var(--overlay);
  padding: 40px;
  border-left: 4px solid var(--primary);
  backdrop-filter: blur(5px);
  border-radius: 0 8px 8px 0;
}
/* ===== ESTILOS COMPATIBLES PARA SECCIÓN MIEMBROS ===== */
/* ======= ESTILOS DEL CONSEJO DE LA SERPIENTE ======= */
/* Estructura Principal */

.cinzel-serif {
  font-family: 'Cinzel', serif;
  font-optical-sizing: auto;
  font-weight: 12px;
  font-style: normal;
}
.members-grid {
  display: grid;
  font-family: 'Cinzel', serif; /* Fuente gótica/mística */
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;

}

/* Pareja Real - Horizontal */
.royal-couple {
  font-family: 'Cinzel', serif; /* Fuente gótica/mística */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* Triada de Subjefes - 3 Columnas */
.trusted-staff {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Tarjetas Base con Toque Oculto */
.member-card {
  background: rgba(20, 15, 25, 0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  border: 1px solid #472929;
  position: relative;
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
              #8B0000 0%, 
              #820016 33%, 
              #DAA520 66%, 
              #C1121F 100%);
}

/* Efectos Especiales */
.member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(139, 0, 0, 0.3);
  border-color: #FFD700;
}

/* Imágenes con Filtro Místico */
.member-image {
  height: 280px;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid #47292a;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  filter: grayscale(20%) contrast(110%);
}

.member-card:hover .member-image img {
  transform: scale(1.08);
  filter: grayscale(0%) contrast(120%);
}

/* Badges de Rango Alquímico */
.member-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  border: 2px solid;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(50,50,50,0.8) 100%);
  backdrop-filter: blur(5px);
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Colores Específicos por Rango */
.member-badge[style*="SUMA SACERDOTISA"] {
  background: linear-gradient(135deg, #5E1914 0%, #2D0B0B 100%) !important;
  border-color: #FFD700 !important;
  font-size: 13px;
}

.member-badge[style*="GUARDIÁN"] {
  background: linear-gradient(135deg, #8B0000 0%, #450A0A 100%) !important;
  border-color: #000 !important;
}

.member-badge[style*="ARCANO"] {
  background: linear-gradient(135deg, #4B0082 0%, #2E1A47 100%) !important;
  border-color: #db7070 !important;
}

.member-badge[style*="ALQUIMISTA"] {
  background: linear-gradient(135deg, #DAA520 0%, #8C6D1F 100%) !important;
  border-color: #FFD700 !important;
}

.member-badge[style*="VERDUGO"] {
  background: linear-gradient(135deg, #C1121F 0%, #5E0B12 100%) !important;
  border-color: #FF9999 !important;
}

/* Contenido de las Tarjetas */
.member-info {
  padding: 1.8rem;
  background: linear-gradient(180deg, rgba(30,25,35,0.9) 0%, rgba(15,10,20,0.9) 100%);
}

.member-info h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  color: #FFD700;
  font-family: 'Cinzel Decorative';
  letter-spacing: 1px;
  border-bottom: 1px solid #820011;
  padding-bottom: 8px;
}

.member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.member-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 215, 0, 0.08);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.member-meta i {
  color: #db7075;
}

/* Secciones Especiales */
.member-lore {
  background: rgba(15, 5, 5, 0.7);
  border-left: 3px solid #8B0000;
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  position: relative;
}

.member-lore::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238B0000"><path d="M12,2L4,12L12,22L20,12L12,2Z"/></svg>') no-repeat;
  opacity: 0.3;
}

.member-lore h4 {
  margin: 0 0 10px 0;
  font-size: 1rem;
  color: #DAA520;
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-lore h4::before {
  content: '✧';
  color: #db7079;
}

.member-lore ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: none;
}

.member-lore li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  position: relative;
  padding-left: 20px;
}

.member-lore li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #C1121F;
  font-weight: bold;
}

/* Título de Sección */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #FFD700;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #8B0000, #82002b, #DAA520);
  margin: 10px auto;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .royal-couple,
  .trusted-staff {
    grid-template-columns: 1fr;
  }
  
  .member-image {
    height: 240px;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .member-meta {
    flex-direction: column;
  }
  
  .member-badge {
    font-size: 10px;
    padding: 4px 10px;
  }
}
.cta-buttons {
  margin-top: 30px;
}

/* History Section */
.history-container {
  max-width: 1200px;
  margin: 0 auto;
}

.history-chapter {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
  background: var(--overlay);
  padding: 40px;
  border-left: 4px solid var(--primary);
  backdrop-filter: blur(5px);
  border-radius: 0 8px 8px 0;
  transition: var(--transition);
}

.history-chapter:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.history-chapter.reverse {
  flex-direction: row-reverse;
  border-left: none;
  border-right: 4px solid var(--primary);
  border-radius: 8px 0 0 8px;
}

.history-text {
  flex: 1;
}

.history-text h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(255, 0, 54, 0.5);
}

.history-list {
  padding-left: 20px;
  margin: 20px 0;
}

.history-list li {
  margin-bottom: 10px;
  position: relative;
}

.history-list li::before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: -15px;
}

.history-image {
  flex: 1;
  position: relative;
}

.history-img {
  width: 100%;
  height: auto;
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px rgba(255, 0, 54, 0.3);
  transition: transform 0.5s;
  border-radius: 4px;
}

.history-img:hover {
  transform: scale(1.03);
}

.image-caption {
  text-align: center;
  font-style: italic;
  margin-top: 10px;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.disclaimer {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-gray);
  margin-top: 15px;
}

/* Gallery Section */
.gallery-container {
  max-width: 1500px;
  margin: 0 auto;
}

.gallery-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.gallery-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 0, 54, 0.3);
  transition: var(--transition);
  min-height: 700px;
  max-height: 900px;
  border-radius: 8px;
}

.gallery-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  transition: bottom 0.3s;
}

.gallery-item:hover .gallery-overlay {
  bottom: 0;
}

.gallery-overlay h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* Controles de selección */
.selection-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
/* Location Gallery - Estilo similar a la galería principal */
.location-gallery {
  display: contents;
  margin: 40px 0;
}

.location-gallery .gallery-item {
  height: 300px; /* Altura fija */
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid rgba(255, 0, 54, 0.3);
}

.location-gallery .gallery-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 0, 54, 0.3);
}

.location-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.location-gallery .gallery-item:hover img {
  transform: scale(1.05);
}

.location-gallery .gallery-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  transition: bottom 0.3s;
  z-index: 1;
}

.location-gallery .gallery-item:hover .gallery-overlay {
  bottom: 0;
}

.location-gallery .gallery-overlay h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.location-gallery .gallery-overlay p {
  color: var(--accent);
  margin: 0;
  font-size: 1rem;
}

/* Estilo especial para el mapa */
.location-map-item {
  grid-column: span 2; /* El mapa ocupa doble espacio */
}

.location-map-item .gallery-overlay {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}
/* Location Section */
.game-location-container {
  max-width: auto;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 30px;
  align-items: start;
}

.location-map, .location-photo{
  position: relative;
}

.map-container, .location-photo {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  background: #000;
  border: 3px solid rgba(255, 0, 54, 0.5);
  box-shadow: 0 0 20px rgba(255, 0, 54, 0.2);
  overflow: hidden;
  border-radius: 8px;
}

.game-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}


.map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
  font-size: 3rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  animation: pulse 2s infinite;
  z-index: 2;
}

.map-caption {
  text-align: center;
  margin-top: 10px;
  font-style: italic;
  color: var(--text-gray);
}

.location-photo {
  position: relative;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.building-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.9);
  transition: var(--transition);
}

.building-photo:hover {
  filter: brightness(1.1);
  border-color: var(--primary);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.photo-overlay h3 {
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 1.8rem;
}

.location-info {
  grid-column: 1 / -1;
  background: var(--overlay);
  padding: 40px;
  border-top: 4px solid var(--primary);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  align-content: center;
  justify-content: center;
  align-items: center;
  justify-items: center;
}

.location-info h3 {
  grid-column: 1 / -1;
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.location-detail {
  display: flex;
  gap: 20px;
}

.location-detail i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-top: 5px;
}

.location-detail h4 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.location-detail ul {
  padding-left: 20px;
  margin-top: 10px;
  list-style: none;
}

.location-detail li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
}

.location-detail li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
}

/* Footer */
.footer {
  padding: 40px 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid var(--primary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--primary));
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}
.location-gallery .gallery-item img {
  transform-origin: center center;
}

/* Para sombras más intensas al hacer hover */
.location-gallery .gallery-item:hover {
  box-shadow: 0 10px 25px rgba(255, 0, 54, 0.4);
}
/* === ESTILOS GENERALES DE MIEMBROS === */
.members-grid {
  display: grid;
  gap: 2rem;
  padding: 1.5rem;
}

/* === ANIMACIONES === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}




/* Menu Section */
.menu-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.menu-category {
  background: rgba(0, 0, 0, 0.7);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.menu-category h3 {
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-category ul {
  list-style: none;
}

.menu-category li {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.menu-price {
  color: var(--primary);
  font-weight: 600;
}

.combos-section {
  margin-top: 50px;
}

/* Why Us Section */
.why-us-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.why-us-card {
  background: rgba(0, 0, 0, 0.5);
  padding: 40px 30px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.why-us-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 0, 54, 0.2);
}

.why-us-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 0, 54, 0.1) 100%);
}

.why-us-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  font-weight: bold;
  color: rgba(255,255,255,0.05);
}

.why-us-card h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.5rem;
  position: relative;
}

.why-us-footer {
  text-align: center;
  margin-top: 50px;
  font-style: italic;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
}

.why-us-footer p:first-child {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.combo-title {
  color: var(--primary);
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.combo-card {
  background: rgba(0, 0, 0, 0.7);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  border-top: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.combo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 65%, rgba(255, 0, 54, 0.1) 100%);
}

.combo-card h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.combo-card p {
  color: var(--text-gray);
  margin-bottom: 15px;
}

.combo-price {
  display: inline-block;
  background: var(--primary);
  color: var(--text-dark);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
}

.combo-special {
  border-top: 4px solid gold;
}

.vip-badge {
  display: inline-block;
  background: gold;
  color: var(--text-dark);
  padding: 2px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  margin-left: 10px;
}

/* Animations */
@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Responsive */
@media (max-width: 1200px) {
  .section {
    padding: 120px 5% 80px;
  }
  .location-map-item {
    grid-column: span 1;
}

.location-gallery {
    grid-template-columns: repeat(2, 1fr);
}

}

@media (max-width: 992px) {
  .game-location-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  
  .map-container, .location-photo {
    padding-bottom: 80%;
  }
  
  .location-map {
    grid-column: 1;
    grid-row: 1;
  }
  
  .location-photo {
    grid-column: 1;
    grid-row: 2;
  }
  
  .location-info {
    grid-column: 1;
    grid-row: 3;
  }
  
  .history-chapter, 
  .history-chapter.reverse {
    flex-direction: column;
    border-left: 4px solid var(--primary);
    border-right: none;
    border-radius: 0 8px 8px 0;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .location-gallery {
    grid-template-columns: 1fr;
  }
  .members-grid {
    grid-template-columns: 1fr;
  }
  
  .member-image {
    height: 200px;
  }
  
  .member-meta {
    flex-direction: column;
  }

  .menu-categories {
      grid-template-columns: 1fr;
  }
  .map-marker {
      font-size: 2.5rem;
  }
  .nav {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      height: 100vh;
      background: rgba(0, 0, 0, 0.9);
      backdrop-filter: blur(10px);
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: right 0.3s ease;
      z-index: 1000;
  }
  
  .nav.active {
      right: 0;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
  }

  .nav-links.active {
      left: 0;
  }
  .services-grid, .why-us-content {
    grid-template-columns: 1fr;
  }

  .task-tabs {
      flex-direction: column;
      border-bottom: none;
  }

  .task-tab {
      border-bottom: 2px solid rgba(255,255,255,0.1);
  }

  .task-tab.active::after {
      display: none;
  }
  .member-image {
    height: 220px;
  }

  .member-info {
    padding: 1.2rem;
  }
  .selection-controls {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .gallery-row {
    flex-direction: column;
    gap: 15px;
  }
  .gallery-item {
    min-height: 350px;
    max-height: none;
  }
  .uniform-pair {
    display: contents; 
  }
}
@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .section {
    padding: 100px 20px 60px;
  }
  
  .section-content {
    padding: 20px;
    font-size: 1rem;
  }
  
  .location-info {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }
  
  .map-marker {
    font-size: 2rem;
    top: 43%;
    left: 47%;
  }
  .map-marker {
    font-size: 2rem;
  }

  .location-gallery .gallery-overlay h3 {
      font-size: 1.3rem;
  }
}
