/*
Theme Name: ITESOJ
Theme URI: https://itesoj.tech
Author: ITESOJ
Description: Tema personalizado para ITESOJ, soluciones tecnológicas y soporte técnico.
Version: 1.0.0
Text Domain: itesoj
*/

/* ==========================================================
   Variables
   ========================================================== */
:root {
    --itesoj-bg: #081018;
    --itesoj-bg-alt: #0b1c2d;
    --itesoj-bg-alt-2: #0f2138;
    --itesoj-accent: #38bdf8;
    --itesoj-accent-2: #0ea5e9;
    --itesoj-white: #ffffff;
    --itesoj-light: #f4f8fb;
    --itesoj-text-muted: #9fb3c8;
    --itesoj-whatsapp: #25d366;
    --itesoj-border: rgba(56, 189, 248, 0.35);
    --itesoj-radius: 16px;
    --itesoj-font-heading: 'Space Grotesk', sans-serif;
    --itesoj-font-body: 'Inter', sans-serif;
}

/* ==========================================================
   Reset básico
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--itesoj-bg);
    color: var(--itesoj-white);
    font-family: var(--itesoj-font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--itesoj-font-heading); margin: 0; line-height: 1.2; }
svg { display: block; }

.itesoj-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================
   Botones
   ========================================================== */
.itesoj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.itesoj-btn svg { width: 18px; height: 18px; }
.itesoj-btn--primary {
    background: linear-gradient(135deg, var(--itesoj-accent), var(--itesoj-accent-2));
    color: #04121e;
}
.itesoj-btn--primary:hover { transform: translateY(-2px); }
.itesoj-btn--outline {
    background: transparent;
    color: var(--itesoj-white);
    border: 1.5px solid var(--itesoj-border);
}
.itesoj-btn--outline:hover { border-color: var(--itesoj-accent); background: rgba(56,189,248,.08); }
.itesoj-btn--ghost {
    background: transparent;
    color: var(--itesoj-accent-2);
    border: 1.5px solid var(--itesoj-accent-2);
    padding: 12px 20px;
}
.itesoj-btn--ghost:hover { background: var(--itesoj-accent-2); color: #fff; }
.itesoj-btn--whatsapp {
    background: var(--itesoj-whatsapp);
    color: #fff;
}
.itesoj-btn--whatsapp:hover { transform: translateY(-2px); }

.itesoj-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--itesoj-accent);
    margin-bottom: 10px;
}
.itesoj-eyebrow--dark { color: var(--itesoj-accent-2); }

/* ==========================================================
   Header
   ========================================================== */
.itesoj-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 16, 24, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.itesoj-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.itesoj-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.itesoj-logo__icon { width: 34px; height: 34px; flex-shrink: 0; }
.itesoj-logo__text {
    font-family: var(--itesoj-font-heading);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: .02em;
    color: #fff;
    line-height: 1.1;
}
.itesoj-logo__text small {
    display: block;
    font-family: var(--itesoj-font-body);
    font-weight: 500;
    font-size: 9.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--itesoj-text-muted);
}

.itesoj-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.itesoj-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.itesoj-nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.itesoj-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.itesoj-nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.itesoj-nav {
    position: fixed;
    top: 63px;
    left: 0;
    right: 0;
    background: var(--itesoj-bg-alt);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: translateY(-140%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
}
.itesoj-nav.is-open { transform: translateY(0); opacity: 1; }
.itesoj-nav__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-weight: 500;
    font-size: 16px;
}
.itesoj-nav__list a:hover { color: var(--itesoj-accent); }
.itesoj-nav__cta { width: 100%; }

/* ==========================================================
   Hero
   ========================================================== */
