/* ══ Casa Lupe — estilo de las páginas legales ══ */
:root {
  --crema:     #F5EDE0;
  --crema-osc: #EDE3D2;
  --maroon:    #1A1A1A;
  --vino:      #222222;
  --acento:    #8B2635;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--crema);
  color: var(--maroon);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url('fotos/papel.webp') center/cover;
  opacity: .10;
}

header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 2rem;
  background: rgba(245,237,224,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(92,26,42,.14);
}
.hdr-logo {
  font-family: 'Dancing Script', cursive; font-weight: 700;
  font-size: 1.55rem; color: var(--vino); text-decoration: none;
}
.volver {
  display: inline-flex; align-items: center; gap: .45rem;
  color: rgba(61,10,20,.55); text-decoration: none; font-size: .84rem;
  transition: color .2s;
}
.volver:hover { color: var(--maroon); }

main { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 4rem 2rem 5rem; }

.t-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--acento);
  display: block; margin-bottom: .8rem;
}
h1 {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.1; color: var(--maroon);
  margin-bottom: .6rem;
}
.fecha { font-size: .82rem; color: rgba(61,10,20,.45); font-style: italic; margin-bottom: 2.5rem; }

.ornament {
  display: flex; align-items: center; gap: .8rem;
  color: var(--acento); margin: 2rem 0; font-size: .7rem;
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; height: 1px; background: currentColor; opacity: .3;
}

h2 {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: 1.7rem; color: var(--maroon);
  margin: 3rem 0 1rem; padding-top: 2rem;
  border-top: 1px solid rgba(92,26,42,.14);
}
h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1.5rem; }
h3 { font-size: 1rem; font-weight: 500; color: var(--maroon); margin: 1.8rem 0 .5rem; }

p { color: rgba(61,10,20,.72); margin-bottom: 1rem; font-size: .95rem; }
p b, li b, td b { color: var(--maroon); font-weight: 600; }
a { color: var(--acento); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { color: rgba(61,10,20,.72); margin: 0 0 1.2rem 1.3rem; font-size: .95rem; }
li { margin-bottom: .5rem; }

table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .9rem; }
th {
  text-align: left; padding: .7rem .8rem;
  border-bottom: 1.5px solid rgba(92,26,42,.18);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--acento); font-weight: 600; white-space: nowrap;
}
td {
  padding: .85rem .8rem; border-bottom: 1px solid rgba(92,26,42,.1);
  color: rgba(61,10,20,.72); vertical-align: top;
}

.aviso {
  border-left: 3px solid var(--acento);
  background: rgba(255,255,255,.45);
  padding: 1.3rem 1.6rem; margin: 1.8rem 0; border-radius: 0 4px 4px 0;
}
.aviso p:last-child { margin-bottom: 0; }
.aviso.ojo { border-left-color: #C9922B; background: rgba(201,146,43,.07); }

.rellenar {
  background: rgba(201,146,43,.18);
  border-bottom: 1px dashed rgba(201,146,43,.7);
  padding: 0 .3rem; border-radius: 2px; color: #8A6318;
}

footer {
  background: var(--crema-osc);
  border-top: 2px solid rgba(92,26,42,.14);
  padding: 2.5rem 2rem; position: relative; z-index: 1;
}
.pie {
  max-width: 800px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.4rem; flex-wrap: wrap;
  font-size: .82rem; color: rgba(61,10,20,.5);
}
.pie-enl { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.pie-enl a { color: rgba(61,10,20,.55); }
.pie-enl a:hover { color: var(--maroon); text-decoration: none; }

@media (max-width: 600px) {
  header { padding: .7rem 1rem; }
  main { padding: 2.5rem 1.3rem 3.5rem; }
  footer { padding: 2rem 1.3rem; }
  .pie { flex-direction: column; align-items: flex-start; gap: 1rem; }
  table, tbody, tr, td, th { display: block; width: 100%; }
  th { border-bottom: none; padding-bottom: .2rem; }
  td { border-bottom: 1px solid rgba(92,26,42,.1); padding-top: 0; }
}
