/* Ocultar Scrollbar Estándar */
::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Animación tipo Apple */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glass navbar */
.glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

/* Hover animación */
.hover-scale {
    transition: transform 0.4s ease;
}

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

/* Hero Background */
.hero-bg {
    background: radial-gradient(circle, rgba(255, 255, 255, 0) 0%, #ffffff 80%),
        url('../img/herramientas-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    transform: translateY(100px);
    /* Desplazamos la imagen hacia abajo */
    /* Aumentado para mayor visibilidad */
}

/* Floating Navbar */
.nav-floating {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.nav-floating:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .nav-floating {
        width: 95%;
        padding: 0 1rem;
        top: 15px;
    }
    .nav-logo {
        height: 60px !important;
    }
    .brand-text .blue, .brand-text .white {
        font-size: 1.1rem !important;
    }
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.6rem 1.25rem;
    border-radius: 14px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Primary Nav Button (Contacto) */
.nav-btn-primary {
    background: #0038A8 !important;
    /* Logo blue */
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 56, 168, 0.2);
    margin-left: 10px;
}

.nav-btn-primary:hover {
    background: #004ecc !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 56, 168, 0.4);
}

.nav-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

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

/* Brand Text Style */
.brand-text {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.brand-text .blue {
    color: #0038A8;
    /* Azul del logo */
    font-size: 1.2rem;
}

.brand-text .white {
    color: #979696;
    /* Gris como el logo */
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

a:hover .brand-text {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Social icons */
.social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: #0038A8;
    /* Logo blue */
    color: white;
    transform: translateY(-4px) rotate(8deg) scale(1.1);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 56, 168, 0.4);
}

/* Typography Enhancements */
.text-gradient-blue {
    background: linear-gradient(135deg, #0038A8 0%, #0066FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-overline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: #0038A8;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.text-headline {
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #1a1a1a;
}

/* Value Tags */
.value-tag {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-tag:hover {
    background: #ffffff;
    border-color: #0038A8;
    color: #0038A8;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 56, 168, 0.1);
}

/* Info Cards (Misión/Visión/Valores) */
.info-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 30px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 56, 168, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 56, 168, 0.08);
    border-color: rgba(0, 56, 168, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #0038A8;
    color: #ffffff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 15px rgba(0, 56, 168, 0.2);
}

.value-tag-v2 {
    background: #f8fafc;
    color: #64748b;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-card:hover .value-tag-v2 {
    border-color: rgba(0, 56, 168, 0.3);
    color: #0038A8;
    background: #ffffff;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(12deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Service Cards */
.service-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid #eef2f6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 56, 168, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 56, 168, 0.1);
    border-color: rgba(0, 56, 168, 0.1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: #f0f7ff;
    color: #0038A8;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: #0038A8;
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    font-weight: 500;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f8fafc;
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #f0f7ff;
    color: #0038A8;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

/* Subtle Hardware Texture Pattern */
.bg-hardware-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230038A8' fill-opacity='0.05'%3E%3C!-- Hammer --%3E%3Cpath d='M571.31 193.94l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31-28.9-28.9c5.63-21.31.36-44.9-16.35-61.61l-45.25-45.25c-62.48-62.48-163.79-62.48-226.28 0l90.51 45.25v18.75c0 16.97 6.74 33.25 18.75 45.25l49.14 49.14c16.71 16.71 40.3 21.98 61.61 16.35l28.9 28.9-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l90.51-90.51c6.23-6.24 6.23-16.37-.02-22.62zm-286.72-15.2c-3.7-3.7-6.84-7.79-9.85-11.95L19.64 404.96c-25.57 23.88-26.26 64.19-1.53 88.93s65.05 24.05 88.93-1.53l238.13-255.07c-3.96-2.91-7.9-5.87-11.44-9.41l-49.14-49.14z' transform='translate(50, 40) scale(0.12)'/%3E%3C!-- Screwdriver --%3E%3Cpath d='M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z' transform='translate(170, 70) scale(0.12)'/%3E%3C!-- Wrench --%3E%3Cpath d='M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z' transform='translate(90, 180) scale(0.12)'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
}

/* Background Parallax Icons */
.mechanical-icon {
    position: absolute;
    color: #cbd5e0;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
    filter: blur(0.5px);
}

/* Mobile Nav Links */
.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav-link:hover {
    color: #0038A8;
    padding-left: 10px;
}

.btn-mobile {
    background: #0038A8 !important;
    color: #ffffff !important;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 1rem;
    box-shadow: 0 10px 20px rgba(0, 56, 168, 0.15);
}

/* Custom Mechanical Scrollbar */
.scroll-mechanism {
    position: fixed;
    top: 0;
    right: 0;
    width: 25px;
    height: 100vh;
    background: transparent;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    pointer-events: none; /* No interfiere con clics en el sitio */
}

@media (max-width: 1024px) {
    .scroll-mechanism { display: none; }
    ::-webkit-scrollbar { display: block; width: 6px; }
    ::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 10px; }
}

.gear-box {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
    font-size: 24px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}

.scroll-track {
    flex: 1;
    width: 2px;
    background: rgba(0, 56, 168, 0.05);
    border-radius: 10px;
    position: relative;
    margin: 10px 0;
}

.chain-thumb {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 45px;
    background: #0038A8;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 4px 0;
    box-shadow: 0 4px 8px rgba(0, 56, 168, 0.2);
    cursor: pointer;
    opacity: 0.8;
}

.chain-link-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}