/* 
 * Estilos para página de Demostraciones Móviles
 * Noelyth Softworks - demostraciones-moviles.css
 * 
 * Estilos específicos mejorados para la sección de apps móviles
 */

/* ==========================================
   HEADER DE DEMOSTRACIONES MÓVILES
   ========================================== */

   .moviles-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.moviles-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="mobile-grid" width="15" height="15" patternUnits="userSpaceOnUse"><path d="M 15 0 L 0 0 0 15" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/><circle cx="7.5" cy="7.5" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23mobile-grid)"/></svg>');
    opacity: 0.4;
    animation: mobileFloat 25s ease-in-out infinite;
}

@keyframes mobileFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(0.5deg); }
    66% { transform: translateY(4px) rotate(-0.3deg); }
}

.moviles-header .container {
    position: relative;
    z-index: 2;
}

.moviles-header h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.moviles-header p {
    font-size: 1.5rem;
    margin-bottom: 50px;
    opacity: 0.92;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.4;
}

/* Estadísticas mejoradas */
.demo-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 140px;
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ==========================================
   CONTENIDO PRINCIPAL MÓVILES
   ========================================== */

.moviles-main {
    background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);
    padding: 80px 0;
    min-height: 70vh;
}

/* ==========================================
   TARJETAS DE DEMO MÓVIL - MEJORADAS
   ========================================== */

.mobile-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
    padding: 60px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 153, 204, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.mobile-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 153, 204, 0.03), transparent);
    transition: left 0.6s ease;
}

.mobile-demo:hover::before {
    left: 100%;
}

.mobile-demo:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

/* Alternar posición para demos alternos */
.mobile-demo.alt {
    grid-template-columns: 1fr 1fr;
}

.mobile-demo.alt .demo-info {
    order: 2;
}

.mobile-demo.alt .demo-visual {
    order: 1;
}

/* Información del demo */
.demo-info {
    padding: 20px 0;
}

.demo-info h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
    position: relative;
}

.demo-info h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.demo-info p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 35px;
    font-weight: 400;
}

.demo-info p strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Botón de demostración mejorado */
.demo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 153, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.demo-link::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.6s ease;
}

.demo-link:hover::before {
    left: 100%;
}

.demo-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 153, 204, 0.4);
}

.demo-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.demo-link:hover i {
    transform: translateX(3px);
}

/* ==========================================
   MOCKUP DE DISPOSITIVO MÓVIL - MEJORADO
   ========================================== */

.demo-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.device-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 35px;
    padding: 15px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.device-mockup::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    border-radius: 40px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-demo:hover .device-mockup::before {
    opacity: 0.3;
}

.mobile-demo:hover .device-mockup {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Notch del dispositivo */
.device-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-radius: 15px;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.device-notch::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 15px;
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
}

.device-notch::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 15px;
    width: 50px;
    height: 10px;
    background: #333;
    border-radius: 5px;
}

/* Pantalla del dispositivo */
.device-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    transition: all 0.4s ease;
}

.mobile-demo:hover .device-mockup img {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* ==========================================
   SECCIÓN CTA MÓVILES - MEJORADA
   ========================================== */

.moviles-cta {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.moviles-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-dots" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="5" cy="5" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-dots)"/></svg>');
    animation: ctaFloat 30s linear infinite;
}

@keyframes ctaFloat {
    from { transform: translateX(-25px) translateY(-25px); }
    to { transform: translateX(0px) translateY(0px); }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.moviles-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.moviles-cta p {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.92;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 18px 40px;
    font-size: 1.15rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: white;
    color: var(--secondary-color);
    border: 3px solid white;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   ANIMACIONES Y EFECTOS ADICIONALES
   ========================================== */

/* Animación de entrada para demos */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-demo:nth-child(odd) {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.mobile-demo:nth-child(even) {
    animation: slideInFromRight 0.8s ease-out forwards;
}

/* Delay para animaciones */
.mobile-demo:nth-child(1) { animation-delay: 0.2s; }
.mobile-demo:nth-child(2) { animation-delay: 0.4s; }
.mobile-demo:nth-child(3) { animation-delay: 0.6s; }

/* ==========================================
   RESPONSIVE DESIGN MÓVILES
   ========================================== */

@media (max-width: 1200px) {
    .mobile-demo {
        gap: 40px;
        padding: 50px 40px;
    }
    
    .device-mockup {
        width: 240px;
        height: 480px;
    }
}

@media (max-width: 992px) {
    .moviles-header {
        padding: 120px 0 60px;
    }
    
    .moviles-header h1 {
        font-size: 3.2rem;
    }
    
    .demo-stats {
        gap: 50px;
    }
    
    .mobile-demo {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        padding: 40px 30px;
    }
    
    .mobile-demo.alt .demo-info,
    .mobile-demo.alt .demo-visual {
        order: initial;
    }
    
    .demo-info h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .device-mockup {
        width: 200px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .moviles-header {
        padding: 100px 0 50px;
    }
    
    .moviles-header h1 {
        font-size: 2.5rem;
    }
    
    .moviles-header p {
        font-size: 1.2rem;
    }
    
    .demo-stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .mobile-demo {
        margin-bottom: 60px;
        padding: 30px 20px;
    }
    
    .demo-info h2 {
        font-size: 1.8rem;
    }
    
    .demo-info p {
        font-size: 1.1rem;
    }
    
    .device-mockup {
        width: 180px;
        height: 360px;
    }
    
    .moviles-cta h2 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .moviles-header h1 {
        font-size: 2rem;
    }
    
    .moviles-header p {
        font-size: 1rem;
    }
    
    .demo-info h2 {
        font-size: 1.5rem;
    }
    
    .demo-link {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .device-mockup {
        width: 160px;
        height: 320px;
    }
    
    .cta-buttons .btn {
        min-width: 180px;
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* ==========================================
   MEJORAS DE ACCESIBILIDAD
   ========================================== */

.demo-link:focus,
.cta-buttons .btn:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/* Reducir animaciones para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
    .mobile-demo,
    .device-mockup,
    .demo-link,
    .moviles-header::before {
        animation: none;
        transition: none;
    }
    
    .mobile-demo:hover,
    .device-mockup:hover {
        transform: none;
    }
}