/* =======================================================
   RESET BÁSICO
   ======================================================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* =======================================================
     ESTILOS GLOBALES
     ======================================================= */
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background-color: #fdfdfd;
    line-height: 1.6;
  }
  
  /* Contenedor principal para centrar contenido y limitar ancho */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* Clases utilitarias */
  .text-center {
    text-align: center;
  }
  
  .btn {
    display: inline-block;
    background-color: #fff;
    color: #000;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  
  .btn:hover {
    background-color: #ddd;
  }
  
  /* =======================================================
     HEADER
     ======================================================= */
  .header {
    position: relative;
    background: url('img/header-bg.jpg') center center / cover no-repeat;
    min-height: 100vh; /* Ocupa la altura completa de la ventana */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
  }
  
  /* Overlay para oscurecer la imagen de fondo y resaltar texto */
  .header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }
  
  /* Asegura que el contenido (navbar, hero) quede sobre el overlay */
  .header > * {
    position: relative;
    z-index: 2;
  }
  
  /* -------------------------------------------------------
     NAVBAR
     ------------------------------------------------------- */
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
  }
  
  /* Logo (puede ser imagen o texto) */
  .logo h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
  }
  
  /* Lista de enlaces (versión escritorio) */
  .nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
  }
  
  /* Ocultamos menú en móvil por defecto (ver media query) */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 40px;
    background: rgba(0,0,0,0.9);
    padding: 20px;
    border-radius: 4px;
  }
  
  /* Enlaces de navegación */
  .nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
  }
  
  .nav-links li a:hover {
    color: #ddd;
  }
  
  /* Ícono de menú hamburguesa (solo visible en móvil) */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  
  .hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
  }
  
  /* -------------------------------------------------------
     HERO CONTENT (Encabezado principal)
     ------------------------------------------------------- */
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 0 20px 40px;
  }
  
  .hero-title {
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
  }
  
  .hero-button {
    display: inline-block;
    background-color: #fff;
    color: #000;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  
  .hero-button:hover {
    background-color: #ddd;
  }
  
  /* =======================================================
     SECCIÓN: MATERIAL DE ALTA CALIDAD (MEJORADA)
     ======================================================= */
  .material-calidad {
    background-color: #fafafa;
    padding: 60px 0;
    text-align: center;
  }
  
  .material-calidad h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
  }
  
  .material-calidad .intro-text {
    max-width: 600px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
  }
  
  /* Contenedor de características (grid responsivo) */
  .material-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    align-items: start;
  }
  
  /* Tarjeta individual */
  .feature-item {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .feature-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Imagen o ícono */
  .feature-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    margin-bottom: 15px;
  }
  
  /* Título y descripción */
  .feature-item h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: lighter;
  }
  
  .feature-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
  }
  
  /* =======================================================
     OTRAS SECCIONES (EJEMPLOS)
     ======================================================= */
  
  /* Sección de máquinas */
  .maquinas {
    background: #fafafa;
    padding: 60px 0;
    text-align: center;
  }
  
  .maquinas h2 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .maquinas p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: #666;
  }
  
  .maquinas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .maquina-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s ease;
  }
  
  .maquina-card:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  
  .maquina-card img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  
  .maquina-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
  }
  
  /* Sección de contacto */
  .contacto {
    background: #fff;
    padding: 60px 0;
    text-align: center;
  }
  
  .contacto h2 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .contacto p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: #666;
  }
  
  .mapa img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border: 1px solid #eee;
    margin-bottom: 40px;
  }
  
  .formulario-contacto {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
  }
  
  .formulario-contacto h3 {
    margin-bottom: 20px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  .formulario-contacto button {
    width: 100%;
    padding: 12px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .formulario-contacto button:hover {
    background: #555;
  }
  
  /* =======================================================
     FOOTER
     ======================================================= */
  .footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
  }
  
  .footer p {
    margin: 0;
    font-size: 0.9rem;
  }
  
  /* =======================================================
     MEDIA QUERIES (RESPONSIVIDAD)
     ======================================================= */
  
  /* Para pantallas con ancho máximo de 768px */
  @media (max-width: 768px) {
    /* Mostramos ícono de hamburguesa y ocultamos menú por defecto */
    .hamburger {
      display: flex;
    }
  
    .nav-links {
      display: none;
      position: absolute;
      right: 40px;
      top: 70px;
      background: rgba(0,0,0,0.9);
      padding: 20px;
      border-radius: 4px;
      flex-direction: column;
      gap: 15px;
    }
  
    /* Cuando se active la clase .active con JavaScript */
    .nav-links.active {
      display: flex;
    }
  
    .navbar {
      padding: 10px 20px;
    }
  
    .hero-title {
      font-size: 2.4rem;
    }
  
    .hero-subtitle {
      font-size: 1rem;
    }
  }


  
  /* SECCIÓN DEL CARRUSEL */
 /* ------------------------------------------------
       SECCIÓN CON IMAGEN DE FONDO Y SLIDER
    ------------------------------------------------ */
    .slider-section {
        /* Cambia la ruta a tu imagen de fondo */
        background: url('img/background-pattern.jpg') center center / cover no-repeat;
        padding: 60px 20px;
        text-align: center;
        position: relative;
        color: #fff;
      }
      .slider-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
        font-family: Georgia, 'Times New Roman', serif;
      }
      /* ------------------------------------------------
         ESTILOS PERSONALIZADOS PARA SPLIDE
      ------------------------------------------------ */
      /* Ajusta el tamaño y estilo de las imágenes del slider */
      .splide__slide img {
        width: 200px;
        height: 200px;
        object-fit: cover;
        margin: 0 auto;
        border: 2px solid #fff;
        border-radius: 4px;
      }
      /* Texto debajo de cada imagen */
      .slide-caption {
        margin-top: 10px;
        font-size: 1rem;
        font-weight: 600;
        text-transform: capitalize;
      }
      /* Opcional: ajustar los bullets de paginación */
      .splide__pagination__page {
        background: #fff;
        border: 2px solid #fff;
        width: 12px;
        height: 12px;
        opacity: 0.7;
        transition: opacity 0.3s;
      }
      .splide__pagination__page.is-active {
        opacity: 1;
      }
      .splide__pagination{
        bottom: -1.5em !important;
      }
      /* Responsividad: reduce tamaños en pantallas pequeñas */
      @media (max-width: 768px) {
        .splide__slide img {
          width: 150px;
          height: 150px;
        }
        .slider-section h2 {
          font-size: 1.5rem;
          margin-bottom: 20px;
        }
      }
  
