/* Pactly — estilos de las páginas de contenido (plantillas, guía). */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #f5f0e8; --bg-d: #ede8dc; --sand: #d9cdb8; --accent: #2563eb; --accent-d: #1d4ed8;
  --charcoal: #1a2332; --texto: #334155; --muted: #52606f; --white: #fdfcfb; --ok: #059669;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); font-family: 'Inter', system-ui, sans-serif; color: var(--charcoal); line-height: 1.6; }
a { color: var(--accent); }
img, svg { max-width: 100%; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(245,240,232,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 0.5px solid rgba(217,205,184,0.7); }
.nav-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--charcoal); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 10px; transition: background .15s; }
.btn:hover { background: var(--accent-d); }
.btn-sm { font-size: 13px; padding: 9px 16px; border-radius: 8px; }
.btn-sec { background: transparent; color: var(--accent) !important; border: 1px solid var(--accent); }
.btn-sec:hover { background: rgba(37,99,235,0.06); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* layout */
main { max-width: 860px; margin: 0 auto; padding: 28px 20px 72px; }
.migas { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.migas a { color: var(--muted); }
.etiqueta { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
h1 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(34px, 5.4vw, 52px); line-height: 1.08; letter-spacing: -.01em; margin-bottom: 14px; }
h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; margin: 48px 0 12px; }
h3 { font-size: 16px; font-weight: 600; margin: 22px 0 6px; }
p { color: var(--texto); margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 22px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 8px; }
.nota { font-size: 13px; color: var(--muted); }
ul.lista { margin: 8px 0 14px 20px; color: var(--texto); }
ul.lista li { margin-bottom: 6px; }
strong { color: var(--charcoal); }

.tarjeta { background: var(--white); border: 0.5px solid var(--sand); border-radius: 14px; padding: 22px 24px; margin: 14px 0; }
.ph, mark.ph { background: #fef3c7; color: #92400e; padding: 0 3px; border-radius: 3px; }
.consejo { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 12px; padding: 14px 18px; font-size: 14px; margin: 18px 0; }
.consejo strong { color: #78350f; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 14px 0; }
.item { background: var(--white); border: 0.5px solid var(--sand); border-radius: 12px; padding: 16px 18px; }
.item h3 { margin: 0 0 4px; font-size: 15px; }
.item p { font-size: 13.5px; margin: 0; color: var(--muted); }
a.item { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; display: block; }
a.item:hover { border-color: var(--accent); transform: translateY(-1px); }
a.item h3 { color: var(--charcoal); }
.grupo-t { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 30px 0 4px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 18px; background: var(--white); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 0.5px solid var(--sand); vertical-align: top; }
th { background: var(--bg-d); font-weight: 600; font-size: 13px; }
.tabla-scroll { overflow-x: auto; }

/* contrato de ejemplo */
details.ejemplo { background: var(--white); border: 0.5px solid var(--sand); border-radius: 14px; margin: 16px 0; }
details.ejemplo > summary { cursor: pointer; padding: 16px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.ejemplo > summary::-webkit-details-marker { display: none; }
details.ejemplo > summary::after { content: '▾'; color: var(--muted); transition: transform .15s; }
details.ejemplo[open] > summary::after { transform: rotate(180deg); }
.doc { border-top: 0.5px solid var(--sand); padding: 6px 26px 22px; font-family: Georgia, 'Times New Roman', serif; }
.doc h3 { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 20px 0 6px; }
.doc p, .doc li { font-size: 14.5px; line-height: 1.75; color: var(--texto); text-align: justify; }
.doc ol { margin: 6px 0 10px 22px; }
.doc .doc-t { font-family: 'Inter', sans-serif; text-align: center; font-weight: 600; letter-spacing: .06em; font-size: 13px; margin-top: 18px; }

/* faq */
.faq details { border-bottom: 0.5px solid var(--sand); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 0 16px; }
.faq details > div p { font-size: 15px; }

.cta-final { background: var(--charcoal); color: var(--white); border-radius: 18px; padding: 34px 28px; margin: 56px 0 0; text-align: center; }
.cta-final h2 { color: var(--white); margin-top: 0; }
.cta-final p { color: rgba(226,232,240,0.8); }

footer { border-top: 0.5px solid var(--sand); background: var(--bg-d); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 36px 20px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot-in a { color: var(--muted); text-decoration: none; display: block; margin-bottom: 6px; }
.foot-in a:hover { color: var(--charcoal); }
.foot-t { font-weight: 600; color: var(--charcoal); margin-bottom: 8px; }
.foot-legal { max-width: 1120px; margin: 0 auto; padding: 0 20px 28px; font-size: 12px; color: var(--muted); }
