/* ==========================================================================
   MI ERP FÁCIL (mierpfacil.com) - Estilos Principales del SaaS
   Diseño: Moderno, Corporativo, Ágil y de Alta Conversión
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --success: #10b981;
    --dark: #0f172a;
    --dark-card: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 20px 30px -10px rgba(37, 99, 235, 0.25);
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--gray-50);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Header & Nav */
.saas-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.85rem 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

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

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--gray-200);
}

.btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dbeafe;
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.2rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 780px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2.5rem;
}

.hero-perks {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-perks span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-perks i {
    color: var(--success);
}

/* Sections */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Comparison Table (Imagen 1) */
.comparison-section {
    padding: 5rem 0;
    background: white;
}

.comparison-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th {
    background: var(--dark);
    color: white;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.comparison-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
}

.comparison-table tr:hover {
    background-color: var(--gray-50);
}

.badge-no {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #ef4444;
    background: #fee2e2;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.badge-yes {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #065f46;
    background: #d1fae5;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.badge-warn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #b45309;
    background: #fef3c7;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* 6 Key Pillars Grid */
.pillars-section {
    padding: 5rem 0;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
}

.pillar-card {
    background: white;
    padding: 2.25rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.pillar-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.pillar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.pillar-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Industries (Imagen 2) */
.industries-section {
    padding: 5rem 0;
    background: #0f172a;
    color: white;
}

.industries-section h2 {
    color: white;
}

.industries-section .section-desc {
    color: var(--gray-400);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.industry-card:hover {
    background: #273549;
    border-color: var(--primary);
    transform: translateY(-4px);
}

.industry-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.industry-card h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.industry-card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.popular-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    text-transform: uppercase;
}

.price-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price-desc {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.price-features {
    list-style: none;
    margin: 2rem 0;
}

.price-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-800);
}

.price-features li i {
    color: var(--success);
}

.price-features li.disabled {
    color: var(--gray-400);
    text-decoration: line-through;
}

.price-features li.disabled i {
    color: var(--gray-400);
}

/* Modal de Acceso */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-card {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 90%;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-400);
}

/* Footer */
.saas-footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 3rem 0;
    text-align: center;
    color: var(--gray-600);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .nav-links {
        display: none;
    }
    .comparison-table th, .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}
