/* ========================================================
   SAETECH — THEME LAYER v3
   Capa de diseño que refina tokens, tipografía, espaciado
   y componentes sobre styles.css. Se carga en último lugar.
   ======================================================== */

:root {
    --bg-primary: #07090f;
    --bg-secondary: #0b0e16;
    --bg-elev: #0f131c;
    --bg-elev-2: #141925;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --text-primary: #f4f5f9;
    --text-secondary: #a3a9bd;
    --text-muted: #6f7590;
    --accent-cyan: #22d3ee;
    --accent-cyan-strong: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-pink: #8b5cf6;
    --gradient-main: linear-gradient(135deg, #22d3ee 0%, #6366f1 60%, #8b5cf6 100%);
    --gradient-hover: linear-gradient(135deg, #38e0f7 0%, #7073f5 60%, #9b6cf9 100%);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(34, 211, 238, 0.28);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(34, 211, 238, 0.12);
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ─── BASE ─── */

body {
    background:
        radial-gradient(1200px 600px at 50% -200px, rgba(34, 211, 238, 0.07), transparent 60%),
        var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(34, 211, 238, 0.3);
    color: #fff;
}

.container {
    max-width: 1140px;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.section-dark {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    margin-bottom: 56px;
}

.section-tag {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    background: rgba(34, 211, 238, 0.06) !important;
    font-family: var(--font-main) !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    color: var(--accent-cyan) !important;
    -webkit-text-fill-color: var(--accent-cyan) !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    margin-bottom: 18px;
}

.section-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.section-title {
    font-size: clamp(2rem, 3.8vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.65;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hf-separator {
    display: none;
}

/* ─── BUTTONS ─── */

.btn {
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    gap: 9px;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px -8px rgba(34, 211, 238, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--gradient-hover);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 32px -8px rgba(34, 211, 238, 0.6), 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.02rem;
}

/* ─── NAVBAR ─── */

.navbar {
    padding: 18px 0;
}

.navbar.scrolled {
    background: rgba(7, 9, 15, 0.78);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

.nav-container {
    max-width: 1140px;
}

.nav-logo {
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.logo-bracket {
    color: var(--accent-cyan);
    font-weight: 500;
    opacity: 0.9;
}

.nav-links {
    gap: 6px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a::after {
    display: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links .nav-cta {
    margin-left: 10px;
    background: var(--text-primary) !important;
    color: #0b0e16 !important;
    border: none !important;
    padding: 9px 18px !important;
    border-radius: 10px;
    font-weight: 600;
}

.nav-links .nav-cta:hover {
    background: #fff !important;
    color: #0b0e16 !important;
    transform: translateY(-1px);
}

.lang-dropbtn {
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
}

.navbar.scrolled .lang-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.lang-dropdown-content {
    background: var(--bg-elev-2);
    border-radius: 12px;
}

/* ─── HERO (home) ─── */

.hero {
    min-height: auto;
    padding: 148px 24px 72px;
    align-items: stretch;
}

.hero::before {
    display: none;
}

.hf-hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 100%);
}

.hf-hero-fade {
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    height: 180px;
}

.hf-orb {
    filter: blur(90px);
}

.hf-orb--cyan {
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.32) 0%, rgba(34, 211, 238, 0.06) 45%, transparent 70%) !important;
    opacity: 0.8 !important;
    top: -30%;
    left: -20%;
}

.hf-orb--purple {
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.4) 0%, rgba(99, 102, 241, 0.08) 45%, transparent 70%) !important;
    opacity: 0.8 !important;
    top: -15%;
    right: -15%;
}

.hf-orb--pink {
    display: none;
}

.hero-content {
    max-width: 1140px;
    width: 100%;
    text-align: left;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}

.hero-badge {
    margin-bottom: 26px;
    padding: 7px 14px 7px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    box-shadow: none !important;
}

.hero-badge:hover {
    box-shadow: none !important;
}

.badge-dot {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    animation: none;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-headline {
    font-size: clamp(2.4rem, 5vw, 3.9rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    max-width: 14ch;
    margin: 0;
}

.hero-subtitle {
    font-size: clamp(1.02rem, 1.5vw, 1.15rem);
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 52ch;
    margin-bottom: 28px;
}

.hero-description {
    display: none;
}

.hero-buttons {
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.hero-audit-banner {
    margin: 0;
    padding: 9px 14px 9px 12px;
    font-size: 0.86rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    box-shadow: none;
    color: var(--text-secondary);
}

.hero-audit-banner:hover {
    background: rgba(34, 211, 238, 0.07);
    border-color: var(--border-glow);
    box-shadow: none;
    transform: none;
    color: var(--text-primary);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.hero-proof-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-proof-item strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-proof-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ─── HERO VISUAL: RAG assistant mock ─── */

.hero-visual {
    position: relative;
    min-width: 0;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: -12% -8%;
    background:
        radial-gradient(60% 55% at 30% 20%, rgba(34, 211, 238, 0.18), transparent 70%),
        radial-gradient(55% 50% at 80% 85%, rgba(139, 92, 246, 0.2), transparent 70%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

.rag-mock {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(20, 25, 37, 0.92), rgba(12, 15, 23, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 40px 80px -30px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    font-size: 0.86rem;
}

.rag-mock-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.rag-mock-dots {
    display: flex;
    gap: 6px;
}

.rag-mock-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.rag-mock-dots i:nth-child(1) { background: #ff5f57; }
.rag-mock-dots i:nth-child(2) { background: #febc2e; }
.rag-mock-dots i:nth-child(3) { background: #28c840; }

.rag-mock-title {
    margin-left: 6px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rag-mock-title .live {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.rag-mock-title .live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ade80;
}

.rag-mock-body {
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rag-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.rag-msg-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.rag-msg--user .rag-msg-avatar {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.rag-msg--ai .rag-msg-avatar {
    background: var(--gradient-main);
}

.rag-bubble {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border-radius: 12px;
    line-height: 1.55;
    color: var(--text-primary);
}

.rag-msg--user .rag-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
}

.rag-msg--ai .rag-bubble {
    background: rgba(34, 211, 238, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.16);
}

.rag-bubble p {
    margin: 0;
}

.rag-bubble p + p {
    margin-top: 6px;
}

.rag-bubble mark {
    background: rgba(34, 211, 238, 0.14);
    color: var(--text-primary);
    padding: 0 4px;
    border-radius: 4px;
}

.rag-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.rag-sources-label {
    width: 100%;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.rag-src {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.rag-src svg {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.rag-mock-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.015);
}

.rag-input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rag-send {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--gradient-main);
    color: #fff;
}

.rag-mock-chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.rag-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(12, 15, 23, 0.8);
    border: 1px solid var(--border-subtle);
    font-size: 0.76rem;
    color: var(--text-secondary);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.rag-chip svg {
    color: var(--accent-cyan);
}

/* ─── SECTORS STRIP ─── */

.sectors-section {
    padding: 22px 0;
    background: transparent;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.sectors-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 36px;
}

.sectors-title {
    margin: 0;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--text-muted);
}

.sectors-grid {
    gap: 8px;
    justify-content: center;
}

.sector-item {
    flex-direction: row;
    gap: 8px;
    opacity: 1;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.sector-item svg {
    color: var(--text-muted);
}

.sector-item span {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.sector-item:hover {
    transform: none !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--border-subtle) !important;
}

/* ─── SERVICES ─── */

.services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    padding: 28px 26px 26px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.service-card::before {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.6), transparent);
}

.service-card::after {
    display: none;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
}

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    margin-bottom: 20px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.14);
    color: var(--accent-cyan);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card:hover .service-icon {
    transform: none;
    box-shadow: none;
    background: rgba(34, 211, 238, 0.14) !important;
}

.service-card h3 {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    flex: 1;
}

.service-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-card--featured {
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
        var(--bg-card);
    border-color: rgba(34, 211, 238, 0.22);
}

.service-card--featured .service-eyebrow {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.section-cta {
    margin-top: 40px;
    text-align: center;
}

/* ─── AI SECTION ─── */

.ai-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.ai-grid {
    gap: 64px;
}

.ai-media {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elev);
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 3;
}

.ai-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}

.ai-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 9, 15, 0.55), transparent 50%);
    pointer-events: none;
}

.ai-media-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 2;
}

.ai-media-caption span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 9px;
    background: rgba(7, 9, 15, 0.7);
    border: 1px solid var(--border-subtle);
    font-size: 0.76rem;
    color: var(--text-secondary);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.ai-media-caption svg {
    color: var(--accent-cyan);
}

.ai-features {
    gap: 14px;
}

.ai-features li {
    font-size: 0.97rem;
}

.ai-features .ai-check {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.16);
}

.ai-features .ai-check svg {
    width: 18px;
    height: 18px;
}

/* ─── GEO TABLE ─── */

.geo-compare {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg-elev);
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.geo-table th,
.geo-table td {
    padding: 16px 20px;
    font-size: 0.93rem;
}

.geo-table thead th {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: var(--font-main);
    background: rgba(255, 255, 255, 0.02);
}

.geo-col-highlight {
    background: rgba(34, 211, 238, 0.05);
}

.geo-table thead .geo-col-highlight {
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent-cyan);
    border-top-right-radius: var(--radius-lg);
}

/* ─── PORTFOLIO ─── */

.portfolio-grid {
    gap: 20px;
}

.portfolio-card {
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.portfolio-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
}

.portfolio-image {
    height: 240px;
    border-bottom: 1px solid var(--border-subtle);
}

.portfolio-image::after {
    display: none;
}

.portfolio-badge {
    border-radius: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 9px;
    background: rgba(7, 9, 15, 0.75);
    border: 1px solid var(--border-strong);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.portfolio-info {
    padding: 22px 24px 24px;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.portfolio-info p {
    font-size: 0.93rem;
}

.portfolio-metric {
    border-radius: 8px;
    padding: 6px 10px;
    background: rgba(34, 211, 238, 0.07);
    border: 1px solid rgba(34, 211, 238, 0.18);
    font-size: 0.82rem;
}

.portfolio-tech span {
    border-radius: 7px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

/* ─── TESTIMONIALS ─── */

.hf-testimonials-marquee {
    margin-top: 0;
}

.hf-t-card {
    width: 340px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    padding: 26px;
}

.hf-t-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
}

.hf-t-stars,
.testimonial-stars {
    display: flex;
    gap: 3px;
    color: #fbbf24;
    filter: none;
    margin-bottom: 14px;
    letter-spacing: 0;
}

.hf-t-stars svg,
.testimonial-stars svg {
    width: 15px;
    height: 15px;
}

.hf-t-text {
    font-style: normal;
    font-size: 0.97rem;
    color: var(--text-primary);
    line-height: 1.65;
}

.hf-t-avatar {
    border-radius: 10px;
    box-shadow: none;
    background: linear-gradient(135deg, #1f2937, #111827);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
}

.hf-t-role {
    color: var(--text-muted);
}

/* ─── PROCESS ─── */

.process-timeline {
    max-width: none;
    margin-top: 0;
}

@media (min-width: 900px) {
    .process-timeline {
        flex-direction: row;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }

    .process-timeline::before {
        left: 10%;
        right: 10%;
        top: 27px;
        bottom: auto;
        width: auto;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.45), rgba(139, 92, 246, 0.45), transparent);
    }

    .process-step {
        flex-direction: column;
        gap: 18px;
        padding: 0;
        align-items: flex-start;
    }

    .process-step:hover {
        transform: none;
    }

    .process-content {
        padding-top: 0;
    }
}

.process-number {
    width: 54px;
    height: 54px;
    font-size: 1rem;
    background: var(--bg-elev);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 700;
}

.process-step:hover .process-number {
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
    border-color: var(--accent-cyan);
    transform: none;
    color: var(--accent-cyan);
}

.process-content h3 {
    font-size: 1.08rem;
    letter-spacing: -0.015em;
    margin-bottom: 6px;
}

.process-content p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.process-time {
    border-radius: 7px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

/* ─── TRUST ─── */

.trust-section {
    padding: 96px 0;
    background: transparent;
}

.trust-grid {
    margin-top: 0;
    gap: 18px;
}

.trust-card {
    text-align: left;
    padding: 26px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}

.trust-card::before {
    display: none;
}

.trust-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lift) !important;
    transform: translateY(-3px);
}

.trust-icon {
    width: 44px;
    height: 44px;
    margin: 0 0 18px;
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.14);
    color: var(--accent-cyan);
    font-size: 1rem;
}

.trust-card:hover .trust-icon {
    transform: none;
    box-shadow: none;
}

.trust-card h3 {
    font-size: 1.05rem;
    letter-spacing: -0.015em;
}

.trust-card p {
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .trust-card {
        display: block;
    }

    .trust-icon {
        margin: 0 0 14px;
    }
}

/* ─── PRICING ─── */

.pricing-section {
    padding: 96px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-grid {
    margin-top: 0;
    gap: 18px;
    align-items: stretch;
}

.pricing-card {
    text-align: left;
    padding: 32px 30px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.pricing-card::before {
    display: none;
}

.pricing-card.featured {
    transform: none;
    border-color: rgba(34, 211, 238, 0.35);
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(34, 211, 238, 0.1), transparent 60%),
        var(--bg-card);
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.pricing-card.featured::before {
    display: block;
    content: 'MÁS POPULAR';
    position: absolute;
    top: -13px;
    left: 24px;
    transform: none;
    background: var(--gradient-main);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    inset: auto;
    opacity: 1;
    width: auto;
    height: auto;
    z-index: 2;
}

.pricing-card:hover,
.pricing-card.featured:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.pricing-card.featured:hover {
    border-color: rgba(34, 211, 238, 0.5);
}

.pricing-name {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.pricing-title {
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.pricing-price {
    font-size: 2.5rem;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin: 6px 0 10px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pricing-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-desc {
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-features {
    flex: 1;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    align-items: flex-start;
}

.pricing-features li::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.pricing-card .btn {
    justify-content: center;
}

@media (max-width: 991px) {
    .pricing-card {
        flex: 0 0 300px;
    }
}

/* ─── FAQ ─── */

.faq-item {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.faq-item[open] {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

.faq-item summary {
    font-size: 1rem;
    padding: 18px 22px;
}

.faq-item summary::after {
    border-color: var(--border-strong);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.faq-item[open] summary::after {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.faq-item p {
    font-size: 0.95rem;
    padding: 0 22px 20px;
}

/* ─── CTA ─── */

.cta-section {
    padding: 48px 0 96px;
}

.cta-section::before {
    display: none;
}

.cta-content {
    position: relative;
    padding: 64px 32px;
    border-radius: 24px;
    background:
        radial-gradient(70% 90% at 15% 0%, rgba(34, 211, 238, 0.18), transparent 60%),
        radial-gradient(60% 80% at 90% 100%, rgba(139, 92, 246, 0.22), transparent 60%),
        var(--bg-elev);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.cta-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent);
    pointer-events: none;
}

.cta-content > * {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    letter-spacing: -0.03em;
}

.cta-text {
    margin-bottom: 28px;
}

/* ─── FOOTER ─── */

.footer {
    padding: 64px 0 28px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.footer::before {
    display: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 44px;
}

.footer-brand {
    font-size: 1.25rem;
}

.footer-brand p {
    margin-top: 12px;
    max-width: 32ch;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-col h4 {
    font-family: var(--font-main);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 0.92rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.footer-contact svg {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.footer-social {
    margin-top: 20px;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
}

.footer-social a:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.07);
    transform: none;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
    text-align: left;
    padding-top: 22px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal a {
    color: var(--text-secondary);
}

.footer-legal a:hover {
    color: var(--text-primary);
}

/* ─── PAGE HERO (inner pages) ─── */

.page-hero {
    padding: 150px 0 56px;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, black, transparent);
    pointer-events: none;
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.page-subtitle {
    font-size: 1.08rem;
}

/* ─── ARTICLE EXTRAS ─── */

.article-body .article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 24px;
    font-size: 0.92rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

@media (max-width: 768px) {
    .article-body .article-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.article-body .article-table thead th {
    text-align: left;
    padding: 12px 14px;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.article-body .article-table td {
    padding: 14px;
    vertical-align: top;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    line-height: 1.55;
    min-width: 140px;
}

.article-body .article-table td:nth-child(2) {
    white-space: nowrap;
    color: var(--accent-cyan);
    font-weight: 600;
}

.article-body .article-table tbody tr:last-child td {
    border-bottom: none;
}

.article-body .article-table strong {
    color: var(--text-primary);
}

.article-body h3 {
    margin-top: 28px;
}

/* ─── SERVICE DETAIL (servicios.html) ─── */

.service-detail {
    padding: 36px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    gap: 36px;
    grid-template-columns: 88px 1fr;
}

.service-detail-icon {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.14);
}

.service-detail-icon svg {
    width: 40px;
    height: 40px;
}

.service-detail-content h2 {
    font-size: 1.6rem;
    letter-spacing: -0.025em;
}

.service-price strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .service-detail {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 20px;
    }
}

/* ─── COOKIE BANNER / FLOATING ─── */

.whatsapp-float {
    animation: none !important;
    box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.5) !important;
}

/* ─── MISC OVERRIDES ─── */

.hf-vignette,
.hf-grain,
.hf-scanlines,
.hf-aurora,
.hf-hex-canvas,
.hf-global-canvas,
.hf-spotlight {
    display: none !important;
}

.hf-tilt,
.hf-tilt:hover {
    transform: none !important;
}

.scroll-progress {
    background: var(--gradient-main);
    height: 2px;
}

/* ─── RESPONSIVE ─── */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-headline {
        max-width: 18ch;
    }

    .hero-visual {
        max-width: 620px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .hero {
        padding: 120px 20px 56px;
    }

    .hero-headline {
        font-size: clamp(2.1rem, 9vw, 2.8rem);
        max-width: none;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-audit-banner {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-proof {
        gap: 10px 22px;
    }

    .sectors-section .container {
        flex-direction: column;
        gap: 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 24px 22px;
    }

    .ai-grid {
        gap: 32px;
    }

    .trust-section,
    .pricing-section {
        padding: 72px 0;
    }

    .cta-content {
        padding: 44px 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero {
        padding: 120px 0 40px;
    }

    .process-timeline::before {
        left: 27px;
    }

    .process-step {
        gap: 20px;
        padding: 16px 0;
    }
}

@media (max-width: 480px) {
    .rag-mock-body {
        padding: 14px;
    }

    .rag-mock {
        font-size: 0.82rem;
    }

    .btn {
        padding: 12px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .service-card,
    .portfolio-card,
    .trust-card,
    .pricing-card,
    .hf-t-card {
        transition: none !important;
    }
}

@media (max-width: 640px) {
    .ai-media-caption {
        display: none;
    }
}

/* ─── ARTICLE LINKS / BADGE / MOBILE TABLE ─── */

.article-body p a,
.article-body li a {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-decoration-color: rgba(34, 211, 238, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.article-body p a:hover,
.article-body li a:hover {
    text-decoration-color: var(--accent-cyan);
}

.blog-badge {
    top: 14px;
    right: 14px;
    padding: 5px 11px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    z-index: 3;
    opacity: 1;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .article-body .article-table {
        display: block;
        overflow: visible;
        border: none;
    }

    .article-body .article-table thead {
        display: none;
    }

    .article-body .article-table tbody,
    .article-body .article-table tr,
    .article-body .article-table td {
        display: block;
        min-width: 0;
        white-space: normal;
    }

    .article-body .article-table tr {
        padding: 14px 16px 6px;
        margin-bottom: 12px;
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        background: var(--bg-card);
    }

    .article-body .article-table td {
        padding: 0 0 12px;
        border: none;
    }

    .article-body .article-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 3px;
    }

    .article-body .article-table td:first-child::before {
        display: none;
    }

    .article-body .article-table td:first-child strong {
        font-size: 1.05rem;
    }
}
