/* RESET Y BASE */
:root {
  --black: #000000;
  --black-dark: #0a0a0a;
  --black-light: #1a1a1a;
  --red: #c62828;
  --red-dark: #8e0000;
  --red-light: #ff5f52;
  --white: #ffffff;
  --white-off: #f5f5f5;
  --gray: #2a2a2a;
  --gray-light: #444444;
  
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Roboto Mono', monospace;
  --font-text: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white-off);
  font-family: var(--font-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAVEGACIÓN SEGURA */
.secure-nav {
  background-color: var(--black-dark);
  border-bottom: 1px solid var(--gray);
  padding: 0.8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.secure-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--red-light);
  font-family: var(--font-secondary);
}

.secure-notice svg {
  stroke: var(--red-light);
}

/* HERO */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: 
    radial-gradient(ellipse at 20% 20%, var(--red-dark) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, var(--black-light) 0%, transparent 50%),
    linear-gradient(to bottom, var(--black) 0%, var(--black-dark) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.03) 1px,
      rgba(255, 255, 255, 0.03) 2px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  text-align: center;
  padding: 2rem;
}

.project-label {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2rem;
  border: 1px solid var(--gray);
  padding: 0.5rem 1rem;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
}

.title-line.accent {
  color: var(--red);
  position: relative;
}

.title-line.accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--red);
  transform: skew(-15deg);
}

.hero-subtitle {
  margin-bottom: 2rem;
  position: relative;
}

.subtitle-text {
  font-family: var(--font-secondary);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}

.subtitle-line {
  height: 2px;
  width: 100px;
  background: linear-gradient(90deg, var(--red), transparent);
  margin: 0 auto;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--white-off);
}

.hero-description strong {
  color: var(--white);
  font-weight: 600;
}

/* LOGO HERO */
.logo-container {
  margin: 1.5rem auto 2rem;
  text-align: center;
  animation: logoReveal 1s ease-out;
}

.hero-logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--red);
  box-shadow: 
    0 0 30px rgba(198, 40, 40, 0.3),
    0 0 60px rgba(198, 40, 40, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  background: var(--black-light);
  padding: 10px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.hero-logo:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 40px rgba(198, 40, 40, 0.4),
    0 0 80px rgba(198, 40, 40, 0.2),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
  border-color: var(--red-light);
}

.hero-logo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-logo:hover::before {
  opacity: 1;
}

/* Animación de revelación del logo */
@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  70% {
    opacity: 0.8;
    transform: scale(1.05) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Ajuste responsive para el logo */
@media (max-width: 768px) {
  .hero-logo {
    width: 140px;
    height: 140px;
  }
  
  .logo-container {
    margin: 1rem auto 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 120px;
    height: 120px;
    border-width: 3px;
  }
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background-color: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}

.btn-primary:hover {
  background-color: var(--red-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--red);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--gray);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red-light);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-top: 2rem;
}

.security-badge svg {
  stroke: var(--gray-light);
}

/* ESTADÍSTICAS */
.stats-section {
  background-color: var(--black-dark);
  padding: 4rem 1rem;
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--gray);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--black-light);
  border: 1px solid var(--gray);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.stat-source {
  font-size: 0.85rem;
  color: var(--gray-light);
  font-family: var(--font-secondary);
}

/* SECCIONES GENERALES */
.section {
  padding: 5rem 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--white);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ENFOQUE */
.enfoque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.enfoque-card {
  background-color: var(--black-light);
  padding: 2rem;
  border: 1px solid var(--gray);
  transition: all 0.3s ease;
}

.enfoque-card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
}

.enfoque-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.enfoque-card h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.enfoque-card p {
  color: var(--white-off);
}

/* ACCIONES TIMELINE */
.acciones-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.acciones-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 3rem;
}

.timeline-marker {
  position: absolute;
  left: -1.5rem;
  top: 0;
  width: 3rem;
  height: 3rem;
  background-color: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.2rem;
  border: 3px solid var(--black-dark);
  z-index: 2;
}

.timeline-content {
  background-color: var(--black-light);
  padding: 2rem;
  border: 1px solid var(--gray);
}

.timeline-content h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.timeline-tip {
  margin-top: 1rem;
  padding: 1rem;
  background-color: rgba(198, 40, 40, 0.1);
  border-left: 3px solid var(--red);
  font-size: 0.9rem;
}

/* DENUNCIA */
.denuncia-section {
  background-color: var(--black-dark);
}

.denuncia-card {
  background-color: var(--black);
  border: 2px solid var(--red);
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.denuncia-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.denuncia-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: var(--white);
}

