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

    :root {
        --primary: #6366f1;
        --secondary: #8b5cf6;
        --accent: #ec4899;
        --dark: #0f172a;
        --light: #f8fafc;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        background: var(--dark);
        color: var(--light);
        overflow-x: hidden;
    }

    /* Animated Background */
    .bg-animation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }

    .bg-animation::before {
        content: '';
        position: absolute;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
        animation: bgMove 20s ease infinite;
    }

    @keyframes bgMove {
        0%, 100% { transform: translate(0, 0) rotate(0deg); }
        33% { transform: translate(5%, 5%) rotate(120deg); }
        66% { transform: translate(-5%, 5%) rotate(240deg); }
    }

    /* Navigation */
    nav {
        position: fixed;
        top: 0;
        width: 100%;
        padding: 1.5rem 5%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        transition: all 0.3s ease;
    }

    nav.scrolled {
        background: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(20px);
        padding: 1rem 5%;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }

    .logo {
        font-size: 2rem;
        font-weight: 800;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: -0.05em;
    }

    .nav-links {
        display: flex;
        gap: 2.5rem;
        list-style: none;
    }

    .nav-links a {
        color: var(--light);
        text-decoration: none;
        font-weight: 500;
        position: relative;
        transition: color 0.3s ease;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        transition: width 0.3s ease;
    }

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

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

    .hero-content {
        text-align: center;
        z-index: 2;
        animation: fadeInUp 1s ease;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero h1 {
        font-size: clamp(3rem, 8vw, 6rem);
        font-weight: 900;
        line-height: 1.1;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero p {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
        color: #cbd5e1;
        margin-bottom: 3rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn {
        padding: 1rem 2.5rem;
        border-radius: 50px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        display: inline-block;
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--primary), var(--accent));
        color: white;
        box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
    }

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 50px rgba(99, 102, 241, 0.5);
    }

    .btn-secondary {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
    }

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-3px);
    }

    /* Floating Elements */
    .floating-shape {
        position: absolute;
        border-radius: 50%;
        opacity: 0.1;
        animation: float 20s ease-in-out infinite;
    }

    .shape1 {
        width: 300px;
        height: 300px;
        top: 10%;
        left: 10%;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        animation-delay: 0s;
    }

    .shape2 {
        width: 200px;
        height: 200px;
        top: 60%;
        right: 10%;
        background: linear-gradient(135deg, var(--accent), var(--secondary));
        animation-delay: -5s;
    }

    .shape3 {
        width: 150px;
        height: 150px;
        bottom: 10%;
        left: 20%;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        animation-delay: -10s;
    }

    @keyframes float {
        0%, 100% { transform: translate(0, 0) scale(1); }
        33% { transform: translate(30px, -30px) scale(1.1); }
        66% { transform: translate(-20px, 20px) scale(0.9); }
    }

    /* Section Styles */
    section {
        padding: 8rem 5%;
        position: relative;
    }

    .section-title {
        text-align: center;
        margin-bottom: 5rem;
    }

    .section-title h2 {
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 800;
        margin-bottom: 1rem;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .section-title p {
        font-size: 1.2rem;
        color: #94a3b8;
    }

    /* About Section */
    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }

    .about-text h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        color: var(--light);
    }

    .about-text p {
        color: #cbd5e1;
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }

    .about-features {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .feature-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .feature-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(10px);
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }

    .about-image {
        position: relative;
        height: 500px;
        border-radius: 20px;
        overflow: hidden;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 4rem;
    }
    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;   /* escala, mantiene proporción y recorta lo que sobre */
        /* opcional: para que la imagen quede detrás del degradado */
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
    /* Services Section */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .service-card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 3rem 2rem;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .service-card:hover {
        transform: translateY(-10px);
        border-color: rgba(99, 102, 241, 0.5);
        box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    }

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

    .service-icon {
        width: 70px;
        height: 70px;
        border-radius: 15px;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        margin-bottom: 2rem;
        position: relative;
        z-index: 1;
    }

    .service-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        position: relative;
        z-index: 1;
    }

    .service-card p {
        color: #cbd5e1;
        line-height: 1.7;
        position: relative;
        z-index: 1;
    }

    /* Contact Section */
    .contact-container {
        max-width: 800px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 3rem;
        backdrop-filter: blur(10px);
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .contact-item {
        text-align: center;
        padding: 2rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        transition: all 0.3s ease;
    }

    .contact-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-5px);
    }

    .contact-item-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }

    .contact-item h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .contact-item p {
        color: #cbd5e1;
    }

    /* Footer */
    footer {
        text-align: center;
        padding: 3rem 5%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    footer p {
        color: #94a3b8;
    }

    /* Mobil Menu */
    .menu-toggle {
        display: none;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--light);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .nav-links {
            position: fixed;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100vh;
            background: rgba(15, 23, 42, 0.98);
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: left 0.3s ease;
        }

        .nav-links.active {
            left: 0;
        }

        .menu-toggle {
            display: flex;
            z-index: 1001;
        }

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

        .about-image {
            height: 300px;
        }

        .services-grid,
        .portfolio-grid {
            grid-template-columns: 1fr;
        }

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

    /* Scroll Reveal Animation */
    .reveal {
        opacity: 0;
        transform: translateY(50px);
        transition: all 0.8s ease;
    }

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
    /* -------------------------------------------------
     LOGOTIPO                                            *
     ------------------------------------------------- */
    .logo {
        display: flex;
        align-items: center;
    }
    .logo-img {
        width: 48px;               /* tamaño base en dispositivos móviles */
        height: auto;
        max-width: 120px;          /* no supera 120 px en pantallas grandes */
        object-fit: contain;
    }

    /* -------------------------------------------------
     ANIMACIÓN DE LA IMAGEN EN ABOUT                     *
     ------------------------------------------------- */
    .about-image {
        position: relative;
        height: 500px;
        border-radius: 20px;
        overflow: hidden;
        background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(236,72,153,.2));
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* efecto de zoom‑in/out continuo */
    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        animation: zoomPulse 12s ease-in-out infinite;
    }

    /* keyframes de la animación */
    @keyframes zoomPulse {
        0%, 100% { transform: scale(1); }
        50%      { transform: scale(1.08); }
    }

    /* -------------------------------------------------
     MEJORAS DE ACCESIBILIDAD                            *
     ------------------------------------------------- */
    nav a {
        /* mayor área táctil */
        padding: .5rem 0;
    }
    .menu-toggle {
        background: transparent;
        border: none;
    }

    /* -------------------------------------------------
     RESPONSIVE LOGO                                     *
     ------------------------------------------------- */
    @media (max-width: 768px) {
        .logo-img {
            width: 36px;
        }
    }
