/* ========================================
   gaceta.css - Estilos para la Gaceta Clara Zetkin
   Naranja Ciencia y Técnica
======================================== */

/* ===== VARIABLES ===== */
:root {
  --naranja: #F36F21;
  --naranja-dark: #d85f1a;
  --naranja-light: #ff8c49;
  --gris: #5a5a5a;
  --gris-light: #8a8a8a;
  --gris-lighter: #F5F5F5;
  --blanco: #FFFFFF;
  --texto: #202020;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 32px rgba(243, 111, 33, 0.12);
  --shadow-btn: 0 6px 18px rgba(243, 111, 33, 0.18);
  --shadow-btn-small: 0 4px 12px rgba(243, 111, 33, 0.18);
  --transition: all 0.3s ease;
  --border-soft: 1px solid rgba(243, 111, 33, 0.1);
  --border-medium: 1px solid rgba(243, 111, 33, 0.2);
  --border-strong: 2px solid rgba(243, 111, 33, 0.3);
}

/* ===== ANIMACIONES ===== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(243, 111, 33, 0.3); }
  50% { box-shadow: 0 0 16px rgba(243, 111, 33, 0.5); }
}

.anim-slide-1 { animation: slideUp 0.6s ease 0.1s both; }
.anim-slide-2 { animation: slideUp 0.6s ease 0.25s both; }
.anim-slide-3 { animation: slideUp 0.6s ease 0.4s both; }
.anim-slide-4 { animation: slideUp 0.6s ease 0.55s both; }
.anim-fade { animation: fadeIn 0.8s ease 0.3s both; }

.card-anim-1 { animation: slideUp 0.6s ease 0.1s both; }
.card-anim-2 { animation: slideUp 0.6s ease 0.25s both; }
.card-anim-3 { animation: slideUp 0.6s ease 0.4s both; }
.card-anim-4 { animation: slideUp 0.6s ease 0.55s both; }

.badge-pulse {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ===== RESET Y BASE ===== */
html, body { 
  height: 100%; 
  margin: 0; 
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
body { box-sizing: border-box; }

.app-root {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--gris-lighter);
}

/* ===== COMPONENTES COMUNES ===== */

/* Header */
.glass-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Logo */
.logo-bg {
  width: 4.5rem;
  height: 2.5rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-text {
  font-weight: bold;
  color: white;
  font-size: 0.875rem;
}
.logo-title {
  font-weight: bold;
  font-size: 0.875rem;
  color: var(--texto);
}
.logo-subtitle {
  font-size: 0.75rem;
  color: var(--gris-light);
}

.logo-icon {
  width: 3.5rem;
  height: 2.5rem;
}

/* Navegación */
.link-underline {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding-bottom: 2px;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--naranja);
  transition: width 0.3s ease;
}
.link-underline:hover::after {
  width: 100%;
}

.nav-link {
  color: var(--gris);
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-link.active {
  color: var(--naranja);
  font-weight: 600;
}
.nav-link-mobile {
  color: var(--gris);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0;
}
.nav-link-mobile.active {
  color: var(--naranja);
  font-weight: 600;
}

/* Botones */
.btn-primary {
  background: var(--naranja);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-btn);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  background: var(--naranja-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-primary.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow-btn-small);
}

