:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #1e293b;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span {
    color: var(--primary);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s;
}

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

.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 10px 25px;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Stats */
.stats-section {
    padding: 60px 0;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.stat-label {
    color: var(--text-muted);
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-alt {
    background: rgba(255,255,255,0.02);
}

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

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.project-card:hover {
    transform: translateY(-10px);
}

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

.project-tag {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-stack span {
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.btn-outline {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

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

.service-item {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
}

.service-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

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

.process-step {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    position: relative;
}

.step-num {
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
}

.process-step h3 {
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.testimonial-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
}

.quote {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 20px;
}

.user {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

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

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

.faq-item {
    background: var(--bg-card);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255,255,255,0.05);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
}

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

/* Footer */
footer {
    padding: 80px 0 40px 0;
    background: var(--bg-card);
    text-align: center;
}

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

.footer-cta p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-whatsapp-large {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.btn-whatsapp-large:hover {
    transform: scale(1.05);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

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

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

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
}

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

.setup-fee {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

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

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
}

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

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

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

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

.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);
}

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

.btn-email-large {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.btn-email-large:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

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

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .stats-grid, .services-grid, .process-grid, .testimonials-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
}

/* --- TIENDAPP ERP (BACKOFFICE) STYLES --- */
.agency-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

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

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

.agency-modal-content input {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
}

/* ERP Dashboard */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.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: 18px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.erp-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
}

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

.erp-section h2 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--primary);
}

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

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

.erp-table th, .erp-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.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;
}

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

.btn-link:hover {
    text-decoration: underline;
}
