/* ============================================
   DEEPSEEK DESIGN SYSTEM - BLACK & WHITE PREMIUM
   ============================================ */

/* ===== RESET MODERNO ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* PALETA DE COLORES PROFESIONAL - BLANCO Y NEGRO */
    --black: #000000;
    --white: #FFFFFF;
    --dark-gray: #0A0A0A;
    --medium-gray: #333333;
    --light-gray: #F5F5F5;
    --accent-gray: #666666;
    
    /* EFECTOS Y SOMBRAS */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.15);
    
    /* TIPOGRAFÍA */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    
    /* ESPACIADO */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 8rem;
    
    /* BORDES */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* TRANSICIONES */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE & TYPOGRAPHY ===== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--black);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-padding {
    padding: var(--space-xxl) 0;
}

.dark-bg {
    background: var(--dark-gray);
    color: var(--white);
}

/* ===== HEADER PREMIUM ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all var(--transition-base);
    padding: var(--space-sm) 0;
}

.main-header.scrolled {
    padding: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* LOGO MODERNO */
.logo {
    position: relative;
    z-index: 1002;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: var(--space-sm);
}

.logo-img {
    height: 48px;
    width: auto;
    filter: invert(1) brightness(0);
    transition: all var(--transition-base);
}

.logo:hover .logo-img {
    transform: scale(1.05) rotate(-5deg);
    filter: invert(1) brightness(0) drop-shadow(0 0 8px rgba(0,0,0,0.2));
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.5px;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--black), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.logo:hover .logo-text::after {
    transform: scaleX(1);
}

/* NAVIGACIÓN MODERNA */
.main-nav {
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--medium-gray);
    font-weight: 500;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--space-sm) 0;
    position: relative;
    transition: all var(--transition-fast);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.nav-link:hover {
    color: var(--black);
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--black);
    font-weight: 600;
}

.nav-link.active::before {
    transform: scaleX(1);
}

/* BOTÓN CTA PREMIUM */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-base);
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

/* MENÚ MÓVIL PREMIUM */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 24px;
    background: var(--black);
    left: 8px;
    transition: all var(--transition-base);
}

.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 26px; }

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 19px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 19px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-list li {
    margin: var(--space-xl) 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.mobile-menu.active .mobile-nav-list li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-list li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-list li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-list li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-list li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-list li:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav-list li:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav-list a {
    color: var(--black);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: var(--space-sm) var(--space-lg);
    display: inline-block;
}

.mobile-nav-list a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transform: translateY(-50%);
    transition: width var(--transition-base);
}

.mobile-nav-list a:hover::before {
    width: 100%;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-title {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(90deg, var(--black), var(--medium-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--accent-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FOOTER PREMIUM ===== */
.main-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: var(--space-xxl) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col {
    position: relative;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.footer-logo-img {
    height: 150px;
    opacity: 0.9;
}

.footer-logo h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

/* SOCIAL LINKS MODERNOS */
.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-links a:hover::before {
    left: 100%;
}

.footer-title {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links i {
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--white);
    font-size: 1.1rem;
    margin-top: 2px;
    opacity: 0.8;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: var(--space-xl) 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: var(--space-xl);
}

.legal-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.legal-links a:hover {
    color: var(--white);
}

/* BOTÓN SCROLL TOP PREMIUM */
.scroll-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 56px;
    height: 56px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.scroll-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 2rem;
        --space-xxl: 4rem;
    }

    .custom-cursor {
        display: none !important;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .scroll-top {
        bottom: var(--space-lg);
        right: var(--space-lg);
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }
    
    .mobile-nav-list a {
        font-size: 1.5rem;
    }
}

/* ===== ANIMACIONES PERSONALIZADAS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ===== UTILITY CLASSES ===== */
.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--medium-gray);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--black);
}


/* ===== PÁGINA DE SERVICIOS ===== */
.services-page {
    background: var(--white);
    min-height: 100vh;
    padding-top: 100px;
}

.page-title {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--black);
    position: relative;
    padding-bottom: 1.5rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--black);
}

/* Detalle de cada servicio */
.service-detail {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-detail:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-detail:hover::before {
    transform: scaleX(1);
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.service-header i {
    font-size: 2.5rem;
    color: var(--black);
    margin-right: 1.5rem;
    transition: transform var(--transition-base);
}

.service-detail:hover .service-header i {
    transform: scale(1.1) rotate(5deg);
}

.service-header h2 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--medium-gray);
    margin-bottom: 2rem;
    padding-left: 4rem; /* Alineado con el icono */
}

/* Tecnologías */
.service-tech {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-top: 2rem;
}

.service-tech h3 {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--white);
    color: var(--black);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
    transition: left 0.6s ease;
}

.tech-tag:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tech-tag:hover::before {
    left: 100%;
}

/* Navegación entre servicios */
.service-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}



/* Indicador de servicio activo */
.service-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--light-gray);
    transition: all var(--transition-base);
    cursor: pointer;
}

.indicator-dot.active {
    background: var(--black);
    transform: scale(1.2);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-detail {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-detail:nth-child(1) { animation-delay: 0.1s; }
.service-detail:nth-child(2) { animation-delay: 0.2s; }
.service-detail:nth-child(3) { animation-delay: 0.3s; }

/* CTA al final */
.services-cta {
    text-align: center;
    margin-top: 5rem;
    padding: 4rem;
    background: var(--light-gray);
    border-radius: var(--radius-lg);
}

.cta-title {
    font-family: var(--font-secondary);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.cta-description {
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .service-detail {
        padding: 2rem;
    }
    
    .service-description {
        padding-left: 0;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
    }
    
    .service-header i {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .service-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .services-page {
        padding-top: 80px;
    }
    
    .page-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .service-detail {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .tech-tags {
        gap: 0.5rem;
    }
    
    .tech-tag {
        padding: 0.375rem 1rem;
        font-size: 0.85rem;
    }
    
    .service-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .services-cta {
        padding: 2rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .service-header h2 {
        font-size: 1.5rem;
    }
    
    .service-description {
        font-size: 1rem;
    }
    
    .service-tech {
        padding: 1.5rem;
    }
    
    .tech-tag {
        padding: 0.25rem 0.75rem;
        font-size: 0.8rem;
    }
} 


/* Centrado de la Sección CTA Final */
.final-cta {
    text-align: center; /* Centra el texto y el botón (inline-block) */
    background: var(--white); /* O var(--light-gray) si quieres que destaque */
}

.cta-content {
    max-width: 800px;  /* Evita que el texto sea demasiado ancho y difícil de leer */
    margin: 0 auto;    /* Centra el contenedor dentro de la .container */
    display: flex;
    flex-direction: column;
    align-items: center; /* Asegura el centrado de elementos flex (como el botón) */
    gap: 1.5rem;        /* Espaciado moderno entre título, texto y botón */
}

.cta-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}
