/* Webflow footer subset (estilos solo del footer; variables globales están en site.css) */

.footer {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #fff;
  color: var(--color-text);
  margin-top: 0;
  font-family: var(--font-sans);
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Evita romper el .container global del sitio: scope solo dentro del footer */
.footer .container {
  max-width: var(--container-max);
  padding-right: var(--space-4);
  padding-left: var(--space-4);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.footer .w-layout-grid {
  grid-row-gap: 16px;
  grid-column-gap: 16px;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  display: grid;
  max-width: 100%;
  overflow-x: hidden;
}

.footer .grid_4-col {
  grid-template-rows: auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 1fr 1fr;
  grid-auto-columns: 1fr;
  display: grid;
}

.footer .gap-small {
  gap: 0.5rem;
}

.footer .gap-medium {
  grid-column-gap: 3rem;
  grid-row-gap: 3rem;
}

.footer .w-list-unstyled {
  padding-left: 0;
  list-style: none;
}

.footer .w-inline-block {
  max-width: 100%;
  display: inline-block;
}

.footer .w-button {
  display: inline-block;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footer .margin-bottom_none {
  margin-bottom: 0 !important;
}

.footer .margin_none {
  margin: 0;
}

.footer .margin-top_small {
  margin-top: 2rem;
}

.footer .margin-bottom_small {
  margin-bottom: 2rem;
}

.footer .heading_h6 {
  margin-bottom: .75em;
  font-family: var(--font-sans);
  font-size: .85rem;
  line-height: 1.3em;
  color: #ccc;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer .text-color_secondary {
  color: color-mix(in srgb, currentColor 75%, transparent);
}

.footer .footer_link {
  grid-column-gap: .5em;
  grid-row-gap: .5em;
  color: color-mix(in srgb, currentColor 60%, transparent);
  justify-content: flex-start;
  align-items: center;
  padding-top: .4em;
  padding-bottom: .4em;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  font-size: .9rem;
  transition: all .2s ease;
}

.footer .footer_link:hover {
  opacity: 1;
  color: color-mix(in srgb, currentColor 100%, transparent);
  text-decoration: underline;
}

.footer .text-button {
  grid-column-gap: .5em;
  grid-row-gap: .5em;
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 600;
  flex: none;
  justify-content: flex-start;
  align-items: center;
  text-decoration: none;
  transition: all .2s ease-in-out;
  display: inline-flex;
}

.footer .footer_icon {
  width: 1.5rem;
  height: 1.5rem;
  color: inherit;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.footer .divider {
  -webkit-text-stroke-width: 0px;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: color-mix(in srgb, currentColor 15%, transparent);
  align-self: stretch;
}

.footer .button-group {
  margin-top: 2rem;
  grid-column-gap: .5rem;
  grid-row-gap: .5rem;
  mix-blend-mode: normal;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  display: flex;
}

.footer .footer_bottom {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

/* Flex vertical helper */
.footer .flex_vertical {
  display: flex;
  flex-direction: column;
}

/* CTA "¿Necesitás ayuda?" alineado a la derecha en desktop */
.footer #w-node-_19f8a62d-5d38-7536-bb51-634ec026720c-e4dfa989,
.footer .w-node-_0770f837-f124-2aaa-bf8f-a1d581b48983-81b48927 {
  justify-self: end;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Estilos del botón */
.footer .button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-accent, #007bff);
  color: #fff;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.footer .button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

/* Tablets (hasta 991px) - 2 columnas */
@media screen and (max-width: 991px) {
  .footer .grid_4-col {
    grid-template-columns: 1fr 1fr !important;
  }
  
  .footer {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .footer .gap-medium {
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
  }
  
  /* Botón de contacto ocupa ambas columnas y se centra */
  .footer #w-node-_19f8a62d-5d38-7536-bb51-634ec026720c-e4dfa989,
  .footer .w-node-_0770f837-f124-2aaa-bf8f-a1d581b48983-81b48927 {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    text-align: center !important;
    align-items: center !important;
  }
}

/* Móviles (hasta 767px) - 1 columna */
@media screen and (max-width: 767px) {
  .footer .grid_4-col {
    grid-template-columns: 1fr !important;
    text-align: center;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .footer {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .footer .gap-medium {
    grid-column-gap: 0;
    grid-row-gap: 2.5rem;
  }
  
  /* Todas las listas centradas */
  .footer .w-list-unstyled {
    text-align: center;
  }
  
  /* Links centrados */
  .footer .footer_link {
    justify-content: center;
  }
  
  /* Íconos sociales centrados */
  .footer .text-button {
    justify-content: center;
  }

  .footer .footer_bottom {
    text-align: center;
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer .heading_h6 {
    font-size: .9rem;
    margin-bottom: 1em;
    text-align: center;
  }
  
  .footer .footer_link {
    font-size: .95rem;
  }

  /* Botón de contacto centrado */
  .footer #w-node-_19f8a62d-5d38-7536-bb51-634ec026720c-e4dfa989,
  .footer .w-node-_0770f837-f124-2aaa-bf8f-a1d581b48983-81b48927 {
    order: -1 !important;
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    text-align: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 1rem;
  }
  
  .footer .button {
    display: inline-block !important;
    width: auto !important;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    padding: 0.75rem 2rem;
  }
}

/* Móviles pequeños (hasta 479px) */
@media screen and (max-width: 479px) {
  .footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 0;
    padding-right: 0;
  }
  
  .footer .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .footer .gap-medium {
    grid-row-gap: 2rem;
  }
  
  .footer .footer_bottom {
    font-size: .85rem;
  }
  
  .footer .button {
    width: 100% !important;
    max-width: 100%;
  }
}