/* =========================================
SECCION: CATALOGOS
========================================= */
    /* SECCION: CATALOGOS */
    .catalogos-section {
        background: #fff;
        padding: 60px 20px;
        max-width: 1200px;
        margin: 0 auto;
      }
  
      /* Contenedor superior: imagen + texto */
      .catalogos-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 40px;
      }
  
      .catalogos-img {
        width: 50%;
        max-width: 400px;
        object-fit: cover;
        border-radius: 4px;
      }
  
      .catalogos-text {
        flex: 1;
      }
  
      .catalogos-text p {
        font-size: 1rem;
        color: #555;
        line-height: 1.5;
      }
  
      /* Título principal */
      .catalogos-section h2 {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 20px;
      }
  
      /* Contenedor de los catálogos (grid responsive) */
      .catalogos-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
      }
  
      /* Tarjeta de cada catálogo */
      .catalogo-card {
        background: #2c2c2c;
        color: #fff;
        padding: 20px;
        border-radius: 4px;
        transition: box-shadow 0.3s ease;
      }
  
      .catalogo-card:hover {
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
      }
  
      .catalogo-card h3 {
        margin-bottom: 10px;
        font-size: 1.2rem;
      }
  
      .catalogo-card p {
        font-size: 0.95rem;
        line-height: 1.4;
      }
  
      /* Responsividad en pantallas más pequeñas */
      @media (max-width: 768px) {
        .catalogos-header {
          flex-direction: column;
        }
        .catalogos-img {
          width: 100%;
          max-width: 100%;
        }
        .catalogos-text p {
          margin-top: 20px;
        }
      }

