/* === CSS VARIABLES === */
:root {
    --navy-blue: #0a1628;
    --navy-light: #142241;
    --accent-electric: #38bdf8;
    --accent-gold: #d4af37;
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

.header.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: var(--shadow-lg);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent-electric);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-300);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

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

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

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

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-light) 50%, var(--navy-blue) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80') center/cover;
    opacity: 0.08;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--accent-electric);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-electric), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typewriter-text {
    position: relative;
    display: inline-block;
    min-width: 320px;
    min-height: 1.2em;
    text-align: left;
    vertical-align: top;
}

.typewriter-text::after {
    content: '|';
    position: absolute;
    color: var(--accent-electric);
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-electric), #0ea5e9);
    color: var(--navy-blue);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* === SOLUTIONS SECTION === */
.solutions {
    padding: 5rem 0 6rem;
    background: var(--gray-100);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent-electric);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--navy-blue);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

/* Solutions Carousel */
.solutions-carousel {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

.solutions-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.solution-tab {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.solution-tab:hover {
    border-color: var(--gray-200);
    transform: translateX(4px);
}

.solution-tab.active {
    background: var(--navy-blue);
    border-color: var(--navy-blue);
}

.solution-tab.active .tab-name {
    color: var(--white);
}

.solution-tab.active .tab-desc {
    color: var(--gray-300);
}

.solution-tab.active .tab-icon svg {
    stroke: var(--accent-electric);
}

.tab-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tab-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--navy-blue);
    transition: var(--transition);
}

.tab-content {
    display: flex;
    flex-direction: column;
}

.tab-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy-blue);
    transition: var(--transition);
}

.tab-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: var(--transition);
}

/* Solution Panels */
.solutions-content {
    position: relative;
    min-height: 400px;
}

.solution-panel {
    display: none;
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.3s ease;
}

.solution-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    margin-bottom: 1.5rem;
}

.panel-tag {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-electric);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.panel-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy-blue);
    letter-spacing: -0.02em;
}

.panel-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-800);
    font-weight: 500;
}

.feature-icon {
    color: var(--accent-electric);
    font-weight: 700;
}

/* Carousel Controls (Mobile) */
.carousel-controls {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.1);
    border: 1px solid rgba(10, 22, 40, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.carousel-arrow:hover {
    background: rgba(10, 22, 40, 0.2);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--navy-blue);
    opacity: 0.7;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot:hover {
    background: rgba(10, 22, 40, 0.35);
}

.carousel-dot.active {
    background: var(--accent-electric);
    transform: scale(1.2);
}

/* === PARTNERS SECTION === */
.partners {
    padding: 3rem 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.partners-title {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: var(--transition);
    cursor: default;
}

.partner-item:hover {
    opacity: 1;
}

.partner-item svg {
    width: 80px;
    height: 40px;
    color: var(--gray-600);
    transition: var(--transition);
}

.partner-item:hover svg {
    color: var(--navy-blue);
}

.partner-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: var(--transition);
}

.partner-item:hover .partner-badge {
    color: var(--navy-blue);
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.badge-number {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.partner-badge--text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.partner-badge--argentina {
    flex-direction: row;
    gap: 0.5rem;
}

.partner-badge--argentina svg {
    width: 28px;
    height: 28px;
}

.partner-badge--argentina span {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Products Section (keep for backwards compat) */
.products {
    padding: 5rem 0 6rem;
    background: var(--gray-100);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent-electric);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--navy-blue);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

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

.product-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-electric), var(--accent-gold));
    opacity: 0;
    transition: var(--transition);
}

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

.product-card:hover::before {
    opacity: 1;
}

.product-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--navy-blue), var(--navy-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.product-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-electric);
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 0.75rem;
}

.product-tag {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-electric);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy-blue);
    font-weight: 600;
    transition: var(--transition);
}

.product-link:hover {
    color: var(--accent-electric);
    gap: 0.75rem;
}

/* === ABOUT SECTION === */
.about {
    padding: 5rem 0 6rem;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.3), transparent);
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.about-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--navy-blue);
    font-weight: 500;
}

.about-feature svg {
    width: 20px;
    height: 20px;
    color: var(--accent-electric);
}

/* === CONTACT SECTION === */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-light) 100%);
    text-align: center;
}

.contact .section-title {
    color: var(--white);
}

.contact .section-subtitle {
    color: var(--gray-300);
}

.contact-cta {
    margin-top: 2rem;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
    width: 24px;
    height: 24px;
}

/* === FOOTER === */
.footer {
    background: var(--navy-blue);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-300);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-electric);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-electric);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

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

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .solutions-carousel {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .solutions-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .solution-tab {
        flex-shrink: 0;
        padding: 0.75rem 1rem;
    }

    .tab-desc {
        display: none;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .carousel-controls {
        display: flex;
    }

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

    .about-image {
        order: -1;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--navy-blue);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

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

    .menu-toggle {
        display: flex;
    }

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

    .btn {
        justify-content: center;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

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

    .social-links {
        justify-content: center;
    }
}