      
        /* ============================================================ */
        /* HERO — CARRUSEL CON SCROLL SNAP                             */
        /* ============================================================ */
        .hero {
            position: relative;
            background: #ffffff;
            overflow: hidden;
            margin: 20px;
           
        }

        .hero-slider {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -ms-overflow-style: none;
             gap:20px;
        }

        .hero-slider::-webkit-scrollbar {
            display: none;
        }

        .hero .card {
            flex: 0 0 50%;
            scroll-snap-align: start;
            position: relative;
            background-size: cover;
            background-position: center;
            min-height: 500px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 60px 50px;
            color: var(--blanco);
            overflow: hidden;
        }

        .hero .card::after {
            content: '';
            position: absolute;
            inset: 0;
            
            z-index: 1;
        }

        .hero .card>* {
            position: relative;
            z-index: 2;
        }


        .hero .card.rectificadoras {
            background-image: linear-gradient(135deg, #1e3c72, #2a5298);
        }
        .hero .card.amoladoras {
            background-image: linear-gradient(135deg, #2b2b2b, #5a5a5a);
        }
        .hero .card.pulidoras {
            background-image: linear-gradient(135deg, #b22222, #8b0000);
        }


     .hero .card .title {
            font-size: 80px;
            line-height: 1.2;
            margin-bottom: 16px;
            letter-spacing: 0.5px;
        }


        .hero .card p {
            font-size: 20px;
            line-height: 1.2;
            margin-bottom: 16px;
            letter-spacing: 0.5px;
        }

        .hero .card p a {
            color: var(--blanco);
        }
        .hero .card p a:hover {
            color: #efefef;
        }

        .hero .card .sub-links {
            font-size: 26px;
            font-weight: 400;
            line-height: 1.6;
            margin-bottom: 30px;
        }

        .hero .card .sub-links a {
            display: inline-block;
            color: var(--blanco);
            border-bottom: 1px solid transparent;
            transition: border-color 0.2s;
        }
        .hero .card .sub-links a:hover {
            border-bottom-color: var(--blanco);
        }

        .btn {
            display: inline-block;
            padding: 16px 44px;
            font-size: 18px;
            font-weight: 300;
            color: var(--blanco);
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--blanco);
            border-radius: 3px;
            transition: background 0.3s, border-color 0.3s;
            cursor: pointer;
            text-align: center;
            letter-spacing: 0.5px;
            align-self: flex-start;
        }

        .btn:hover {
            background: rgba(255, 20, 24, 0.8);
            border-color: var(--blanco);
        }

        /* ===== CONTROLES DEL CARRUSEL ===== */
        .hero-controls {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 16px;
            z-index: 10;
            align-items: center;
        }

        .hero-controls .dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
            border: none;
            cursor: pointer;
            transition: background 0.3s, transform 0.2s;
            padding: 0;
        }

        .hero-controls .dot.active {
            background: #ffffff;
            transform: scale(1.2);
        }

        .hero-controls .dot:hover {
            background: rgba(255, 255, 255, 0.8);
        }

        .hero-controls .arrow {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: #fff;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-controls .arrow:hover {
            background: rgba(255, 20, 24, 0.7);
        }
		
		
		
		.hero .card {
    flex: 0 0 50%;
    scroll-snap-align: start;
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 640px;  /* 从 500px 增加到 650px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    color: var(--blanco);
    overflow: hidden;
}
		
		
		
		
		
		
		
		

        /* ===== SECCIÓN VIDEO ===== */
        .video-section {
            position: relative;
          
            color: var(--blanco);
            overflow: hidden;
            min-height: auto;
            padding: 52px 0 0;
            margin: 20px;
        }

        .video-section video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.7;
        }

        .video-section .overlay {
            position: relative;
            z-index: 2;
            text-align: center;
            max-width: 820px;
            margin: 0 auto;
            padding: 20px 30px 30px;
            top:-30px;
            
        }

        .video-section .overlay img {
            margin: 0 auto 30px;
            max-width: 280px;
          filter: brightness(0) invert(1);
        }

        .video-section .overlay p {
            font-size: 22px;
            font-weight: 300;
            line-height: 1.7;
            color: #f0f0f0;
        }

        /* ===== FEATURES ===== */
        .video-section .features {
            position: relative;
            z-index: 2;
            background: rgba(255, 0, 4, 0.5);
            padding: 30px 0;
            margin: 20px 0 0;
            width: 100%;
            backdrop-filter: blur(2px);
        }

        .video-section .features .container {
            max-width: 1270px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .video-section .features .grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            text-align: center;
        }

        .video-section .features .item {
            padding: 20px 10px;
            border-radius: 10px;
            color: var(--blanco);
        }

        .video-section .features .item .icon {
            width: 70px;
            height: 70px;
            margin: 0 auto 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 34px;
            color: var(--blanco);
        }

        .video-section .features .item h4 {
            font-size: 20px;
            font-weight: 200;
            letter-spacing: 1px;
        }

        /* ============================================================ */
        /* PRODUCTOS — CARRUSEL RESPONSIVE                              */
        /* ============================================================ */
        .productos {
            padding: 60px 0 80px;
            background: var(--blanco);
            overflow: hidden;
        }

        .productos .titulo {
            text-align: center;
            font-size: 38px;
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--negro);
            letter-spacing: 1px;
        }

        .productos .titulo strong {
            color: var(--rojo);
        }

        .productos .subtitulo {
            text-align: center;
            font-size: 18px;
            font-weight: 300;
            color: var(--gris-texto);
            margin-bottom: 40px;
        }

        .product-carousel {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 50px;
        }

        .carousel-viewport {
            overflow: hidden;
            border-radius: 16px;
        }

        .carousel-track {
            display: flex;
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform;
        }

        .product-item {
            flex: 0 0 33.333333%;
            padding: 12px 14px;
            transition: opacity 0.3s;
        }

        .product-card {
            background: #ffffff;
          
            padding: 28px 20px 24px;
            text-align: center;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
            transition: box-shadow 0.3s, transform 0.3s;
            border: 1px solid #f0f0f0;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .product-card:hover {
            box-shadow: 0 16px 48px rgba(255, 20, 24, 0.10);
            transform: translateY(-4px);
        }

        .product-card a {
            display: block;
            width: 100%;
        }

        .product-card .img-wrap {
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 14px;
            background: #fafafa;
            border-radius: 12px;
            padding: 10px;
            width: 100%;
        }

        .product-card .img-wrap img {
            max-height: 100%;
            max-width: 100%;
            object-fit: contain;
            transition: transform 0.4s ease;
        }

        .product-card:hover .img-wrap img {
            transform: scale(1.04);
        }

        .product-card .nombre {
            font-size: 20px;
            font-weight: 600;
            color: var(--negro);
            margin-top: 6px;
            transition: color 0.2s;
        }

        .product-card .nombre a {
            color: var(--negro);
        }

        .product-card .nombre a:hover {
            color: var(--rojo);
        }

        .product-card .desc {
            font-size: 15px;
            color: var(--gris-texto);
            margin-top: 4px;
            font-weight: 300;
        }

        .product-card .badge {
            display: inline-block;
            margin-top: 12px;
            padding: 8px 22px;
            background: var(--rojo);
            color: #fff;
          
            font-size: 13px;
            font-weight: 500;
            letter-spacing: 0.5px;
        }
        
        
        
               .product-card .badge:hover {
                     background: transparent;
            color: var(--rojo);
			    border: 2px solid var(--rojo);
        }

        
        
        
        
        
        
        

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--blanco);
            border: 2px solid #e8e8e8;
            color: var(--negro);
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s ease;
            z-index: 5;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
        }

        .carousel-btn:hover:not(:disabled) {
            background: var(--rojo);
            border-color: var(--rojo);
            color: #fff;
            box-shadow: 0 6px 20px rgba(255, 20, 24, 0.30);
        }

        .carousel-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            transform: translateY(-50%) scale(0.95);
        }

        .carousel-btn.prev {
            left: 0;
        }

        .carousel-btn.next {
            right: 0;
        }

        .carousel-dots {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-top: 28px;
        }

        .carousel-dots .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #d0d0d0;
            border: none;
            cursor: pointer;
            transition: background 0.3s, transform 0.25s;
            padding: 0;
        }

        .carousel-dots .dot.active {
            background: var(--rojo);
            transform: scale(1.25);
        }

        .carousel-dots .dot:hover {
            background: var(--rojo-oscuro);
        }


        /* ============================================================ */
        /* RESPONSIVE                                                    */
        /* ============================================================ */

        /* --- Tablets y pantallas medianas --- */
        @media (max-width: 1024px) {
            .hero .card {
                min-height: 400px;
                padding: 40px 30px;
            }
            .hero .card p {
                font-size: 26px;
            }
            .video-section .features .grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .footer .grid {
                grid-template-columns: 1fr 1fr;
                gap: 30px;
            }
            .megamenu {
                left: 0;
                transform: none;
                width: 100%;
                max-width: 400px;
                border-radius: 0 0 8px 8px;
                grid-template-columns: 1fr;
            }
            .nav-menu {
                gap: 0;
            }
            .nav-menu>li>a {
                padding: 8px 12px;
                font-size: 14px;
            }

            .product-carousel {
                padding: 0 40px;
            }
            .carousel-btn {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
            .product-item {
                padding: 10px 12px;
            }
            .product-card .img-wrap {
                height: 170px;
            }
            .product-card .nombre {
                font-size: 18px;
            }
        }

        /* --- MÓVILES (≤ 768px) --- */
        @media (max-width: 768px) {
            /* Header superior */
            .top-header .container {
                flex-direction: column;
                gap: 4px;
                align-items: center;
                text-align: center;
                padding: 4px 16px;
            }
            .top-header .contacto span {
                margin-right: 10px;
                font-size: 12px;
            }
            .top-header .social a {
                font-size: 14px;
                margin: 0 6px;
            }

.hero-slider{
    display: block;
}
.hero .card-content{
    padding: 1rem !important;
}

.hero .card p{
    font-size:18px !important;
}
            /* ===== MENÚ HAMBURGUESA ===== */
            .menu-toggle {
                display: flex;
            }

            /* ===== NAVEGACIÓN MÓVIL ===== */
            .nav-menu {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                height: 100dvh;
                background: rgba(0, 0, 0, 0.45);
                backdrop-filter: blur(6px);
                -webkit-backdrop-filter: blur(6px);
                flex-direction: column;
                align-items: stretch;
                justify-content: flex-start;
                padding: 80px 20px 30px;
                margin: 0;
                gap: 0;
                overflow-y: auto;
                z-index: 999;
                animation: menuSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
                overscroll-behavior: contain;
            }

            @keyframes menuSlideIn {
                from {
                    opacity: 0;
                    transform: translateY(-12px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }

            .nav-menu.open {
                display: flex;
            }

            /* Panel blanco interior */
            .nav-menu::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: var(--blanco);
                border-radius: 0 0 24px 24px;
                margin: 10px 12px 20px;
                box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
                z-index: -1;
            }

            .nav-menu>li {
                width: 100%;
                border-bottom: 1px solid #f0f0f0;
                margin: 0;
            }

            .nav-menu>li:last-child {
                border-bottom: none;
            }

            .nav-menu>li>a {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 16px 20px;
                font-size: 17px;
                font-weight: 400;
                letter-spacing: 0.5px;
                border-bottom: none;
                border-radius: 0;
                white-space: normal;
                width: 100%;
                color: var(--negro);
                transition: background 0.2s;
                touch-action: manipulation;
            }

            .nav-menu>li>a:hover,
            .nav-menu>li>a.active {
                border-bottom: none;
                color: var(--rojo);
                background: rgba(255, 20, 24, 0.05);
            }

            .nav-menu>li>a .caret {
                font-size: 14px;
                transition: transform 0.3s;
                margin-left: 8px;
                flex-shrink: 0;
            }

            .nav-menu>li.open>a .caret {
                transform: rotate(180deg);
            }

            /* Submenús en móvil */
            .megamenu,
            .sub-menu {
                display: none !important;
                position: static;
                width: 100%;
                background: #f7f7f7;
                border-radius: 0;
                box-shadow: none;
                padding: 0;
                margin: 0;
                grid-template-columns: 1fr !important;
                animation: none !important;
            }

            .nav-menu>li.open .megamenu,
            .nav-menu>li.open .sub-menu {
                display: grid !important;
                animation: subMenuSlideDown 0.3s ease;
            }

            @keyframes subMenuSlideDown {
                from {
                    opacity: 0;
                    transform: translateY(-8px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }

            .megamenu .col {
                background: #f7f7f7 !important;
                padding: 8px 20px 8px 36px;
                border-bottom: 1px solid #e8e8e8;
                min-height: auto;
            }

            .megamenu .col:last-child {
                border-bottom: none;
            }

            .megamenu .col a {
                font-size: 15px;
                padding: 10px 0;
                color: #333;
                font-weight: 400;
            }

            .megamenu .col a:hover {
                color: var(--rojo);
                background: transparent;
            }

            .megamenu .col:hover {
                background: #f0f0f0 !important;
            }

            /* Sub-menu idiomas en móvil */
            .sub-menu {
                background: #f7f7f7 !important;
                padding: 4px 0 !important;
                border-radius: 0 !important;
                min-width: auto !important;
            }

            .sub-menu li a {
                padding: 10px 20px 10px 36px;
                font-size: 15px;
                color: #333;
                justify-content: flex-start;
            }

            .sub-menu li a:hover {
                background: #f0f0f0;
            }

            /* Elemento de idioma en móvil */
            .lang-dropdown>a img {
                margin-right: 6px;
            }

            /* Cerrar menú con botón X */
            .menu-close-btn {
                display: none;
            }

            .nav-menu.open .menu-close-btn {
                display: flex;
                position: fixed;
                top: 16px;
                right: 20px;
                width: 44px;
                height: 44px;
                border-radius: 50%;
                background: var(--blanco);
                border: none;
                font-size: 24px;
                color: var(--negro);
                cursor: pointer;
                align-items: center;
                justify-content: center;
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
                z-index: 1001;
                transition: background 0.2s;
                touch-action: manipulation;
            }

            .nav-menu.open .menu-close-btn:hover {
                background: #f0f0f0;
            }

            /* Hero: una tarjeta por página en móvil */
            .hero .card {
                flex: 0 0 100%;
                min-height: 320px;
                padding: 30px 24px;
            }
            .hero .card p {
                font-size: 21px;
            }
            
            
            .hero .card .title{
                 font-size: 35px;
            }
            
            
            
            
            
            
            
            .hero .card .sub-links {
                font-size: 17px;
            }
            .hero .card .sub-links br {
                display: none;
            }
            .hero .card .sub-links a {
                display: inline-block;
                margin-right: 8px;
            }

        
            /* Video section */
            .video-section .features .grid {
                grid-template-columns: 1fr 1fr;
                gap: 12px;
            }
            .video-section .features .item .icon {
                width: 50px;
                height: 50px;
                font-size: 22px;
            }
            .video-section .features .item h4 {
                font-size: 14px;
            }
            .video-section .overlay p {
                font-size: 17px;
                padding: 0 4px;
            }
            .video-section .overlay img {
                max-width: 200px;
                margin-bottom: 20px;
            }

            /* Productos carrusel móvil: 2 por página */
            .product-item {
                flex: 0 0 50%;
                padding: 8px 10px;
            }

            .productos {
                padding: 40px 0 60px;
            }
            .productos .titulo {
                font-size: 28px;
            }
            .productos .subtitulo {
                font-size: 15px;
                margin-bottom: 28px;
            }
            .product-carousel {
                padding: 0 16px;
            }
            .carousel-btn {
                width: 34px;
                height: 34px;
                font-size: 13px;
                top: 45%;
            }
            .product-card {
                padding: 16px 12px 16px;
            }
            .product-card .img-wrap {
                height: 120px;
            }
            .product-card .nombre {
                font-size: 15px;
            }
            .product-card .desc {
                font-size: 12px;
            }
            .product-card .badge {
                font-size: 11px;
                padding: 3px 14px;
            }
            .carousel-dots .dot {
                width: 10px;
                height: 10px;
            }

            /* Footer */
            .footer .grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }
            .footer-bottom {
                flex-direction: column;
                align-items: center;
                gap: 8px;
            }
            .footer .suscribirse p {
                max-width: 100%;
            }
        }

        /* --- Móviles pequeños (≤ 480px) --- */
        @media (max-width: 480px) {
            .hero .card {
                min-height: 260px;
                padding: 20px 16px;
            }
            
            .hero .card .title
             {
                font-size: 35px;
            }
            
            .hero-slider{
    display: block;
}
.hero .card-content{
    padding: 1rem !important;
}

.hero .card p{
    font-size:18px !important;
}
     
            
            .hero .card p {
                font-size: 21px;
            }
            .hero .card .sub-links {
                font-size: 15px;
                margin-bottom: 16px;
            }
            .hero .card .sub-links a {
                display: block;
                margin-right: 0;
            }
            .btn {
                padding: 10px 22px;
                font-size: 14px;
            }

            .video-section .features .grid {
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }
            .video-section .features .item {
                padding: 12px 6px;
            }
            .video-section .features .item .icon {
                width: 42px;
                height: 42px;
                font-size: 18px;
                margin-bottom: 6px;
            }
            .video-section .features .item h4 {
                font-size: 12px;
                letter-spacing: 0.3px;
            }
            .video-section .overlay p {
                font-size: 15px;
            }

            .product-item {
                padding: 4px 6px;
            }
            .product-card {
                padding: 12px 8px 12px;
                border-radius: 14px;
            }
            .product-card .img-wrap {
                height: 100px;
            }
            .product-card .nombre {
                font-size: 14px;
            }
            .product-card .desc {
                font-size: 11px;
            }
            .product-carousel {
                padding: 0 8px;
            }
            .carousel-btn {
                width: 28px;
                height: 28px;
                font-size: 11px;
            }
            .carousel-btn.prev {
                left: -4px;
            }
            .carousel-btn.next {
                right: -4px;
            }

            .hero-controls {
                gap: 10px;
                bottom: 16px;
            }
            .hero-controls .arrow {
                width: 30px;
                height: 30px;
                font-size: 12px;
            }
            .hero-controls .dot {
                width: 10px;
                height: 10px;
            }

            .nav-menu>li>a {
                font-size: 15px;
                padding: 14px 16px;
            }
            .megamenu .col a {
                font-size: 14px;
            }
            .sub-menu li a {
                font-size: 14px;
            }

            .top-header .contacto span {
                font-size: 11px;
                margin-right: 6px;
            }

            .footer .col h4 {
                font-size: 16px;
            }
            .footer .col p,
            .footer .menu-footer a {
                font-size: 14px;
            }
        }

        /* ===== UTILIDADES ===== */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            animation: fadeUp 0.7s ease forwards;
        }

        @keyframes fadeUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .delay-1 {
            animation-delay: 0.1s;
        }
        .delay-2 {
            animation-delay: 0.2s;
        }
        .delay-3 {
            animation-delay: 0.3s;
        }
        .delay-4 {
            animation-delay: 0.4s;
        }

        .delay-5 {
            animation-delay: 0.5s;
        }
       
 /* 卡片父容器强制相对定位，清除原有背景、无边距溢出 */
.hero .card {
    position: relative !important;
    width: 100%;
    height: 100%;
    background: #fff;
    margin: 0;
    padding: 0;
    overflow: hidden !important; /* 裁切超出容器的图片，不留白边 */
}


.hero .card .card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}




/* 背景图强制铺满整卡片，无留白、不变形拉伸 */
.hero .card-bg-img {
    position: absolute;
    inset: 0; /* 等价 top:0;left:0;right:0;bottom:0 四边贴紧容器 */
    width: 100%;
    height: 100%;
    object-position: center; /* 图片居中显示 */
    display: block;
    z-index: 1;
}

/* 文字内容层置于图片上方 */
.hero .card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 4rem;
}