/* =====================================================
   GHAFI ERP - Landing Page Styles
   Basado en la línea gráfica del sistema GHAFI V2
   ===================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

/* =====================================================
   CSS Variables - Paleta de Colores GHAFI
   ===================================================== */
:root {
    /* Colores Primarios */
    --ghafi-primary: #0e1319;
    --ghafi-secondary: #4e6a8b;
    --ghafi-tertiary: #7590b1;
    --ghafi-text: #455e7b;

    /* Gradiente del Logo */
    --ghafi-cyan: #00CED1;
    --ghafi-magenta: #FF1493;
    --ghafi-purple: #8B00FF;

    /* Fondos */
    --ghafi-bg-light: #f2f2f2;
    --ghafi-bg-white: #ffffff;
    --ghafi-bg-dark: #1a1a1a;

    /* Bordes */
    --ghafi-border: #dedede;

    /* Sombras */
    --ghafi-shadow: 0 10px 40px rgba(14, 19, 25, 0.1);
    --ghafi-shadow-lg: 0 20px 60px rgba(14, 19, 25, 0.15);
}

/* =====================================================
   Base Styles
   ===================================================== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--ghafi-primary);
    background-color: var(--ghafi-bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--ghafi-primary);
}

/* =====================================================
   Navbar
   ===================================================== */
.navbar-ghafi {
    background: var(--ghafi-bg-white);
    box-shadow: var(--ghafi-shadow);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-ghafi.scrolled {
    padding: 0.5rem 0;
}

.navbar-ghafi .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ghafi-primary);
}

.navbar-ghafi .navbar-brand img {
    height: 45px;
    width: auto;
}

.navbar-ghafi .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--ghafi-text) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-ghafi .nav-link:hover {
    color: var(--ghafi-primary) !important;
}

.btn-demo {
    background: linear-gradient(135deg, var(--ghafi-cyan), var(--ghafi-purple), var(--ghafi-magenta));
    border: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 0, 255, 0.3);
    color: white;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--ghafi-bg-white) 0%, var(--ghafi-bg-light) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.05), rgba(139, 0, 255, 0.05), rgba(255, 20, 147, 0.05));
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--ghafi-cyan), var(--ghafi-purple), var(--ghafi-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--ghafi-text);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-ghafi {
    background: linear-gradient(135deg, var(--ghafi-cyan), var(--ghafi-purple), var(--ghafi-magenta));
    border: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary-ghafi:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 0, 255, 0.3);
    color: white;
}

.btn-secondary-ghafi {
    background: transparent;
    border: 2px solid var(--ghafi-primary);
    color: var(--ghafi-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary-ghafi:hover {
    background: var(--ghafi-primary);
    color: white;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(14, 19, 25, 0.2));
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ghafi-cyan), var(--ghafi-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--ghafi-text);
    font-size: 0.9rem;
}

/* =====================================================
   Features Section
   ===================================================== */
.features-section {
    padding: 6rem 0;
    background: var(--ghafi-bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.1), rgba(139, 0, 255, 0.1));
    color: var(--ghafi-purple);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--ghafi-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: var(--ghafi-bg-white);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--ghafi-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--ghafi-border);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--ghafi-shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.1), rgba(139, 0, 255, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--ghafi-purple);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--ghafi-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =====================================================
   Modules Section
   ===================================================== */
.modules-section {
    padding: 6rem 0;
    background: var(--ghafi-bg-light);
}

.module-card {
    background: var(--ghafi-bg-white);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    height: 100%;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ghafi-shadow);
    border-color: var(--ghafi-cyan);
}

.module-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ghafi-cyan), var(--ghafi-purple), var(--ghafi-magenta));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.module-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
}

.module-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.module-text {
    color: var(--ghafi-text);
    font-size: 0.85rem;
}

/* =====================================================
   Benefits Section
   ===================================================== */
.benefits-section {
    padding: 6rem 0;
    background: var(--ghafi-primary);
    color: white;
}

.benefits-section .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ghafi-cyan);
}

.benefits-section .section-title,
.benefits-section .section-description {
    color: white;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-check {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: linear-gradient(135deg, var(--ghafi-cyan), var(--ghafi-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-check svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

.benefit-content h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.benefit-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--ghafi-bg-white) 0%, var(--ghafi-bg-light) 100%);
}

.cta-box {
    background: linear-gradient(135deg, var(--ghafi-cyan), var(--ghafi-purple), var(--ghafi-magenta));
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: white;
    color: var(--ghafi-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    color: var(--ghafi-primary);
}

/* =====================================================
   Footer
   ===================================================== */
.footer-ghafi {
    background: var(--ghafi-primary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    height: 40px;
}

.footer-brand span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--ghafi-cyan);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Scroll animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