.security-badge {
  background-color: var(--red-dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.denuncia-warning {
  display: flex;
  gap: 1.5rem;
  background-color: rgba(198, 40, 40, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--red);
}

.warning-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.warning-content h3 {
  font-family: var(--font-primary);
  margin-bottom: 0.5rem;
  color: var(--white);
}

.denuncia-steps {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-number {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  flex-shrink: 0;
}

.step-content h4 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.denuncia-disclaimer {
  padding: 1.5rem;
  background-color: var(--black-light);
  border: 1px solid var(--gray);
  font-size: 0.95rem;
}

/* RECURSOS */
.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.recurso-card {
  background-color: var(--black-light);
  padding: 2rem;
  border: 1px solid var(--gray);
  transition: all 0.3s ease;
}

.recurso-card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
}

.recurso-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.recurso-card h3 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.btn-recurso {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--gray);
  padding: 0.7rem 1.5rem;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
  margin-top: 1rem;
}

.btn-recurso:hover {
  border-color: var(--red);
  color: var(--red-light);
}

.btn-recurso.secondary {
  background-color: rgba(255, 255, 255, 0.05);
}

.qr-section {
  text-align: center;
  padding: 3rem;
  background-color: var(--black-dark);
  border: 1px solid var(--gray);
  margin-top: 3rem;
}

.qr-code {
  display: inline-block;
  margin: 2rem 0;
  padding: 1rem;
  background-color: var(--white);
}

.qr-text {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  color: var(--black);
  margin-top: 0.5rem;
}

.btn-qr {
  background-color: var(--red);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-weight: 600;
  cursor: pointer;
  margin: 0 0.5rem;
  transition: background-color 0.3s ease;
}

.btn-qr:hover {
  background-color: var(--red-dark);
}

.btn-qr.secondary {
  background-color: transparent;
  border: 2px solid var(--white);
}

.btn-qr.secondary:hover {
  border-color: var(--red);
}

/* MANIFIESTO */
.manifiesto-card {
  background-color: var(--black-light);
  padding: 4rem;
  border: 1px solid var(--gray);
  position: relative;
}

.manifiesto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.manifiesto-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--white);
}

.manifiesto-text {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.manifiesto-text.accent {
  color: var(--red-light);
  font-weight: 600;
  border-left: 3px solid var(--red);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.manifiesto-closing {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray);
}

.manifiesto-signature {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  text-align: right;
  margin-top: 1rem;
}

/* FOOTER */
.footer {
  background-color: var(--black-dark);
  padding: 4rem 1rem 2rem;
  border-top: 2px solid var(--gray);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.footer-brand .accent {
  color: var(--red);
}

.footer-subtitle {
  color: var(--gray-light);
  margin-bottom: 0.5rem;
}

.footer-motto {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--red-light);
}

.security-features {
  margin-top: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-light);
}

.footer-actions h4 {
  font-family: var(--font-primary);
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-actions ul {
  list-style: none;
}

.footer-actions li {
  margin-bottom: 0.5rem;
}

.footer-actions a,
.footer-actions button {
  color: var(--gray-light);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-actions a:hover,
.footer-actions button:hover {
  color: var(--red-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray);
  color: var(--gray-light);
  font-size: 0.9rem;
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray);
}

/* MODAL */
#securityModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

#securityModal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background-color: var(--black);
  border: 2px solid var(--red);
  max-width: 500px;
  width: 100%;
  z-index: 10000;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--black-light);
  border-bottom: 1px solid var(--gray);
}

.modal-header h3 {
  font-family: var(--font-primary);
  color: var(--white);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--red-light);
}

.modal-body {
  padding: 2rem;
}

.modal-body ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
  color: var(--white-off);
}

.btn-modal {
  background-color: var(--red);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-primary);
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.5rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.btn-modal:hover {
  background-color: var(--red-dark);
  transform: translateY(-2px);
}

.btn-modal.secondary {
  background-color: transparent;
  border: 1px solid var(--white);
}

.btn-modal.secondary:hover {
  border-color: var(--red);
  color: var(--red-light);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .step {
    flex-direction: column;
    gap: 1rem;
  }
  
  .step-number {
    align-self: flex-start;
  }
  
  .denuncia-card {
    padding: 2rem 1rem;
  }
  
  .manifiesto-card {
    padding: 2rem 1rem;
  }
}

/* ANIMACIONES */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* EFECTOS ESPECIALES */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* UTILIDADES */
.accent {
  color: var(--red);
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }