* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f1f5f9;
    color: #0f172a;
    line-height: 1.5;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header.scrolled {
    padding: 0.7rem 2rem;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo span {
    color: #e2e8f0;
    background: none;
    -webkit-background-clip: unset;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #cbd5e1;
    transition: 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    transition: width 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #38bdf8;
}

.menu-icon {
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
    color: #cbd5e1;
    transition: transform 0.2s;
}

.menu-icon:hover {
    transform: scale(1.1);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, rgba(129,140,248,0.03) 100%);
    animation: rotateSlow 25s linear infinite;
}

@keyframes rotateSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    animation: fadeUp 0.9s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.hero h1 span {
    background: linear-gradient(135deg, #38bdf8, #a78bfa);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero h2 {
    color: #e2e8f0;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 500;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e6;
    margin-bottom: 2rem;
}

/* ========== BOTONES ========== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    color: white;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #38bdf8;
    color: #38bdf8;
    margin-left: 1rem;
}

.btn-outline:hover {
    background: #38bdf8;
    color: #0f172a;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

/* ========== SECCIONES ========== */
.section {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title span {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.support-section {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 2.5rem;
    margin: 1rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ========== TARJETAS DE SERVICIOS ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.2);
    border-color: #38bdf8;
}

.service-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #2563eb, #818cf8);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-card ul {
    margin-top: 1rem;
    list-style: none;
}

.service-card li {
    margin: 0.5rem 0;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card li i {
    color: #2563eb;
    font-size: 0.85rem;
}

/* ========== SOPORTE TÉCNICO ========== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.support-item {
    background: white;
    border-radius: 1.2rem;
    padding: 1.8rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.support-item:hover {
    background: #0f172a;
    color: white;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.25);
}

.support-item i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #2563eb, #818cf8);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.support-item:hover i {
    background: linear-gradient(135deg, #38bdf8, #a78bfa);
    background-clip: text;
    -webkit-background-clip: text;
    transform: scale(1.1);
}

.support-item:hover p {
    color: #cbd5e1;
}

.support-item h3 {
    margin-bottom: 0.5rem;
}

/* ========== CARRUSEL DE PROYECTOS ========== */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1.8rem;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.3);
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 2rem;
    text-align: left;
    transform: translateY(20px);
    opacity: 0.9;
    transition: all 0.4s ease;
}

.carousel-slide:hover .slide-caption {
    transform: translateY(0);
    opacity: 1;
}

.slide-caption h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.slide-caption p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.tech-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.25);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    border: 1px solid rgba(56, 189, 248, 0.5);
    transition: all 0.2s;
}

.tech-badge:hover {
    background: #38bdf8;
    color: #0f172a;
    transform: scale(1.05);
}

/* Botones del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.6rem;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #2563eb;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

.prev {
    left: 1.5rem;
}

.next {
    right: 1.5rem;
}

/* Dots / Indicadores */
.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #38bdf8;
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.dot:hover {
    background: #38bdf8;
    transform: scale(1.2);
}

/* ========== FORMULARIO ========== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.contact-form:hover {
    transform: translateY(-5px);
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: #fafcff;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    background: white;
}

/* ========== FOOTER ========== */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin: 0.6rem 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #38bdf8;
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
}

/* ========== EFECTOS DE APARICIÓN ========== */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        background: #0f172a;
        width: 75%;
        height: calc(100vh - 70px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.8rem;
        transition: left 0.3s ease;
        box-shadow: 5px 0 20px rgba(0,0,0,0.4);
        display: flex;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
        display: inline-block;
    }
    
    .section {
        padding: 3rem 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .carousel-slide img {
        height: 320px;
    }
    
    .slide-caption {
        padding: 1rem;
    }
    
    .slide-caption h3 {
        font-size: 1.1rem;
    }
    
    .slide-caption p {
        font-size: 0.75rem;
    }
    
    .tech-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
    
    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    
    .prev {
        left: 0.8rem;
    }
    
    .next {
        right: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .carousel-slide img {
        height: 250px;
    }
}