.itesoj-hero {
    position: relative;
    background: radial-gradient(circle at 20% 0%, #0d2439 0%, var(--itesoj-bg) 60%);
    padding: 48px 0 56px;
    overflow: hidden;
}
.itesoj-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.itesoj-hero__title {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
}
.itesoj-hero__title span {
    display: block;
    background: linear-gradient(90deg, var(--itesoj-accent), var(--itesoj-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.itesoj-hero__desc {
    margin-top: 16px;
    color: var(--itesoj-text-muted);
    font-size: 15.5px;
    max-width: 46ch;
}
.itesoj-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}
.itesoj-hero__art { position: relative; display: flex; justify-content: center; }
.itesoj-hero__art svg { width: 260px; height: 260px; }
.itesoj-hero__badge {
    position: absolute;
    bottom: 0;
    right: 10%;
    background: rgba(8,16,24,.85);
    border: 1px solid var(--itesoj-border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-style: italic;
    color: var(--itesoj-accent);
}

/* ==========================================================
   Pilares
   ========================================================== */
.itesoj-pillars {
    background: var(--itesoj-bg-alt-2);
    padding: 28px 0;
}
.itesoj-pillars__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
.itesoj-pillar {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.itesoj-pillar__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--itesoj-accent);
    color: var(--itesoj-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.itesoj-pillar__icon svg { width: 22px; height: 22px; }
.itesoj-pillar strong { display: block; font-size: 15px; margin-bottom: 2px; }
.itesoj-pillar p { margin: 0; color: var(--itesoj-text-muted); font-size: 13.5px; }

/* ==========================================================
   Servicios
   ========================================================== */
.itesoj-services {
    background: var(--itesoj-light);
    color: #10202f;
    padding: 52px 0;
}
.itesoj-services__layout { display: flex; flex-direction: column; gap: 36px; }
.itesoj-services__intro h2 { font-size: 26px; margin-bottom: 14px; color: #0b1c2d; }
.itesoj-services__intro p { color: #4c6072; font-size: 15px; margin-bottom: 22px; max-width: 48ch; }

.itesoj-services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.itesoj-service-card {
    background: #0b1c2d;
    color: #fff;
    border-radius: var(--itesoj-radius);
    padding: 22px;
    border: 1px solid rgba(255,255,255,.06);
}
.itesoj-service-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(56,189,248,.12);
    color: var(--itesoj-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.itesoj-service-card__icon svg { width: 22px; height: 22px; }
.itesoj-service-card h3 { font-size: 16px; margin-bottom: 10px; }
.itesoj-service-card ul { display: flex; flex-direction: column; gap: 6px; }
.itesoj-service-card li {
    font-size: 13.5px;
    color: var(--itesoj-text-muted);
    padding-left: 16px;
    position: relative;
}
.itesoj-service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--itesoj-accent);
}

/* ==========================================================
   Por qué elegirnos
   ========================================================== */
.itesoj-why {
    background: linear-gradient(135deg, #0b1c2d, #0f2b45);
    padding: 44px 0;
    text-align: center;
}
.itesoj-why h2 { font-size: 22px; margin-bottom: 30px; }
.itesoj-why h2 span { color: var(--itesoj-accent); }
.itesoj-why__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.itesoj-why__item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.itesoj-why__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(56,189,248,.12);
    color: var(--itesoj-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.itesoj-why__icon svg { width: 22px; height: 22px; }
.itesoj-why__item strong { font-size: 13.5px; font-weight: 600; }

/* ==========================================================
   Confianza / stats
   ========================================================== */
.itesoj-trust { background: var(--itesoj-bg); padding: 48px 0; }
.itesoj-trust__inner { display: flex; flex-direction: column; gap: 32px; }
.itesoj-trust__intro { display: flex; align-items: flex-start; gap: 16px; }
.itesoj-trust__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(56,189,248,.12);
    color: var(--itesoj-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.itesoj-trust__intro h2 { font-size: 22px; margin-bottom: 6px; }
.itesoj-trust__intro h2 span { color: var(--itesoj-accent); }
.itesoj-trust__intro p { margin: 0; color: var(--itesoj-text-muted); font-size: 14px; }

.itesoj-trust__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.itesoj-stat {
    background: var(--itesoj-bg-alt-2);
    border-radius: var(--itesoj-radius);
    padding: 18px 12px;
    text-align: center;
}
.itesoj-stat__icon {
    width: 36px; height: 36px;
    margin: 0 auto 10px;
    color: var(--itesoj-accent);
}
.itesoj-stat strong { display: block; font-size: 18px; margin-bottom: 4px; }
.itesoj-stat p { margin: 0; font-size: 11.5px; color: var(--itesoj-text-muted); }

/* ==========================================================
   Barra inferior: precio + whatsapp
   ========================================================== */
.itesoj-bottom-bar { background: var(--itesoj-bg-alt-2); }
.itesoj-bottom-bar__inner {
    display: flex;
    flex-direction: column;
}
.itesoj-bottom-bar__price {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    font-size: 14px;
    color: var(--itesoj-text-muted);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.itesoj-bottom-bar__icon { width: 26px; height: 26px; color: var(--itesoj-accent); }
.itesoj-bottom-bar__price strong { display: block; color: #fff; font-size: 18px; }

.itesoj-bottom-bar__help {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
}
.itesoj-bottom-bar__help-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--itesoj-whatsapp);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.itesoj-bottom-bar__help-icon svg { width: 20px; height: 20px; }
.itesoj-bottom-bar__help-text { flex: 1; font-size: 13px; color: var(--itesoj-text-muted); }
.itesoj-bottom-bar__help-text strong { display: block; color: #fff; font-size: 14.5px; }
.itesoj-bottom-bar__help-cta {
    display: none;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--itesoj-border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.itesoj-bottom-bar__help-cta svg { width: 16px; height: 16px; }

/* ==========================================================
   Footer
   ========================================================== */
.itesoj-footer { background: #050b12; padding-top: 40px; }
.itesoj-footer__top {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-bottom: 30px;
}
.itesoj-footer__tagline {
    margin: 14px 0 0;
    font-style: italic;
    color: var(--itesoj-accent);
    font-size: 14px;
}
.itesoj-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.itesoj-footer__contact a,
.itesoj-footer__address {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--itesoj-text-muted);
}
.itesoj-footer__contact svg,
.itesoj-footer__address svg {
    width: 20px; height: 20px;
    color: var(--itesoj-accent);
    flex-shrink: 0;
}
.itesoj-footer__contact a strong,
.itesoj-footer__contact a > span > small { display: block; }
.itesoj-footer__contact a span small { color: var(--itesoj-text-muted); font-weight: 400; font-size: 12px; }
.itesoj-footer__contact a span { color: #fff; font-weight: 600; font-size: 14px; }

.itesoj-footer__social { display: flex; gap: 12px; }
.itesoj-footer__social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--itesoj-text-muted);
}
.itesoj-footer__social svg { width: 16px; height: 16px; }

.itesoj-footer__bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 16px 0; }
.itesoj-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 11.5px;
    color: var(--itesoj-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ==========================================================
   DESKTOP (≥1024px)
   ========================================================== */
@media (min-width: 1024px) {

    .itesoj-nav-toggle { display: none; }

    .itesoj-nav {
        position: static;
        flex-direction: row;
        align-items: center;
        background: none;
        border: none;
        padding: 0;
        transform: none;
        opacity: 1;
        gap: 32px;
        width: auto;
    }
    .itesoj-nav__list { flex-direction: row; gap: 28px; font-size: 15px; }
    .itesoj-nav__cta { width: auto; }

    .itesoj-hero__inner { flex-direction: row; align-items: center; padding: 30px 0; }
    .itesoj-hero__content { flex: 1; max-width: 560px; }
    .itesoj-hero__title { font-size: 48px; }
    .itesoj-hero__art { flex: 1; }
    .itesoj-hero__art svg { width: 360px; height: 360px; }

    .itesoj-pillars__grid { grid-template-columns: repeat(4, 1fr); }
    .itesoj-pillar { position: relative; padding-right: 20px; }
    .itesoj-pillar:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0; top: 0; bottom: 0;
        width: 1px;
        background: rgba(255,255,255,.08);
    }

    .itesoj-services__layout { flex-direction: row; align-items: flex-start; gap: 50px; }
    .itesoj-services__intro { flex: 0 0 340px; position: sticky; top: 100px; }
    .itesoj-services__grid { flex: 1; grid-template-columns: repeat(2, 1fr); }

    .itesoj-why__grid { grid-template-columns: repeat(4, 1fr); }

    .itesoj-trust__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
    .itesoj-trust__intro { flex: 0 0 380px; }
    .itesoj-trust__stats { flex: 1; }

    .itesoj-bottom-bar__inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .itesoj-bottom-bar__price { border-bottom: none; }
    .itesoj-bottom-bar__help { max-width: 480px; }
    .itesoj-bottom-bar__help-cta { display: inline-flex; }

    .itesoj-footer__top { flex-direction: row; align-items: flex-start; justify-content: space-between; }
    .itesoj-footer__contact { flex-direction: row; gap: 30px; }
    .itesoj-footer__bottom-inner { justify-content: space-between; }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .itesoj-services__grid { grid-template-columns: repeat(2, 1fr); }
    .itesoj-why__grid { grid-template-columns: repeat(4, 1fr); }
}
