/* ============================================
   ALFA DRACONIS IA - ESTILOS COMPLETOS
   ============================================ */

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0A0A12;
    --bg-secondary: #12121E;
    --bg-card: #1A1A2A;
    --bg-card-hover: #222236;
    --text-primary: #EDEFF7;
    --text-secondary: #A0A0B0;
    --text-muted: #6A6A7A;
    --gold: #C7A45C;
    --gold-glow: rgba(199, 164, 92, 0.15);
    --purple: #7C6FDB;
    --purple-glow: rgba(124, 111, 219, 0.15);
    --border-color: #2A2A3A;
    --border-hover: #3A3A4A;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(36px, 5vw, 64px);
}

h2 {
    font-size: clamp(28px, 3.5vw, 42px);
}

h3 {
    font-size: clamp(20px, 2vw, 26px);
}

.eyebrow {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-glow);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(199, 164, 92, 0.1);
    margin-bottom: 12px;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'IBM Plex Sans', sans-serif;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), #6A5DC0);
    color: #fff;
    box-shadow: 0 4px 20px var(--purple-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--purple-glow);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-glow);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(42, 42, 58, 0.5);
    padding: 12px 0;
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(10, 10, 18, 0.95);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    flex-shrink: 0;
}


.brand-word span {
    color: var(--gold);
}

.brand:hover {
    color: var(--text-primary);
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Nav right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.lang-switch a {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all var(--transition);
}

.lang-switch a:hover {
    color: var(--text-primary);
}

.lang-switch a.active {
    background: var(--purple);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}


/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
    isolation: isolate;
}


.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    margin: 16px 0 20px;
    background: linear-gradient(135deg, #EDEFF7 0%, #EDEFF7 60%, #C7A45C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #C7A45C, #E8D5A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: #A0A0B0;
    max-width: 500px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual svg {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 111, 219, 0.2) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    z-index: 2;
    opacity: 0;
    mix-blend-mode: screen;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #2A2A3A;
}

.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #C7A45C;
}

.stat-label {
    font-size: 14px;
    color: #A0A0B0;
    margin-top: 4px;
}


.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head h2 {
    margin-top: 12px;
}

/* ===== SPLIT ===== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.split h2 {
    margin-top: 0;
}

.split p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 16px;
}

.split p:last-child {
    margin-bottom: 0;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-letter {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 24px;
    font-weight: 600;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
}

.service-card h3 {
    margin-bottom: 8px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}


.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.project-info {
    padding: 20px 24px 24px;
}

.project-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.project-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 12px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.project-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(199, 164, 92, 0.15), transparent 60%);
    pointer-events: none;
}

.project-placeholder span {
    position: relative;
    z-index: 1;
    letter-spacing: -2px;
    opacity: 0.9;
}

.status-en-progreso {
    background: rgba(199, 164, 92, 0.15);
    color: var(--gold);
    border: 1px solid rgba(199, 164, 92, 0.2);
}

.status-completado {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

/* ===== PROCESS ===== */
.process-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    background: var(--bg-card);
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.process-step:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 24px var(--gold-glow);
}

.process-coord {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== CTA BAND ===== */
.cta-band {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-band h2 {
    margin: 16px 0 12px;
}

.cta-band p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-secondary);
    padding: 60px 0 24px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
    max-width: 300px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== CHATBOT WIDGET ===== */
#chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'IBM Plex Sans', sans-serif;
}

.chatbot-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--gold));
    border: none;
    color: #EDEFF7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(124, 111, 219, 0.4);
    transition: all var(--transition);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(124, 111, 219, 0.6);
}

.chatbot-toggle span {
    font-size: 9px;
    text-transform: uppercase;
}

.chatbot-container {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all var(--transition);
}

.chatbot-container.hidden {
    display: none;
}

.chatbot-header {
    padding: 16px 20px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.chatbot-header small {
    font-size: 11px;
    color: var(--text-secondary);
}

#chatbot-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
}

#chatbot-close:hover {
    color: var(--text-primary);
}

