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

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #1A1A1A;
    line-height: 1.5;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo animado */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-animado {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 2rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.logo-bracket {
    color: #0066FF;
    animation: pulseBracket 2s infinite;
}

.logo-text {
    background: linear-gradient(135deg, #0066FF, #00C2FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s infinite;
}

@keyframes pulseBracket {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.6; transform: translateY(-2px); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    color: #4B5563;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #0066FF;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0066FF;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1A1A1A;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    margin-bottom: 24px;
}

.badge-pulse {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #0066FF;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #0066FF, #00C2FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text2 {
    background: linear-gradient(135deg, #00C2FF, #00D26A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: #4B5563;
    max-width: 700px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: #0066FF;
    color: white;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background: #0052CC;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #0066FF;
    color: #0066FF;
}

.btn-outline:hover {
    background: rgba(0, 102, 255, 0.05);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #0066FF;
}

.stat-label {
    font-size: 0.85rem;
    color: #6B7280;
}

/* ===== SECCIONES ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0066FF;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SERVICIOS ===== */
.servicios {
    background: #F9FAFB;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #0066FF;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: #0066FF;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-card p {
    color: #6B7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4B5563;
}

.service-features li i {
    color: #00D26A;
    font-size: 0.8rem;
}

/* ===== STACK ===== */
.stack-section {
    background: white;
}

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    background: #F9FAFB;
    border-radius: 20px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.stack-item:hover {
    transform: translateY(-4px);
    background: #0066FF;
    color: white;
}

.stack-item i {
    font-size: 2.5rem;
}

.stack-item span {
    font-weight: 500;
}

.stack-item:hover i,
.stack-item:hover span {
    color: white;
}

/* ===== CONTACTO ===== */
.contacto-section {
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: #0066FF;
}

.info-card i {
    font-size: 2rem;
    color: #0066FF;
    margin-bottom: 12px;
}

.info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.info-card p {
    color: #6B7280;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    background: #F9FAFB;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066FF;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.error-msg {
    color: #E53E3E;
    font-size: 0.75rem;
    margin-top: 6px;
    display: block;
}

.form-result {
    margin-top: 20px;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
}

.form-result.success {
    background: #D1FAE5;
    color: #065F46;
}

.form-result.error {
    background: #FEE2E2;
    color: #991B1B;
}

/* ===== FOOTER ===== */
.footer {
    background: #111111;
    color: #9CA3AF;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-small {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0066FF, #00C2FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.footer-brand p {
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #0066FF;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: #9CA3AF;
    font-size: 1.3rem;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #0066FF;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .contact-form-container {
        padding: 24px;
    }
}

/* Preview Blog en Index */
.preview-blog {
    background: #F9FAFB;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.blog-preview-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}

.blog-preview-card:hover {
    transform: translateY(-4px);
    border-color: #0066FF;
}

.preview-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.badge-script {
    background: #E0F2FE;
    color: #0284C7;
}

.badge-article {
    background: #DCFCE7;
    color: #166534;
}

.blog-preview-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.blog-preview-card p {
    color: #6B7280;
    margin-bottom: 16px;
}

.btn-read {
    color: #0066FF;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Preview Portafolio */
.preview-portafolio {
    background: white;
}

.portfolio-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.portfolio-preview-card {
    background: #F9FAFB;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}

.portfolio-preview-card:hover {
    transform: translateY(-4px);
    border-color: #0066FF;
    background: white;
}

.preview-icon {
    font-size: 2.5rem;
    color: #0066FF;
    margin-bottom: 16px;
}

.portfolio-preview-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.portfolio-preview-card p {
    color: #6B7280;
    margin-bottom: 12px;
}

.preview-cat {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #0066FF;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}