* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-primary: #3B82F6;
    --blue-dark: #1E40AF;
    --blue-light: #60A5FA;
    --cyan: #22D3EE;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -1px;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--blue-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('fondito3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 64, 175, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-heading {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-text {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary {
    padding: 1rem 2.5rem;
    background: var(--blue-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.cta-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.cta-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-box {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 3rem;
    align-items: start;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: transform 0.3s;
}

.service-box.reverse {
    grid-template-columns: 1fr 100px;
    direction: rtl;
}

.service-box.reverse > * {
    direction: ltr;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--blue-primary);
    opacity: 0.2;
    line-height: 1;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.service-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.service-list li {
    color: var(--text-gray);
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue-primary);
    font-weight: 700;
}

.tech-highlight {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    border-radius: 20px;
    color: white;
    text-align: center;
}

.tech-highlight h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tech-highlight p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    background: var(--white);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--white);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.contact-item {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
}

.contact-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-gray);
}

/* Footer */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .brand-icon {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
}

.footer-brand .brand-name {
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
    animation: pulse-wa 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #128C7E;
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    color: white;
}

@keyframes pulse-wa {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* Chat Widget */
.help-chat {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
}

.help-chat.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.chat-header {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    color: white;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-brand svg {
    width: 30px;
    height: 30px;
}

.chat-brand h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.chat-brand p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-body {
    padding: 1.5rem;
}

.chat-message {
    margin-bottom: 1.5rem;
}

.chat-message p {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 15px;
    display: inline-block;
    max-width: 80%;
}

.chat-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--blue-primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.3s;
}

.chat-action:hover {
    background: var(--blue-dark);
}

.chat-action svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .hero-heading {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .hero-section {
        background-attachment: scroll;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-box {
        grid-template-columns: 60px 1fr;
        padding: 2rem;
    }

    .service-box.reverse {
        grid-template-columns: 1fr 60px;
    }

    .service-number {
        font-size: 3rem;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .help-chat {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 100px;
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 2rem;
    }

    .cta-primary,
    .cta-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .service-box {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-box.reverse {
        grid-template-columns: 1fr;
    }

    .service-number {
        font-size: 2.5rem;
    }
}