.btn-secondary {
  background: transparent;
  color: var(--naranja);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  border: var(--border-strong);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-secondary:hover {
  background: rgba(243, 111, 33, 0.08);
  transform: translateY(-2px);
}
.btn-secondary.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Mobile menu */
.mobile-menu {
  border-top: var(--border-soft);
  padding: 1rem 1rem 0.5rem;
}
.mobile-menu.hidden {
  display: none;
}
.mobile-menu-btn {
  color: var(--texto);
  padding: 0.5rem;
}
.mobile-menu-btn i {
  width: 24px;
  height: 24px;
}

/* ===== HERO SECTION ===== */
.hero-gradient {
  background: linear-gradient(135deg, var(--blanco) 0%, var(--gris-lighter) 100%);
}
.hero-badge {
  background: rgba(243, 111, 33, 0.1);
  border: var(--border-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--naranja);
}
.hero-badge-text {
  color: var(--naranja);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-title {
  color: var(--texto);
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero-title span {
  color: var(--naranja);
}
.hero-subtitle {
  color: var(--gris);
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Magazine cover */
.magazine-cover {
  width: 18rem;
  height: 24rem;
  background: var(--blanco);
  box-shadow: var(--shadow);
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  border-top: 6px solid var(--naranja);
}
.magazine-initials {
  color: var(--naranja);
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.magazine-line {
  width: 4rem;
  height: 1px;
  background: var(--naranja);
  margin: 0.75rem 0;
}
.magazine-label {
  color: var(--texto);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.magazine-name {
  color: var(--naranja);
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.magazine-date {
  color: var(--gris-light);
  font-size: 0.75rem;
}
.magazine-badge {
  background: rgba(243, 111, 33, 0.15);
  border: 1px solid var(--naranja);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  margin-top: 1.5rem;
}
.magazine-badge span {
  color: var(--naranja);
  font-size: 0.75rem;
  font-weight: bold;
}
.magazine-shadow {
  position: absolute;
  bottom: -0.75rem;
  right: -0.75rem;
  width: 18rem;
  height: 24rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(243, 111, 33, 0.08);
  z-index: -10;
}

/* ===== SECCIONES ===== */
.section-title {
  font-size: 1.875rem;
  font-weight: bold;
  color: var(--texto);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--gris-light);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.line-accent {
  height: 2px;
  background: linear-gradient(90deg, var(--naranja), transparent);
  width: 4rem;
  margin: 0 auto;
}
.line-accent.left {
  width: 3rem;
  margin: 0;
}

/* About section */
.about-bg {
  background: var(--blanco);
  border-top: 6px solid var(--naranja);
}
.about-text {
  color: var(--texto);
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 2rem;
}
.feature-icon {
  background: rgba(243, 111, 33, 0.12);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon i {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--naranja);
}
.feature-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--texto);
}
.feature-desc {
  color: var(--gris-light);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Secciones cards */
.secciones-bg {
  background: var(--gris-lighter);
}
.seccion-card {
  background: var(--blanco);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-radius: 0.5rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--naranja);
  transition: var(--transition);
}
.seccion-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.seccion-icon {
  background: rgba(243, 111, 33, 0.12);
  width: 3rem;
  height: 3rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.seccion-icon i {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--naranja);
}
.seccion-card h3 {
  color: var(--texto);
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.seccion-card p {
  color: var(--gris);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Ediciones cards */
.ediciones-bg {
  background: var(--blanco);
}
.edicion-card {
  background: var(--blanco);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: var(--transition);
}
.edicion-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.edicion-header {
  background: linear-gradient(135deg, rgba(243, 111, 33, 0.08), rgba(243, 111, 33, 0.04));
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.edicion-number {
  color: var(--naranja);
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
}
.edicion-number p {
  color: var(--gris-light);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.edicion-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--naranja);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}
.edicion-badge span {
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}
.edicion-content {
  padding: 1.25rem;
}
.edicion-content h3 {
  color: var(--texto);
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.edicion-content p {
  color: var(--gris);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.edicion-link {
  color: var(--naranja);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.edicion-placeholder {
  background: rgba(243, 111, 33, 0.03);
  border: 2px dashed rgba(243, 111, 33, 0.2);
  border-radius: 0.5rem;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.placeholder-icon {
  background: rgba(243, 111, 33, 0.1);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.placeholder-icon i {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--naranja);
}
.placeholder-title {
  color: rgba(32,32,32,0.4);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.placeholder-date {
  color: rgba(32,32,32,0.3);
  font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--blanco) 0%, var(--gris-lighter) 100%);
  border-top: 6px solid var(--naranja);
}
.cta-icon {
  background: rgba(243, 111, 33, 0.12);
  border: 2px solid var(--naranja);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.cta-icon i {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--naranja);
}
.cta-title {
  color: var(--texto);
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.cta-text {
  color: var(--gris);
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 2rem;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
  }
}

/* ===== FOOTER ===== */
.footer-border {
  border-top: var(--border-soft);
  background: var(--blanco);
}
.footer-title {
  color: var(--naranja);
  font-size: 1.125rem;
  font-weight: bold;
}
.footer-subtitle {
  color: var(--texto);
  font-size: 0.875rem;
  font-weight: 600;
}
.footer-text {
  color: var(--gris-light);
  font-size: 0.75rem;
  line-height: 1.5;
}
.footer-heading {
  color: var(--texto);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.footer-link {
  color: var(--gris);
  font-size: 0.75rem;
}
.footer-link:hover {
  color: var(--naranja);
}
.social-icon {
  background: rgba(243, 111, 33, 0.12);
  color: var(--naranja);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-icon:hover {
  background: var(--naranja);
  color: white;
  transform: translateY(-3px);
}
.footer-copyright {
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
}
.footer-copyright p {
  color: var(--gris-light);
  font-size: 0.75rem;
}

/* ===== UTILIDADES ===== */
.bg-naranja-soft { background: rgba(243, 111, 33, 0.12); }
.text-naranja { color: var(--naranja); }
.border-naranja { border-color: var(--naranja); }

/* Scrollbar */
.app-root::-webkit-scrollbar { width: 8px; }
.app-root::-webkit-scrollbar-track { background: var(--gris-lighter); }
.app-root::-webkit-scrollbar-thumb { background: var(--naranja); border-radius: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .magazine-cover, .magazine-shadow {
    width: 16rem;
    height: 22rem;
  }
}
@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}