/* ==========================================================================
   REDISEÑO 2026 — luisjarrin.com
   Dirección: editorial/técnica. Serif Newsreader + sans IBM Plex Sans.
   Acentos tomados de la identidad de DET Consultores: menta, navy, ámbar.
   Sin degradados, sin bordes redondeados en tarjetas/botones.
   Se carga DESPUÉS de style.css y responsive.css para poder sobreescribirlos.
   ========================================================================== */

:root {
    --lj-ink: #0a0e1a;
    --lj-paper: #fbfcfb;
    --lj-accent: #0e9e74;
    --lj-accent-soft: #e6f5ef;
    --lj-navy: #0a0e1a;
    --lj-amber: #c9930f;
    --lj-line: rgba(10, 14, 26, 0.12);
    --lj-body: rgba(10, 14, 26, 0.7);

    /* Overrides for the base template's own variables so shared components
       (buttons, links, section titles) inherit the new palette automatically. */
    --primary-color: var(--lj-accent);
    --heading-color: var(--lj-ink);
    --main-color: rgba(10, 14, 26, 0.75);
    --body-background: var(--lj-paper);
    --border-color: var(--lj-line);
    --button-border: var(--lj-ink);
}

/* ---- Typography ------------------------------------------------------- */

body, p, li, span, a, input, textarea, button, label {
    font-family: 'IBM Plex Sans', system-ui, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.section-title h2,
.about-image-part h2 {
    font-family: 'Newsreader', Georgia, serif !important;
    letter-spacing: -0.01em;
}

body {
    background: var(--lj-paper) !important;
    color: var(--main-color) !important;
}

/* Faint film grain across the whole page — texture, not color. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--lj-ink); }
a:hover { color: var(--lj-accent); }

/* ---- Strip the "template" look: rounded corners, borders, shadows ----- */

.theme-btn,
.form-control,
.service-item,
.cert-logo,
.single-contact,
.skill-item,
.skill-item .percent,
.about-image-part2,
.about-image-part2 img,
.single-resume,
#backToTop {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.theme-btn {
    background: var(--lj-ink);
    border: 1px solid var(--lj-ink);
    letter-spacing: 0.02em;
}
.theme-btn:hover {
    background: var(--lj-accent);
    border-color: var(--lj-accent);
}
.theme-btn-outline {
    background: transparent !important;
    color: var(--lj-ink) !important;
    border: 1px solid rgba(10, 14, 26, 0.35) !important;
}
.theme-btn-outline:hover {
    background: var(--lj-ink) !important;
    color: #fff !important;
    border-color: var(--lj-ink) !important;
}

/* ---- Header / nav ------------------------------------------------------ */

.main-header .header-upper {
    background: var(--lj-paper);
    border-bottom: 1px solid var(--lj-line);
}

.logo-wordmark {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.1em;
    color: var(--lj-ink);
    text-decoration: none;
}

.main-menu .navbar-collapse li a {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lj-ink);
}
.main-menu .navbar-collapse li a:hover {
    color: var(--lj-accent);
}

.language-switch .lang-link { color: rgba(10, 14, 26, 0.5); font-size: 12px; letter-spacing: 0.06em; }
.language-switch .lang-link.active { color: var(--lj-ink); font-weight: 700; }

/* ---- Hero (#about) — V4: asymmetric, overlapping, choreographed -------- */

.about-area {
    padding-top: 0;
    padding-bottom: 0;
    background: var(--lj-paper);
}

.hero-body {
    position: relative;
    padding: 56px 8px 0 8px;
    border-top: 1px solid var(--lj-line);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--lj-ink);
    padding: 7px 13px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--lj-accent); flex-shrink: 0; }
.hero-eyebrow span {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
}

.hero-headline-v2 {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 600;
    font-size: 44px;
    line-height: 1.08;
    margin: 22px 0 0 0;
    letter-spacing: -0.01em;
    max-width: 780px;
}
.hero-headline-v2 .line-mask { display: block; overflow: hidden; }
.hero-headline-v2 .line-inner { display: block; }
.hero-headline-v2 .accent { color: var(--lj-accent); }
@media (max-width: 480px) {
    .hero-headline-v2 { font-size: 34px; }
}

.hero-subhead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--lj-body);
    max-width: 540px;
    margin: 30px 0 0 0;
}

