/* ============================================================
   elurk · Generador de documentos RGPD
   Paleta Elurk 2026:
   Crema hueso #F5F1EA · Carbón cálido #2A2623 · Topo #7A6F5C
   Arena #C9B89A · Coral mineral #E05A46 (solo acento)
   Verde petróleo #3E5C5A (bloques técnicos) · Blanco #FFFFFF
   ============================================================ */

:root {
  --crema: #F5F1EA;
  --carbon: #2A2623;
  --topo: #7A6F5C;
  --arena: #C9B89A;
  --coral: #E05A46;
  --coral-oscuro: #C94B38;
  --petroleo: #3E5C5A;
  --petroleo-suave: #EDF1F0;
  --blanco: #FFFFFF;
  --radio: 12px;
  --sombra: 0 1px 2px rgba(42, 38, 35, 0.06), 0 8px 24px rgba(42, 38, 35, 0.07);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Poppins", "Product Sans", "Century Gothic", "Segoe UI",
    system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--carbon);
  background: var(--crema);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Cabecera ---------- */

.topbar {
  background: var(--carbon);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar img.logo {
  height: 34px;
  width: auto;
  display: block;
}

.topbar a.volver {
  color: var(--crema);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(245, 241, 234, 0.35);
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.topbar a.volver:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.hero-oscuro {
  background: var(--carbon);
  padding: 48px 24px;
  text-align: center;
}

.hero-oscuro img.logo {
  height: 56px;
  width: auto;
}

.hero-oscuro h1 {
  color: var(--crema);
  font-size: 26px;
  font-weight: 600;
  margin-top: 20px;
  letter-spacing: -0.01em;
}

.hero-oscuro p.sub {
  color: var(--arena);
  font-size: 15px;
  max-width: 560px;
  margin: 8px auto 0;
}

/* ---------- Estructura ---------- */

.contenido {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  flex: 1;
}

.contenido-ancho {
  max-width: 960px;
}

.card {
  background: var(--blanco);
  border: 1px solid rgba(201, 184, 154, 0.45);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 32px;
  margin-bottom: 24px;
}

/* ---------- Tipografía ---------- */

h1, h2, h3 {
  color: var(--carbon);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
}

h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
  margin-top: 10px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--carbon);
  margin-bottom: 6px;
}

p {
  margin-bottom: 14px;
}

.suave {
  color: var(--topo);
  font-size: 14px;
}

ul, ol {
  margin: 0 0 14px 22px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--petroleo);
  font-weight: 500;
  text-decoration-color: var(--arena);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--coral);
}

hr {
  border: none;
  border-top: 1px solid var(--arena);
  margin: 24px 0;
}

/* ---------- Avisos y bloques legales ---------- */

.aviso {
  background: var(--blanco);
  border: 1px solid rgba(201, 184, 154, 0.45);
  border-left: 4px solid var(--coral);
  border-radius: var(--radio);
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 15px;
}

.nota {
  background: var(--petroleo-suave);
  border: 1px solid rgba(62, 92, 90, 0.25);
  border-left: 4px solid var(--petroleo);
  border-radius: var(--radio);
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--petroleo);
}

/* Cláusulas para copiar/pegar */
.textoinfo {
  background: var(--petroleo-suave);
  border: 1px dashed var(--petroleo);
  border-radius: var(--radio);
  padding: 20px 24px;
  margin: 12px 0 16px;
  font-size: 15px;
  color: var(--carbon);
}

/* ---------- Formularios ---------- */

form {
  margin: 0;
}

fieldset {
  border: none;
  margin: 0 0 12px;
  width: 100%;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--carbon);
  background: var(--blanco);
  border: 1px solid var(--arena);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:hover,
textarea:hover {
  border-color: var(--topo);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--petroleo);
  box-shadow: 0 0 0 3px rgba(62, 92, 90, 0.15);
}

::placeholder {
  color: var(--topo);
  opacity: 0.8;
  text-transform: none;
  letter-spacing: 0.02em;
}

button[type="submit"],
input[type="submit"] {
  cursor: pointer;
  width: 100%;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--coral);
  color: var(--blanco);
  padding: 13px 20px;
  transition: background 0.2s ease, transform 0.1s ease;
}

button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--coral-oscuro);
}

button[type="submit"]:active,
input[type="submit"]:active {
  transform: translateY(1px);
}

/* ---------- Listado de tareas ---------- */

.tareas {
  list-style: none;
  margin: 0;
  counter-reset: tarea;
}

.tarea {
  background: var(--blanco);
  border: 1px solid rgba(201, 184, 154, 0.45);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 28px 32px 28px 84px;
  margin-bottom: 20px;
  position: relative;
  counter-increment: tarea;
}

.tarea::before {
  content: counter(tarea);
  position: absolute;
  left: 26px;
  top: 28px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--petroleo);
  color: var(--blanco);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tarea h4 {
  font-size: 17px;
  padding-top: 6px;
  margin-bottom: 12px;
}

.tarea form {
  background: var(--crema);
  border: 1px solid rgba(201, 184, 154, 0.45);
  border-radius: var(--radio);
  padding: 20px;
  margin-top: 12px;
}

.descarga {
  display: inline-block;
  background: var(--petroleo);
  color: var(--blanco);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  margin: 6px 0;
  transition: background 0.2s ease;
}

.descarga:hover {
  background: #33504e;
  color: var(--blanco);
}

/* ---------- Documentos (contratos, aviso legal) ---------- */

.documento {
  background: var(--blanco);
  border: 1px solid rgba(201, 184, 154, 0.45);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 48px 56px;
}

.documento p {
  text-align: justify;
}

.firma {
  padding-bottom: 110px;
  border-bottom: 1px solid var(--arena);
  margin-bottom: 24px;
}

.acciones-doc {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.btn-imprimir {
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--blanco);
  background: var(--coral);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  transition: background 0.2s ease;
}

.btn-imprimir:hover {
  background: var(--coral-oscuro);
}

/* ---------- Pie ---------- */

.pie {
  text-align: center;
  padding: 24px;
  color: var(--topo);
  font-size: 13px;
  border-top: 1px solid var(--arena);
}

.pie a {
  color: var(--topo);
}

/* ---------- Impresión ---------- */

@media print {
  body {
    background: var(--blanco);
    font-size: 12pt;
  }
  .topbar,
  .acciones-doc,
  .pie {
    display: none;
  }
  .contenido {
    max-width: 100%;
    padding: 0;
  }
  .documento {
    border: none;
    box-shadow: none;
    padding: 0;
  }
  a {
    color: var(--carbon);
    text-decoration: none;
  }
}

/* ---------- Móvil ---------- */

@media (max-width: 640px) {
  .card,
  .documento {
    padding: 24px 20px;
  }
  .tarea {
    padding: 24px 20px 24px 20px;
  }
  .tarea::before {
    position: static;
    margin-bottom: 12px;
  }
  .hero-oscuro h1 {
    font-size: 21px;
  }
}
