/* ==========================================
   DIGITALIZAR - Stylesheet
   ========================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #6366F1;
    --secondary: #8B5CF6;
    --accent: #3B82F6;

    --dark: #0F172A;
    --dark-light: #1E293B;
    --gray: #64748B;
    --gray-light: #94A3B8;
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-gray: #F1F5F9;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ==========================================
   HEADER
   ========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 24px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

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

.nav-link {
    font-weight: 500;
    color: var(--dark-light);
    position: relative;
    font-size: 15px;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-cta {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: var(--primary-dark);
    color: white;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ==========================================
   HERO
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: white;
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease;
}

.highlight {
    background: linear-gradient(120deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle strong {
    font-weight: 700;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    opacity: 0.8;
    font-size: 14px;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   SECTIONS
   ========================================== */

section {
    padding: var(--section-padding) 0;
}

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

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--dark);
}

.section-subtitle {
    font-size: 20px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   PROBLEM SECTION
   ========================================== */

.problem-section {
    background: var(--bg-gray);
}

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

.problem-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.problem-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.problem-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.problem-card p {
    color: var(--gray);
    line-height: 1.7;
}

.problem-cta {
    text-align: center;
    padding: 40px;
    background: var(--dark);
    border-radius: 16px;
    color: white;
}

.problem-cta-text {
    font-size: 24px;
    font-weight: 600;
}

.problem-cta-text strong {
    color: #FFD700;
}

/* ==========================================
   SOLUTION SECTION
   ========================================== */

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.solution-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--bg-gray);
    transition: var(--transition);
    position: relative;
}

.solution-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.solution-card.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
}

.solution-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #FFD700;
    color: var(--dark);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-gray);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.solution-card.featured .solution-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.solution-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.solution-card p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.solution-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.solution-features {
    list-style: none;
    padding: 0;
}

.solution-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
}

.solution-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.solution-card.featured .solution-features li::before {
    color: #FFD700;
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */

.portfolio-section {
    background: var(--bg-alt);
}

.portfolio-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--bg-gray);
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.portfolio-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--bg-gray);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-light);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(79, 70, 229, 0.95);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    padding: 24px;
}

.portfolio-category {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-gray);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.portfolio-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.portfolio-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-badge {
    padding: 4px 10px;
    background: var(--bg-alt);
    border: 1px solid var(--bg-gray);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
}

/* ==========================================
   PROCESS SECTION
   ========================================== */

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bg-gray);
}

.process-step {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.process-content {
    flex: 1;
    padding-top: 12px;
}

.process-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.process-content p {
    color: var(--gray);
    line-height: 1.7;
}

/* ==========================================
   DIFFERENTIALS SECTION
   ========================================== */

.differentials-section {
    background: var(--bg-gray);
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.differential-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.differential-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.differential-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.differential-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.differential-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 48px;
}

.cta-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-option {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 40px 32px;
    border-radius: 20px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.cta-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-8px);
}

.cta-option-icon {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-option h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-option p {
    opacity: 0.9;
    margin-bottom: 16px;
}

.cta-option-arrow {
    font-size: 24px;
    font-weight: 700;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--primary-light);
}

.footer-logo-img {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
    display: block;
}

.footer-description {
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-light);
    transition: var(--transition);
}

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

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--gray-light);
}

.footer-contact svg {
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--gray-light);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    font-size: 14px;
}

/* ==========================================
   WHATSAPP FLOAT
   ========================================== */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .header-content {
        height: 64px;
    }

    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        gap: 16px;
    }

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

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translateY(7px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-7px);
    }

    .hero {
        min-height: 100svh;
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    .problem-grid,
    .solution-grid,
    .portfolio-grid,
    .differentials-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        gap: 24px;
    }

    .process-timeline::before {
        left: 28px;
    }

    .process-step {
        gap: 20px;
    }

    .process-number {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .cta-options {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .problem-cta-text {
        font-size: 18px;
    }
}
