/* Estilos para Privacidad y Cookies */

/* Hero Privacidad */
/* Selector de Política */
.policy-selector {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.policy-btn {
  padding: 1rem 2rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}

.policy-btn:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.policy-btn.active {
  background: #1e40af;
  color: white;
  border-color: #667eea;
}

/* Intro Box */
.intro-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 3px solid #0ea5e9;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.intro-box h2 {
  margin: 0 0 1.25rem 0;
  font-size: 2rem;
  color: #0c4a6e;
}

.intro-box p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 1rem;
}

.intro-box p:last-child {
  margin-bottom: 0;
}

/* Finalidad Grid */
.finalidad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.finalidad-card {
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  border: 2px solid #e5e7eb;
  text-align: center;
  transition: all 0.3s ease;
}

.finalidad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.finalidad-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.finalidad-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.125rem;
  color: #1f2937;
}

.finalidad-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Derechos Grid */
.derechos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.derecho-card {
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  border: 2px solid #e5e7eb;
  text-align: center;
  transition: all 0.3s ease;
}

.derecho-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #10b981;
}

.derecho-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.derecho-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  color: #1f2937;
}

.derecho-card p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Cookies Tipos Grid */
.cookies-tipos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.cookie-tipo-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.cookie-tipo-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cookie-tipo-card h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.0625rem;
  color: #1f2937;
}

.cookie-tipo-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Tabla de Cookies */
.tabla-cookies-container {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin: 2rem 0;
}

.tabla-cookies {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 600px;
}

.tabla-cookies thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.tabla-cookies th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
}

.tabla-cookies tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}

.tabla-cookies tbody tr:hover {
  background: #f9fafb;
}

.tabla-cookies tbody tr:last-child {
  border-bottom: none;
}

.tabla-cookies td {
  padding: 1rem;
  font-size: 0.9375rem;
  color: #374151;
}

.tabla-cookies td code {
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #667eea;
  font-weight: 600;
}

/* Terceros Grid */
.terceros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tercero-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.tercero-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tercero-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  color: #1f2937;
}

.tercero-card p {
  margin: 0.5rem 0;
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.6;
}

.tercero-card a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.tercero-card a:hover {
  text-decoration: underline;
}

/* Navegadores Grid */
.navegadores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.navegador-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.navegador-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.navegador-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.125rem;
  color: #1f2937;
}

.navegador-card p {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.navegador-card a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.navegador-card a:hover {
  text-decoration: underline;
}

/* Botón Config Cookies */
.btn-cookies-config {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cookies-config:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Reutilizar estilos del aviso legal */
.last-update {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.indice-legal {
  position: sticky;
  top: 60px;
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  border: 2px solid #e5e7eb;
  margin-bottom: 57rem;
  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 {
  max-width: 800px;
}

.seccion-legal {
  margin-bottom: 3rem;
  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 #10b981;
}

.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 {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem;
  margin: 1.5rem 0;
}

.legal-box.destacado {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  border-color: #10b981;
}

.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 {
  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-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-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 {
  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-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;
}

section{
    margin-top: -4rem;
}

/* 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) {
  .policy-selector {
    flex-direction: column;
  }

  .policy-btn {
    width: 100%;
  }

  .seccion-legal h2 {
    font-size: 1.5rem;
  }

  .seccion-legal h3 {
    font-size: 1.125rem;
  }

  .intro-box {
    padding: 1.75rem;
  }

  .finalidad-grid,
  .derechos-grid,
  .cookies-tipos-grid,
  .terceros-grid,
  .navegadores-grid {
    grid-template-columns: 1fr;
  }

  .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;
  }

  .tabla-cookies-container {
    margin: 1rem -1rem;
  }
}