:root {
    --bg-color: #0b0c10;
    --text-main: #f8f8f2;
    --text-muted: #a0aab2;
    --primary-color: #6c5ce7;
    --primary-hover: #5a4bcf;
    --accent-color: #00cec9;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --wsp-color: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Glassmorphism utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Typography styles */
h1, h2, h3 {
    font-weight: 800;
}

span {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 85px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
    /* Forzando fundido absoluto: El fondo blanco se vuelve negro intenso y luego transparente. Los colores oscuros se aclaran a colores vivos */
    mix-blend-mode: screen;
    filter: invert(1) contrast(3) brightness(1.2);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    padding-top: 150px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 10;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-graphics {
    position: relative;
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    right: 20%;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-image {
    width: 100%;
    max-width: 300px;
    z-index: 2;
    position: relative;
    animation: float 6s ease-in-out infinite;
    /* Margen inferor ajustado */
    margin-bottom: 15px;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    bottom: 10%;
    left: 20%;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes floatImage {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
    100% { transform: translateY(0px) scale(1); }
}

.integration-badge {
    position: relative;
    z-index: 3;
    padding: 12px 30px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 50px;
    margin-top: 15px;
    animation: float 4s ease-in-out infinite reverse;
    background: rgba(11, 12, 16, 0.6);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.logo-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.logo-circle:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo-circle img {
    width: 75%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.plus-icon {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: 300;
}

.badge-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.decor-card h3 {
    margin-bottom: 10px;
}

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

/* Services Section */
.services {
    padding: 100px 5%;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    padding: 30px;
    text-align: left;
    transition: transform 0.3s, background 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Value Prop */
.value-prop {
    padding: 100px 5%;
    background: linear-gradient(135deg, rgba(108,92,231,0.1) 0%, rgba(0,206,201,0.1) 100%);
    display: flex;
    justify-content: center;
}

.value-content {
    max-width: 800px;
    text-align: center;
}

.value-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.value-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.check-list {
    list-style: none;
    display: inline-block;
    text-align: left;
}

.check-list li {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Contact form */
.contact {
    padding: 100px 5%;
    display: flex;
    justify-content: center;
}

.contact-box {
    width: 100%;
    max-width: 600px;
    padding: 40px;
}

.contact-box h2 {
    margin-bottom: 10px;
    text-align: center;
}

.contact-box p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

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

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    border-color: var(--accent-color);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 5%;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

footer p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 10px;
}

.copyright {
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.float-wsp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--wsp-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.float-wsp:hover {
    transform: scale(1.1);
}

.float-wsp svg {
    width: 35px;
    height: 35px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 160px;
    }
    
    .hero-graphics {
        width: 100%;
        margin-top: 40px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        left: 0;
        padding: 30px 0;
    }

    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
