/* ==========================================================================
   Provincia Scout Coahuila - Estilos Base
   Basado en diseño de scouts.org.mx (ASMAC)
   ========================================================================== */

/* Variables CSS */
:root {
  /* Colores ASMAC */
  --color-primary: #5B2C93;
  --color-primary-hover: #7C226E;
  --color-accent: #930062;
  --color-accent-alt: #1E73BE;
  --color-bg: #FFFFFF;
  --color-text: #313131;
  --color-text-muted: rgb(95, 93, 93);
  --color-border: #EEEEEE;
  --color-danger: #DC2626;

  /* Tipografía */
  --font-family: Futura, "Trebuchet MS", Arial, sans-serif;
  --font-weight-light: 100;
  --font-weight-normal: 400;
  --font-weight-medium: 500;

  /* Espaciado */
  --navbar-height: 70px;
  --banner-height: 40px;
  --section-padding: 65px;
  --grid-gap: 20px;
  --container-max-width: 1200px;

  /* Bordes */
  --border-radius: 0.25em;
  --border-radius-lg: 0.5em;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-light);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--color-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1em;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Banner de Prototipo
   ========================================================================== */

.prototype-banner {
  background: var(--color-danger);
  color: #FFFFFF;
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.prototype-banner strong {
  font-weight: var(--font-weight-medium);
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */

.site-header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
  height: var(--navbar-height);
}

.navbar-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #FFFFFF;
}

.navbar-logo {
  height: 50px;
  width: 50px;
  object-fit: contain;
  border-radius: 50%;
}

