/* Politicas de Servicio MEXTICOM - pagina publica standalone. */

:root {
    --brand: #ad1d27;
    --brand-dark: #8a1620;
    --brand-soft: #fdeef0;
    --ink: #1f2430;
    --ink-soft: #4b5563;
    --muted: #8a95a2;
    --bg: #f5f6f8;
    --surface: #ffffff;
    --border: #e6e9ee;
    --border-soft: #eef1f5;
    --ok: #0f9d6b;
    --warn: #b45309;
    --warn-soft: #fff7ed;
    --info-soft: #eef4ff;
    --info-line: #2f6fed;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(18, 25, 38, .06), 0 8px 24px rgba(18, 25, 38, .05);
    --maxw: 1120px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .ps-brand-txt {
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Arial, sans-serif;
    color: var(--ink);
}

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

/* ---- Navbar ---- */
.ps-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(18, 25, 38, .02);
}

.ps-nav-in {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ps-nav .brand img { height: 30px; display: block; }

.ps-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 15px;
    background: #fff;
    transition: border-color .12s, color .12s;
}

.ps-back:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }

/* ---- Hero ---- */
.ps-hero {
    background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border-soft);
}

.ps-hero-in {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 44px 20px 34px;
}

.ps-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.ps-hero h1 {
    margin: 0 0 8px;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.5px;
    text-wrap: balance;
}

.ps-hero .ps-sub {
    margin: 0;
    font-size: 17px;
    color: var(--ink-soft);
}

.ps-meta {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 13.5px;
    color: var(--muted);
}

.ps-meta b { color: var(--ink-soft); font-weight: 700; }

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

.ps-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 34px;
    align-items: start;
}

/* ---- TOC ---- */
.ps-toc {
    position: sticky;
    top: 78px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 14px;
    box-shadow: var(--shadow);
}

.ps-toc-tt {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 2px 8px 10px;
}

.ps-toc a {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.35;
}

.ps-toc a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }

.ps-toc a .n { color: var(--muted); font-weight: 700; margin-right: 6px; }

/* ---- Intro ---- */
.ps-intro {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 26px;
    color: var(--ink-soft);
    box-shadow: var(--shadow);
}

/* ---- Sections ---- */
.ps-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    scroll-margin-top: 84px;
}

.ps-section > h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    gap: 10px;
    scroll-margin-top: 84px;
}

.ps-section > h2 .ps-num {
    color: var(--brand);
    font-size: 15px;
    font-weight: 800;
    background: var(--brand-soft);
    border-radius: 8px;
    padding: 2px 9px;
    line-height: 1.5;
}

.ps-section h3 {
    margin: 22px 0 6px;
    font-size: 16.5px;
    font-weight: 800;
    color: var(--ink);
    scroll-margin-top: 84px;
}

.ps-section p { margin: 8px 0; color: var(--ink-soft); }
.ps-section strong { color: var(--ink); }

.ps-list { margin: 8px 0 8px; padding-left: 4px; list-style: none; }
.ps-list li {
    position: relative;
    padding: 5px 0 5px 26px;
    color: var(--ink-soft);
}
.ps-list li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 13px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
}

.ps-clause {
    margin: 14px 0;
    padding-left: 16px;
    border-left: 2px solid var(--border);
}
.ps-clause .ps-cn {
    font-weight: 800;
    color: var(--ink);
    margin-right: 6px;
}

/* ---- Callouts ---- */
.ps-callout {
    border-radius: 10px;
    padding: 14px 16px;
    margin: 16px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14.5px;
    line-height: 1.55;
}
.ps-callout i { margin-top: 2px; font-size: 15px; }
.ps-callout.warn { background: var(--warn-soft); border: 1px solid #f6d9b8; color: #7c4a12; }
.ps-callout.warn i { color: var(--warn); }
.ps-callout.info { background: var(--info-soft); border: 1px solid #cfe0ff; color: #274a86; }
.ps-callout.info i { color: var(--info-line); }
.ps-callout.brand { background: var(--brand-soft); border: 1px solid #f3ccd0; color: #7d2028; }
.ps-callout.brand i { color: var(--brand); }
.ps-callout b { color: inherit; }

/* ---- Aceptacion / footer ---- */
.ps-accept {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-top: 8px;
    color: var(--ink-soft);
}
.ps-accept .sig { margin-top: 14px; font-weight: 800; color: var(--ink); }
.ps-accept .sig span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }

.ps-footer {
    border-top: 1px solid var(--border);
    background: #fff;
}
.ps-footer-in {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 26px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 13.5px;
}
.ps-footer img { height: 24px; opacity: .9; }
.ps-footer .cta { color: var(--ink-soft); }
.ps-footer .cta a { font-weight: 700; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .ps-grid { grid-template-columns: 1fr; gap: 18px; }
    .ps-toc { position: static; top: auto; }
    .ps-hero h1 { font-size: 29px; }
    .ps-section { padding: 20px 18px; }
}
