/*
Theme Name: JAMSARD
Theme URI: https://jamsard.com.co
Author: JAMSARD SAS
Author URI: https://jamsard.com.co
Description: Tema institucional propio para JAMSARD SAS, reconstruido desde el sitio público de jamsard.com.co y preparado para integrarse con JAMSARD Jurídico.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: jamsard
*/

:root {
    --j-dark: #0d141a;
    --j-ink: #1c2833;
    --j-slate: #5d6d7e;
    --j-soft: #f5f7f9;
    --j-blue-soft: #e3f2fd;
    --j-white: #ffffff;
    --j-accent: #b58a42;
    --j-border: rgba(13,20,26,.12);
    --j-shadow: 0 22px 70px rgba(13,20,26,.10);
    --j-radius: 18px;
    --j-max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--j-dark);
    background: var(--j-white);
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.j-container {
    width: min(calc(100% - 40px), var(--j-max));
    margin-inline: auto;
}

.j-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--j-slate);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.j-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

.j-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid var(--j-border);
    backdrop-filter: blur(14px);
}
.j-header__inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.j-logo {
    display: inline-flex;
    align-items: center;
    width: 190px;
    text-decoration: none;
}
.j-logo img { width: 100%; }
.j-nav { margin-left: auto; }
.j-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    padding: 0;
    margin: 0;
    align-items: center;
}
.j-nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    position: relative;
}
.j-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 2px;
    background: var(--j-dark);
    transition: right .22s ease;
}
.j-nav a:hover::after,
.j-nav .current-menu-item > a::after { right: 0; }
.j-menu-toggle {
    display: none;
    border: 1px solid var(--j-border);
    background: var(--j-white);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.j-btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    border-radius: 8px;
    border: 1px solid var(--j-dark);
    background: transparent;
    color: var(--j-dark);
    text-decoration: none;
    font-weight: 700;
    transition: .2s ease;
    cursor: pointer;
}
.j-btn:hover { transform: translateY(-1px); }
.j-btn--dark { background: var(--j-dark); color: var(--j-white); }
.j-btn--light { background: var(--j-white); color: var(--j-dark); border-color: var(--j-white); }

.j-hero {
    padding: 72px 0 80px;
    overflow: hidden;
}
.j-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
    gap: 64px;
    align-items: center;
}
.j-hero h1,
.j-page-hero h1 {
    margin: 18px 0 22px;
    font-size: clamp(46px, 6vw, 78px);
    line-height: 1.05;
    letter-spacing: -.035em;
    font-weight: 600;
}
.j-hero__lead,
.j-page-hero__lead {
    max-width: 660px;
    color: var(--j-slate);
    font-size: 20px;
}
.j-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.j-hero__visual {
    position: relative;
    min-height: 560px;
}
.j-hero__visual::before {
    content: "";
    position: absolute;
    inset: 36px -24px -30px 45px;
    background: var(--j-blue-soft);
    border-radius: var(--j-radius);
}
.j-hero__visual img {
    position: relative;
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: var(--j-radius);
    box-shadow: var(--j-shadow);
}
.j-hero__note {
    position: absolute;
    left: -28px;
    bottom: 28px;
    z-index: 2;
    width: 250px;
    padding: 24px;
    color: var(--j-white);
    background: var(--j-dark);
    border-radius: 14px;
    box-shadow: var(--j-shadow);
}
.j-hero__note strong { display: block; font-size: 28px; line-height: 1.15; margin-bottom: 8px; }
.j-hero__note span { color: rgba(255,255,255,.72); font-size: 14px; }

.j-strip {
    border-block: 1px solid var(--j-border);
    background: var(--j-soft);
}
.j-strip__inner {
    display: grid;
    grid-template-columns: 1.25fr .75fr .75fr;
    gap: 1px;
    background: var(--j-border);
}
.j-strip__item {
    min-height: 150px;
    padding: 30px;
    background: var(--j-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.j-strip__item strong { font-size: 34px; line-height: 1.1; }
.j-strip__item span { color: var(--j-slate); margin-top: 6px; }

.j-section { padding: 92px 0; }
.j-section--soft { background: var(--j-soft); }
.j-section--dark { background: var(--j-dark); color: var(--j-white); }
.j-section__head {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 42px;
    align-items: end;
    margin-bottom: 42px;
}
.j-section__head h2 {
    margin: 0;
    font-size: clamp(38px, 4.5vw, 62px);
    line-height: 1.08;
    letter-spacing: -.03em;
}
.j-section__head p { color: var(--j-slate); margin: 0; font-size: 18px; }
.j-section--dark .j-section__head p { color: rgba(255,255,255,.68); }

.j-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.j-card {
    background: var(--j-white);
    border: 1px solid var(--j-border);
    border-radius: 14px;
    padding: 30px;
    min-height: 250px;
    transition: transform .22s ease, box-shadow .22s ease;
}
.j-card:hover { transform: translateY(-4px); box-shadow: var(--j-shadow); }
.j-card__num { color: var(--j-slate); font-weight: 700; font-size: 13px; letter-spacing: .12em; }
.j-card h3 { font-size: 27px; line-height: 1.18; margin: 42px 0 12px; }
.j-card p { color: var(--j-slate); margin: 0; }

.j-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}
.j-feature__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--j-radius);
}
.j-feature h2 { font-size: clamp(38px, 5vw, 62px); line-height: 1.08; margin: 18px 0 20px; }
.j-feature p { color: var(--j-slate); font-size: 18px; }

