:root {
    /* Colors */
    --primary: #0B1E3B;
    --secondary: #00F0FF;
    --accent: #64748B;
    --dark-bg: #0F172A;
    --light-bg: #FFFFFF;
    --text-light: #F8FAFC;
    --text-dark: #1E293B;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* Fluid Typography */
h1 {
    font-size: clamp(1.75rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: clamp(40px, 5vw, 60px);
    width: auto;
    transition: height 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: block;
}

.nav-links a:hover {
    color: var(--secondary);
    background-color: rgba(0, 240, 255, 0.1);
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: 100vh;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    color: var(--text-light);
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--accent);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: clamp(0.875rem, 2.5vw, 1rem) clamp(2rem, 5vw, 2.5rem);
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.2);
}

/* About Section */
.section {
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
}

/* Pain vs Solution Section */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
}

.solution-card {
    background: white;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.solution-card:active {
    transform: translateY(-2px);
}

.solution-icon {
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.solution-card .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.pain-point {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed #e2e8f0;
}

.pain-point .label {
    color: var(--accent);
}

.pain-point p {
    color: var(--text-dark);
    font-weight: 500;
}

.nexa-solution .label {
    color: var(--secondary);
}

.nexa-solution p {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 5vw, 2.5rem);
}

.service-card {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:active {
    transform: translateY(-5px);
}

.service-icon {
    width: clamp(45px, 6vw, 60px);
    height: clamp(45px, 6vw, 60px);
    color: var(--secondary);
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.service-card p {
    color: var(--accent);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.7;
}

/* Tech Stack Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
    justify-items: center;
}

.tech-item img {
    width: clamp(60px, 8vw, 80px);
    height: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.tech-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* UVP Section */
.uvp-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.uvp-intro {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.uvp-main {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary);
    margin-bottom: 3rem;
    line-height: 1.2;
}

.uvp-main span {
    color: var(--secondary);
}

.uvp-text {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.uvp-text p {
    margin-bottom: 1.5rem;
}

.uvp-closing {
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.footer-logo .logo-img {
    height: clamp(70px, 10vw, 100px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: var(--accent);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Tablets */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .about-grid {
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .tech-grid {
        gap: 3rem;
    }
    
    .solution-card {
        padding: 2rem;
    }
    
    .service-card {
        padding: 3rem 2rem;
    }
}

/* Móvil Grande */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .hero {
        height: 90vh;
        min-height: 600px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .about-grid,
    .services-grid,
    .footer-grid,
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .uvp-main {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .uvp-text {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .solution-card {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 2.5rem 1.5rem;
    }
}

/* Móvil Pequeño */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .uvp-main {
        font-size: 2rem;
    }
    
    .uvp-text {
        font-size: 1.1rem;
    }
    
    .solution-card {
        padding: 1.25rem;
    }
    
    .service-card {
        padding: 2rem 1rem;
    }
    
    .footer-logo .logo-img {
        height: 80px;
    }
    
    .hero {
        padding-top: 70px;
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (max-width: 768px) {
    .hero {
        min-height: 500px;
    }
    
    .nav-links {
        gap: 2rem;
    }
}