.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-cta .theme-btn, .hero-cta .theme-btn-outline {
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
.hero-cta .theme-btn:hover, .hero-cta .theme-btn-outline:hover {
    transform: translateY(-3px) scale(1.03);
}

/* Photo: tilted card overlapping the headline, with a stacked shadow card
   and a rotated sticker badge — desktop only; stacks flat on mobile. */
.hero-photo-block { position: relative; width: 240px; height: 300px; margin: 32px auto 0 auto; }
.hero-shadow-card {
    position: absolute; inset: 0;
    background: var(--lj-accent);
    transform: rotate(-3deg);
}
.hero-photo-card {
    position: relative; width: 100%; height: 100%;
    transform: rotate(-3deg);
    box-shadow: 0 18px 30px rgba(10,14,26,0.18);
}
.hero-photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.05) saturate(1.05); }
.hero-sticker {
    position: absolute; bottom: -18px; left: 50%;
    transform: translateX(-50%) rotate(6deg);
    background: var(--lj-paper);
    border: 1.5px dashed rgba(10,14,26,0.5);
    padding: 8px 13px;
    box-shadow: 0 6px 14px rgba(10,14,26,0.1);
    white-space: nowrap;
}
.hero-sticker span { font-size: 11px; font-weight: 600; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; padding-bottom: 40px; }
.chip {
    border: 1px solid var(--lj-line);
    background: #fff;
    padding: 15px 20px;
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.chip:hover { transform: translateY(-4px) rotate(0deg) !important; }
.chip .stat-num {
    font-family: 'Newsreader', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--lj-accent);
    line-height: 1;
}
.chip .stat-label {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(10, 14, 26, 0.55);
    margin-top: 5px;
    display: block;
}

.hero-scroll-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 24px;
    color: rgba(10, 14, 26, 0.4);
}
.hero-scroll-hint span {
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (min-width: 992px) {
    .hero-body { padding-left: 64px; padding-right: 64px; }
    .hero-photo-block {
        position: absolute; top: 96px; right: 64px; margin: 0;
    }
}

.hero-ticker {
    border-top: 1px solid var(--lj-line);
    padding: 18px 8px;
}
.hero-ticker .scroller__inner h4 {
    font-family: 'IBM Plex Sans', sans-serif !important;
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(10, 14, 26, 0.5);
    font-weight: 500;
}

/* ---- Services / pillars (#service) -------------------------------------- */

.services-area.pillars-area {
    background: var(--lj-paper);
    padding-top: 70px;
    padding-bottom: 0;
}
.pillars-header { padding-bottom: 24px; border-bottom: 1px solid var(--lj-line); }
.pillars-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}
.pillars-eyebrow .dot { width: 7px; height: 7px; background: var(--lj-accent); }
.pillars-eyebrow span {
    font-size: 12px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--lj-accent);
    font-weight: 600;
}
.pillars-header h2 { font-size: 36px; font-weight: 600; max-width: 760px; margin: 0; }

/* Cascading cards instead of a rigid grid: alternating rotation + vertical
   offset, each entering from its own direction on scroll (see redesign-2026.js). */
.pillars-grid {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 8px 8px 60px 8px;
}
@media (max-width: 991px) {
    .pillars-grid { flex-direction: column; gap: 32px; }
}

.pillar {
    flex: 1;
    background: #fff;
    border: 1px solid var(--lj-line);
    border-top: 4px solid var(--lj-accent);
    padding: 34px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    box-shadow: 0 10px 20px rgba(10, 14, 26, 0.06);
    transform: rotate(-1.2deg);
    transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), box-shadow 0.4s ease;
}
.pillar:hover { transform: translateY(-8px) rotate(0deg); box-shadow: 0 20px 30px rgba(10, 14, 26, 0.14); }
.pillar.pillar-navy { border-top-color: var(--lj-navy); transform: rotate(1deg); margin-top: 40px; }
.pillar.pillar-amber { border-top-color: var(--lj-amber); transform: rotate(-1deg); }
@media (max-width: 991px) {
    .pillar, .pillar.pillar-navy, .pillar.pillar-amber { transform: none; margin-top: 0; }
    .pillar:hover { transform: translateY(-6px); }
}

.pillar-number {
    font-family: 'Newsreader', serif;
    font-size: 46px;
    font-weight: 600;
    color: var(--lj-accent);
    opacity: 0.3;
    line-height: 1;
}
.pillar.pillar-navy .pillar-number { color: var(--lj-navy); opacity: 0.2; }
.pillar.pillar-amber .pillar-number { color: var(--lj-amber); opacity: 0.35; }

.pillar h4 { font-size: 20px; font-weight: 600; margin: 0; line-height: 1.25; }
.pillar p { font-size: 14.5px; line-height: 1.6; color: var(--lj-body); margin: 0; }

.pillar-list { list-style: none; margin: 4px 0 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pillar-list li { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.5; }
.pillar-list li::before { content: "—"; color: var(--lj-accent); font-weight: 700; }
.pillar.pillar-navy .pillar-list li::before { color: var(--lj-navy); }
.pillar.pillar-amber .pillar-list li::before { color: var(--lj-amber); }

.pillar-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--lj-amber);
    font-weight: 700;
    padding: 5px 10px;
    transform: rotate(4deg);
}

.pillars-strip {
    border-top: 1px solid var(--lj-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 26px 8px;
}
.pillars-strip .avail { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--lj-body); }
.pillars-strip .avail .dot { width: 7px; height: 7px; background: var(--lj-accent); }
.pillars-strip a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lj-ink);
}
.pillars-strip a:hover { color: var(--lj-accent); }

/* ---- Small motion (see redesign-2026.js for the GSAP-driven parts) -----
   .lj-anim elements start visible by default (no-JS / JS-failure safe);
   redesign-2026.js sets the hidden starting state itself before animating. */
