@import url('/fuentes.css');

:root {
  --bg: #F3EEE4;
  --card: #EAE3D6;
  --borde: #D9D0C1;
  --texto: #1C1915;
  --suave: #5E554B;
  --acento: #A63A26;
  --fuente-titulos: 'Playfair Display', Georgia, serif;
  --fuente-cuerpo: 'Literata', Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--fuente-cuerpo);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.legal-top {
  border-bottom: 1px solid var(--borde);
  padding: 16px 24px;
  font-family: var(--fuente-cuerpo);
  font-size: 0.95rem;
  background: var(--bg);
}

.legal-top a {
  color: var(--texto);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

.legal-top a:hover {
  color: var(--acento);
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}

h1 {
  font-family: var(--fuente-titulos);
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--texto);
}

h2 {
  font-family: var(--fuente-titulos);
  font-size: 1.4rem;
  margin: 2.2em 0 0.5em;
  color: var(--texto);
  border-bottom: 1px solid var(--borde);
  padding-bottom: 8px;
}

p, li {
  color: var(--texto);
  margin-bottom: 0.8em;
}

ul {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}

li {
  margin: 0.4em 0;
}

.version {
  color: var(--suave);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.borrador {
  border: 1px solid var(--acento);
  background: rgba(166, 58, 38, 0.06);
  padding: 16px 20px;
  margin: 20px 0 32px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--acento);
  font-weight: 500;
}

.completar {
  background: rgba(166, 58, 38, 0.12);
  padding: 2px 6px;
  font-size: 0.95em;
  font-weight: 600;
}

a {
  color: var(--acento);
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 20px 0;
}

th, td {
  border: 1px solid var(--borde);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  background: var(--card);
  font-weight: 600;
}

/* Formulario de arrepentimiento */
.formulario-arrepentimiento {
  background: var(--card);
  border: 1px solid var(--borde);
  padding: 32px 28px;
  margin: 32px 0;
}

.campo-form {
  margin-bottom: 20px;
}

.campo-form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--texto);
}

.campo-form input,
.campo-form select,
.campo-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--borde);
  color: var(--texto);
  font-family: var(--fuente-cuerpo);
  font-size: 1rem;
}

.campo-form textarea {
  min-height: 100px;
}

.campo-form input:focus,
.campo-form select:focus,
.campo-form textarea:focus {
  outline: 1px solid var(--acento);
  border-color: var(--acento);
}

.campo-form small {
  color: var(--suave);
  font-size: 0.85rem;
  display: block;
  margin-top: 6px;
}

.btn-arrepentimiento {
  background: var(--acento);
  color: #ffffff;
  border: 1px solid var(--acento);
  padding: 0 24px;
  min-height: 48px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--fuente-cuerpo);
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.btn-arrepentimiento:hover {
  opacity: 0.9;
}

.tarjeta-tramite {
  background: var(--card);
  border: 1px solid var(--acento);
  padding: 28px;
  margin: 28px 0;
}

.numero-tramite {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--acento);
  letter-spacing: 0.05em;
  margin: 12px 0;
  font-family: monospace;
}

.legal-footer {
  border-top: 1px solid var(--borde);
  padding: 32px 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--suave);
  margin-top: 60px;
}

.legal-footer a {
  color: var(--suave);
  text-decoration: none;
  margin: 0 8px;
}

.legal-footer a:hover {
  color: var(--acento);
  text-decoration: underline;
}

.link-arrepentimiento {
  font-weight: 600;
  color: var(--acento) !important;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 1.8rem;
  }
  th, td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}
