  /* Variables y colores */
  :root {
    --primary-color: #E31837;  /* Color rojo para elementos principales */
    --secondary-color: #1A1A1A;
    --accent-color: #FFD700;
    --text-color: #333333;
    --light-gray: #F5F5F5;
    --dark-gray: #666666;
    --white: #FFFFFF;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --deep-blue: #0A2472;
    --intense-red: #DC1C13;
  }

  /* Estilos generales */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    font-size: 16px;
  }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.5;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    overflow-x: hidden;
    animation: fadeIn 1.5s ease;
  }

  @keyframes metalShine {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
  }

  /* Header y navegación */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1rem 2rem;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }

  header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
  }

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

  nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }

  .nav-links {
    display: flex;
    gap: 2rem;
  }

  .nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  /* Hero section */
  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding-top: 80px;
  }

  .hero::before {
    /* Removed background pattern */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    opacity: 0;
  }

  .hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
  }

  .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  }

  .hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
  }

  .btn-primary {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
  }

  .btn-primary:hover {
    background-color: #c71530; /* Color más oscuro al hacer hover */
    border-color: #c71530; /* Asegurarse de que el borde también cambie */
  }

  /* Eliminar todas las clases relacionadas con el modelo 3D */
  .model-3d-container,
  .model-3d,
  .cylinder,
  .cylinder-face,
  .cylinder-top,
  .cylinder-bottom,
  .cylinder-detail,
  .valve,
  .valve-body,
  .valve-handle {
    display: none;
  }

  /* Mejorar los estilos de la imagen hero */
  .hero-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
  }

  .hero-image:hover {
    transform: scale(1.03); /* Asegurarse de que el efecto de escala funcione */
  }

  .hero-image-container {
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
  }

  /* Secciones */
  section {
    padding: 6rem 2rem;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Catálogo */
  .catalogo {
    background: var(--white);
  }

  .search-bar {
    max-width: 600px;
    margin: 0 auto 2rem;
  }

  .search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 30px;
    font-size: 1rem;
    transition: var(--transition);
  }

  .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.1);
  }

  .categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .category-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.8);
    color: #666;
  }

  .category-btn:hover {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .category-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Productos */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
  }

  .product-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.4s ease;
    height: 100%;
    position: relative;
  }

  .product-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }

  .product-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(227, 24, 55, 0.3);
    border-radius: 8px;
    pointer-events: none;
    animation: pulseGlow 2s infinite;
  }

  .product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .product-info {
    padding: 1.5rem;
  }

  .product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
  }

  .model {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tag {
    background: var(--light-gray);
    color: var(--dark-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
  }

  /* Modal */
  .product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
  }

  .modal-content {
    background: var(--white);
    border-radius: 10px;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    transform: translateY(20px);
    animation: slideUp 0.3s ease forwards;
  }

  .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-gray);
    transition: var(--transition);
  }

  .close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
  }

  .new-slogan {
    color: var(--gray-200) !important;
    font-weight: 600 !important;
    padding: 0.75rem 0 !important;
    text-align: center !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
    filter: none !important;
    background: none !important;
    font-style: normal !important;
    white-space: nowrap !important;
}
div.hero-cta > p.new-slogan {
    font-size: 1.0125rem !important; /* 1.25rem * 0.9 * 0.9 */
}
@media (max-width: 900px) {
  div.hero-cta > p.new-slogan {
    font-size: 0.891rem !important; /* 1.1rem * 0.9 * 0.9 */
  }
}
@media (max-width: 600px) {
  div.hero-cta > p.new-slogan {
    font-size: 0.745rem !important; /* 0.92rem * 0.9 * 0.9 */
  }
}
@media (max-width: 400px) {
  div.hero-cta > p.new-slogan {
    font-size: 0.632rem !important; /* 0.78rem * 0.9 * 0.9 */
  }
}
@media (max-width: 900px) {
  .new-slogan {
    font-size: 0.88rem !important; /* 1.1rem * 0.8 */
  }
}
@media (max-width: 600px) {
  .new-slogan {
    font-size: 0.736rem !important; /* 0.92rem * 0.8 */
  }
}
@media (max-width: 400px) {
  .new-slogan {
    font-size: 0.624rem !important; /* 0.78rem * 0.8 */
  }
}


