/* Estilos para Aviso Legal */

/* Hero Legal */
.hero-legal {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.last-update {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Índice flotante */
.indice-legal {
  position: sticky;
  top: 90px;
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  border: 2px solid #e5e7eb;
  margin-bottom: 26rem;
  max-width: 280px;
  float: right;
  margin-left: 2rem;
}

.indice-legal h3 {
  margin: 0 0 1.25rem 0;
  font-size: 1.125rem;
  color: #1f2937;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.indice-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.indice-nav a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.indice-nav a:hover {
  color: #667eea;
  background: #f9fafb;
  border-left-color: #667eea;
  padding-left: 1rem;
}

/* Contenido Legal */
.contenido-legal {
  max-width: 800px;
}

.seccion-legal {
  scroll-margin-top: 100px;
}

.seccion-legal h2 {
  font-size: 1.875rem;
  color: #1f2937;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #667eea;
}

.seccion-legal h3 {
  font-size: 1.375rem;
  color: #374151;
  margin: 2rem 0 1rem 0;
}

.seccion-legal p {
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 1.25rem;
}

.seccion-legal ul {
  margin: 1rem 0 1.5rem 0;
  padding-left: 2rem;
}

.seccion-legal ul li {
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.seccion-legal a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.seccion-legal a:hover {
  color: #4f46e5;
  text-decoration: underline;
}

/* Legal Box */
.legal-box {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem;
}

.legal-box.destacado {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
  border-color: #fbbf24;
}

.legal-box p {
  margin-bottom: 1rem;
}

.legal-box ul {
  margin-top: 1rem;
}

.nota-legal {
  background: #e0f2fe;
  border-left: 4px solid #0ea5e9;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #0c4a6e;
}

/* Advertencia Box */
.advertencia-box {
  background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 1.75rem;
  margin: 1.5rem 0;
}

.advertencia-box h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  color: #991b1b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.advertencia-box p {
  color: #7f1d1d;
  margin-bottom: 1rem;
}

.advertencia-box ul {
  margin: 0.75rem 0;
}

.advertencia-box ul li {
  color: #7f1d1d;
}

/* Datos de identificación */
.datos-identificacion {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.datos-identificacion li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9375rem;
}

.datos-identificacion li:last-child {
  border-bottom: none;
}

.datos-identificacion strong {
  color: #1f2937;
  min-width: 150px;
  display: inline-block;
}

/* Contacto Legal */
.contacto-legal-section {
  margin: 3rem 0;
}

.contacto-legal-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 3px solid #0ea5e9;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
}

.contacto-legal-box h2 {
  margin: 0 0 1rem 0;
  font-size: 1.75rem;
  color: #0c4a6e;
}

.contacto-legal-box p {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 1.25rem;
}

.contacto-legal-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-align: left;
}

.contacto-legal-box ul li {
  padding: 0.5rem 0;
  font-size: 1rem;
  color: #1f2937;
}

/* Enlaces Relacionados */
.enlaces-relacionados {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
  clear: both;
}

.enlaces-relacionados h3 {
  text-align: center;
  font-size: 1.75rem;
  color: #1f2937;
  margin-bottom: 2rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.doc-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.doc-card h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.125rem;
  color: #1f2937;
}

.doc-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: #6b7280;
}

/* Footer */
.footer-active {
  color: #667eea !important;
  font-weight: 700;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-credits {
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .indice-legal {
    position: relative;
    float: none;
    margin-left: 0;
    max-width: 100%;
    top: 0;
    margin-bottom: 0;
  }

  .contenido-legal {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .seccion-legal h2 {
    font-size: 1.5rem;
  }

  .seccion-legal h3 {
    font-size: 1.125rem;
  }

  .seccion-legal p,
  .seccion-legal ul li {
    font-size: 0.9375rem;
  }

  .legal-box,
  .advertencia-box {
    padding: 1.25rem;
  }

  .contacto-legal-box {
    padding: 1.75rem;
  }

  .contacto-legal-box h2 {
    font-size: 1.5rem;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .indice-legal {
    padding: 1.25rem;
  }

  .indice-nav a {
    font-size: 0.8125rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .indice-legal,
  .enlaces-relacionados,
  .ad-container {
    display: none;
  }

  .contenido-legal {
    max-width: 100%;
  }

  .seccion-legal {
    page-break-inside: avoid;
  }
}