/* style.css - Estilos unificados para Asamblea 8M Latina */

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #fcf9f0;
  color: #1c1c16;
  font-family: "Public Sans", sans-serif;
  min-height: max(884px, 100dvh);
}

/* ===== UTILIDADES GLOBALES ===== */
.grain-texture {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

.text-vertical {
  writing-mode: vertical-rl;
}

/* ===== TIPOGRAFÍA ===== */
.font-headline {
  font-family: "Space Grotesk", sans-serif;
}

.font-body {
  font-family: "Public Sans", sans-serif;
}

.font-label {
  font-family: "Space Grotesk", sans-serif;
}

/* ===== NAVEGACIÓN PRINCIPAL ===== */
.main-nav {
  background-color: #fcf9f0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  border-bottom: none;
}

.main-nav .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .main-nav .nav-container {
    padding: 1rem 2rem;
  }
}

.main-nav .logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #310065;
  font-family: "Space Grotesk", sans-serif;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  text-decoration: none;
}

@media (min-width: 768px) {
  .main-nav .logo {
    font-size: 1.875rem;
  }
}

.main-nav .nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .main-nav .nav-links {
    display: flex;
  }
}

.main-nav .nav-links a {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-decoration: none;
  color: #222222;
  transition: all 0s;
  padding: 0.25rem 0.5rem;
}

.main-nav .nav-links a:hover {
  background-color: #310065;
  color: #fcf9f0;
}

.main-nav .nav-links a.active {
  color: #006e2a;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.main-nav .btn-participar {
  background-color: #310065;
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  border: none;
  cursor: pointer;
  transition: background-color 0s;
}

.main-nav .btn-participar:hover {
  background-color: #006e2a;
}

.main-nav .btn-participar:active {
  filter: invert(1);
}

.main-nav .mobile-menu-btn {
  background: none;
  border: none;
  color: #310065;
  cursor: pointer;
}

@media (min-width: 768px) {
  .main-nav .mobile-menu-btn {
    display: none;
  }
}

.main-nav .nav-divider {
  background-color: #310065;
  height: 4px;
  width: 100%;
}

/* ===== BOTONES GLOBALES ===== */
.btn-primary {
  background-color: #310065;
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  border: none;
  cursor: pointer;
  transition: background-color 0s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #006e2a;
}

.btn-primary:active {
  filter: invert(1);
}

.btn-secondary {
  background-color: #006e2a;
  color: #ffffff;
  padding: 1.5rem 2rem;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.btn-secondary:hover {
  background-color: #310065;
}

/* ===== FOOTER ===== */
.main-footer {
  background-color: #fcf9f0;
  padding: 2rem 1.5rem;
  border-top: 1px solid #e5e2d9;
}

@media (min-width: 768px) {
  .main-footer {
    padding: 2rem 3rem;
  }
}

.main-footer .footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.main-footer .follow-section {
  border-top: 0;
  padding: 0 0 2rem 0;
  margin: 0;
}

.main-footer .follow-section h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: 1.125rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #1c1c16;
}

.main-footer .social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.main-footer .social-links-row a {
  color: #006e2a;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  font-size: 0.875rem;
}

.main-footer .social-links-row a:hover {
  text-decoration: underline;
}

.main-footer .social-links-row .separator {
  color: #7c7483;
}

.main-footer .social-note {
  font-size: 0.75rem;
  color: #7c7483;
  margin-top: 0.5rem;
  font-style: italic;
}

.main-footer .footer-bottom {
  border-top: 1px solid #e5e2d9;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

.main-footer .footer-text {
  font-size: 0.75rem;
  color: #4a4452;
  text-align: center;
}

.main-footer .heart {
  color: #310065;
}

/* ===== TARJETAS DE ASAMBLEA ===== */
.assembly-card {
  display: flex;
  flex-direction: column;
}

.assembly-card:hover h3 {
  color: #006e2a;
  transition: color 0.2s ease;
}

.assembly-card .card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background-color: #e5e2d9;
  margin-bottom: 1.5rem;
}

.assembly-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(125%);
  transition: transform 0.5s;
}

.assembly-card .card-image img:hover {
  transform: scale(1.05);
}

.assembly-card .card-badge {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #310065;
  color: #ffffff;
  padding: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  line-height: 1;
}

.assembly-card .card-badge.small {
  padding: 0.4rem;
  font-size: 0.875rem;
}

.assembly-card .event-date {
  background-color: #222222;
  color: #ffffff;
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.assembly-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: 1.875rem;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #310065;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.assembly-card .event-details {
  margin-bottom: 1.25rem;
}

.assembly-card .event-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.assembly-card .event-icon {
  font-size: 1rem;
}

.assembly-card .event-type {
  font-family: "Public Sans", sans-serif;
  color: #4a4452;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.3;
}

/* ===== SECCIÓN NOTICIAS (BENTO GRID) ===== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.news-card {
  background-color: #ffffff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  border-bottom: 8px solid #310065;
  cursor: pointer;
  transition: background-color 0.2s;
}

.news-card:hover {
  background-color: #310065;
  color: #ffffff;
}

.news-card:hover a {
  color: #ffffff;
}

.news-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.news-tag {
  background-color: #222222;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
}

.news-tag.secondary {
  background-color: #006e2a;
}

.news-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .news-title {
    font-size: 2.5rem;
  }
}

.news-excerpt {
  font-size: 1.25rem;
  line-height: 1.625;
  max-width: 42rem;
}

/* ===== SECCIÓN HERO ===== */
.hero-section {
  position: relative;
  min-height: 751px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 1.5rem;
  overflow: hidden;
  background-color: #fcf9f0;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 5rem 3rem;
  }
}

.hero-lema {
  display: inline-block;
  background-color: #222222;
  color: #ffffff;
  padding: 0.25rem 1rem;
  margin-bottom: 2rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  transform: rotate(-1deg);
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: 3rem;
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: #310065;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 7rem;
  }
}

.hero-title span {
  color: #006e2a;
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fcf9f0;
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    z-index: 50;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #7c7483;
  }
  
  .mobile-bottom-nav a.active {
    color: #006e2a;
  }
  
  .mobile-bottom-nav span:first-child {
    font-variation-settings: 'FILL' 1;
  }
  
  .mobile-bottom-nav span:last-child {
    font-size: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
  }
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fcf9f0;
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    z-index: 50;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #7c7483;
  }
  
  .mobile-bottom-nav a.active {
    color: #006e2a;
  }
  
  .mobile-bottom-nav span:first-child {
    font-variation-settings: 'FILL' 1;
  }
  
  .mobile-bottom-nav span:last-child {
    font-size: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
  }
}
/* SOLUCIÓN PARA EL MENÚ FIJO MÓVIL */
@media (max-width: 768px) {
  /* El menú fijo en la parte inferior */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fcf9f0;
    display: flex;
    justify-content: space-around;
    padding: 12px 16px;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e5e2d9;
  }
  
  /* IMPORTANTE: Empuja el último contenido para que no quede tapado */
  main {
    padding-bottom: 80px !important;
  }
  
  /* También para el último elemento dentro de main si es necesario */
  main > :last-child {
    margin-bottom: 0;
  }
  
  /* Ajuste específico para la sección del formulario */
  #lista-correo,
  .ml-embedded {
    margin-bottom: 20px;
  }
}
/* ===== ESTILOS EXCLUSIVOS PARA LA PÁGINA DE RECURSOS / ACCIONES ===== */

/* Textura de fondo tipo fanzine */
.zine-texture {
    background-image: radial-gradient(#00000010 1px, transparent 1px);
    background-size: 4px 4px;
}

/* Sombras asimétricas para un estilo DIY */
.asymmetric-shadow {
    box-shadow: 12px 12px 0px 0px #310065;
}

.asymmetric-shadow-green {
    box-shadow: 12px 12px 0px 0px #006e2a;
}

/* Ligera rotación para efecto de pegatina */
.sticker-rotate {
    transform: rotate(-3deg);
}
/* ===== AJUSTES PARA MÓVIL EN PÁGINA DE ACCIONES ===== */
@media (max-width: 768px) {
  /* Ajuste general de padding en main */
  main {
    padding-top: 6rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Espaciador para menú móvil */
  .mobile-spacer {
    display: block;
    height: 70px;
    width: 100%;
  }
  
  /* Ajuste para el formulario MailerLite en móvil */
  .ml-embedded {
    width: 100%;
    overflow-x: auto;
  }
  
  /* Tarjetas en móvil ocupan todo el ancho */
  .grid {
    gap: 1.5rem !important;
  }
  
  /* Textos más pequeños en móvil */
  .sticker-rotate {
    transform: rotate(-2deg);
  }
}

/* Asegura que el menú móvil no tape el contenido */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fcf9f0;
    display: flex;
    justify-content: space-around;
    padding: 10px 16px;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e5e2d9;
  }
  
  body {
    padding-bottom: 0;
  }
}