/* Política de Privacidad - Estilos */

/* Variables CSS para temas - Estilo formal y sobrio */
:root {
  --bg-primary: #f9fafb;
  --bg-secondary: #ffffff;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --accent: #374151;
  --accent-light: #4b5563;
  --border: #d1d5db;
  --shadow: rgba(0, 0, 0, 0.08);
  --hover: rgba(75, 85, 99, 0.05);
  --success: #065f46;
  --warning: #92400e;
  --error: #991b1b;
}

.theme-dark {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --accent: #d1d5db;
  --accent-light: #e5e7eb;
  --border: #374151;
  --shadow: rgba(0, 0, 0, 0.25);
  --hover: rgba(209, 213, 219, 0.08);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
}

/* Reset y base */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Contenedor principal */
.privacy-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* Tarjeta principal */
.privacy-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: 0 10px 40px var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

/* Header */
.privacy-header {
  text-align: center;
  padding: 40px 32px 32px;
  background: var(--accent);
  color: white;
  position: relative;
  border-bottom: 3px solid var(--accent-light);
}

.privacy-header::after {
  display: none;
}

.logo {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.privacy-header h1 {
  margin: 0 0 8px;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.updated-date {
  margin: 0;
  opacity: 0.9;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Navegación */
.privacy-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 12px 24px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.nav-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.nav-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Barra de progreso de lectura */
.reading-progress {
  flex: 1;
  max-width: 300px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Contenido */
.privacy-content {
  padding: 0 32px 32px;
  max-height: 70vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.privacy-content::-webkit-scrollbar {
  width: 8px;
}

.privacy-content::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 4px;
}

.privacy-content::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.privacy-content::-webkit-scrollbar-thumb:hover {
  background: #5a67d8;
}

/* Secciones */
.intro-section {
  padding: 24px 0;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 32px;
}

.intro-section p {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.section {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.section:last-child {
  border-bottom: none;
}

.section h2 {
  color: var(--accent);
  font-size: 1.8rem;
  margin: 0 0 20px;
  font-weight: 600;
  position: relative;
  padding-left: 20px;
}

.section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}

.section h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin: 24px 0 12px;
  font-weight: 600;
}

.section p {
  margin-bottom: 16px;
  text-align: justify;
  font-size: 1.05rem;
}

/* Listas de definiciones */
.definition-list {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.definition-item {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  transition: border-color 0.2s ease;
}

.definition-item:hover {
  border-left-color: var(--accent-light);
}

.definition-item h3 {
  color: var(--text-primary);
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.definition-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Listas */
.info-list, .usage-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.info-list li, .usage-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.info-list li:last-child, .usage-list li:last-child {
  border-bottom: none;
}

.info-list li::before, .usage-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.4rem;
}

/* Sección de contacto */
.contact-section {
  background: var(--bg-secondary);
  padding: 32px;
  border-radius: 6px;
  text-align: center;
  border: 2px solid var(--border);
  margin-top: 32px;
}

.contact-info {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-info a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
  font-weight: 700;
}

.contact-info a:hover {
  color: var(--accent-light);
}

/* Footer */
.privacy-footer {
  text-align: center;
  padding: 24px 32px;
  background: var(--hover);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

.privacy-footer p {
  margin: 8px 0;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .privacy-container {
    padding: 10px;
  }

  .privacy-header {
    padding: 24px 20px 20px;
  }

  .privacy-header h1 {
    font-size: 2rem;
  }

  .privacy-navigation {
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
  }

  .reading-progress {
    order: -1;
    max-width: 100%;
  }

  .nav-btn {
    width: 100%;
    justify-content: center;
  }

  .privacy-content {
    padding: 0 20px 20px;
    max-height: none;
  }

  .section h2 {
    font-size: 1.5rem;
    padding-left: 16px;
  }

  .section h2::before {
    width: 3px;
    height: 20px;
  }

  .definition-list {
    gap: 16px;
  }

  .definition-item {
    padding: 16px;
  }

  .privacy-footer {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .privacy-header h1 {
    font-size: 1.8rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .section p, .info-list li, .usage-list li {
    font-size: 1rem;
  }

  .definition-item h3 {
    font-size: 1.1rem;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.privacy-card {
  animation: fadeIn 0.6s ease-out;
}

.section {
  animation: fadeIn 0.4s ease-out;
  animation-fill-mode: both;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }

/* Impresión */
@media print {
  .privacy-navigation {
    display: none;
  }
  
  .privacy-content {
    max-height: none;
    overflow: visible;
  }
  
  .section {
    break-inside: avoid;
  }
  
  .privacy-header {
    break-inside: avoid;
  }
  
  .definition-item {
    break-inside: avoid;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .privacy-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
