@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #06b6d4;
    --accent2: #8b5cf6;
    --bg-dark: #030712;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #8494a7;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-3: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --glow: 0 0 60px rgba(99, 102, 241, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
    background: var(--glass);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--gradient-1);
    color: white !important;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
    animation: meshMove 20s ease-in-out infinite;
}

@keyframes meshMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, -3%) rotate(1deg); }
    50% { transform: translate(-1%, 2%) rotate(-1deg); }
    75% { transform: translate(-2%, -1%) rotate(0.5deg); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(3,7,18,0) 0%, var(--bg-dark) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-content h1 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content > p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

/* ===== STATS ===== */
.stats-section {
    padding: 40px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.stat-item:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.stat-icon {
    font-size: 1.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.bg-alt {
    background: rgba(99, 102, 241, 0.03);
}

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

.section-header.center {
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99,102,241,0), rgba(6,182,212,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::before {
    background: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(6,182,212,0.5));
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.project-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--bg-dark) 100%);
    opacity: 0.5;
    pointer-events: none;
}

.project-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    z-index: 1;
}

.project-info {
    padding: 28px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tech-stack span {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.service-item {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.service-item:hover::before {
    opacity: 1;
}

.service-item i {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: block;
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.process-step {
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    position: relative;
    transition: all 0.3s;
}

.process-step:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.step-num {
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(6,182,212,0.05) 100%);
    box-shadow: var(--glow);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-weight: 500;
}

.price {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

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

.setup-fee {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 4px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.pricing-features li i.fa-check {
    color: var(--accent);
}

.pricing-features li i.fa-xmark {
    color: #ef4444;
}

.pricing-features li.disabled {
    opacity: 0.3;
    text-decoration: line-through;
}

.pricing-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-actions .btn-primary,
.pricing-actions .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.btn-link-small {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    text-align: center;
    transition: color 0.3s;
}

.btn-link-small:hover {
    color: var(--primary-light);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--primary);
}

.quote {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-style: italic;
}

.user h4 {
    font-size: 1rem;
    letter-spacing: -0.3px;
}

.user span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== FAQ ===== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--glass-border);
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s;
    font-size: 0.9rem;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 300px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
    padding: 80px 0 40px;
    background: linear-gradient(to bottom, var(--bg-dark), #0a0f1e);
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--gradient-1);
}

.footer-cta {
    margin-bottom: 60px;
}

.footer-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.footer-cta p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 16px 36px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s;
}

.btn-whatsapp-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.3);
}

.btn-email-large {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 16px 36px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-email-large:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.cotizacion-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* ===== STREAMING/RETRO BANNER ===== */
.other-services-banner {
    background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, rgba(6,182,212,0.05) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    gap: 30px;
    flex-wrap: wrap;
}

.other-services-banner h3 {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.other-services-banner p {
    color: var(--text-muted);
    margin-top: 8px;
}

.banner-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

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

/* ===== MODAL ===== */
.agency-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.agency-modal.active { display: flex; }

.agency-modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--primary);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--glow);
}

.agency-modal-content input {
    width: 100%;
    padding: 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    transition: border-color 0.3s;
}

.agency-modal-content input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== ERP / ADMIN ===== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.erp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.erp-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.erp-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
}

.erp-section {
    margin-bottom: 40px;
}

.erp-section h2 {
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.erp-table-container {
    background: var(--bg-card);
    border-radius: 16px;
    overflow-x: auto;
    border: 1px solid var(--glass-border);
}

.erp-table {
    width: 100%;
    border-collapse: collapse;
}

.erp-table th, .erp-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.erp-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.btn-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--accent);
}

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

@media (max-width: 768px) {
    .stats-grid,
    .services-grid,
    .process-grid,
    .testimonials-grid,
    .pricing-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .other-services-banner {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .pricing-grid {
        max-width: 400px;
        margin: 0 auto;
    }
}
