/* =========================================================================
   Luvania · Innovación Estética
   Portal de Términos y Condiciones · Hoja de estilos compartida
   ========================================================================= */

/* ---------- Tipografía Avenir LT Pro (oficial de marca) ---------- */
@font-face { font-family: "Avenir LT Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/avenir-400.woff2") format("woff2"); } /* Book */
@font-face { font-family: "Avenir LT Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/avenir-500.woff2") format("woff2"); } /* Medium */
@font-face { font-family: "Avenir LT Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/avenir-700.woff2") format("woff2"); } /* Heavy */
@font-face { font-family: "Avenir LT Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/avenir-800.woff2") format("woff2"); } /* Black */

:root {
  /* Paleta oficial · Brand Book Luvania */
  --coral:        #EE876B;   /* coral fuerte · acento principal */
  --coral-2:      #F0A486;   /* coral medio · acento secundario */
  --coral-dark:   #BC5836;   /* coral oscuro · texto/enlaces (contraste) */
  --coral-soft:   #F1CEB3;   /* durazno claro */
  --cream:        #EFECDB;   /* crema · fondos suaves */
  --peach:        #F1CEB3;   /* durazno */
  --ink:          #111111;   /* negro de marca */
  --muted:        #6E7071;   /* gris de texto (derivado de #8B8C8C) */
  --slate:        #8B9597;   /* gris azulado de marca */
  --line:         #E7E1D0;
  --bg:           #FFFFFF;
  --gray-soft:    #F4F1E6;
  --ok:           #2E7D5B;
  --warn:         #B5551F;

  --maxw:         1080px;
  --radius:       14px;
  --shadow:       0 10px 30px rgba(17,17,17,.06);
  --shadow-sm:    0 4px 14px rgba(17,17,17,.05);

  /* Tipografía de marca: Avenir (títulos y textos). Serif de respaldo para
     display, coherente con los títulos del propio Brand Book. */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Avenir LT Pro", "Avenir Next", "Avenir", "Nunito Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; line-height: 1.18; letter-spacing: -.01em; color: var(--ink); }
h3, h4 { font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.25rem; margin: 1.8em 0 .4em; }
p  { margin: 0 0 1.1em; }
a  { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--coral-dark);
  background: var(--coral-soft);
  padding: .35em .9em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 42px; width: auto; display: block; }
@media (max-width: 760px) { .brand-logo { height: 36px; } }
.brand .name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.brand .name::after {
  content: ""; display: inline-block;
  width: .58em; height: .58em; margin-left: 3px; vertical-align: .55em;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%221%22%20x2%3D%221%22%20y2%3D%220%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23EE876B%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F0A486%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20fill%3D%22url%28%23g%29%22%3E%3Cpath%20d%3D%22M50%2050%20C45%2032%2045%2018%2050%206%20C55%2018%2055%2032%2050%2050%20Z%22%20transform%3D%22rotate%280.00%2050%2050%29%22%2F%3E%3Cpath%20d%3D%22M50%2050%20C45%2032%2045%2018%2050%206%20C55%2018%2055%2032%2050%2050%20Z%22%20transform%3D%22rotate%2845.00%2050%2050%29%22%2F%3E%3Cpath%20d%3D%22M50%2050%20C45%2032%2045%2018%2050%206%20C55%2018%2055%2032%2050%2050%20Z%22%20transform%3D%22rotate%2890.00%2050%2050%29%22%2F%3E%3Cpath%20d%3D%22M50%2050%20C45%2032%2045%2018%2050%206%20C55%2018%2055%2032%2050%2050%20Z%22%20transform%3D%22rotate%28135.00%2050%2050%29%22%2F%3E%3Cpath%20d%3D%22M50%2050%20C45%2032%2045%2018%2050%206%20C55%2018%2055%2032%2050%2050%20Z%22%20transform%3D%22rotate%28180.00%2050%2050%29%22%2F%3E%3Cpath%20d%3D%22M50%2050%20C45%2032%2045%2018%2050%206%20C55%2018%2055%2032%2050%2050%20Z%22%20transform%3D%22rotate%28225.00%2050%2050%29%22%2F%3E%3Cpath%20d%3D%22M50%2050%20C45%2032%2045%2018%2050%206%20C55%2018%2055%2032%2050%2050%20Z%22%20transform%3D%22rotate%28270.00%2050%2050%29%22%2F%3E%3Cpath%20d%3D%22M50%2050%20C45%2032%2045%2018%2050%206%20C55%2018%2055%2032%2050%2050%20Z%22%20transform%3D%22rotate%28315.00%2050%2050%29%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%223.4%22%20fill%3D%22%23EE876B%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}