.new-slogan:hover {
    color: var(--gray-200) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    background: none !important;
}

  /* Animaciones */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes float {
    0%, 100% {
      transform: translateY(0) rotateY(0);
    }
    50% {
      transform: translateY(-20px) rotateY(180deg);
    }
  }

  @keyframes moveBackground {
    from {
      background-position: 0 0;
    }
    to {
      background-position: 100% 100%;
    }
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Responsive */
  @media (max-width: 768px) {
    .hero-title {
      font-size: 2.5rem;
    }

    .model-3d-container {
      width: 200px;
      height: 200px;
      right: 2%;
    }
    
    .cylinder {
      width: 150px;
      height: 225px;
    }
    
    .cylinder-face {
      width: 150px;
      height: 225px;
    }

    .cylinder-top,
    .cylinder-bottom {
      width: 150px;
      height: 150px;
    }

    .nav-links {
      display: none;
    }

    .hero-content {
      padding: 0 1rem;
    }

    section {
      padding: 4rem 1rem;
    }

    .products-grid {
      grid-template-columns: 1fr;
    }

    /* Header compacto */
    header .container {
      padding: 0 0.75rem;
    }
    
    header a {
      font-size: 0.95rem;
    }
    
    /* Animaciones para el menú móvil y búsqueda */
    #mobileSearchContainer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-out;
    }
    
    #mobileSearchContainer.hidden {
      max-height: 0;
    }
    
    #mobileSearchContainer:not(.hidden) {
      max-height: 800px; /* Altura suficiente para mostrar todo el contenido */
    }
    
    /* Estilos para el menú móvil deslizable */
    #mobileMenu {
      position: fixed;
      top: 0;
      right: 0;
      width: 100%;
      max-width: 300px;
      height: 100vh;
      background: white;
      z-index: 999999;
      overflow-y: auto;
      display: none;
      transform: translateX(100%);
      transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    }

    #mobileMenu .h-full {
      display: flex;
      flex-direction: column;
      height: 100%;
      background-color: white;
    }

    #mobileMenu nav {
      flex-grow: 1;
      background-color: white;
    }

    /* Mejoras para la alineación del menú móvil */
    #mobileMenu a {
      display: flex;
      align-items: center;
      transition: all 0.2s ease;
    }

    #mobileMenu a:hover {
      transform: translateX(3px);
    }

    #mobileMenu .mobile-menu-header {
      transition: background-color 0.2s ease;
    }

    #mobileMenu .mobile-menu-header:hover {
      background-color: rgba(227, 24, 55, 0.05);
    }

    #mobileMenu .mobile-menu-arrow {
      transition: transform 0.3s ease;
    }

    #mobileMenu .mobile-menu-arrow.rotate-90 {
      transform: rotate(90deg);
    }

    /* Ajustes para los submenús */
    #mobileMenu .mobile-menu-content {
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
      opacity: 0;
      padding-left: 1.5rem !important;
    }

    #mobileMenu .mobile-menu-content[style*="display: block"] {
      max-height: 500px;
      opacity: 1;
    }

    /* Ajustar el espacio entre elementos del submenú */
    #mobileMenu .mobile-menu-content a {
      padding-top: 0.5rem !important;
      padding-bottom: 0.5rem !important;
      font-size: 0.9rem;
    }

    /* Ajustar el espacio del panel de contacto para evitar solapamiento */
    #mobileMenu .absolute.bottom-0 {
      position: relative !important;
      margin-top: 1rem;
    }

    /* Reducir el padding del contenedor del menú móvil */
    #mobileMenu nav {
      padding-top: 0.75rem;
      padding-bottom: 0.75rem;
    }

    /* Reducir el espacio entre las secciones principales */
    #mobileMenu .mobile-menu-section {
      margin-bottom: 0.25rem;
    }

    /* Ajustar el espacio entre elementos principales */
    #mobileMenu .flex.flex-col.w-full a {
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }
  }

  /* Utilidades */
  .scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hover-lift {
    transition: transform 0.3s ease;
  }

  .hover-lift:hover {
    transform: translateY(-5px);
  }

  .loading {
    position: relative;
  }

  .loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: loading 1.5s infinite;
  }

  @keyframes loading {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(100%);
    }
  }

  /* Cards */
  .card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
  }

  .card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  /* Formularios */
  .form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
  }

  .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }

  /* Animaciones */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .animate-fade-in {
    animation: fadeIn 0.3s ease-out;
  }

  /* Utilidades */
  .text-primary {
    color: var(--primary-color);
  }

  .bg-primary {
    background-color: var(--primary-color);
  }

  .text-gray-600 {
    color: var(--gray-600);
  }

  .bg-gray-50 {
    background-color: var(--gray-50);
  }

  .bg-gray-100 {
    background-color: var(--gray-100);
  }

  .bg-gray-900 {
    background-color: var(--gray-900);
  }

  /* Scrollbar personalizada */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: var(--gray-100);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
  }

  /* Modal */
  .modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .modal.show {
    opacity: 1;
    visibility: visible;
  }

  .modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s;
  }

  .modal.show .modal-content {
    transform: translateY(0);
  }

  /* Productos */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
  }

  .product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
  }

  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  }

  .product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .product-info {
    padding: 1.5rem;
  }

  .product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .product-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
  }

  .product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
  }

  /* Categorías */
  .category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
  }

  .category-button {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
  }

  .category-button.active {
    background-color: var(--primary-color);
    color: white;
  }

  /* Footer */
  .footer {
    background: linear-gradient(to bottom, #1a1a1a, #333);
    color: white;
    position: relative;
    overflow: hidden;
  }

  footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Removed diagonal line pattern */
    background: transparent;
    pointer-events: none;
  }

  /* Textura metalizada para sección historia */
  .metal-texture-bg {
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  .metal-texture-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f5f5;
    animation: metalGradient 15s ease infinite;
    opacity: 0.6;
    z-index: -2;
    filter: contrast(1.1) brightness(1.05);
  }

  .metal-texture-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 5px),
      repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 5px);
    z-index: -1;
  }

  @keyframes metalGradient {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
  }

  /* Responsive */
  @media (max-width: 640px) {
    .hero-title {
      font-size: 2.5rem;
    }
    
    .hero-description {
      font-size: 1.125rem;
    }
    
    .product-grid {
      grid-template-columns: 1fr;
    }
    
    .category-buttons {
      flex-direction: column;
      align-items: stretch;
    }
    
    .category-button {
      text-align: center;
    }
  }

  @keyframes rotate {
    from {
      transform: rotateY(0deg);
    }
    to {
      transform: rotateY(360deg);
    }
  }

  #productGrid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    opacity: 1;
    animation: fadeIn 0.5s ease-out forwards;
  }

  @media (min-width: 768px) {
    #productGrid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 1024px) {
    #productGrid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (min-width: 1280px) {
    #productGrid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .product-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.75rem;
    border-radius: 9999px;
  }

  .product-tag:hover {
    background-color: rgba(227, 24, 55, 0.1);
    color: var(--primary-color);
  }

  .load-more-btn {
    margin-top: 3rem;
    background-color: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .load-more-btn:hover {
    background-color: var(--gray-50);
  }

  /* Animaciones para los productos */
  #productGrid > article {
    animation: fadeIn 0.5s ease-out forwards;
  }

  /* Contenedor de tags */
  .categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  /* Forzar color gris claro en el slogan del hero CTA */
  .new-slogan {
    color: var(--gray-200) !important;
  }

  /* Estilos para tarjetas de búsqueda */
  .search-card {
      display: flex;
      flex-direction: column;
      height: 100%;
      background-color: #fff;
      border-radius: 0.5rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .search-card:hover {
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .search-card-image {
      height: 200px;
      background-color: #f9f9f9;
      padding: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .search-card-image img {
      max-height: 100%;
      max-width: 100%;
      object-fit: contain;
  }

  .search-card-content {
      padding: 1rem;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
  }

  .search-card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 0.5rem;
  }

  .search-card-title {
      font-size: 1.125rem;
      font-weight: 600;
      color: #111827;
      margin: 0;
  }

  .search-card-category {
      font-size: 0.75rem;
      color: #fff;
      background-color: #E31837;
      padding: 0.25rem 0.5rem;
      border-radius: 0.25rem;
      white-space: nowrap;
  }

  .search-card-description {
      color: #4B5563;
      font-size: 0.875rem;
      margin-bottom: 1rem;
      flex-grow: 1;
  }

  .search-card-specs {
      font-size: 0.875rem;
      color: #374151;
      margin-bottom: 0.75rem;
  }

  .search-card-specs span {
      font-weight: 500;
  }

  .search-card-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.25rem;
      margin-bottom: 1rem;
  }

  .search-card-tag {
      font-size: 0.75rem;
      color: #4B5563;
      background-color: #F3F4F6;
      padding: 0.25rem 0.5rem;
      border-radius: 9999px;
  }

  .search-card-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: auto;
      padding-top: 0.75rem;
      border-top: 1px solid #E5E7EB;
  }

  .search-card-link {
      font-size: 0.875rem;
      color: #E31837;
      font-weight: 500;
      display: flex;
      align-items: center;
      transition: color 0.2s ease;
  }

  .search-card-link:hover {
      color: #b8142d;
  }

  .search-card-link i {
      margin-right: 0.25rem;
  }

  .search-card-button {
      font-size: 0.875rem;
      color: #fff;
      background-color: #E31837;
      font-weight: 500;
      padding: 0.375rem 0.75rem;
      border-radius: 0.25rem;
      display: flex;
      align-items: center;
      transition: background-color 0.2s ease;
      border: none;
      cursor: pointer;
  }

  .search-card-button:hover {
      background-color: #b8142d;
  }

  .search-card-button i {
      margin-right: 0.375rem;
  }

  /* Ajustes para el contenedor de resultados */
  .search-results-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
  }

  @media (min-width: 768px) {
      .search-results-grid {
          grid-template-columns: repeat(2, 1fr);
      }
  }

  @media (min-width: 1024px) {
      .search-results-grid {
          grid-template-columns: repeat(3, 1fr);
      }
  }

  /* Ajustes para el icono del menú móvil */
  #mobileMenuToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
  }

  #mobileMenuToggle:active {
    background-color: rgba(0, 0, 0, 0.05);
  }

  /* Estilos para mensajes de no resultados */
  .no-results {
      text-align: center;
      padding: 3rem 1rem;
  }

  .no-results i {
      font-size: 3rem;
      color: var(--gray-300);
      margin-bottom: 1rem;
  }

  .no-results h3 {
      font-size: 1.5rem;
      color: var(--gray-700);
      margin-bottom: 0.5rem;
  }

  .no-results p {
      color: var(--gray-500);
      max-width: 30rem;
      margin: 0 auto;
  }

  /* Estilos para el spinner de carga */
  .spinner {
      display: inline-block;
      width: 3rem;
      height: 3rem;
      border: 0.25rem solid rgba(227, 24, 55, 0.3);
      border-radius: 50%;
      border-top-color: var(--primary-color);
      animation: spin 1s ease-in-out infinite;
  }

  @keyframes spin {
      to {
          transform: rotate(360deg);
      }
  }

  /* Estilos para formularios */
  .form-group {
      margin-bottom: 1rem;
  }

  .form-label {
      display: block;
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--gray-700);
      margin-bottom: 0.25rem;
  }

  .form-control {
      width: 100%;
      padding: 0.5rem 0.75rem;
      font-size: 1rem;
      line-height: 1.5;
      color: var(--gray-800);
      background-color: white;
      border: 1px solid var(--gray-300);
      border-radius: 0.25rem;
      transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }

  .form-control:focus {
      border-color: var(--primary-color);
      outline: 0;
      box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.25);
  }

  .btn {
      display: inline-block;
      font-weight: 500;
      text-align: center;
      vertical-align: middle;
      cursor: pointer;
      user-select: none;
      padding: 0.375rem 0.75rem;
      font-size: 1rem;
      line-height: 1.5;
      border-radius: 0.25rem;
      transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }

  .btn-primary {
      color: white;
      background-color: var(--primary-color);
      border: 1px solid var(--primary-color);
  }

  .btn-primary:hover {
      background-color: #c71530;
      border-color: #c71530;
  }

  .btn-outline-primary {
      color: var(--primary-color);
      background-color: transparent;
      border: 1px solid var(--primary-color);
  }

  .btn-outline-primary:hover {
      color: white;
      background-color: #E31837;
  }

  /* Utilidades */
  .text-primary {
      color: #E31837;
  }

  .bg-primary {
      background-color: #E31837;
  }

  .text-secondary {
      color: var(--secondary-color);
  }

  .bg-secondary {
      background-color: var(--secondary-color);
  }

  .rounded {
      border-radius: 0.25rem;
  }

  .shadow-sm {
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }

  .shadow {
      box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  }

  .shadow-md {
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  .shadow-lg {
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }

  .hidden {
      display: none;
  }

  /* Tarjeta metálica para la sección de historia */
  .metal-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.15);
    overflow: hidden;
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.1),
      0 1px 2px rgba(0, 0, 0, 0.05),
      inset 0 1px 1px rgba(255, 255, 255, 0.5),
      inset 0 -1px 1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
  }

  .metal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      to bottom right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.2) 35%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0.2) 65%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    z-index: 0;
    pointer-events: none;
    animation: shimmer 5s linear infinite;
  }

  @keyframes shimmer {
    0% { transform: translateY(-100%) rotate(45deg); }
    100% { transform: translateY(100%) rotate(45deg); }
  }

  /* Efecto de metal en la sección Nosotros */
  .metal-bg {
    position: relative;
    overflow: hidden;
  }

  .metal-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
      rgba(192,192,192,0.3), 
      rgba(232,232,232,0.5), 
      rgba(168,168,168,0.3), 
      rgba(217,217,217,0.4)
    );
    background-size: 400% 400%;
    animation: metalShimmer 15s ease infinite;
    z-index: 1;
    pointer-events: none;
  }

  .metal-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 8px),
      repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 8px);
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
  }

  /* Clases para añadir animaciones a los elementos al hacer scroll */
  .animated-element {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .animated-element.fade-in {
    opacity: 1;
  }
  
  .animated-element.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
  }
  
  .animated-element.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  .animated-element.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
  }
  
  .animated-element.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
  }
  
  .animated-element.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
  }
  
  .animated-element.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
  }

  /* Efectos metálicos mejorados para las formas */
  .metal-contact-shape {
    position: absolute;
    z-index: 5;
    opacity: 0.65;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease-out, opacity 0.4s ease;
    background-image: linear-gradient(
      135deg,
      rgba(180, 180, 180, 0.95),
      rgba(210, 210, 210, 0.95),
      rgba(160, 160, 160, 0.95)
    );
  }

  .metal-contact-shape:hover {
    opacity: 0.8;
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  /* Posiciones explícitas para que sean más visibles */
  .metal-contact-shape-1 {
    top: 15%;
    left: 10%;
    width: 150px;
    height: 100px;
    transform: rotate(15deg);
    background: linear-gradient(135deg, #888, #aaa, #999);
  }

  .metal-contact-shape-2 {
    top: 20%;
    right: 15%;
    width: 120px;
    height: 80px;
    transform: rotate(-10deg);
    background: linear-gradient(135deg, #777, #999, #888);
  }

  .metal-contact-shape-3 {
    bottom: 25%;
    left: 15%;
    width: 100px;
    height: 140px;
    transform: rotate(25deg);
    background: linear-gradient(135deg, #999, #bbb, #aaa);
  }

  .metal-contact-shape-4 {
    bottom: 20%;
    right: 12%;
    width: 180px;
    height: 90px;
    transform: rotate(-8deg);
    background: linear-gradient(135deg, #666, #888, #777);
  }

  .metal-contact-shape-5 {
    top: 35%;
    left: 25%;
    width: 130px;
    height: 70px;
    transform: rotate(5deg);
    background: linear-gradient(135deg, #777, #999, #888);
  }

  /* Rotaciones más evidentes pero simplificadas */
  .scroll-move-1 {
    transform: translateY(-30px) rotate(-30deg) scale(1.2);
    transition: transform 1.5s ease-out;
  }

  .scroll-move-2 {
    transform: translateY(40px) rotate(45deg) scale(1.3);
    transition: transform 1.8s ease-out;
  }

  .scroll-move-3 {
    transform: translateY(-35px) rotate(60deg) scale(1.25);
    transition: transform 1.6s ease-out;
  }

  .scroll-move-4 {
    transform: translateY(45px) rotate(75deg) scale(1.35);
    transition: transform 2s ease-out;
  }

  .scroll-move-5 {
    transform: translateY(-40px) rotate(-60deg) scale(1.4);
    transition: transform 1.7s ease-out;
  }

  /* Mantener los otros estilos existentes */
  /* Rotaciones más evidentes */
  .scroll-move-1 {
    transform: translateY(-50px) rotate(-180deg) scale(1.4);
    transition: transform 1.5s ease-out;
  }

  .scroll-move-2 {
    transform: translateY(70px) rotate(270deg) scale(1.3);
    transition: transform 1.8s ease-out;
  }

  .scroll-move-3 {
    transform: translateY(-60px) rotate(225deg) scale(1.5);
    transition: transform 1.6s ease-out;
  }

  .scroll-move-4 {
    transform: translateY(65px) rotate(450deg) scale(1.35);
    transition: transform 2s ease-out;
  }

  .scroll-move-5 {
    transform: translateY(-70px) rotate(-315deg) scale(1.4);
    transition: transform 1.7s ease-out;
  }

  .scroll-move-6 {
    transform: translateY(80px) rotate(360deg) scale(1.3);
    transition: transform 1.9s ease-out;
  }

  .scroll-move-7 {
    transform: translateY(-75px) rotate(-405deg) scale(1.5);
    transition: transform 2.1s ease-out;
  }

  .scroll-move-8 {
    transform: translateY(70px) rotate(495deg) scale(1.35);
    transition: transform 2.3s ease-out;
  }

  .scroll-move-9 {
    transform: translateY(-65px) rotate(540deg) scale(1.4);
    transition: transform 1.8s ease-out;
  }

  .scroll-move-10 {
    transform: translateY(85px) rotate(-450deg) scale(1.5);
    transition: transform 2.2s ease-out;
  }

  .scroll-move-11 {
    transform: translateY(-80px) rotate(405deg) scale(1.55);
    transition: transform 2s ease-out;
  }

  .scroll-move-12 {
    transform: translateY(75px) rotate(-360deg) scale(1.45);
    transition: transform 1.9s ease-out;
  }

  .scroll-move-13 {
    transform: translateY(-70px) rotate(315deg) scale(1.4);
    transition: transform 1.7s ease-out;
  }

  .scroll-move-14 {
    transform: translateY(90px) rotate(-540deg) scale(1.6);
    transition: transform 2.4s ease-out;
  }

  .scroll-move-15 {
    transform: translateY(-85px) rotate(630deg) scale(1.55);
    transition: transform 2.5s ease-out;
  }

  .scroll-move-16 {
    transform: translateY(-90px) rotate(-675deg) scale(1.5);
    transition: transform 2.2s ease-out;
  }

  .scroll-move-17 {
    transform: translateY(95px) rotate(720deg) scale(1.6);
    transition: transform 2.6s ease-out;
  }

  .scroll-move-18 {
    transform: translateY(-80px) rotate(-765deg) scale(1.45);
    transition: transform 2.3s ease-out;
  }

  .scroll-move-19 {
    transform: translateY(85px) rotate(810deg) scale(1.55);
    transition: transform 2.7s ease-out;
  }

  .scroll-move-20 {
    transform: translateY(-95px) rotate(-900deg) scale(1.65);
    transition: transform 3s ease-out;
  }

  /* Nuevos rectángulos adicionales */
  .metal-contact-shape-21 {
    top: 12%;
    right: 25%;
    width: 160px;
    height: 60px;
    transform: rotate(15deg);
    background: linear-gradient(135deg, #777, #999, #888);
    opacity: 0.25;
    z-index: 5;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease-out;
    backdrop-filter: blur(3px);
  }

  .metal-contact-shape-22 {
    bottom: 10%;
    left: 35%;
    width: 120px;
    height: 120px;
    transform: rotate(-20deg);
    background: linear-gradient(135deg, #555, #777, #666);
    opacity: 0.25;
    z-index: 5;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease-out;
    backdrop-filter: blur(3px);
  }

  .metal-contact-shape-23 {
    top: 45%;
    right: 15%;
    width: 100px;
    height: 140px;
    transform: rotate(25deg);
    background: linear-gradient(135deg, #666, #888, #777);
    opacity: 0.25;
    z-index: 5;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease-out;
    backdrop-filter: blur(3px);
  }

  .metal-contact-shape-24 {
    bottom: 30%;
    left: 10%;
    width: 180px;
    height: 70px;
    transform: rotate(-10deg);
    background: linear-gradient(135deg, #444, #666, #555);
    opacity: 0.25;
    z-index: 5;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease-out;
    backdrop-filter: blur(3px);
  }

  .metal-contact-shape-25 {
    top: 20%;
    left: 45%;
    width: 140px;
    height: 80px;
    transform: rotate(5deg);
    background: linear-gradient(135deg, #555, #777, #666);
    opacity: 0.25;
    z-index: 5;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease-out;
    backdrop-filter: blur(3px);
  }

  .scroll-move-21 {
    transform: translateY(100px) rotate(720deg) scale(1.7);
    transition: transform 2.8s ease-out;
  }

  .scroll-move-22 {
    transform: translateY(-105px) rotate(-810deg) scale(1.75);
    transition: transform 3.2s ease-out;
  }

  .scroll-move-23 {
    transform: translateY(110px) rotate(900deg) scale(1.6);
    transition: transform 2.9s ease-out;
  }

  .scroll-move-24 {
    transform: translateY(-115px) rotate(-990deg) scale(1.8);
    transition: transform 3.4s ease-out;
  }

  .scroll-move-25 {
    transform: translateY(120px) rotate(1080deg) scale(1.65);
    transition: transform 3.5s ease-out;
  }

  .text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  /* Animaciones mejoradas */
  @keyframes fadeInRightToLeft {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

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

  @keyframes pulseGlow {
    0% {
      box-shadow: 0 0 0 0 rgba(227, 24, 55, 0.4);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(227, 24, 55, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(227, 24, 55, 0);
    }
  }

  @keyframes floatUpDown {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  /* Mejoras para elementos específicos */
  .nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    transition: all 0.3s ease;
  }

  /* Efecto de aparición para las imágenes */
  img.animate-on-scroll {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  img.animate-on-scroll.visible {
    opacity: 1;
    transform: scale(1);
  }

  /* Efecto para los iconos */
  i.animate-icon {
    display: inline-block;
    transition: transform 0.3s ease;
  }

  i.animate-icon:hover {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary-color);
  }

  /* Efecto de destello metálico en hover */
  .metal-hover-effect {
    position: relative;
    overflow: hidden;
  }

  .metal-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.7s ease-in-out;
    z-index: 2;
    pointer-events: none;
  }

  .metal-hover-effect:hover::before {
    left: 100%;
  }

  /* Efecto de metal oscuro para sección Productos - mejorado para visibilidad */
  .metal-bg2 {
    position: relative;
    overflow: hidden;
    background-color: rgba(30, 30, 30, 0.97); /* Fondo base más oscuro */
  }

  .metal-bg2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
      rgba(40,40,40,0.9), 
      rgba(60,60,60,0.9), 
      rgba(45,45,45,0.9), 
      rgba(75,75,75,0.9)
    ); /* Valores más claros para mejor visibilidad */
    background-size: 400% 400%;
    animation: metalShimmer2 15s ease infinite;
    z-index: 1;
    pointer-events: none;
  }

  .metal-bg2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 15px),
      repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 15px);
    z-index: 2;
    pointer-events: none;
  }

  @keyframes metalShimmer2 {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
  }

  /* Efecto parallax para el fondo metálico - simplificado para mejor compatibilidad */
  .metal-bg2-parallax {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    bottom: -50px;
    transform: scale(1.2);
    z-index: 0;
  }

  .metal-bg2-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20,20,20,0.5); /* Más transparente para ver mejor el efecto */
    z-index: 1;
  }

  .metal-bg2-parallax img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.3; /* Más visible */
  }

  /* Mejoras para la sección de contacto */
  #contacto {
    position: relative;
    overflow: hidden;
    background-color: rgba(30, 30, 30, 0.95); /* Fondo más oscuro */
  }

  #contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
      rgba(255,255,255,0.05), 
      rgba(255,255,255,0.1), 
      rgba(255,255,255,0.05)
    );
    z-index: 2;
    pointer-events: none;
  }

  /* Ajuste para el tamaño de las tarjetas en contacto */
  #contacto .lg\:col-span-1,
  #contacto .lg\:col-span-2 {
    max-width: 92%;
    margin: 0 auto;
  }

  #contacto .p-8 {
    padding: 1.5rem; /* Reducido de 2rem (p-8) a 1.5rem */
  }

  #contacto .rounded-xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  #contacto .rounded-xl:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }

  #contacto input, 
  #contacto textarea {
    transition: all 0.2s ease;
    color: #333;
    background-color: #fff;
  }

  #contacto input:focus, 
  #contacto textarea:focus {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(227, 24, 55, 0.15);
    outline: none;
    border-color: #E31837;
  }

  #contacto button[type="submit"] {
    position: relative;
    overflow: hidden;
  }

  #contacto button[type="submit"]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      45deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 70%
    );
    z-index: 1;
    transform: rotate(25deg) translateY(-100px) translateX(-100px);
    transition: all 0.6s ease-in-out;
    pointer-events: none;
  }

  #contacto button[type="submit"]:hover::before {
    transform: rotate(25deg) translateY(300px) translateX(300px);
  }

  #contacto h2,
  #contacto .text-primary,
  #contacto p {
    color: #FFFFFF !important; /* Texto blanco en la sección de contacto */
  }

  #contacto .text-gray-600 {
    color: #EEEEEE !important; /* Texto secundario más claro */
  }

  /* Estilos específicos para la nueva tarjeta de contacto unificada */
  #contacto .max-w-4xl {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  #contacto .bg-gradient-to-br {
    position: relative;
  }

  #contacto .bg-gradient-to-br::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
  }

  #contacto .bg-primary {
    background-color: #E31837;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }

  #contacto .rounded-xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
  }

  #contacto .rounded-xl:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }

  #contacto input, 
  #contacto textarea {
    transition: all 0.2s ease;
    color: #333;
    background-color: #fff;
  }

  #contacto input:focus, 
  #contacto textarea:focus {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(227, 24, 55, 0.15);
    outline: none;
    border-color: #E31837;
  }

  #contacto button[type="submit"] {
    position: relative;
    overflow: hidden;
  }

  #contacto button[type="submit"]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      45deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 70%
    );
    z-index: 1;
    transform: rotate(25deg) translateY(-100px) translateX(-100px);
    transition: all 0.6s ease-in-out;
    pointer-events: none;
  }

  #contacto button[type="submit"]:hover::before {
    transform: rotate(25deg) translateY(300px) translateX(300px);
  }

  #contacto h2,
  #contacto .text-primary,
  #contacto p {
    color: #FFFFFF !important;
  }

  #contacto .text-gray-600 {
    color: #EEEEEE !important;
  }

  /* Mejoras para el hero section */
  .hero-industrial {
    position: relative;
    overflow: hidden;
  }

  /* Overlay con líneas metálicas para el hero */
  .hero-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
    background-image: 
      repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 15px),
      repeating-linear-gradient(-45deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 15px);
  }

  /* Asegurar que la imagen del hero tenga la opacidad correcta */
  #parallaxImage img {
    opacity: 1;
    transition: transform 0.3s ease-out;
  }

  /* Asegurar que el text section del hero tenga buen contraste */
  .hero-content {
    z-index: 10;
    position: relative;
  }

  /* Animación pulsante para el call-to-action en el hero */
  @keyframes pulseButton {
    0% {
      transform: scale(1);
      box-shadow: 0 5px 15px rgba(227, 24, 55, 0.5);
    }
    50% {
      transform: scale(1.05);
      box-shadow: 0 5px 25px rgba(227, 24, 55, 0.7);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 5px 15px rgba(227, 24, 55, 0.5);
    }
  }

  /* Overlay para el gradiente del hero - con mejor contraste */
  .bg-gradient-to-r.from-\[\#444444\]\/80 {
    background: linear-gradient(to right, 
      rgba(68, 68, 68, 0.85), 
      rgba(136, 136, 136, 0.7), 
      rgba(221, 221, 221, 0.75)
    ) !important;
    /* Reforzar para que no sea sobrescrito */
  }

  /* Líneas metálicas adicionales en el gradiente del hero */
  .bg-gradient-to-r.from-\[\#444444\]\/80::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 10px),
      repeating-linear-gradient(-45deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 10px);
    z-index: 1;
    pointer-events: none;
  }

  .cinta-logos .logo {
    transition: transform 0.3s;
  }

  .cinta-logos .logo:hover {
    transform: scale(1.1);
  }

  /* Animaciones mejoradas */
  @keyframes fadeInRightToLeft {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

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

  @keyframes pulseGlow {
    0% {
      box-shadow: 0 0 0 0 rgba(227, 24, 55, 0.4);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(227, 24, 55, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(227, 24, 55, 0);
    }
  }

  @keyframes floatUpDown {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  /* Reducir tamaño de fuente en el footer */
.footer, footer {
  background: #111827 !important;
  color: #fff !important;
  font-size: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.footer .text-sm, footer .text-sm {
  font-size: 0.95rem !important;
  color: #9CA3AF !important;
  line-height: 1.6;
}
.footer .text-base, footer .text-base {
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  color: #fff !important;
}
.footer .font-semibold, footer .font-semibold {
  font-weight: 600 !important;
}
.footer .text-gray-400, footer .text-gray-400 {
  color: #9CA3AF !important;
}
.footer .hover\:text-white:hover, footer .hover\:text-white:hover {
  color: #fff !important;
}
.footer a, footer a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover, footer a:hover {
  color: #fff !important;
  text-decoration: underline;
}
.footer .border-t, footer .border-t {
  border-top: 1px solid rgba(255,255,255,0.15) !important;
}
.footer .text-center, footer .text-center {
  text-align: center !important;
}
.footer .uppercase, footer .uppercase {
  text-transform: uppercase !important;
}
.footer .tracking-wider, footer .tracking-wider {
  letter-spacing: 0.05em !important;
}
.footer .container, footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.footer .mb-3, footer .mb-3 { margin-bottom: 0.75rem !important; }
.footer .mb-2, footer .mb-2 { margin-bottom: 0.5rem !important; }
.footer .mt-1, footer .mt-1 { margin-top: 0.25rem !important; }
.footer .mt-2, footer .mt-2 { margin-top: 0.5rem !important; }
.footer .mt-4, footer .mt-4 { margin-top: 1rem !important; }
.footer .pt-6, footer .pt-6 { padding-top: 1.5rem !important; }
.footer .py-8, footer .py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.footer .h-10, footer .h-10 { height: 2.5rem !important; }
.footer .rounded-xl, footer .rounded-xl { border-radius: 0.75rem !important; }
.footer .space-y-2 > :not([hidden]) ~ :not([hidden]), footer .space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem !important; }
.footer .flex, footer .flex { display: flex !important; }
.footer .space-x-4 > :not([hidden]) ~ :not([hidden]), footer .space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem !important; }
.footer .text-2xl, footer .text-2xl { font-size: 1.5rem !important; }
.footer .font-bold, footer .font-bold { font-weight: 700 !important; }
.footer .leading-relaxed, footer .leading-relaxed { line-height: 1.625 !important; }
.footer .w-auto, footer .w-auto { width: auto !important; }
.footer .mx-auto, footer .mx-auto { margin-left: auto !important; margin-right: auto !important; }
.footer .grid, footer .grid { display: grid !important; }
.footer .grid-cols-1, footer .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.footer .md\:grid-cols-4, footer .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.footer .gap-8, footer .gap-8 { gap: 2rem !important; }
.footer .max-w-7xl, footer .max-w-7xl { max-width: 80rem !important; }
.footer .border-white\/20, footer .border-white\/20 { border-color: rgba(255,255,255,0.2) !important; }
.footer .text-white\/70, footer .text-white\/70 { color: rgba(255,255,255,0.7) !important; }
@media (max-width: 768px) {
  .footer .grid, footer .grid { grid-template-columns: 1fr !important; }
  .footer .container, footer .container { padding-left: 0.5rem; padding-right: 0.5rem; }
  .footer .py-8, footer .py-8 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
}

/* Media Queries para Responsividad */
  @media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem; /* Ajustar tamaño de fuente */
    }

    .products-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }

    .nav-links {
        display: none; /* Ocultar enlaces en móviles */
    }

    #mobileMenu {
        display: flex; /* Mostrar menú móvil */
    }

    .hero-image {
        width: 100%; /* Asegurarse de que la imagen ocupe el 100% del contenedor */
        height: auto; /* Mantener la proporción */
    }

    .product-card {
        width: 100%; /* Asegurarse de que las tarjetas ocupen el 100% del contenedor */
        height: auto; /* Mantener la proporción */
    }

    .footer {
        padding: 1rem; /* Espaciado adecuado */
        text-align: center; /* Centrar texto en móviles */
    }

    .animate-fade-in {
        animation: none; /* Desactivar animaciones en móviles */
    }
  }

  @media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas en pantallas medianas */
    }
  }

  @media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr); /* Tres columnas en pantallas grandes */
    }
  }

  .client-card .client-desc {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .client-card:hover .client-desc,
  .client-card.show-desc .client-desc {
    opacity: 1;
    pointer-events: auto;
  }

  /* --- FIX: Submenús header (robusto para hosting) --- */
  .submenu { display: none !important; }
  .group:hover .submenu,
  .group:focus-within .submenu {
    display: block !important;
  }