.navbar-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-light);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.navbar-menu a {
  display: block;
  padding: 8px 16px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.navbar-menu a:hover {
  border-bottom-color: #FFFFFF;
  color: #FFFFFF;
}

/* Hamburger menu (mobile) */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.site-main {
  flex: 1;
  padding: var(--section-padding) 20px;
}

.page,
.post {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.page-header,
.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

.post-date {
  display: block;
  color: var(--color-accent-alt);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Hero Section (Homepage)
   ========================================================================== */

.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #FFFFFF;
  margin: calc(var(--section-padding) * -1) -20px var(--section-padding);
}

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: contain;
  background: #FFFFFF;
  padding: 8px;
  margin-bottom: 1rem;
  border: 3px solid rgba(255, 255, 255, 0.6);
}

.hero h1 {
  color: #FFFFFF;
  font-size: 3rem;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 1.5em;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: #FFFFFF;
  color: var(--color-primary);
}

.btn-primary:hover {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.btn-outline:hover {
  background: #FFFFFF;
  color: var(--color-primary);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: var(--section-padding) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: #FFFFFF;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-text);
  color: #FFFFFF;
  padding: 40px 20px 20px;
  margin-top: auto;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--grid-gap);
}

.footer-section h3 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-section p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-asmac {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 1rem;
}

.footer-contact,
.footer-links {
  list-style: none;
}

.footer-contact li,
.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-contact a,
.footer-links a {
  color: #FFFFFF;
  text-decoration: none;
  opacity: 0.9;
  font-size: 0.9rem;
}

.footer-contact a:hover,
.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-contact .icon {
  margin-right: 8px;
}

.footer-bottom {
  max-width: var(--container-max-width);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-powered-by {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.footer-powered-by a {
  color: #FFFFFF;
  text-decoration: none;
}

.footer-powered-by a:hover {
  text-decoration: underline;
  color: #FFFFFF;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --navbar-height: 60px;
    --section-padding: 40px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Mobile navigation */
  .navbar-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-menu a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-menu li:last-child a {
    border-bottom: none;
  }

  .navbar-title {
    font-size: 1rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ==========================================================================
   Página de Grupos
   ========================================================================== */

.grupos-page {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

/* Filtros */
.grupos-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  background: #FFFFFF;
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--color-primary);
  color: #FFFFFF;
}

.filter-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.filter-btn:not(.active) .filter-count {
  background: var(--color-border);
  color: var(--color-text-muted);
}

/* Resultados */
.grupos-results {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Grid de grupos */
.grupos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--grid-gap);
}

/* Mensaje vacío */
.grupos-empty {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   Tarjeta de Grupo
   ========================================================================== */

.grupo-card {
  background: #FFFFFF;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.grupo-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Animaciones de filtrado */
.grupo-card.visible {
  opacity: 1;
  transform: scale(1);
  animation: fadeIn 0.3s ease;
}

.grupo-card.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Escudo */
.grupo-card-escudo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
}

.grupo-card-escudo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

/* Cuerpo de la tarjeta */
.grupo-card-body {
  padding: 20px;
}

.grupo-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
}

.grupo-card-ciudad {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  background: var(--color-accent);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.grupo-card-info {
  list-style: none;
  margin-bottom: 0.5rem;
}

.grupo-card-info li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.grupo-card-info a {
  color: var(--color-primary);
  text-decoration: none;
}

.grupo-card-info a:hover {
  text-decoration: underline;
}

.grupo-card-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.grupo-card-notas {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive - Grupos
   ========================================================================== */

@media (max-width: 768px) {
  .grupos-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .grupos-grid {
    grid-template-columns: 1fr;
  }

  .grupo-card-escudo img {
    width: 100px;
    height: 100px;
  }
}

/* ==========================================================================
   Páginas de Contenido (Nosotros, Escultismo, Contacto)
   ========================================================================== */

.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  margin-bottom: 1rem;
}

.content-section p {
  max-width: 800px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
}

/* Valores Grid */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--grid-gap);
  margin-top: 1.5rem;
}

.valor-item {
  text-align: center;
  padding: 1.5rem;
  background: #FAFAFA;
  border-radius: var(--border-radius-lg);
}

.valor-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.valor-item h4 {
  margin-bottom: 0.5rem;
  text-transform: none;
}

.valor-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Promesa Scout */
.promesa-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  margin: 3rem 0;
}

.promesa-section h2 {
  color: #FFFFFF;
  text-align: center;
}

.promesa-text {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: #FFFFFF;
  font-size: 1.25rem;
  font-style: italic;
  border: none;
  padding: 0;
}

.promesa-text p {
  margin: 0;
}

/* Estructura Lista */
.estructura-lista {
  list-style: none;
  max-width: 600px;
}

.estructura-lista li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.estructura-lista li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Página Escultismo - Secciones
   ========================================================================== */

.seccion-scout {
  margin: 2rem 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.seccion-header {
  background: var(--color-primary);
  color: #FFFFFF;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.seccion-edad {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
}

.seccion-header h3 {
  color: #FFFFFF;
  margin: 0;
  font-size: 1.25rem;
}

.seccion-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 1.5rem;
  background: #FFFFFF;
}

.seccion-info ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.seccion-info li {
  margin-bottom: 0.5rem;
}

.seccion-imagen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.seccion-icon {
  font-size: 4rem;
  opacity: 0.3;
}

/* Ley Scout */
.ley-scout {
  max-width: 700px;
  counter-reset: ley-counter;
  list-style: none;
  padding: 0;
}

.ley-scout li {
  counter-increment: ley-counter;
  padding: 1rem 0 1rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.ley-scout li::before {
  content: counter(ley-counter);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
}

.ley-scout li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Página Contacto
   ========================================================================== */

.contacto-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--grid-gap);
  margin-bottom: 3rem;
}

.contacto-card {
  text-align: center;
  padding: 2rem;
  background: #FFFFFF;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}

.contacto-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contacto-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contacto-card h3 {
  margin-bottom: 0.5rem;
}

.contacto-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.contacto-card a {
  font-weight: var(--font-weight-medium);
}

/* FAQ */
.faq-list {
  max-width: 800px;
}

.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h4 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  text-transform: none;
  font-weight: var(--font-weight-medium);
}

.faq-item p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.cta-section {
  background: var(--color-border);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  margin-top: 2rem;
}

/* ==========================================================================
   Página Noticias
   ========================================================================== */