.brand .tag  { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav-toggle { display: none; }
.nav {
  display: flex; align-items: center; gap: 1.4rem;
  font-size: .93rem; font-weight: 500;
}
.nav a { color: var(--ink); }
.nav a.active { color: var(--coral-dark); font-weight: 700; }

/* ---------- Hero interior ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  padding: 3.4rem 0 2.4rem;
  border-bottom: 1px solid var(--line);
}
.page-hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.meta-line { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.meta-line span { display: inline-block; margin-right: 1.4rem; }

/* ---------- Contenido legal ---------- */
main { padding: 2.6rem 0 3rem; }
.legal { max-width: 78ch; }
.legal ol, .legal ul { margin: 0 0 1.2em; padding-left: 1.4em; }
.legal li { margin-bottom: .55em; }
.legal ol.num { counter-reset: item; list-style: none; padding-left: 0; }
.legal ol.num > li {
  counter-increment: item; position: relative; padding-left: 2.4em; margin-bottom: 1em;
}
.legal ol.num > li::before {
  content: counter(item); position: absolute; left: 0; top: 0;
  width: 1.7em; height: 1.7em; display: grid; place-items: center;
  background: var(--coral); color: #fff; border-radius: 50%;
  font-family: var(--sans); font-size: .8rem; font-weight: 700;
}

/* ---------- Callouts ---------- */
.callout {
  border-left: 4px solid var(--coral);
  background: var(--gray-soft);
  padding: 1.1rem 1.3rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.6rem 0;
}
.callout .label {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--coral-dark); display: block; margin-bottom: .4rem;
}
.callout.warn { border-left-color: var(--warn); }
.callout.warn .label { color: var(--warn); }

.placeholder {
  background: #FFF3CD; color: #7a5a00; padding: 0 .35em;
  border-radius: 4px; font-weight: 600; font-size: .95em;
  border: 1px dashed #E0C05A;
}

/* ---------- Tarjetas del índice ---------- */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1.6rem 0; }
.card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease; text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.card h3 { margin: .2rem 0 .4rem; color: var(--coral-dark); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card .arrow { color: var(--coral); font-weight: 700; margin-top: .8rem; display: inline-block; }

/* ---------- Tablas ---------- */
.table-scroll { overflow-x: auto; margin: 1.4rem 0; border-radius: var(--radius); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--coral); color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:nth-child(even) { background: var(--gray-soft); }

/* ---------- Badges de estado de campaña ---------- */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2em .7em; border-radius: 999px; letter-spacing: .04em; }
.badge.activa { background: #E3F3EA; color: var(--ok); }
.badge.finalizada { background: #EFEDE8; color: var(--muted); }

/* ---------- Disclaimer destacado ---------- */
.disclaimer-box {
  background: var(--cream); border: 1px solid var(--peach);
  border-radius: var(--radius); padding: 1.6rem 1.7rem; margin: 1.8rem 0;
}
.disclaimer-box p:last-child { margin-bottom: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; background: var(--coral); color: #fff;
  padding: .8rem 1.6rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; font-size: .95rem; transition: background .15s ease;
}
.btn:hover { background: var(--coral-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--coral-dark); border: 1.5px solid var(--coral); }
.btn.ghost:hover { background: var(--coral); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #cfcac2; padding: 2.6rem 0 1.6rem; margin-top: 2rem; font-size: .9rem;
}
.site-footer a { color: #fff; }
.footer-cols { display: grid; gap: 1.6rem; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer .name { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-legal {
  border-top: 1px solid #3a3a3a; margin-top: 2rem; padding-top: 1.2rem;
  font-size: .8rem; color: #9a948c; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
}

/* ---------- Utilidades ---------- */
.text-muted { color: var(--muted); }
.small { font-size: .85rem; }
hr { border: none; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.toc { background: var(--gray-soft); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.6rem 0; }
.toc h4 { margin: 0 0 .6rem; font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 2rem; }
.toc a { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle {
    display: block; background: none; border: 1.5px solid var(--line);
    border-radius: 8px; padding: .4rem .6rem; font-size: 1.1rem; cursor: pointer; color: var(--ink);
  }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 22px 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .6rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .footer-cols { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}

/* ---------- Impresión (conservar evidencia / guardar como PDF) ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .page-hero { background: none; border: none; padding: 0 0 1rem; }
  main { padding: 0; }
  .callout, .disclaimer-box { break-inside: avoid; }
}