/* ================================
       SECCIÓN: TECNOLOGÍA
    ================================ */
    .tech-section {
        max-width: 1200px;
        margin: 0 auto;
        padding: 60px 20px;
      }
  
      .tech-section h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
        text-align: center;
        font-weight: 600;
      }
  
      /* Contenedor de cada máquina (flex) */
      .machine {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 40px;
      }
  
      /* Imagen de la máquina */
      .machine img {
        width: 300px;        /* Ajusta el tamaño según tu preferencia */
        max-width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;      /* Evita que la imagen se encoja en pantallas pequeñas */
      }
  
      /* Contenedor de la información (título + descripción) */
      .machine-info {
        flex: 1;             /* Ocupa el espacio restante */
      }
  
      .machine-info h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        font-weight: 600;
      }
  
      .machine-info p {
        color: #555;
        line-height: 1.6;
      }
  
      /* RESPONSIVIDAD: En pantallas pequeñas, apilar verticalmente */
      @media (max-width: 768px) {
        .machine {
          flex-direction: column;
          align-items: center;
        }
        .machine img {
          width: 100%;
          margin-bottom: 15px;
        }
      }

/* =============================
       SECCIÓN: SOBRE NOSOTROS
    ============================= */
    .about-section {
        background: url('img/about-bg.jpg') center center no-repeat;
        background-size: cover;
        position: relative;
        min-height: 100vh;
        overflow: hidden;
      }
      
      /* Overlay para oscurecer un poco la imagen de fondo */
      .about-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
      }
      
      /* Contenedor del texto */
      .about-container {
        position: relative;
        z-index: 2;
        max-width: 800px;
        margin: 0 auto;              /* Centra horizontalmente el contenedor */
        padding: 60px 20px;
        color: #fff;
        
        /* Flexbox para centrar vertical/horizontal */
        display: flex;
        flex-direction: column;
        justify-content: center;     /* Centra verticalmente */
        align-items: center;         /* Centra horizontalmente */
        
        text-align: center;          /* Centra el texto en el contenedor */
        min-height: 100vh;           /* Ocupa toda la altura de la pantalla */
      }
      
      .about-container h2 {
        margin-bottom: 20px;
        font-size: 2rem;
      }
      
      .about-container p {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 700px; /* Opcional: limita el ancho del texto si gustas */
      }
  
      /* Responsividad en pantallas pequeñas */
      @media (max-width: 768px) {
        .about-container h2 {
          font-size: 1.5rem;
        }
      }

 /* =============================
       SECCIÓN DE CONTACTO
    ============================= */
    .contact-section {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 20px;
      }
  
      /* Imagen superior */
      .contact-section .top-row img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 4px;
        margin-bottom: 40px;
      }
  
      /* Contenedor de la parte inferior (form + mapa) */
      .contact-section .bottom-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
      }
  
      /* Formulario */
      .contact-form h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
      }
  
      .contact-form p {
        font-weight: bold;
        margin-bottom: 20px;
      }
  
      .contact-form form {
        display: flex;
        flex-direction: column;
        gap: 15px;
      }
  
      /* Fila de inputs en paralelo (Nombre + Apellido, etc.) */
      .form-row {
        display: flex;
        gap: 10px;
      }
  
      .form-row input,
      .form-row textarea {
        flex: 1;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 0.95rem;
      }
  
      .form-row textarea {
        resize: vertical; /* Permite ajustar el tamaño vertical */
      }
  
      /* Botón de envío */
      .contact-form button {
        align-self: flex-start;
        padding: 10px 20px;
        background-color: #333;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
      }
  
      .contact-form button:hover {
        background-color: #555;
      }
  
      /* Mapa */
      .map img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 4px;
      }
      
      .catalogos-grid a {
  text-decoration: none;  /* Quita el subrayado */
  color: inherit;         /* Hereda el color del contenedor (o el que prefieras) */
}

.catalogos-grid a:hover {
  text-decoration: none;  /* Mantiene sin subrayar al pasar el mouse */
  /* color: #... (opcional) */
}
  
      /* =============================
         RESPONSIVIDAD
      ============================= */
      @media (max-width: 768px) {
        .contact-section .bottom-row {
          grid-template-columns: 1fr;
        }
        .form-row {
          flex-direction: column;
        }
      }

      .whatsapp {
        position:fixed;
        width:60px;
        height:60px;
        bottom:40px;
        right:40px;
        background-color:#25d366;
        color:#FFF;
        border-radius:50px;
        text-align:center;
        font-size:30px;
        z-index:100;
      }
      
      .whatsapp-icon {
        margin-top:13px;
      }