@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@400;600;700;800&display=swap');

:root {
    /* Primary Palette */
    --primary: #FF8C00; /* Naranja corporativo */
    --primary-dark: #E67E00;
    --primary-light: #FFB347;
    
    /* Neutrals */
    --bg-dark: #1E1E1E;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --text-main: #1E1E1E;
    --text-muted: #666666;
    --text-on-dark: #FFFFFF;
    
    /* Technical Blues (Subtle) */
    --tech-blue: #007AFF;
    --tech-blue-soft: rgba(0, 122, 255, 0.1);
    
    /* Layout */
    --container-xl: 1280px;
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 12px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

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

.container {
    width: 90%;
    max-width: var(--container-xl);
    margin: 0 auto;
}

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

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--tech-blue-soft);
    color: var(--tech-blue);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Client Access (Intuitive Style) */
.client-access {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 10px;
}

.client-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.client-platform-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.client-platform-link:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

.desktop-only {
    display: flex;
}

.mobile-actions {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px;
    border-top: 1px solid #EEE;
    margin-top: 20px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--bg-dark);
    font-size: 24px;
    cursor: pointer;
}

/* Header Scrolled */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

.nav {
    display: flex;
    justify-content: center;
}

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

.nav a {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.85)), url('../img/hero-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 140, 0, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.05;
    top: -100px;
    right: -100px;
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content h1 {
    font-size: clamp(40px, 5vw, 64px);
    margin-bottom: 24px;
    color: var(--bg-dark);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-visual {
    position: relative;
}

.mockup-container {
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg), 0 30px 60px rgba(0,0,0,0.1);
    padding: 12px;
    border: 1px solid rgba(255,140,0,0.1);
    position: relative;
    transform: perspective(1000px) rotateY(-3deg);
    transition: var(--transition-smooth);
}

.mockup-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* Float Cards */
.float-card {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}

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

/* Stats Section */
.stats {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Technology Section */
.tech-section {
    background: #FAFAFA;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.tech-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 24px;
}

/* Contact Form */
.contact-section {
    background: var(--bg-dark);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #EEE;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Gallery Carousel */
.gallery-section {
    background: var(--bg-light);
    overflow: hidden;
}

.gallery-container {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 400px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #CCC;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 20px;
}

/* Service List */
.service-list {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.service-list i {
    color: var(--primary);
    width: 18px;
}

/* Contact Process */
.process-step-vertical {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
}

/* Blog Section */
.blog-section {
    background: #FFF;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid #F0F0F0;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-img {
    height: 220px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--bg-dark);
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-footer {
    padding: 20px 25px;
    border-top: 1px solid #F5F5F5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

.blog-link i {
    transition: transform 0.3s;
}

.blog-link:hover i {
    transform: translateX(5px);
}

/* Social Links Footer */
.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* FAQ Floating Widget */
.faq-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.faq-toggle {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
}

.faq-toggle:hover {
    transform: scale(1.1);
}

.faq-toggle-text {
    position: absolute;
    left: 70px;
    background: var(--bg-dark);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
}

.faq-toggle:hover .faq-toggle-text {
    opacity: 1;
    transform: translateX(0);
}

.faq-panel {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 380px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.faq-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.faq-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-header h3 {
    font-size: 18px;
    margin: 0;
}

.faq-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.faq-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.faq-item {
    border-bottom: 1px solid #F0F0F0;
}

.faq-question {
    width: 100%;
    padding: 15px 20px;
    text-align: left;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    font-size: 12px;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #FAFAFA;
}

.faq-answer-inner {
    padding: 15px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

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

/* Responsive FAQ */
@media (max-width: 480px) {
    .faq-panel {
        width: calc(100vw - 40px);
        left: -10px;
    }
}

/* Mobile Responsiveness Refined */
@media (max-width: 1200px) {
    .nav ul {
        gap: 15px;
    }
    .nav a {
        font-size: 13px;
    }
    .header .container {
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .header .container {
        justify-content: space-between;
    }

    .hero {
        padding-top: 150px;
    }

    .desktop-only {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        transition: 0.3s;
        z-index: 1001;
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav ul li {
        width: 100%;
        border-bottom: 1px solid #F5F5F5;
    }

    .nav ul li a {
        display: block;
        padding: 20px;
        font-size: 18px;
    }

    .mobile-actions {
        display: flex;
    }

    .client-access {
        align-items: flex-start;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .mockup-container {
        transform: none !important;
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-btns {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .float-card {
        display: none !important;
    }

    .faq-panel {
        width: calc(100vw - 40px);
        max-width: 350px;
        left: -10px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .carousel-slide {
        min-width: 280px;
    }
}

/* WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 1000;
}
