/*------------------------------------ Footer -----------------------------------*/
.footer{
  background: #1695da;
  padding-top:50px;
  font-family:Montserrat, sans-serif;
  max-width: 1366px;
  margin: 0 auto;
}

/* layout */
.footer-container{
  max-width:1366px;
  margin:auto;
  padding:0 2rem;
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr 1fr 1.2fr;
  gap:40px;
}

/* logo */
.footer-logo{
  max-width:160px;
  margin-bottom:20px;
}

/* ================= REDES SOCIALES ================= */
.socials{
  display:flex;
  gap:12px;
}

.socials a{
  width:40px;
  height:40px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  color:#fff;
  transition:.3s;
}

/* colores */
.socials a:nth-child(1){ background:#EA4335; } /* email */
.socials a:nth-child(2){ background:#1877F2; } /* facebook */
.socials a:nth-child(3){ background:#E4405F; } /* instagram */
.socials a:nth-child(4){ background:#25D366; } /* whatsapp */

.socials a:hover{
  transform:translateY(-3px);
  opacity:.9;
}

/* ================= COLUMNAS ================= */

/* TITULOS con línea del mismo ancho */
.footer-col h4{
  font-size:16px;
  margin-bottom:15px;
  color:#fff;
  font-weight:600;
  display:inline-block;
  border-bottom:2px solid #fff;
  padding-bottom:5px;
}

/* listas */
.footer-col ul{
  list-style:none;
  padding:0;
  margin:0;
}

.footer-col ul li{
  margin-bottom:10px; /* 👈 espaciado original */
}

.footer-col ul li a{
  text-decoration:none;
  color:#fff;
  font-size:14px;
  transition:.2s;
}

/* hover limpio (sin romper spacing) */
.footer-col ul li a:hover{
  opacity:.7;
}

/* ================= SUBSCRIBE ================= */

.subscribe p{
  font-size:14px;
  color:#fff;
  margin-bottom:15px;
}

.subscribe-box{
  display:flex;
}

.subscribe-box input{
  flex:1;
  padding:10px;
  border:none;
  outline:none;
  font-size:14px;
  background: #efefef;
}

.subscribe-box button{
  background:#000;
  color:#fff;
  border:none;
  padding:10px 18px;
  cursor:pointer;
  font-size:14px;
}

/* ================= FOOTER BOTTOM ================= */

.footer-bottom{
  text-align:center;
  padding:20px;
  margin-top:40px;
  border-top:1px solid rgba(255,255,255,0.3);
  font-size:14px;
  color:#fff;
}

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

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media(max-width:600px){
  .footer-container{
    grid-template-columns:1fr;
  }

  .subscribe-box{
    flex-direction:column;
    gap:10px;
  }

  .subscribe-box button{
    width:100%;
  }
}



/*------------------------------------------------ BRAND DIRECTORY FOOTER ---------------------------------------*/
.brands {
  padding: 48px 0;
  width: 100%;
  overflow: hidden; /* evita desbordes raros */
}

/* container SOLO para esta sección */
.brands-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* GRID DESKTOP / TABLET AUTO-RESPONSIVE */
.brands-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  justify-items: center;
  align-items: center;
}

/* ITEMS */

.brand-item {
  background: #fff;
  border-radius: 50%;
  width: 120px;
  height: 120px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-decoration: none;
  overflow: hidden;
}

.brand-item img {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
  display: block;
}

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

/* TABLET */
@media (max-width: 1024px) {
  .brands-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
  }

  .brand-item {
    width: 110px;
    height: 110px;
  }
}

/* MOBILE → SLIDER */
@media (max-width: 768px) {
  .brands {
    /*padding: 48px 0;*/
    padding: 32px 0;
  }

  .brands-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    padding-inline: 2px; /* evita corte visual en extremos */
  }

  .brand-item {
    flex: 0 0 auto;
    width: 90px;
    height: 90px;
    scroll-snap-align: start;
  }

  /* Ocultar scrollbar */
  .brands-wrapper::-webkit-scrollbar {
    display: none;
  }

  .brands-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