.j-quote {
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
}
.j-quote blockquote { margin: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1.3; font-weight: 600; }
.j-quote cite { display: block; margin-top: 22px; font-style: normal; color: rgba(255,255,255,.65); }

.j-contact-wrap {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 48px;
    align-items: start;
}
.j-contact-panel {
    background: var(--j-dark);
    color: var(--j-white);
    padding: 38px;
    border-radius: var(--j-radius);
}
.j-contact-panel h2 { font-size: 38px; line-height: 1.15; margin: 0 0 14px; }
.j-contact-panel p { color: rgba(255,255,255,.68); }
.j-contact-list { margin-top: 28px; display: grid; gap: 18px; }
.j-contact-list a { text-decoration: none; }
.j-contact-form {
    background: var(--j-white);
    border: 1px solid var(--j-border);
    border-radius: var(--j-radius);
    padding: 34px;
    box-shadow: var(--j-shadow);
}
.j-field { margin-bottom: 18px; }
.j-field label { display: block; font-weight: 700; margin-bottom: 7px; }
.j-field input,
.j-field textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(13,20,26,.22);
    border-radius: 8px;
    background: var(--j-white);
    color: var(--j-dark);
    outline: none;
}
.j-field input:focus,
.j-field textarea:focus { border-color: var(--j-dark); box-shadow: 0 0 0 3px rgba(13,20,26,.08); }
.j-field textarea { min-height: 160px; resize: vertical; }
.j-notice { padding: 14px 16px; border-radius: 9px; margin-bottom: 18px; }
.j-notice--ok { background: #eaf7ef; color: #14532d; }
.j-notice--error { background: #fff0f0; color: #8a1c1c; }
.j-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

.j-page-hero { padding: 76px 0 56px; background: var(--j-soft); border-bottom: 1px solid var(--j-border); }
.j-page-hero__grid { display: grid; grid-template-columns: 1fr .8fr; gap: 56px; align-items: center; }
.j-page-hero__image img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--j-radius); }

.j-service-list { display: grid; gap: 18px; }
.j-service-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--j-border);
}
.j-service-row__icon {
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--j-blue-soft); display: grid; place-items: center;
    font-weight: 800;
}
.j-service-row h3 { margin: 0 0 7px; font-size: 25px; }
.j-service-row p { margin: 0; color: var(--j-slate); }

.j-footer { background: var(--j-dark); color: var(--j-white); padding: 64px 0 30px; }
.j-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 48px; }
.j-footer__logo { filter: invert(1); width: 180px; margin-bottom: 18px; }
.j-footer p, .j-footer a { color: rgba(255,255,255,.7); }
.j-footer a { text-decoration: none; }
.j-footer h4 { margin-top: 0; color: var(--j-white); }
.j-footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: 13px; }

.j-content { padding: 70px 0; }
.j-content article { max-width: 900px; }

@media (max-width: 980px) {
    .j-hero__grid,
    .j-page-hero__grid,
    .j-feature,
    .j-contact-wrap,
    .j-section__head { grid-template-columns: 1fr; }
    .j-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .j-strip__inner { grid-template-columns: 1fr 1fr; }
    .j-strip__item:first-child { grid-column: 1 / -1; }
    .j-hero__visual { min-height: 450px; }
    .j-hero__visual img { height: 450px; }
    .j-hero__note { left: 18px; }
}

@media (max-width: 760px) {
    .j-container { width: min(calc(100% - 28px), var(--j-max)); }
    .j-header__inner { min-height: 74px; }
    .j-logo { width: 160px; }
    .j-menu-toggle { display: inline-grid; place-items: center; }
    .j-nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        background: var(--j-white);
        border-bottom: 1px solid var(--j-border);
        padding: 18px 22px 24px;
    }
    .j-nav.is-open { display: block; }
    .j-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .j-nav a { display: block; padding: 12px 0; }
    .j-hero { padding: 54px 0 64px; }
    .j-hero__grid { gap: 40px; }
    .j-hero h1, .j-page-hero h1 { font-size: 44px; }
    .j-hero__visual { min-height: 360px; }
    .j-hero__visual img { height: 360px; }
    .j-hero__note { width: 210px; padding: 18px; }
    .j-section { padding: 64px 0; }
    .j-cards { grid-template-columns: 1fr; }
    .j-strip__inner { grid-template-columns: 1fr; }
    .j-strip__item:first-child { grid-column: auto; }
    .j-footer__grid { grid-template-columns: 1fr; }
    .j-page-hero__image img { height: 300px; }
}