.noticias-grid {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.noticia-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #FFFFFF;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}

.noticia-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.noticia-fecha {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: var(--border-radius);
  padding: 0.75rem;
}

.noticia-dia {
  font-size: 1.75rem;
  font-weight: var(--font-weight-light);
  line-height: 1;
}

.noticia-mes {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.noticia-anio {
  font-size: 0.75rem;
  opacity: 0.8;
}

.noticia-contenido {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.noticia-titulo {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.noticia-titulo a {
  text-decoration: none;
}

.noticia-titulo a:hover {
  text-decoration: underline;
}

.noticia-extracto {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.noticia-leer-mas {
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
}

.noticias-vacio {
  text-align: center;
  padding: 4rem 2rem;
  background: #FAFAFA;
  border-radius: var(--border-radius-lg);
}

/* ==========================================================================
   Responsive - Páginas de Contenido
   ========================================================================== */

@media (max-width: 768px) {
  .seccion-content {
    grid-template-columns: 1fr;
  }

  .seccion-imagen {
    display: none;
  }

  .promesa-section {
    padding: 2rem 1.5rem;
  }

  .promesa-text {
    font-size: 1.1rem;
  }

  .noticia-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .noticia-fecha {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    width: fit-content;
  }

  .noticia-dia {
    font-size: 1.25rem;
  }

  .contacto-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Mapa de Grupos (Leaflet)
   ========================================================================== */

.grupos-mapa-section {
  margin-bottom: 3rem;
}

#grupos-mapa {
  height: 400px;
  width: 100%;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  z-index: 1;
}

/* Marcadores personalizados */
.marcador-scout {
  background: transparent;
}

.marcador-scout-inner {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid #FFFFFF;
}

.marcador-scout-inner::after {
  content: '⚜';
  transform: rotate(45deg);
  font-size: 16px;
  color: #FFFFFF;
}

/* Popups del mapa */
.popup-grupo {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.4;
}

.popup-grupo strong {
  color: var(--color-primary);
  font-size: 15px;
}

.popup-ciudad {
  display: inline-block;
  background: var(--color-accent);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin: 4px 0;
}

.popup-lugar {
  color: var(--color-text-muted);
}

.popup-notas {
  color: var(--color-text-muted);
  font-size: 12px;
}

/* Leyenda del mapa */
.mapa-leyenda {
  background: #FFFFFF;
  padding: 10px 14px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 12px;
  line-height: 1.6;
}

.mapa-leyenda strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text);
}

/* Responsive mapa */
@media (max-width: 768px) {
  #grupos-mapa {
    height: 300px;
  }
}

/* ==========================================================================
   Página Tech Team
   ========================================================================== */

.tech-team-intro {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.tech-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--grid-gap);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.tech-team-card {
  background: #FFFFFF;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-team-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.tech-team-card-foto {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 24px 0;
}

.tech-team-card-foto img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
}

.tech-team-card-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #FFFFFF;
  font-size: 3rem;
  font-weight: var(--font-weight-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.tech-team-card-body {
  padding: 16px 24px 24px;
}

.tech-team-card-nombre {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.tech-team-card-rol {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  background: var(--color-accent);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.tech-team-card-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  color: var(--color-primary);
}

.tech-team-card-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive - Tech Team
   ========================================================================== */

@media (max-width: 768px) {
  .tech-team-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

/* ==========================================================================
   Página Organigrama
   ========================================================================== */

.org-page {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.org-intro {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Tree container */
.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  animation: orgFadeIn 0.5s ease both;
}

@keyframes orgFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Connector: vertical line from parent card down to children row */
.org-children-wrap {
  position: relative;
  padding-top: 28px;
  width: 100%;
}

.org-children-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 28px;
  background: rgba(91, 44, 147, 0.25);
}

/* Children flex row */
.org-children {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: flex-start;
}

/* Branch: vertical line from horizontal T-bar down to card */
.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 28px;
}

/* Horizontal T-bar piece on each branch */
.org-branch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(91, 44, 147, 0.25);
}

/* First child: only right half of horizontal bar */
.org-branch:first-child::before { left: 50%; }
/* Last child: only left half of horizontal bar */
.org-branch:last-child::before  { right: 50%; }
/* Only child: no horizontal bar */
.org-branch:only-child::before  { display: none; }

/* Vertical drop from T-bar to card */
.org-branch::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 28px;
  background: rgba(91, 44, 147, 0.25);
}

/* === Cards === */

.org-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #FFFFFF;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 20px 14px 16px;
  width: 155px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.org-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(91, 44, 147, 0.15);
}

/* Presidenta: fondo morado */
.org-card--presidenta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  border-color: transparent;
  width: 190px;
  padding: 24px 18px 20px;
  box-shadow: 0 4px 16px rgba(91, 44, 147, 0.3);
}

.org-card--presidenta:hover {
  box-shadow: 0 12px 28px rgba(91, 44, 147, 0.35);
}

