/* ============================================================================
   IntuiFy — site components (loaded after nova.css)
   Same visual identity (dark, indigo/violet accents, frosted glass); content first:
   nothing is hidden without JS and cards stay readable over the WebGL scene.
   ========================================================================== */

:root {
    --ink: #f4f4f8;
    --ink-2: #cbd5e1;
    --ink-3: #94a3b8;
    --line: rgba(255, 255, 255, 0.08);
    --card: rgba(13, 13, 20, 0.72);
    --accent-1: #818cf8;
    --accent-2: #a78bfa;
    --ok: #34d399;
    --warn: #fbbf24;
}

/* Cards get a solid-ish glass backdrop so text never sits directly on particles */
.glow-card { background: var(--card); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 1.5rem; }

/* ---- Preview banner ------------------------------------------------------ */
.preview-banner {
    position: sticky; top: 0; z-index: 60;
    padding: 0.5rem 1rem; text-align: center;
    font-size: 0.75rem; font-weight: 600; color: #1a1300;
    background: var(--warn);
}

/* ---- Header -------------------------------------------------------------- */
.site-header {
    position: fixed; top: 1rem; left: 0; right: 0; z-index: 50;
    width: 94%; max-width: 76rem; margin: 0 auto;
}
.preview-banner ~ .site-header { top: 2.75rem; }
.site-header-bar {
    position: relative;
    border-radius: 9999px;
    background: rgba(13, 13, 20, 0.82);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    padding: 0.55rem 0.6rem 0.55rem 1.1rem;
}
.mobile-menu {
    position: absolute; top: calc(100% + 0.6rem); left: 0; right: 0;
    padding: 0.75rem; border-radius: 1.5rem;
    background: rgba(13, 13, 20, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }

/* ---- Hero ---------------------------------------------------------------- */
.capabilities {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
    max-width: 44rem; margin: 0 auto;
}
.capabilities li {
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem; font-weight: 600; color: var(--ink-2);
    border: 1px solid var(--line); border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
}

/* ---- Section heads ------------------------------------------------------- */
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3.25rem; }
.section-head h2, .agency-card h2, .company-grid h2 {
    font-size: clamp(1.85rem, 4vw, 2.85rem); line-height: 1.12; font-weight: 700;
    color: #fff; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.section-head p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.65; }
.section-note { margin-top: 1.75rem; text-align: center; color: var(--ink-3); font-size: 0.9375rem; }
.lead { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.muted { color: var(--ink-3); }

/* ---- Lists --------------------------------------------------------------- */
.check-list { display: grid; gap: 0.55rem; }
.check-list li {
    position: relative; padding-left: 1.6rem;
    font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2);
}
.check-list li::before {
    content: ''; position: absolute; left: 0; top: 0.3rem;
    width: 1rem; height: 1rem; border-radius: 9999px;
    background: rgba(99, 102, 241, 0.16)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 0.6rem no-repeat;
}
@media (min-width: 640px) { .check-list-2col { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; } }
.text-link {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.875rem; font-weight: 600; color: var(--accent-1);
}
.text-link:hover { color: #fff; }
.features-label {
    font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-3); margin-bottom: 0.75rem;
}

/* ---- Services ------------------------------------------------------------ */
.service-card { padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.service-icon {
    width: 3rem; height: 3rem; display: grid; place-items: center;
    border-radius: 1rem; color: var(--accent-1);
    background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.25);
}
.service-icon svg { width: 1.5rem; height: 1.5rem; }
.service-card h3 { font-size: 1.35rem; font-weight: 700; color: #fff; }
.service-desc { color: var(--ink-2); line-height: 1.6; }
.service-card .check-list { margin-top: 0.25rem; flex: 1; }

/* ---- Projects ------------------------------------------------------------ */
.project-card {
    display: grid; gap: 1.75rem; padding: 1.25rem;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
    .project-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 1.75rem; gap: 2.5rem; align-items: center; }
    .project-card.is-flipped .project-media { order: 2; }
}
.project-card.is-pending { border-style: dashed; border-color: rgba(251, 191, 36, 0.5); }
.project-media {
    display: flex; gap: 0.9rem; align-items: flex-end; justify-content: center;
    min-width: 0; padding: 1rem; border-radius: 1.1rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.18), rgba(255, 255, 255, 0.02) 70%);
}
.shot-web {
    flex: 1 1 auto; min-width: 0; margin: 0;
    border-radius: 0.75rem; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
    background: #0b0b12;
}
.shot-web-bar { display: flex; gap: 5px; padding: 7px 10px; background: #15151f; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.shot-web-bar span { width: 7px; height: 7px; border-radius: 9999px; background: #3a3a4d; }
.shot-web img { display: block; width: 100%; height: auto; }
.shot-phone {
    flex: 0 0 auto; width: clamp(7.5rem, 26%, 10.5rem); margin: 0;
    border-radius: 1.4rem; overflow: hidden; padding: 4px;
    background: #0b0b12; border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.85);
}
.shot-phone img { display: block; width: 100%; height: auto; border-radius: 1.1rem; }
.project-media.has-phones .shot-web { flex-basis: 55%; }
.project-body h3 { font-size: 1.75rem; font-weight: 700; color: #fff; margin-top: 0.85rem; }
.project-tag { color: var(--accent-1); font-weight: 600; font-size: 0.9375rem; margin-bottom: 1.1rem; }
.project-story { display: grid; gap: 0.85rem; margin-bottom: 1.4rem; }
.project-story dt { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.2rem; }
.project-story dd { color: var(--ink-2); line-height: 1.6; }
.project-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.link-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.55rem 1rem; border-radius: 9999px;
    font-size: 0.8125rem; font-weight: 700; color: #fff;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.link-pill:hover { background: rgba(99, 102, 241, 0.2); border-color: rgba(129, 140, 248, 0.6); }

.badges { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.25rem 0.7rem; border-radius: 9999px;
    font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    border: 1px solid transparent;
}
.badge-own { color: #c7d2fe; background: rgba(99, 102, 241, 0.16); border-color: rgba(99, 102, 241, 0.3); }
.badge-client { color: #a5f3fc; background: rgba(6, 182, 212, 0.14); border-color: rgba(6, 182, 212, 0.3); }
.badge-status { color: var(--ink-2); background: rgba(255, 255, 255, 0.05); border-color: var(--line); }
.badge-status .dot { width: 0.45rem; height: 0.45rem; border-radius: 9999px; background: var(--ok); }
.badge-en_desarrollo .dot { background: var(--warn); }
.badge-pending { color: #fde68a; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.4); text-transform: none; letter-spacing: 0; }

.own-products {
    margin: 3rem auto 0; max-width: 48rem; text-align: center;
    padding: 1.75rem; border-radius: 1.5rem;
    border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025);
}
.own-products h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.own-products p { color: var(--ink-2); line-height: 1.65; margin-bottom: 0.75rem; }
.own-products .muted { color: var(--ink-3); }

/* ---- Method -------------------------------------------------------------- */
.steps { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.step { padding: 1.4rem; }
.step-num {
    display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem;
    border-radius: 0.75rem; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.0625rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.step p { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }

/* ---- Reasons ------------------------------------------------------------- */
.reason { padding: 1.5rem; }
.reason h3 { font-size: 1.125rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.reason p { color: var(--ink-2); line-height: 1.6; font-size: 0.9375rem; }

/* ---- Agencies ------------------------------------------------------------ */
.agency-card { display: grid; gap: 2rem; padding: 2rem; }
@media (min-width: 900px) { .agency-card { grid-template-columns: 1.2fr 1fr; padding: 2.75rem; align-items: center; } }
.agency-card .highlight {
    margin-top: 1.25rem; padding: 0.9rem 1.1rem; border-radius: 1rem;
    color: #e0e7ff; background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ---- Company ------------------------------------------------------------- */
.company-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .company-grid { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.company-card { padding: 1.75rem; }
.company-card dl { display: grid; gap: 0.9rem; }
.company-card dt { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.company-card dd { color: #fff; font-weight: 600; margin-top: 0.15rem; }
.company-card a { color: var(--accent-1); }

/* ---- Contact ------------------------------------------------------------- */
.direct-contacts { display: grid; gap: 0.75rem; }
.direct {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    padding: 0.85rem 1rem; border-radius: 1rem;
    color: #fff; font-weight: 600; font-size: 0.9375rem;
    background: rgba(13, 13, 20, 0.7); border: 1px solid var(--line);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.direct svg { width: 1.25rem; height: 1.25rem; color: var(--accent-1); flex-shrink: 0; }
a.direct:hover { border-color: rgba(129, 140, 248, 0.55); background: rgba(99, 102, 241, 0.12); }
.direct.whatsapp svg { color: #25d366; }
.direct.is-static { color: var(--ink-2); font-weight: 500; }
.direct.is-pending { border-style: dashed; border-color: rgba(251, 191, 36, 0.5); }

.contact-form { display: grid; gap: 1.25rem; padding: 1.5rem; }
@media (min-width: 640px) { .contact-form { padding: 2.25rem; } }
.form-label { display: block; margin-bottom: 0.45rem; font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); }
.form-label .req { color: var(--accent-1); }
.form-label .opt { font-weight: 500; color: var(--ink-3); }
.form-input { width: 100%; padding: 0.8rem 1rem; border-radius: 0.85rem; font-size: 0.9375rem; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1rem; padding-right: 2.5rem; }
.privacy-note { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.5; }
.privacy-note a { color: var(--accent-1); text-decoration: underline; text-underline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-response { padding: 0.85rem 1rem; border-radius: 0.85rem; font-size: 0.9375rem; text-align: center; }
.form-response.is-success { color: #a7f3d0; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35); }
.form-response.is-error { color: #fecaca; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35); }

.whatsapp-float {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
    width: 3.25rem; height: 3.25rem; border-radius: 9999px; display: grid; place-items: center;
    color: #fff; background: #25d366; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.whatsapp-float svg { width: 1.6rem; height: 1.6rem; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { position: relative; padding-top: 4rem; padding-bottom: 2rem; border-top: 1px solid var(--line); background: rgba(3, 3, 5, 0.9); }
.footer-title { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-links { display: grid; gap: 0.65rem; font-size: 0.875rem; color: var(--ink-3); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
    padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.footer-bottom nav a { color: var(--ink-3); }
.footer-bottom nav a:hover { color: #fff; }

/* ---- Legal pages --------------------------------------------------------- */
.legal { max-width: 48rem; margin: 0 auto; padding: 8.5rem 1.5rem 5rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.legal .updated { color: var(--ink-3); font-size: 0.875rem; margin-bottom: 2.5rem; }
.legal-review { margin-bottom: 2rem; padding: 0.85rem 1rem; border-radius: 1rem; font-size: 0.875rem; color: #fde68a; background: rgba(251, 191, 36, 0.1); border: 1px dashed rgba(251, 191, 36, 0.5); }
.legal section { padding: 1.5rem; margin-bottom: 1rem; border-radius: 1.25rem; background: var(--card); border: 1px solid var(--line); scroll-margin-top: 6rem; }
.legal h2 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; font-size: 0.9688rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.5rem; display: grid; gap: 0.35rem; }
.legal a { color: var(--accent-1); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: #fff; }

/* ---- Scene & anchors ----------------------------------------------------- */
/* The full-screen "big bang" flash washed out the contact form: content first. */
#nova-glow { display: none !important; }
/* In-page anchors land below the fixed header even without JS */
main section[id], main article[id] { scroll-margin-top: 6.5rem; }
/* Projects with only phone screens: show them larger */
.project-media.only-phones .shot-phone { width: clamp(8.5rem, 40%, 13.5rem); }

/* The hero scrim bleeds 16vw left/right: clip it so phones don't get a wider
   layout viewport (which pushed the menu button off-screen). */
html, body { overflow-x: clip; }
@media (max-width: 767px) { .nova-scrim-hero::before { inset: -8vh 0; } }
