/* ============================================
   FACTUPRO LANDING - VARIABLES
   ============================================ */
:root {
    /* Colors - Paleta corporativa factuPRO */
    --primary-color: #405189;
    --primary-dark: #2a3a5f;
    --secondary-color: #556db4;
    --accent-color: #10B981;
    
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --text-white: #FFFFFF;
    
    --bg-white: #FFFFFF;
    --bg-light: #f5f0e8;  /* Beige del ERP */
    --bg-beige: #efe8dc;  /* Beige más oscuro */
    --bg-dark: #2a3a5f;   /* Azul oscuro del menú */
    
    --gradient-1: linear-gradient(to bottom, #405189 0%, #2a3a5f 100%);
    --gradient-2: linear-gradient(135deg, #405189 0%, #556db4 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #e5d6c4;
    background-image: url('/portal/assets/img/organic-normal.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 28px;
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.nav__logo-img {
    width: 40px;
    height: 40px;
}

.nav__logo strong {
    color: var(--primary-color);
    font-weight: 900;
}

.nav__list {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav__link {
    font-weight: 500;
    color: var(--text-light);
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__actions {
    display: flex;
    gap: 16px;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--text-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(64, 81, 137, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(64, 81, 137, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(64, 81, 137, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(64, 81, 137, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero__title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero__stats {
    display: flex;
    gap: 48px;
}

.stat h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat p {
    font-size: 14px;
    color: var(--text-light);
}

/* Hero Image */
.hero__image-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
}

.floating-card {
    position: absolute;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 24px;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    font-size: 14px;
}

.card-1 {
    top: 50px;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 250px;
    right: 0;
    animation-delay: 1s;
}

.card-3 {
    bottom: 100px;
    left: 50px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero__mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
}

.mockup-screen {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.mockup-header {
    background: #F3F4F6;
    padding: 12px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E5E7EB;
}

.mockup-content {
    padding: 40px;
}

.dashboard-preview {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    height: 200px;
}

.chart-bar {
    flex: 1;
    background: var(--gradient-1);
    border-radius: 8px 8px 0 0;
    animation: grow 1.5s ease-in-out infinite alternate;
}

.chart-bar:nth-child(1) { height: 60%; animation-delay: 0s; }
.chart-bar:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { height: 100%; animation-delay: 0.4s; }
.chart-bar:nth-child(4) { height: 70%; animation-delay: 0.6s; }

@keyframes grow {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

/* Hero Background */
.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(60px);
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #405189 0%, transparent 70%);
    top: -300px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #556db4 0%, transparent 70%);
    bottom: -200px;
    left: -150px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #10B981 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation: float-slow 18s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
    }
    50% { 
        transform: translate(30px, -30px) scale(1.05);
    }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(64, 81, 137, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
}

.section-description {
    font-size: 20px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   MODULES SECTION
   ============================================ */
.modules {
    padding: var(--section-padding) 0;
    background: transparent;
    position: relative;
}

.modules::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(64, 81, 137, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.modules__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.module-card {
    padding: 40px;
    background: var(--bg-light);
    border: 2px solid var(--bg-beige);
    border-radius: 16px;
    transition: var(--transition);
}

.module-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(64, 81, 137, 0.15);
}

.module-card__icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.module-card__icon i {
    font-size: 32px;
    color: white;
}

.module-card__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.module-card__description {
    color: var(--text-light);
    margin-bottom: 24px;
}

.module-card__features {
    list-style: none;
}

.module-card__features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.module-card__features i {
    color: var(--accent-color);
    font-size: 18px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: var(--section-padding) 0;
    background: transparent;
    position: relative;
}

.features::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(85, 109, 180, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature {
    text-align: center;
}

.feature__icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 30px rgba(64, 81, 137, 0.1);
}

.feature__icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.feature h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

.cta__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta__title {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 24px;
}

.cta__description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 28px;
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.footer__logo img {
    width: 40px;
}

.footer__logo strong {
    font-weight: 900;
}

.footer__description {
    margin-bottom: 24px;
    line-height: 1.8;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
}

.footer__title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a:hover,
.footer__contact a:hover {
    color: var(--primary-color);
}

.footer__contact {
    list-style: none;
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer__contact i {
    color: var(--primary-color);
    font-size: 18px;
}

.footer__bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a:hover {
    color: var(--primary-color);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .hero__container {
        grid-template-columns: 1fr;
    }
    
    .hero__image {
        order: -1;
    }
    
    .modules__grid,
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: white;
        padding: 80px 24px;
        transition: right 0.3s;
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
    }
    
    .nav__toggle,
    .nav__close {
        display: block;
    }
    
    .nav__close {
        position: absolute;
        top: 24px;
        right: 24px;
    }
    
    .nav__actions {
        flex-direction: column;
    }
    
    .hero__title {
        font-size: 36px;
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .modules__grid,
    .features__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   GRUPO EMPRESARIAL SECTION
   ============================================ */
.group-section {
    padding: var(--section-padding) 0;
    background: transparent;
}

.group__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.group-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(64, 81, 137, 0.1);
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
}

.group-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(64, 81, 137, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.group-card--featured {
    border-color: var(--primary-color);
    border-width: 3px;
    background: rgba(64, 81, 137, 0.05);
}

.group-card__icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.group-card__icon i {
    font-size: 40px;
    color: white;
}

.group-card__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.group-card__role {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.group-card__description {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.group-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.group-card__link:hover {
    gap: 12px;
}

/* ============================================
   CLIENTES SECTION
   ============================================ */
.clients-section {
    padding: var(--section-padding) 0;
    background: rgba(255, 255, 255, 0.5);
}

.clients-carousel {
    margin-top: 60px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* ============================================
   RESPONSIVE - GRUPO Y CLIENTES
   ============================================ */
@media (max-width: 968px) {
    .hero__container {
        grid-template-columns: 1fr;
    }
    
    .hero__image {
        order: -1;
    }
    
    .modules__grid,
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__content {
        grid-template-columns: 1fr 1fr;
    }
    
    .group__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .group__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: white;
        padding: 80px 24px;
        transition: right 0.3s;
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
    }
    
    .nav__toggle,
    .nav__close {
        display: block;
    }
    
    .nav__close {
        position: absolute;
        top: 24px;
        right: 24px;
    }
    
    .nav__actions {
        flex-direction: column;
    }
    
    .hero__title {
        font-size: 36px;
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .modules__grid,
    .features__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
    }
    
    .group-card {
        padding: 30px 20px;
    }
    
    .client-logo {
        height: 100px;
    }
}












