/* =========================================================
   Tipos de jurisprudencia — institucional MP
   Paleta: navy #0B2D5C · institucional #1456A0 · dorado #C99400 · fondo #F5F7FB
   ========================================================= */
:root {
    --jtip-navy: #0B2D5C;
    --jtip-blue: #1456A0;
    --jtip-blue-dark: #0E3F7D;
    --jtip-gold: #C99400;
    --jtip-bg: #F5F7FB;
    --jtip-text: #33475F;
    --jtip-muted: #5B6B84;
    --jtip-border: #E2E9F3;
}

* { box-sizing: border-box; }

body.jtip-body {
    margin: 0;
    font-family: 'Poppins', 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    background: var(--jtip-bg);
    color: var(--jtip-text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Fondo limpio sin líneas */
.jtip-page {
    position: relative;
    flex: 1;
    overflow: hidden;
    background:
        linear-gradient(180deg, #FFFFFF 0%, var(--jtip-bg) 420px);
}
.jtip-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(640px 300px at 88% -60px, rgba(20,86,160,.08), transparent 60%),
        radial-gradient(720px 340px at -8% 22%, rgba(201,148,0,.06), transparent 60%);
    pointer-events: none;
}
.jtip-page::after { display: none; }

.jtip-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 120px 48px 52px;
}

/* ---------- Encabezado ---------- */
.jtip-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}
.jtip-hero-text { max-width: 720px; min-width: 0; }
.jtip-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--jtip-blue);
}
.jtip-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    border-radius: 2px;
    background: var(--jtip-gold);
}
.jtip-title {
    margin: 12px 0 0;
    font-weight: 800;
    font-size: clamp(34px, 3.6vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.015em;
    color: var(--jtip-navy);
}
.jtip-title .accent { color: var(--jtip-blue); }
.jtip-desc {
    margin: 12px 0 0;
    max-width: 620px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--jtip-muted);
}
.jtip-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    height: 46px;
    padding: 0 24px;
    border-radius: 10px;
    background: var(--jtip-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(20,86,160,.25);
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.jtip-btn:hover { background: var(--jtip-blue-dark); transform: translateY(-1px); }
.jtip-btn-float {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    margin-top: 0;
    margin-bottom: 0;
}
@media (max-width: 640px) {
    .jtip-btn-float {
        top: 14px;
        left: 14px;
        height: 42px;
        padding: 0 18px;
        font-size: 13px;
    }
}

/* Tarjeta de cita */
.jtip-quote {
    position: relative;
    width: 100%;
    max-width: 400px;
    flex: none;
    margin: 0;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 30px 28px 24px;
    box-shadow: 0 20px 50px rgba(11,45,92,.13);
}
.jtip-quote-icon {
    position: absolute;
    top: -20px;
    left: 26px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--jtip-blue);
    color: #fff;
    box-shadow: 0 8px 18px rgba(20,86,160,.35);
}
.jtip-quote p {
    margin: 8px 0 0;
    font-size: clamp(19px, 1.5vw, 23px);
    font-weight: 600;
    font-style: italic;
    line-height: 1.35;
    color: var(--jtip-navy);
}
.jtip-quote figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #E6EEF9;
    font-size: 14px;
    font-weight: 600;
    color: var(--jtip-muted);
}
.jtip-quote figcaption::before {
    content: "";
    width: 3px;
    height: 30px;
    border-radius: 3px;
    background: var(--jtip-gold);
    flex: none;
}

/* ---------- Tarjetas ---------- */
.jtip-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin-top: 34px;
    align-items: stretch;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}
.jtip-card {
    --card-main: var(--jtip-blue);
    --card-bg: #E8F0FA;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    border-radius: 18px;
    border: 1px solid #E0E8F2;
    background: var(--card-bg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(11,45,92,.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.jtip-card:hover {
    transform: translateY(-5px);
    border-color: #C9DCF4;
    box-shadow: 0 22px 44px rgba(11,45,92,.17);
}
.jtip-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    padding: 22px 22px 32px;
    text-align: left;
    align-items: flex-start;
}
.jtip-card-ico {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--card-main);
    color: #fff;
    box-shadow: 0 4px 12px rgba(11,45,92,.20);
}
.jtip-card-ico svg { width: 24px; height: 24px; }
.jtip-card-title {
    margin: 14px 0 0;
    max-width: 100%;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.22;
    color: var(--jtip-navy);
    text-align: left;
    word-break: normal;
    overflow-wrap: normal;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    white-space: normal;
}
.jtip-card-rule {
    display: block;
    width: 38px;
    height: 3px;
    border-radius: 3px;
    background: var(--jtip-gold);
    margin-top: 10px;
}
.jtip-card-desc {
    margin: 10px 0 0;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.55;
    color: var(--jtip-muted);
    text-align: left;
    word-break: normal;
    overflow-wrap: normal;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    white-space: normal;
}
.jtip-card-foot {
    margin-top: auto;
    padding-top: 18px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.jtip-card-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--jtip-navy);
    white-space: nowrap;
}
.jtip-card-count svg { width: 20px; height: 20px; color: var(--card-main); }
.jtip-card-arrow {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--card-main);
    color: #fff;
    box-shadow: 0 4px 12px rgba(11,45,92,.22);
    transition: transform .18s ease;
}
.jtip-card:hover .jtip-card-arrow { transform: translateX(4px); }
.jtip-card-arrow svg { width: 18px; height: 18px; }
.jtip-card-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1;
    height: 30px;
    color: var(--card-main);
    opacity: .16;
    pointer-events: none;
}
.jtip-card-wave svg { display: block; width: 100%; height: 100%; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 1399px) {
    .jtip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .jtip-inner { padding: 112px 28px 44px; }
    .jtip-hero { flex-direction: column; align-items: stretch; gap: 30px; }
    .jtip-quote { max-width: 100%; }
    .jtip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .jtip-inner { padding: 106px 18px 40px; }
    .jtip-title { font-size: 32px; }
    .jtip-desc { font-size: 15px; }
    .jtip-grid { grid-template-columns: 1fr; }
    .jtip-card { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
    .jtip-card, .jtip-btn, .jtip-card-arrow { transition: none !important; }
}
