/* =========================================================
   POLÍTICA DE PRIVACIDAD — estilos de /politica-privacidad
   ========================================================= */

/* Selector de idioma EN / ES */
.idiomas { display: flex; padding: 4px; gap: 4px; background: var(--card); border: 1px solid var(--borde); border-radius: 14px; }
.idiomas button {
  border: none; background: transparent; cursor: pointer; padding: 8px 14px; border-radius: 10px;
  font-family: var(--fuente); font-weight: 800; font-size: 14px; color: var(--texto-suave); transition: background .25s, color .25s;
}
.idiomas button[aria-pressed="true"] { background: var(--violeta); color: #fff; }
.sin-js .idiomas { display: none; }

.politica { padding-top: 28px; padding-bottom: 64px; }
.etiqueta {
  display: inline-block; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px;
  background: var(--menta-claro); color: #2f7d62; font-weight: 800; font-size: 14px;
}
.politica-cabecera { margin-bottom: 24px; }
.politica h1 { font-size: clamp(28px, 7vw, 44px); margin: 0 0 6px; }
.sub { color: var(--texto-suave); font-size: 15px; margin: 0; }
.langnote { font-size: 14.5px; color: var(--texto-suave); margin: 10px 0 0; }

/* Cuando el JS elige un idioma, el otro se oculta */
.idioma.oculto, .solo-un-idioma .divider, .solo-un-idioma .langnote { display: none; }
.idioma.mostrar { animation: entrar-politica .4s ease; }
@keyframes entrar-politica { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.politica-grid { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .politica-grid { grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
  .indice { position: sticky; top: calc(var(--alto-header) + 20px); }
}

/* Índice */
.indice details { background: var(--card); border: 1px solid var(--borde); border-radius: 16px; padding: 4px 6px; }
.indice summary { cursor: pointer; font-weight: 800; color: var(--violeta-oscuro); padding: 10px 12px; list-style: none; position: relative; }
.indice summary::-webkit-details-marker { display: none; }
.indice summary::after { content: "▾"; position: absolute; right: 12px; transition: transform .3s; }
.indice details:not([open]) summary::after { transform: rotate(-90deg); }
.indice ol { margin: 0; padding: 0 6px 10px 30px; font-size: 15px; }
.indice li { margin: 2px 0; color: var(--texto-suave); }
.indice a { display: block; padding: 5px 8px; border-radius: 8px; color: var(--texto-suave); text-decoration: none; font-weight: 600; transition: background .2s, color .2s; }
.indice a:hover { background: var(--violeta-claro); color: var(--violeta); }
.indice a.activo { background: var(--violeta-claro); color: var(--violeta-oscuro); font-weight: 800; }

/* Texto */
.texto { min-width: 0; overflow-wrap: anywhere; }
.texto h2 { font-size: 23px; margin: 36px 0 10px; }
.texto h3 { font-size: 18px; margin: 18px 0 6px; }
.texto ul { padding-left: 22px; }
.texto li { margin: 7px 0; }
.texto section:first-of-type h2 { margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--borde); border-radius: 18px; padding: 6px 20px 14px; box-shadow: var(--sombra-chica); }
.destacado {
  background: var(--violeta-claro); border: 1px solid var(--violeta-borde); border-left: 5px solid var(--violeta);
  border-radius: 14px; padding: 14px 18px; margin: 20px 0; font-size: 15.5px; color: var(--violeta-oscuro);
}
code { background: var(--violeta-claro); padding: 1px 6px; border-radius: 6px; font-size: 14px; word-break: break-all; }
.divider { border: none; border-top: 2px dashed var(--borde); margin: 56px 0 40px; }

/* Botón volver arriba */
.volver-arriba {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--violeta); color: #fff; font-size: 22px; font-weight: 800; box-shadow: 0 8px 22px rgba(108, 76, 214, .35);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .3s, transform .3s;
}
.volver-arriba.visible { opacity: 1; transform: none; pointer-events: auto; }