.chatbot-messages {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chatbot-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chatbot-message.user {
    align-self: flex-end;
    background: var(--purple);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chatbot-message.assistant {
    align-self: flex-start;
    background: var(--bg-card);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chatbot-name-input {
    align-self: center;
    width: 100%;
    display: flex;
    gap: 8px;
    padding: 4px 0;
}

.chatbot-name-input input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
}

.chatbot-name-input input:focus {
    outline: none;
    border-color: var(--purple);
}

.chatbot-name-input button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--purple);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.chatbot-input {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.chatbot-input input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--purple);
}

.chatbot-input button {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: var(--purple);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.chatbot-suggestions {
    padding: 8px 16px 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.suggestion-btn {
    padding: 4px 12px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    transition: all var(--transition);
}

.suggestion-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--purple);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.3, 1), 
                transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-primary);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .split {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-list {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-cols {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .hero-visual svg {
        max-width: 280px;
    }
    
    .chatbot-container {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .chatbot-toggle {
        width: 60px;
        height: 60px;
    }
    
    #chatbot-widget {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .nav-right .btn {
        display: none;
    }
    
    .footer-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .section {
        padding: 48px 0;
    }
    
    .hero {
        padding: 100px 0 48px;
    }
}

/* ===== SERVICE DETAILED PAGES ===== */
.services-detailed {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-detail {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 32px;
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.service-detail:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-detail-letter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    opacity: 0.6;
}

.service-detail-content h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.service-detail-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.service-features li {
    color: var(--text-secondary);
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.service-price-label {
    color: var(--text-muted);
    font-size: 13px;
    font-family: 'IBM Plex Mono', monospace;
}

.service-price-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
}

/* ===== VALUES GRID ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px var(--gold-glow);
}

.value-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
}

.value-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 22px;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 14px;
    color: var(--text-muted);
}


/* ============================================
   HERO — video, canvas, overlay (versión única y final)
   ============================================ */

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
    filter: brightness(0.85) contrast(1.05) saturate(1.15);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(124, 111, 219, 0.08), transparent 70%),
        linear-gradient(180deg, rgba(10, 10, 18, 0.25) 0%, rgba(10, 10, 18, 0.7) 100%);
}

#starfield-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ============================================
   PROJECTS — imagen, overlay, hover (versión única y final)
   ============================================ */

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #12121E;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.06);
}

.project-image .project-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.project-image .project-overlay .project-status {
    margin: 0;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 18, 0.75);
}

/* ============================================
   BRAND MARK — logo con hover (versión única)
   ============================================ */

.brand-mark {
    width: 36px;
    height: 36px;
    display: block;
    flex-shrink: 0;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.5s ease;
}

.brand:hover .brand-mark {
    transform: rotate(-8deg) scale(1.08);
    filter: drop-shadow(0 0 12px rgba(199, 164, 92, 0.5));
}


/* ============================================
   RESPONSIVE — versión final mejorada
   ============================================ */

/* ===== TABLET (≤ 1024px) ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-grid {
        gap: 40px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ===== MÓVIL GRANDE (≤ 768px) ===== */
