/* =====================================================
   JOBAR TECHNOLOGY SAC
   Paleta extraída del isotipo: azul marino profundo + azul acero.
   Motivo visual: paralelogramos/rombos recortados, como en el logo.
   Tipografía: Oswald (títulos, industrial/condensada) + IBM Plex Sans (texto).
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
    --navy: #142A6F;
    --navy-dark: #0C1C50;
    --blue: #2A48A3;
    --blue-light: #4864C4;
    --ink: #1A1F36;
    --steel: #5C6480;
    --line: #E1E4EE;
    --bg: #FFFFFF;
    --bg-soft: #F4F6FB;
    --whatsapp: #25D366;
    --cut: 14px; /* profundidad del corte en paralelogramo */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .5em;
    color: var(--navy-dark);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 65ch; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow-none { /* intentionally unused: avoid generic uppercase eyebrow labels */ }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--steel); }

/* ---------- Botones en forma de paralelogramo (motivo del logo) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px 14px 24px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .02em;
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateX(2px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-outline {
    background: transparent;
    color: var(--navy);
    box-shadow: inset 0 0 0 2px var(--navy);
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue); }
.btn-sm { padding: 10px 22px 10px 16px; font-size: .85rem; }
.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    padding: 10px 18px 10px 14px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: .85rem;
}
.btn-whatsapp:hover { background: #1fb955; }
.btn-whatsapp svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-text {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--navy-dark);
    letter-spacing: .01em;
}
.brand-text span { color: var(--blue); }

nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}
nav.main-nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: .96rem;
    position: relative;
    padding-bottom: 4px;
}
nav.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--blue);
    transition: width .2s ease;
}
nav.main-nav a:hover::after,
nav.main-nav a.active::after { width: 100%; }
nav.main-nav a.active { color: var(--navy-dark); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy-dark); margin: 6px 0; }

/* ---------- Hero (fondo a pantalla completa) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: var(--navy-dark) url('../img/hero-tablero.jpg') center/cover no-repeat;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    padding: 130px 0 90px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(9,20,58,.94) 0%, rgba(9,20,58,.82) 38%, rgba(9,20,58,.45) 75%);
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero-copy { max-width: 620px; }
.hero-eyebrow {
    display: inline-block;
    color: #9FC0FF;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    letter-spacing: .04em;
    margin-bottom: 14px;
}
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.1rem; color: #D6DDF3; max-width: 52ch; }
.hero-cta { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.hero-art {
    position: relative;
    height: 380px;
}
.diamond {
    position: absolute;
    clip-path: polygon(22% 0, 100% 0, 78% 100%, 0% 100%);
}
.hero-art .d1 { width: 46%; height: 62%; background: var(--navy); top: 0; right: 6%; }
.hero-art .d2 { width: 30%; height: 34%; background: var(--blue-light); top: 4%; right: -2%; }
.hero-art .d3 { width: 34%; height: 40%; background: var(--blue); bottom: 0; left: 4%; }
.hero-art .d4 { width: 18%; height: 22%; background: var(--navy-dark); bottom: 6%; left: 0; }
.hero-art .icon-wrap {
    position: absolute;
    top: 12%; right: 12%;
    width: 34%; height: 46%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.hero-art .icon-wrap svg { width: 68%; height: 68%; }

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.22);
}
.hero-stats div strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.7rem;
    color: #fff;
}
.hero-stats div span { color: #B9C2E6; font-size: .88rem; }

/* ---------- Tarjetas de categoría / servicio (esquina cortada) ---------- */
.grid {
    display: grid;
    gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card-cut {
    background: #fff;
    border: 1px solid var(--line);
    padding: 30px 26px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    transition: box-shadow .2s ease, transform .2s ease;
}
.card-cut:hover { box-shadow: 0 16px 30px rgba(20,42,111,.1); transform: translateY(-3px); }
.card-icon {
    width: 56px; height: 56px;
    background: var(--navy);
    color: #fff;
    clip-path: polygon(22% 0, 100% 0, 78% 100%, 0% 100%);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.card-icon svg { width: 30px; height: 30px; }
.card-cut h3 { margin-bottom: 8px; }
.card-cut p { color: var(--steel); font-size: .95rem; margin-bottom: 0; }
.card-cut a.card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .9rem; }

/* ---------- Productos ---------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.filter-pill {
    padding: 9px 20px;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: .9rem;
    font-weight: 500;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.filter-pill.active, .filter-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.product-card {
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.product-media {
    aspect-ratio: 4/3;
    background: var(--bg-soft);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .placeholder { color: var(--line); width: 40%; }
.product-cat-tag {
    position: absolute; top: 12px; left: 0;
    background: var(--navy);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: 5px 14px 5px 10px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.product-body p { font-size: .9rem; color: var(--steel); flex: 1; }
.product-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.product-price { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--navy-dark); }

/* ---------- Nosotros ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.timeline { border-left: 2px solid var(--line); padding-left: 24px; }
.timeline .item { position: relative; padding-bottom: 26px; }
.timeline .item::before {
    content: '';
    position: absolute; left: -30px; top: 4px;
    width: 12px; height: 12px; background: var(--blue);
    clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; }
.value-list .num {
    font-family: 'Oswald', sans-serif; font-weight: 600; color: var(--blue);
    font-size: 1.4rem; min-width: 36px;
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; }
.info-block { display: flex; gap: 16px; margin-bottom: 26px; }
.info-block .ic {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--navy); color: #fff;
    clip-path: polygon(22% 0, 100% 0, 78% 100%, 0% 100%);
    display: flex; align-items: center; justify-content: center;
}
.info-block .ic svg { width: 22px; height: 22px; }
.info-block h4 { margin-bottom: 2px; font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; }
.info-block p { color: var(--steel); margin: 0; font-size: .93rem; }

form .field { margin-bottom: 20px; }
form label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .92rem; }
form input, form select, form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: inherit;
    font-size: .95rem;
    color: var(--ink);
}
form input:focus, form select:focus, form textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,72,163,.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.alert { padding: 14px 18px; margin-bottom: 22px; font-size: .93rem; }
.alert-success { background: #E7F7EE; color: #146C3C; border-left: 4px solid #25D366; }
.alert-error { background: #FDEBEC; color: #A31E29; border-left: 4px solid #E23B45; }

/* ---------- Blog ---------- */
.blog-card {
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: inherit;
}
.blog-card:hover { border-color: var(--blue); }
.blog-card-media {
    aspect-ratio: 4/3;
    background: var(--bg-soft);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
}
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-media .placeholder { color: var(--line); width: 40%; }
.blog-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.blog-date { color: var(--steel); font-size: .82rem; margin-bottom: 6px; }
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-card-body p { font-size: .9rem; color: var(--steel); flex: 1; }
.blog-card-body .card-link { margin-top: 12px; font-weight: 600; font-size: .9rem; }

.blog-portada { margin-bottom: 30px; }
.blog-portada img { width: 100%; max-height: 440px; object-fit: cover; }
.blog-contenido { font-size: 1.02rem; color: var(--ink); }
.blog-contenido p { max-width: none; }
.blog-gallery-item { aspect-ratio: 4/3; overflow: hidden; }
.blog-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-dark); color: #C9D0E8; padding: 60px 0 24px; }
footer .footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
footer h4 { color: #fff; font-family: 'IBM Plex Sans', sans-serif; font-size: .95rem; margin-bottom: 16px; }
footer .brand-text, footer .brand-text span { color: #fff; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a { color: #C9D0E8; font-size: .92rem; }
footer a:hover { color: #fff; }
footer p { color: #9AA5CC; font-size: .9rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 22px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: .85rem; color: #8A94BD;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 200;
    width: 58px; height: 58px; background: var(--whatsapp);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Paginación simple / admin table look reused on public pages ---------- */
.page-hero {
    background: var(--navy-dark);
    color: #fff;
    padding: 56px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 6px; }
.page-hero p { color: #B9C2E6; margin: 0; }
.breadcrumb { font-size: .85rem; color: #8A94BD; margin-bottom: 10px; }
.breadcrumb a { color: #B9C2E6; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero { min-height: auto; padding: 110px 0 60px; }
    .hero-art { height: 260px; order: -1; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    nav.main-nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: #fff; padding: 30px 24px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
    nav.main-nav.open { transform: translateX(0); }
    nav.main-nav ul { flex-direction: column; gap: 22px; }
    .nav-toggle { display: block; }
    .header-actions .btn-sm span { display: none; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    footer .footer-grid { grid-template-columns: 1fr; }
}
