﻿/* ========== RESET Y BASE ========== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: system-ui, -apple-system, sans-serif; 
    background: #0f172a; 
    color: #f8fafc;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.container {
    max-width: 80rem; 
    margin: 0 auto; 
    padding: 0 1.5rem;
}

/* ========== HEADER Y NAVEGACIÓN ========== */
.header {
    background: #0f172a; 
    color: white;
    padding: 1rem 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-bottom: 1px solid #334155;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: relative;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

.logo-image {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.logo-image:hover {
    opacity: 0.8;
}

/* Navegación principal */
.nav {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav a:hover {
    color: #60a5fa;
}

/* Efecto subrayado al hover */
.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #60a5fa;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Redes sociales en header */
.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.social-links a {
    color: #cbd5e1;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-links a:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    transform: translateY(-1px);
}

.social-links svg {
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
}

.social-links a:hover svg {
    transform: scale(1.1);
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    transition: all 0.3s ease;
}

/* ========== SECCIONES PRINCIPALES ========== */
/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: white;
    padding: 6rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #334155;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.hero .accent {
    color: #60a5fa;
    font-weight: 600;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    background: #0f172a;
    padding: 4rem 1.5rem;
}

.features h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #f8fafc;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.features p {
    font-size: 1.25rem;
    color: #cbd5e1;
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 5rem 1.5rem;
    text-align: center;
    border-top: 1px solid #334155;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #f8fafc;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== COMPONENTES REUTILIZABLES ========== */
/* Botones */
.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::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.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    border: 2px solid #60a5fa;
    color: #60a5fa;
    background: transparent;
}

.btn-outline:hover {
    background: #60a5fa;
    color: #0f172a;
    transform: translateY(-2px);
}

/* Tarjetas */
.feature-card, .tech-card {
    background: linear-gradient(145deg, #1e293b, #1a2536);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.feature-card::before, .tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before, .tech-card:hover::before {
    left: 100%;
}

.feature-card:hover, .tech-card:hover {
    transform: translateY(-8px);
    border-color: #60a5fa;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(96, 165, 250, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-color: #60a5fa;
    transform: scale(1.1);
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    color: white;
}

.feature-card h3, .tech-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.feature-card p, .tech-card p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Grids */
.features-grid, .services-grid, .tech-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-grid {
    padding: 4rem 1.5rem;
}

/* ========== FORMULARIOS ========== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #f1f5f9;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: #64748b;
}

.contact-info {
    text-align: center;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

/* ========== PROCESO INTERACTIVO ========== */
.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    background: linear-gradient(145deg, #1e293b, #1a2536);
    border: 1px solid #334155;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: #475569;
}

.step-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    gap: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #1e293b;
    border: 2px solid #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    border-color: #60a5fa;
    color: #60a5fa;
}

.step-header h3 {
    flex: 1;
    font-size: 1.3rem;
    font-weight: 500;
    color: #f1f5f9;
    margin: 0;
}

.step-toggle {
    background: none;
    border: 1px solid #475569;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 300;
}

.step-toggle:hover {
    border-color: #60a5fa;
    color: #60a5fa;
}

.step-content {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.step-content.active {
    padding: 0 2rem 2rem;
    max-height: 500px;
}

.step-content p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.step-content ul {
    list-style: none;
    padding: 0;
}

.step-content li {
    color: #94a3b8;
    padding: 0.5rem 0;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.step-content li:last-child {
    border-bottom: none;
}

/* ========== FOOTER ========== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #334155;
}

/* ========== RESPONSIVE DESIGN ========== */
/* Desktop */
@media (min-width: 1025px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid, .services-grid, .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav {
        gap: 1.5rem;
    }
    
    .nav a {
        font-size: 0.95rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-links svg {
        width: 16px;
        height: 16px;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header {
        padding: 0.75rem 1rem;
    }
    
    .header-content {
        height: 50px;
        justify-content: space-between;
    }
    
    .logo-image {
        height: 35px;
    }
    
    /* Ocultar elementos en móvil */
    .nav, .social-links {
        display: none;
    }

    /* Mostrar menú hamburguesa */
    .menu-toggle {
        display: flex;
    }

    /* Menú desplegable móvil */
    .nav.mobile-active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #0f172a;
        border-left: 1px solid #334155;
        padding: 80px 2rem 2rem;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        left: auto;
        transform: none;
        overflow-y: auto;
    }

    .nav.mobile-active a {
        padding: 1rem 0;
        border-bottom: 1px solid #334155;
        font-size: 1.1rem;
        color: #cbd5e1;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .nav.mobile-active a:hover {
        color: #60a5fa;
        background: rgba(96, 165, 250, 0.1);
        padding-left: 1rem;
    }

    .nav.mobile-active a:active {
        background: rgba(96, 165, 250, 0.2);
    }

    /* Redes sociales en menú móvil */
    .nav.mobile-active::after {
        content: '';
        display: block;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid #334155;
    }

    .nav.mobile-active .social-links-mobile {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .nav.mobile-active .social-links-mobile a {
        padding: 0.75rem;
        background: rgba(96, 165, 250, 0.1);
        border-radius: 8px;
    }

    /* Overlay para móvil */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
        backdrop-filter: blur(2px);
        clip-path: polygon(0 0, calc(100% - 280px) 0, calc(100% - 280px) 100%, 0 100%);
    }

    .overlay.active {
        display: block;
    }

    /* Animación hamburguesa */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Ajustes de contenido */
    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .buttons {
        flex-direction: column;
    }

    .features h2 {
        font-size: 2rem;
    }

    .features p {
        font-size: 1.125rem;
        margin-bottom: 3rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .features-grid, .services-grid, .tech-grid {
        grid-template-columns: 1fr;
    }
}
/* Ocultar redes sociales dentro del nav en desktop */
.nav .social-links-mobile {
    display: none;
}

/* Mostrar solo en móvil cuando el menú está activo */
@media (max-width: 768px) {
    .nav.mobile-active .social-links-mobile {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid #334155;
    }
}
/* Estilos para los números de teléfono */
.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.phone-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(96, 165, 250, 0.1);
    text-align: center;
}

.phone-link:hover {
    background: rgba(96, 165, 250, 0.2);
    transform: translateY(-1px);
    color: #3b82f6;
}

/* Responsive para teléfonos */
@media (max-width: 768px) {
    .phone-numbers {
        gap: 0.75rem;
    }
    
    .phone-link {
        font-size: 1rem;
        padding: 0.75rem;
    }
}



