/* Shared styles for the simple text pages (contacto, aviso legal, privacidad, cookies).
   Same light look as the sector pages: Outfit + DM Serif, same header and footer. */
:root {
  --bg: #f0efe9;
  --bg2: #f7f6f2;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.08);
  --text: #1d1d1f;
  --body: #3a3a3c;
  --muted: #6e6e73;
  --soft: #8a8a8f;
  --accent: #2c5282;
  --accent-h: #2a4a7f;
  --accent-light: rgba(44,82,130,0.07);
  --teal: #2BB3A3;
  --radius: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --max: 1060px;
  --font: 'Outfit', system-ui, sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* HEADER */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: rgba(250,250,250,0.85); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 33px; height: 33px; border-radius: 9px; background: linear-gradient(135deg, #1d1d1f 0%, #3a3a3c 100%); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.brand-mark span { font-weight: 900; font-size: 11px; color: white; letter-spacing: -0.3px; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.3px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 20px; transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: var(--text); background: rgba(0,0,0,0.05); }
.nav-cta { font-size: 13px; font-weight: 600; color: white; background: var(--accent); padding: 8px 18px; border-radius: 20px; text-decoration: none; white-space: nowrap; transition: background 0.2s; }
.nav-cta:hover { background: var(--accent-h); }

/* BREADCRUMB */
.breadcrumb { padding: 80px 0 0; }
.breadcrumb-inner { padding: 12px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.breadcrumb-inner a { color: var(--muted); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .4; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* TEXT PAGE */
.page { padding: 28px 0 88px; }
.page-inner { max-width: 760px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 12px; }
.page h1 em { font-style: normal; font-family: var(--serif); font-weight: 400; color: var(--accent); }
.page .lead { font-size: 18px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.page .updated { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.page h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; margin: 38px 0 10px; }
.page h3 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }
.page p, .page li { font-size: 16px; line-height: 1.7; color: var(--body); }
.page p + p { margin-top: 12px; }
.page ul, .page ol { padding-left: 22px; margin: 10px 0; }
.page li + li { margin-top: 6px; }
.page a { color: var(--accent); text-underline-offset: 2px; }
.page strong { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.page table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.page th, .page td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.55; color: var(--body); }
.page th { font-weight: 700; color: var(--text); background: var(--bg2); }
.page tr:last-child td { border-bottom: 0; }
.data-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 24px; box-shadow: var(--shadow-sm); margin: 16px 0; }
.data-card dl { display: grid; grid-template-columns: 170px 1fr; }
.data-card dt, .data-card dd { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 1.55; }
.data-card dt { color: var(--muted); font-weight: 500; padding-right: 16px; }
.data-card dd { color: var(--text); }
.data-card dt:last-of-type, .data-card dd:last-of-type { border-bottom: 0; }
.link-button { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.contact-card .label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-card .value { font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.4; }
.contact-card .value a { color: var(--text); text-decoration: none; }
.contact-card .value a:hover { color: var(--accent); }
.contact-card .hint { font-size: 14px; color: var(--muted); margin-top: 4px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-primary, .btn-secondary, .btn-wa { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-weight: 600; font-size: 15px; padding: 14px 24px; border-radius: 14px; text-decoration: none; transition: transform .15s, background .2s; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-2px); }
.btn-wa { background: #1f9d55; color: white; }
.btn-wa:hover { background: #198048; transform: translateY(-2px); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg2); transform: translateY(-2px); }
.page .actions a { color: inherit; }
.page .actions .btn-primary, .page .actions .btn-wa { color: white; }

/* FOOTER */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-nap { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 14px; }
.footer-nap a { color: var(--muted); text-decoration: none; }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.footer-col a { display: block; font-size: 13px; color: var(--muted); text-decoration: none; padding: 4px 0; }
.footer-col a:hover, .footer-nap a:hover { color: var(--accent); }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--soft); }

@media (max-width: 768px) {
  .site-nav .nav-link { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .data-card dl { grid-template-columns: 1fr; }
  .data-card dt { padding-bottom: 0; border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

/* CASE STUDIES: screenshots with caption */
.page figure { margin: 18px 0 8px; }
.page figure img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: var(--surface); }
.page figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
