/* ========================================
   SHVAL SYSTEMS · ESTILOS PREMIUM
   ======================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

body {
    font-family: 'Inter', 'Poppins', 'Montserrat', sans-serif;
    background: #F8FAFC;
    color: #0F172A;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== FONDO TECNOLÓGICO ===== */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.circuit-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.06;
}

/* ===== PARTÍCULAS ===== */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle-blue {
    position: absolute;
    background: radial-gradient(circle, rgba(13, 77, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

.particle-white {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-particle 25s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.6;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1.2);
        opacity: 0;
    }
}

.tech-gradient-1 {
    position: absolute;
    width: 60%;
    height: 60%;
    top: -20%;
    right: -10%;
    background: radial-gradient(ellipse, rgba(13, 77, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.tech-gradient-2 {
    position: absolute;
    width: 50%;
    height: 50%;
    bottom: -10%;
    left: -10%;
    background: radial-gradient(ellipse, rgba(0, 45, 114, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.container-relative {
    position: relative;
    z-index: 1;
}

/* ============================================================
   NAVBAR PREMIUM
   ============================================================ */
.navbar-premium {
    padding: 0.25rem 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    overflow: visible !important;
}

.navbar-premium .container-relative {
    overflow: visible !important;
}

/* ===== LOGO ===== */
.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible !important;
    flex-shrink: 0;
}

.nav-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(13, 77, 255, 0.08));
}

.nav-logo:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 16px rgba(13, 77, 255, 0.15));
}

/* ===== BOTÓN CONTACTO MÓVIL ===== */
.btn-contacto-mobile {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 0.75rem;
    white-space: nowrap;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-illustration-wrapper {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    aspect-ratio: 1/0.85;
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    overflow: hidden;
    background: linear-gradient(145deg, #F0F5FF, #E6EEFE);
    box-shadow: 0 40px 100px rgba(13, 77, 255, 0.12), 0 0 80px rgba(13, 77, 255, 0.04);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 50px 120px rgba(13, 77, 255, 0.18), 0 0 100px rgba(13, 77, 255, 0.06);
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-glow {
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(ellipse at center, rgba(13, 77, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
    animation: glow-pulse 4s ease-in-out infinite;
}

.hero-glow-secondary {
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(0, 45, 114, 0.06) 0%, transparent 50%);
    pointer-events: none;
    animation: glow-pulse 5s ease-in-out infinite reverse;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* ============================================================
   ICONOS FLOTANTES
   ============================================================ */
.floating-icon {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(13, 77, 255, 0.12);
    border-radius: 1rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #0F172A;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06), 0 0 20px rgba(13, 77, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    animation: float-icon 6s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.floating-icon:hover {
    transform: scale(1.12) translateY(-4px);
    border-color: #0D4DFF;
    box-shadow: 0 12px 40px rgba(13, 77, 255, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.floating-icon i {
    font-size: 0.85rem;
    color: #0D4DFF;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(-2deg); }
    75% { transform: translateY(6px) rotate(2deg); }
}

.icon-1 { top: 5%; left: -5%; animation-delay: 0s; }
.icon-2 { top: 15%; right: -8%; animation-delay: 1.2s; }
.icon-3 { bottom: 20%; left: -10%; animation-delay: 2.4s; }
.icon-4 { bottom: 5%; right: -5%; animation-delay: 0.8s; }
.icon-5 { top: 50%; left: -12%; animation-delay: 1.8s; }
.icon-6 { top: 35%; right: -12%; animation-delay: 0.4s; }
.icon-7 { bottom: 35%; right: -8%; animation-delay: 2s; }
.icon-8 { top: 5%; left: 20%; animation-delay: 1.5s; }
.icon-9 { bottom: 5%; left: 30%; animation-delay: 0.6s; }

/* ===== LÍNEAS DIGITALES ===== */
.digital-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
}

.digital-lines svg {
    width: 100%;
    height: 100%;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.service-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0D4DFF, transparent);
    opacity: 0;
    transition: all 0.4s;
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: #0D4DFF;
    box-shadow: 0 20px 60px rgba(13, 77, 255, 0.08);
}

.service-card:hover::before { opacity: 1; }

.service-card .icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(13, 77, 255, 0.08), rgba(13, 77, 255, 0.02));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #0D4DFF;
    transition: all 0.4s;
}

.service-card:hover .icon-wrapper {
    background: linear-gradient(135deg, #0D4DFF, #002D72);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(13, 77, 255, 0.2);
}

/* ============================================================
   TECNOLOGÍAS
   ============================================================ */
.tech-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(13, 77, 255, 0.06);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0F172A;
    transition: all 0.3s;
    text-align: center;
    cursor: default;
}

.tech-item:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #0D4DFF;
    box-shadow: 0 8px 25px rgba(13, 77, 255, 0.08);
    background: white;
}

/* ============================================================
   ANIMACIONES SCROLL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    background: #25D366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
    animation: pulse-whatsapp 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 45px rgba(37, 211, 102, 0.45);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.3); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================================
   GLASSMORPHISM
   ============================================================ */
.glass-premium {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================================
   FLOATING ANIMATION
   ============================================================ */
.floating-soft {
    animation: floatSoft 6s ease-in-out infinite;
}

@keyframes floatSoft {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
    100% { transform: translateY(0px); }
}

/* ============================================================
   SOCIAL BUTTONS PREMIUM
   ============================================================ */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    color: #0F172A;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(13, 77, 255, 0.15);
    border-color: #0D4DFF;
}

.social-btn.facebook:hover { color: #1877F2; }
.social-btn.instagram:hover { color: #E4405F; }
.social-btn.whatsapp:hover { color: #25D366; }
.social-btn.linkedin:hover { color: #0A66C2; }
.social-btn.github:hover { color: #181717; }

/* ============================================================
   METRIC CARDS
   ============================================================ */
.metric-card {
    text-align: center;
    padding: 1rem 0.8rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.metric-card:hover {
    transform: translateY(-6px);
    background: white;
    box-shadow: 0 16px 40px rgba(13, 77, 255, 0.08);
    border-color: rgba(13, 77, 255, 0.1);
}

.metric-card .number {
    font-size: 2rem;
    font-weight: 800;
    color: #0D4DFF;
    line-height: 1;
}

.metric-card .label {
    font-size: 0.65rem;
    font-weight: 500;
    color: #475569;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   CEO CARD
   ============================================================ */
.ceo-card-premium {
    position: relative;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px);
    border-radius: 2rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 30px 80px rgba(13, 77, 255, 0.06), 0 0 60px rgba(13, 77, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ceo-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 100px rgba(13, 77, 255, 0.10);
}

.ceo-photo-premium {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid rgba(13, 77, 255, 0.12);
    box-shadow: 0 0 60px rgba(13, 77, 255, 0.06);
    flex-shrink: 0;
    transition: all 0.5s;
}

.ceo-photo-premium:hover {
    transform: scale(1.02);
    border-color: #0D4DFF;
    box-shadow: 0 0 80px rgba(13, 77, 255, 0.12);
}

.ceo-photo-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ceo-photo-premium::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(ellipse at center, rgba(13, 77, 255, 0.10) 0%, transparent 50%);
    pointer-events: none;
    animation: glow-pulse 4s ease-in-out infinite;
}

/* ============================================================
   FOOTER - RESPONSIVE GRID
   ============================================================ */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-logo {
    align-items: center;
    text-align: center;
}

.footer-col-logo .footer-logo {
    margin: 0 auto;
}

.footer-col-logo .text-sm {
    text-align: center;
}

.footer-col-logo .flex {
    justify-content: center;
}

.footer-col h4 {
    text-align: center;
}

.footer-col ul {
    text-align: center;
}

.footer-col ul li {
    justify-content: center;
}

.footer-logo {
    height: 90px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* ============================================================
   RESPONSIVE - DESKTOP (768px+)
   ============================================================ */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .footer-col-logo {
        align-items: flex-start;
        text-align: left;
    }
    
    .footer-col-logo .footer-logo {
        margin: 0;
    }
    
    .footer-col-logo .text-sm {
        text-align: left;
    }
    
    .footer-col-logo .flex {
        justify-content: flex-start;
    }
    
    .footer-col h4 {
        text-align: left;
    }
    
    .footer-col ul {
        text-align: left;
    }
    
    .footer-col ul li {
        justify-content: flex-start;
    }
    
    .ceo-photo-premium {
        width: 260px;
        height: 260px;
    }
    
    .ceo-card-premium {
        padding: 2.5rem 2rem;
    }
    
    .nav-logo {
        height: 100px;
        max-width: 260px;
    }
    
    .navbar-premium {
        height: 72px;
    }
    
    .whatsapp-float {
        width: 64px;
        height: 64px;
        font-size: 2.2rem;
        bottom: 2rem;
        right: 2rem;
    }
    
    .floating-icon {
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
    }
    
    .floating-icon i {
        font-size: 1rem;
    }
}

/* ============================================================
   RESPONSIVE - TABLETS (768px - 1024px)
   ============================================================ */
@media (max-width: 1024px) and (min-width: 768px) {
    .hero-illustration-wrapper {
        max-width: 500px;
    }
    
    .nav-logo {
        height: 75px;
        max-width: 180px;
    }
    
    .footer-logo {
        height: 70px;
        max-width: 140px;
    }
}

/* ============================================================
   RESPONSIVE - MÓVIL (menos de 768px) - CORREGIDO
   ============================================================ */
@media (max-width: 767px) {
    /* Navbar */
    .navbar-premium {
        height: 56px;
        padding: 0.15rem 0;
    }
    
    /* ===== LOGO NAVBAR - AUMENTADO ===== */
    .nav-logo {
        height: 60px;          /* ANTES: 45px - 33% más grande */
        max-width: 160px;      /* ANTES: 120px - 33% más ancho */
        object-fit: contain;
        transition: all 0.3s ease;
        display: block;
        filter: drop-shadow(0 2px 8px rgba(13, 77, 255, 0.08));
    }
    
    .nav-logo:hover {
        transform: scale(1.04);
        filter: drop-shadow(0 4px 16px rgba(13, 77, 255, 0.15));
    }
    
    .btn-contacto-mobile {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    /* Hero */
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    /* ===== IMAGEN HERO - AUMENTADA ===== */
    .hero-illustration-wrapper {
        max-width: 420px;      /* ANTES: 340px - 23% más grande */
        aspect-ratio: 1/0.8;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        overflow: hidden;
    }
    
    .hero-image-container {
        border-radius: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Iconos flotantes - ocultos en móvil */
    .floating-icon {
        display: none !important;
    }
    
    /* Servicios */
    .service-card {
        padding: 1rem 0.8rem;
    }
    
    .service-card .icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .service-card h3 {
        font-size: 0.95rem;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }
    
    /* Tecnologías */
    .tech-item {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
    
    /* CEO */
    .ceo-card-premium {
        padding: 1.5rem 1rem;
        border-radius: 1.5rem;
    }
    
    .ceo-photo-premium {
        width: 140px;
        height: 140px;
    }
    
    .ceo-card-premium h3 {
        font-size: 1.2rem;
    }
    
    /* Métricas */
    .metric-card {
        padding: 0.6rem 0.4rem;
    }
    
    .metric-card .number {
        font-size: 1.3rem;
    }
    
    .metric-card .label {
        font-size: 0.55rem;
    }
    
    /* Social Buttons */
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* ===== LOGO FOOTER - AUMENTADO ===== */
    .footer-grid {
        gap: 1.8rem;
    }
    
    .footer-logo {
        height: 100px;         /* ANTES: 70px - 43% más grande */
        max-width: 200px;      /* ANTES: 150px - 33% más ancho */
        margin: 0 auto;
        object-fit: contain;
        transition: all 0.3s ease;
        display: block;
    }
    
    .footer-logo:hover {
        transform: scale(1.05);
    }
    
    .footer-col h4 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-col ul li {
        font-size: 0.85rem;
        padding: 0.15rem 0;
    }
    
    .footer-col ul li a {
        word-break: break-all;
    }
    
    /* Contacto form */
    .glass-premium {
        padding: 1.5rem 1rem;
    }
    
    .glass-premium input,
    .glass-premium textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    /* WhatsApp flotante */
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    /* Sección padding */
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* ============================================================
   RESPONSIVE - MÓVIL MUY PEQUEÑO (menos de 375px) - CORREGIDO
   ============================================================ */
@media (max-width: 375px) {
    .hero-text h1 {
        font-size: 1.7rem;
    }
    
    /* ===== IMAGEN HERO - AUMENTADA ===== */
    .hero-illustration-wrapper {
        max-width: 320px;      /* ANTES: 280px - 14% más grande */
    }
    
    /* ===== LOGO NAVBAR - AUMENTADO ===== */
    .nav-logo {
        height: 50px;          /* ANTES: 38px - 31% más grande */
        max-width: 130px;      /* ANTES: 100px - 30% más ancho */
    }
    
    .btn-contacto-mobile {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* ===== LOGO FOOTER - AUMENTADO ===== */
    .footer-logo {
        height: 80px;          /* ANTES: 60px - 33% más grande */
        max-width: 170px;      /* ANTES: 130px - 30% más ancho */
    }
    
    .ceo-photo-premium {
        width: 120px;
        height: 120px;
    }
}

/* ============================================================
   RESPONSIVE - LANDSCAPE MÓVIL
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-illustration-wrapper {
        max-width: 280px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 0.85rem;
    }
    
    .navbar-premium {
        height: 48px;
    }
    
    .nav-logo {
        height: 40px;
        max-width: 100px;
    }
    
    .section-padding {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}