/* Hoja compartida por las páginas legales de panadeando.com.
   Colores tomados de styles.css (la home): tinta #3E2723, tenue #7a6b5d,
   superficie #EAE3D9, fondo crema con el mismo degradado de la home. */

:root {
  --tinta: #3E2723;
  --tenue: #7a6b5d;
  --superficie: #EAE3D9;
  --caja: #ffffff;
  --linea: rgba(62, 39, 35, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  color: #1f1b18;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: radial-gradient(circle at top, rgba(239, 219, 187, 0.35), transparent 35%),
    linear-gradient(180deg, #f9f5ef 0%, #f2ebe2 100%);
}

a { color: var(--tinta); }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ---------- Encabezado ---------- */

.encabezado {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--linea);
}

.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marca:hover { text-decoration: none; }
.marca img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; }
.marca strong {
  display: block;
  font-size: 15px; font-weight: 800; letter-spacing: 0.02em;
  color: var(--tinta); line-height: 1.2;
}
.marca span {
  display: block;
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--tenue); line-height: 1.2;
  text-transform: uppercase;
}

.boton {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 16px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 13px; font-weight: 700;
  white-space: nowrap;
  background: var(--superficie);
  color: var(--tinta);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.boton:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(62, 39, 35, 0.12);
}

/* ---------- Portada del documento ---------- */

.portada { background: var(--superficie); color: var(--tinta); padding: 32px 20px 30px; }
.portada > div { max-width: 780px; margin: 0 auto; }
.portada .volver {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 14px;
  font-size: 13px; font-weight: 600;
  color: var(--tinta); text-decoration: none;
  opacity: 0.75;
}
.portada .volver:hover { opacity: 1; text-decoration: underline; }
.portada h1 {
  margin: 0;
  font-size: clamp(26px, 4.4vw, 38px); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.01em;
}
.portada .marca-doc {
  margin: 10px 0 0;
  font-size: 15px; font-weight: 700; color: var(--tinta);
}
.portada .actualizado {
  margin: 4px 0 0;
  font-size: 13px; color: var(--tenue);
}

/* ---------- Cuerpo del documento ---------- */

.documento { max-width: 780px; margin: 0 auto; padding: 40px 20px 56px; }
.documento > *:first-child { margin-top: 0; }

.documento h2 {
  margin: 36px 0 12px;
  font-size: clamp(19px, 2.4vw, 22px); font-weight: 800;
  line-height: 1.25; letter-spacing: -0.01em;
  color: var(--tinta);
}
.documento h3 {
  margin: 24px 0 8px;
  font-size: 17px; font-weight: 800; color: var(--tinta);
}
.documento p { margin: 0 0 15px; }
.documento ul { margin: 0 0 18px; padding-left: 20px; }
.documento li { margin: 0 0 8px; }
.documento strong { color: var(--tinta); font-weight: 700; }

.regla {
  margin: 0 0 24px;
  padding: 18px 22px;
  background: var(--caja);
  border: 1px solid var(--linea);
  border-left: 4px solid var(--tinta);
  border-radius: 0 14px 14px 0;
  box-shadow: 0 12px 30px rgba(31, 27, 24, 0.06);
}
.regla p { margin: 0; font-size: 16px; }

.contacto {
  margin: 20px 0 24px;
  padding: 18px 22px;
  background: var(--caja);
  border: 1px solid var(--linea);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(31, 27, 24, 0.06);
}
.contacto p.titulo {
  margin: 0 0 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--tenue); text-transform: uppercase;
}
.contacto ul { margin: 0; padding-left: 20px; }
.contacto li:last-child { margin-bottom: 0; }

.aviso {
  margin: 0 0 24px;
  padding: 16px 20px;
  background: var(--caja);
  border: 1px solid var(--linea);
  border-radius: 14px;
  font-size: 15px;
}
.aviso p { margin: 0; }

/* ---------- Tabla (catálogo de servicios) ---------- */

.tabla-envoltura { overflow-x: auto; margin: 0 0 24px; border-radius: 14px; box-shadow: 0 12px 30px rgba(31, 27, 24, 0.06); }
.tabla {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--caja);
}
.tabla th, .tabla td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--linea);
  vertical-align: top;
}
.tabla thead th {
  background: var(--tinta);
  color: #ffffff;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: none;
}
.tabla tbody tr:last-child td { border-bottom: none; }
.tabla tbody tr:nth-child(even) { background: #faf6f1; }
.tabla td.precio { font-weight: 700; color: var(--tinta); white-space: nowrap; font-variant-numeric: tabular-nums; }

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

.footer {
  max-width: 780px;
  margin: 8px auto 0;
  padding: 32px 20px 56px;
  text-align: center;
  color: var(--tenue);
  font-size: 0.95rem;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.footer__legal a {
  color: var(--tinta);
  text-decoration: none;
}
.footer__legal a:hover,
.footer__legal a[aria-current="page"] {
  text-decoration: underline;
}
.footer__legal span { color: var(--tenue); }
.footer__fiscal {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--tenue);
}
.footer__fiscal a {
  color: var(--tenue);
  text-decoration: underline;
}

@media (max-width: 520px) {
  .encabezado { padding: 10px 14px; }
  .documento { padding: 32px 16px 48px; }
}