@media (max-width: 768px) {
    /* Container más compacto */
    .container {
        padding: 0 20px;
    }
    
    /* Header */
    .site-header {
        padding: 10px 0;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 18, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 15px;
    }
    
    .nav-links a.active {
        background: rgba(199, 164, 92, 0.1);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        order: 3;
    }
    
    .nav-right .btn-primary {
        display: none;
    }
    
    .lang-switch {
        padding: 3px;
    }
    
    .lang-switch a {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-visual svg {
        max-width: 260px;
    }
    
    .hero-text h1 {
        font-size: clamp(28px, 7vw, 40px);
        line-height: 1.15;
    }
    
    .hero-sub {
        font-size: 16px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .eyebrow {
        font-size: 10px;
        padding: 4px 12px;
    }
    
    .hero-actions {
        justify-content: center;
        gap: 12px;
    }
    
    .hero-actions .btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
        padding-top: 32px;
        text-align: center;
    }
    
    .stat-num {
        font-size: 30px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    /* Sections */
    .section {
        padding: 56px 0;
    }
    
    .section-head {
        margin-bottom: 32px;
    }
    
    .section-head h2 {
        font-size: clamp(24px, 5.5vw, 32px);
    }
    
    /* Split */
    .split {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: left;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-card {
        padding: 24px 20px;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-info {
        padding: 20px;
    }
    
    /* Process */
    .process-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .process-step {
        padding: 24px 20px;
    }
    
    /* Service Detailed */
    .service-detail {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }
    
    .service-detail-letter {
        font-size: 48px;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .value-card {
        padding: 24px 20px;
    }
    
    /* Contact */
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    /* CTA Band */
    .cta-band {
        padding: 56px 0;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Footer */
    .footer-top {
        gap: 32px;
    }
    
    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding-top: 20px;
        font-size: 12px;
    }
    
    /* Chatbot */
    #chatbot-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .chatbot-toggle {
        width: 56px;
        height: 56px;
    }
    
    .chatbot-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .chatbot-container {
        width: calc(100vw - 40px);
        max-width: 400px;
        height: calc(100vh - 120px);
        max-height: 520px;
        bottom: 80px;
        right: 0;
    }
}

/* ===== MÓVIL PEQUEÑO (≤ 480px) ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    /* Header más compacto */
    .brand {
        font-size: 16px;
    }
    
    .brand-mark {
        width: 30px !important;
        height: 30px !important;
    }
    
    .nav-right {
        gap: 8px;
    }
    
    /* Hero */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-text h1 {
        font-size: clamp(26px, 8vw, 34px);
    }
    
    .hero-visual svg {
        max-width: 200px;
    }
    
    /* Sections */
    .section {
        padding: 48px 0;
    }
    
    .section-head h2 {
        font-size: 24px;
    }
    
    /* Stats */
    .stat-num {
        font-size: 26px;
    }
    
    /* Footer */
    .footer-cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Chatbot a pantalla completa */
    #chatbot-widget {
        bottom: 16px;
        right: 16px;
    }
    
    .chatbot-toggle {
        width: 52px;
        height: 52px;
    }
    
    .chatbot-container {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    /* Formularios más compactos */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
        font-size: 16px; /* Previene zoom en iOS */
    }
    
    /* Evita zoom automático en iOS */
    input, textarea, select {
        font-size: 16px;
    }
}

/* ============================================
   PARTNERS PAGE
   ============================================ */

.partners-hero {
    min-height: 70vh;
    padding: 140px 0 80px;
}

/* Benefits grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--bg-card);
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 12px 40px var(--gold-glow);
}

.benefit-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Profiles */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.profile-card {
    background: var(--bg-card);
    padding: 28px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition);
}

.profile-card:hover {
    transform: translateY(-4px);
    border-color: var(--purple);
    box-shadow: 0 12px 30px var(--purple-glow);
}

.profile-emoji {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}

.profile-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.profile-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* Commission cards */
.commission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.commission-card {
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.commission-card.featured {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), 0 20px 60px var(--gold-glow);
    transform: scale(1.05);
}

.commission-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #0A0A12;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.commission-tier {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.commission-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 12px;
}

.commission-amount span {
    font-size: 32px;
}

.commission-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    min-height: 40px;
}

.commission-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.commission-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    padding-left: 24px;
    position: relative;
}

.commission-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* Partner form */
.partner-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0;
}

.form-check input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    accent-color: var(--purple);
}

.form-check label {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
}

.btn-large {
    padding: 18px 40px;
    font-size: 15px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: all var(--transition);
}

.faq-item[open] {
    border-color: var(--gold);
    background: rgba(199, 164, 92, 0.05);
}

.faq-item summary {
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: var(--gold);
    font-weight: 300;
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .commission-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .commission-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .partners-hero {
        padding: 100px 0 60px;
    }
    
    .benefits-grid,
    .profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .partner-form-wrapper {
        padding: 24px;
    }
    
    .commission-amount {
        font-size: 52px;
    }
}