.org-card--presidenta .org-nombre { color: #FFFFFF; }
.org-card--presidenta .org-cargo  { color: rgba(255, 255, 255, 0.82); }

/* VP: borde izquierdo morado */
.org-card--vp {
  border-left: 4px solid var(--color-primary);
  width: 165px;
}

/* Staff directo (Seguridad): borde izquierdo accent */
.org-card--staff {
  border-left: 4px solid var(--color-accent);
}

/* === Avatars === */

.org-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.org-avatar:hover {
  transform: scale(1.06);
}

.org-avatar span {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: var(--font-weight-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  user-select: none;
}

.org-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-avatar--lg {
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
}

.org-avatar--lg span { font-size: 1.4rem; }

.org-card--presidenta .org-avatar {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.org-avatar--sm {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
}

.org-avatar--sm span { font-size: 0.95rem; }

/* === Texto dentro de cards === */

.org-nombre {
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.org-card--presidenta .org-nombre {
  font-size: 1rem;
}

.org-cargo {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

/* === Colaboradores === */

.org-colaboradores {
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.org-colaboradores h2 {
  margin-bottom: 0.5rem;
}

.org-colaboradores-desc {
  max-width: 580px;
  margin: 0 auto 2rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.org-colaboradores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.org-colab-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  background: #FAFAFA;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.org-colab-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(91, 44, 147, 0.1);
}

.org-colab-nombre {
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.3;
  color: var(--color-text);
}

/* === Responsive — Organigrama === */

@media (max-width: 900px) {
  /* Ocultar conector vertical presidenta→ramas */
  .org-children-wrap::before { display: none; }

  /* Columna con espacio entre secciones */
  .org-children {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* Ocultar T-bar y línea de caída */
  .org-branch::before,
  .org-branch::after { display: none; }

  /* Cada rama de nivel 1 = tarjeta-sección */
  .org-children > .org-branch {
    padding: 0;
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  /* Tarjeta principal dentro de la sección: layout horizontal */
  .org-children > .org-branch > .org-card {
    width: 100%;
    max-width: none;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }

  /* Separador inferior solo cuando hay comisiones debajo */
  .org-children > .org-branch:has(.org-children-wrap) > .org-card {
    border-bottom: 1px solid var(--color-border);
  }

  /* Mantener indicadores de color izquierdo */
  .org-children > .org-branch > .org-card--vp    { border-left: 4px solid var(--color-primary); }
  .org-children > .org-branch > .org-card--staff  { border-left: 4px solid var(--color-accent); }
  .org-children > .org-branch > .org-card--comision { border-left: 4px solid var(--color-primary); }

  /* Cuadrícula interna de comisiones: 2 columnas */
  .org-children > .org-branch .org-children-wrap { padding: 0; }
  .org-children > .org-branch .org-children-wrap::before { display: none; }
  .org-children > .org-branch .org-children {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: #FAFAFA;
  }

  /* Sub-ramas (comisiones dentro de VP) */
  .org-children > .org-branch .org-branch {
    padding: 0;
    border: none;
    border-right: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
  }

  .org-children > .org-branch .org-branch:last-child { border-right: none; }

  /* Tarjetas de comisión dentro del grid */
  .org-children > .org-branch .org-branch .org-card {
    width: 100%;
    max-width: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    flex-direction: column;
    text-align: center;
    padding: 12px 10px;
  }

  /* Presidenta: mantener estilo centrado */
  .org-card--presidenta {
    flex-direction: column !important;
    text-align: center !important;
    width: 100%;
    max-width: 440px;
  }

  /* Colaboradores: 2 columnas */
  .org-colaboradores-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 440px;
  }
}

@media (max-width: 540px) {
  /* Comisiones: columna única */
  .org-children > .org-branch .org-children {
    grid-template-columns: 1fr;
  }

  .org-children > .org-branch .org-branch {
    border-right: none;
  }

  /* Avatar más compacto */
  .org-avatar     { width: 44px; height: 44px; }
  .org-avatar--lg { width: 58px; height: 58px; }
  .org-avatar--sm { width: 38px; height: 38px; }

  /* Card principal compacta */
  .org-children > .org-branch > .org-card { padding: 12px 14px; gap: 10px; }

  /* Texto compacto */
  .org-nombre { font-size: 0.85rem; }
  .org-cargo  { font-size: 0.65rem; }

  /* Presidenta */
  .org-card--presidenta { padding: 18px 14px 16px; }
}

/* === Accesibilidad: prefers-reduced-motion === */

@media (prefers-reduced-motion: reduce) {
  .org-tree {
    animation: none;
  }

  .org-card,
  .org-avatar,
  .org-colab-card {
    transition: none;
  }
}
