/* ===============================
   GENERAL
================================ */
body {
    margin: 0;
    font-family: 'Helvetica', 'Arial', sans-serif;
    background: #f5f5f5;
    padding-bottom: 150px;
    position: relative;
    z-index: 1;
}

/* ===============================
   LOGO / HEADER SUPERIOR
================================ */
.top-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #ffffff;
}

.facebook-link .fb-icon {
    width: 35px;
    height: auto;
    cursor: pointer;
}

.main-logo {
    height: 120px;
    width: auto;
}

.contactanos-link {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    color: #000;
    font-size: 18px;
    font-weight: bold;
}

.contactanos-link .wa-icon {
    width: 30px;
    height: auto;
}

/* ===============================
   CARRUSEL PRINCIPAL
================================ */
.carousel {
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 600%;
    height: 100%;
    animation: slide 18s infinite;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes slide {
  0%   { margin-left: 0%; }
  16%  { margin-left: 0%; }
  20%  { margin-left: -100%; }
  36%  { margin-left: -100%; }
  40%  { margin-left: -200%; }
  56%  { margin-left: -200%; }
  60%  { margin-left: -300%; }
  76%  { margin-left: -300%; }
  80%  { margin-left: -400%; }
  92%  { margin-left: -400%; }
  96%  { margin-left: -500%; }
  100% { margin-left: -500%; }
}

/* ===============================
   CARRUSEL DE MARCAS
================================ */
.brands-container.brands-fixed-desktop {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: white;
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
}

.brands-mobile-top,
.brands-mobile-bottom {
    display: none;
    background: white;
    padding: 15px 0;
}

.brands-slider {
    display: flex;
    gap: 40px;
    animation: scrollBrands 30s linear infinite;
}

.brands-slider img {
    height: 70px;
    object-fit: contain;
}

@keyframes scrollBrands {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===============================
   CATÁLOGO DE PRODUCTOS
================================ */
.catalogo-section {
    padding: 50px 20px;
    background: #ffffff;
    text-align: center;
}

.catalogo-section h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #222;
    font-weight: 700;
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.catalogo-item {
    background: #f9f9f9;
    padding: 20px 18px;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-size: 18px;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalogo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.catalogo-item ul {
    margin: 0;
    padding-left: 20px;
}

.catalogo-item li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.icon-small {
    width: 60px;      /* Ajusta el tamaño exacto del icono */
    height: auto;     /* Mantiene proporción */
    display: block;
    margin: 0 auto 10px; /* Centra el icono y separa del texto */
}


/* ===============================
   CONTACTO
================================ */
#contactanos {
    padding: 40px 20px;
    background: #ffffff;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-box {
    background: #f0f0f0;
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    font-size: 18px;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.icon {
    width: 30px;
    margin-right: 8px;
}

.map {
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 12px;
    margin-top: 10px;
}

/* ===============================
   RESPONSIVE - TABLET (max 900px)
================================ */
@media(max-width: 900px) {

    .carousel {
        height: 35vh;
    }

    .brands-slider img {
        height: 55px;
    }

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

    .catalogo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===============================
   RESPONSIVE - MÓVIL (max 600px)
================================ */
@media(max-width: 600px) {

    body {
        padding-bottom: 100px;
    }

    .top-logo {
        height: auto;
        padding: 10px;
    }

    .main-logo {
        height: 40px;
    }

    .contactanos-link {
        display: none;
    }

    .carousel {
        height: 30vh;
    }

    .brands-mobile-top {
        display: block;
    }

    .brands-fixed-desktop {
        display: none;
    }

    .brands-slider img {
        height: 45px;
    }

    .brands-mobile-bottom {
        display: block;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    #contactanos h2 {
        font-size: 26px;
    }

    .contact-box {
        font-size: 16px;
        padding: 18px;
    }

    .direccion-texto {
        margin: 0;
        padding: 0;
        line-height: 1.3;
    }

    .map {
        height: 180px;
    }

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

    .catalogo-section h2 {
        font-size: 28px;
    }

    .catalogo-item {
        font-size: 16px;
        padding: 18px;
    }
}

/* ===============================
   LINKS
================================ */
.email-link,
.phone-link,
.whatsapp-link {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.email-link:hover,
.phone-link:hover,
.whatsapp-link:hover {
    text-decoration: underline;
}
