/*==================================================
  FOOTER VARIABLES & CONTAINER
  ==================================================*/

.sidv-footer {
  --sidv-footer-bg: var(--sidv-primary-dark, #0D2137);
  --sidv-footer-bg-soft: #102B45;

  --sidv-footer-text: #FFFFFF;
  --sidv-footer-text-muted: rgba(255, 255, 255, .68);
  --sidv-footer-text-soft: rgba(255, 255, 255, .48);

  --sidv-footer-accent: var(--sidv-primary, #FF9800);

  position: relative;
  margin-top: 5rem;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--sidv-footer-bg) 0%,
    var(--sidv-footer-bg-soft) 100%
  );
  color: var(--sidv-footer-text);
}


/*==================================================
  DECORATIVE LIGHT EFFECTS
  ==================================================*/

.sidv-footer::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 152, 0, .12) 0%,
    rgba(255, 152, 0, .04) 35%,
    transparent 72%
  );
  pointer-events: none;
}

.sidv-footer::after {
  content: "";
  position: absolute;
  bottom: -280px;
  left: -220px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, .035) 0%,
    transparent 70%
  );
  pointer-events: none;
}


/*==================================================
  MAIN GRID CONTENT LAYOUT
  ==================================================*/

.sidv-footer > .sidv-container {
  position: relative;
  z-index: 2;
}

.sidv-footer__grid {
  display: grid;
  grid-template-columns:
    minmax(260px, 2fr)
    minmax(150px, 1fr)
    minmax(170px, 1fr)
    minmax(250px, 1.35fr);
  gap: 4rem;
  padding: 5.5rem 0 5rem;
}


/*==================================================
  COMPANY BRAND & DESCRIPTION
  ==================================================*/

.sidv-footer__company {
  max-width: 480px;
}

.sidv-footer__brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.75rem;
  text-decoration: none;
}

.sidv-footer__logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.sidv-footer__description {
  max-width: 430px;
  margin: 0;
  color: var(--sidv-footer-text-muted);
  font-size: .95rem;
  line-height: 1.9;
}


/*==================================================
  SOCIAL MEDIA LINKS
  ==================================================*/

.sidv-footer__social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2rem;
}

.sidv-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  color: var(--sidv-footer-text);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
  transition:
    transform .3s ease,
    background-color .3s ease,
    border-color .3s ease,
    color .3s ease;
}

.sidv-footer__social a:hover {
  transform: translateY(-4px);
  border-color: var(--sidv-footer-accent);
  background: var(--sidv-footer-accent);
  color: #FFFFFF;
}

.sidv-footer__social a:focus-visible {
  outline: 2px solid var(--sidv-footer-accent);
  outline-offset: 3px;
}

.sidv-footer__social .sidv-icon {
  color: inherit;
}


/*==================================================
  COLUMNS & TITLES
  ==================================================*/

.sidv-footer__column {
  min-width: 0;
}

.sidv-footer__title {
  position: relative;
  margin: 0 0 1.6rem;
  padding-bottom: .8rem;
  color: var(--sidv-footer-text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.sidv-footer__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--sidv-footer-accent);
}


/*==================================================
  NAVIGATION LISTS & HOVER EFFECTS
  ==================================================*/

.sidv-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidv-footer__links li {
  margin: 0;
}

.sidv-footer__links li + li {
  margin-top: .85rem;
}

.sidv-footer__links a,
.sidv-footer__links span {
  display: inline-flex;
  align-items: center;
  color: var(--sidv-footer-text-muted);
  font-size: .9rem;
  line-height: 1.5;
  text-decoration: none;
  transition:
    color .25s ease,
    transform .25s ease;
}

.sidv-footer__links a::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--sidv-footer-accent);
  transition:
    width .25s ease,
    margin-right .25s ease;
}

.sidv-footer__links a:hover {
  color: var(--sidv-footer-text);
  transform: translateX(3px);
}

.sidv-footer__links a:hover::before {
  width: 10px;
  margin-right: 7px;
}


/*==================================================
  CONTACT LIST & METADATA
  ==================================================*/

.sidv-footer__contact li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  column-gap: .7rem;
  margin: 0;
  color: var(--sidv-footer-text-muted);
  font-size: .9rem;
  line-height: 1.65;
}

.sidv-footer__contact li + li {
  margin-top: .8rem;
}

.sidv-footer__contact .sidv-icon {
  margin-top: 3px;
  color: var(--sidv-footer-accent);
}

.sidv-footer__contact a {
  color: var(--sidv-footer-text-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .25s ease;
}

.sidv-footer__contact a:hover {
  color: var(--sidv-footer-text);
}

.sidv-footer__contact-spacer {
  display: block;
  width: 18px;
  height: 1px;
}


/*==================================================
  BOTTOM LEGAL & COPYRIGHT BAR
  ==================================================*/

.sidv-footer__bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: rgba(0, 0, 0, .10);
}

.sidv-footer__bottom-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 74px;
}

.sidv-footer__bottom p {
  margin: 0;
  color: var(--sidv-footer-text-soft);
  font-size: .82rem;
  line-height: 1.5;
}

.sidv-footer__legal {
  display: flex;
  align-items: center;
}

.sidv-footer__legal a {
  color: var(--sidv-footer-text-soft);
  font-size: .82rem;
  text-decoration: none;
  transition: color .25s ease;
}

.sidv-footer__legal a:hover {
  color: var(--sidv-footer-accent);
}


/*==================================================
  RESPONSIVE: DESKTOP MEDIUM (<= 1200px)
  ==================================================*/

@media (max-width: 1200px) {
  .sidv-footer__grid {
    grid-template-columns:
      minmax(260px, 1.6fr)
      repeat(2, minmax(150px, 1fr));
    gap: 3.5rem;
  }

  .sidv-footer__company {
    grid-column: 1 / -1;
    max-width: 650px;
  }
}


/*==================================================
  RESPONSIVE: TABLET (<= 992px)
  ==================================================*/

@media (max-width: 992px) {
  .sidv-footer {
    margin-top: 4.5rem;
  }

  .sidv-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem 2.5rem;
    padding: 4.5rem 0 4rem;
  }

  .sidv-footer__company {
    grid-column: 1 / -1;
  }
}


/*==================================================
  RESPONSIVE: MOBILE ACCORDION STYLES (<= 768px)
  ==================================================*/

@media (max-width: 768px) {
  .sidv-footer {
    margin-top: 4rem;
  }

  .sidv-footer__grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding: 4rem 0 3.5rem;
    text-align: center;
  }

  .sidv-footer__company {
    grid-column: auto;
    max-width: 620px;
    margin: 0 auto;
  }

  .sidv-footer__brand {
    justify-content: center;
  }

  .sidv-footer__logo {
    width: 200px;
  }

  .sidv-footer__description {
    margin-inline: auto;
  }

  .sidv-footer__social {
    justify-content: center;
  }

  .sidv-footer__title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .sidv-footer__links a {
    justify-content: center;
  }

  .sidv-footer__contact li {
    grid-template-columns: 18px minmax(0, 1fr);
    max-width: 360px;
    margin-inline: auto;
    text-align: left;
  }

  .sidv-footer__bottom-wrapper {
    flex-direction: column;
    justify-content: center;
    gap: .65rem;
    min-height: auto;
    padding: 1.25rem 0;
    text-align: center;
  }

  /* Soporte visual para el JS del acordeón */
  .sidv-footer__title[role="button"] {
    cursor: pointer;
    user-select: none;
  }

  .sidv-footer__column:not(.is-open) .sidv-footer__links,
  .sidv-footer__column:not(.is-open) .sidv-footer__contact {
    display: none;
  }
}


/*==================================================
  RESPONSIVE: SMALL MOBILE (<= 480px)
  ==================================================*/

@media (max-width: 480px) {
  .sidv-footer__grid {
    padding-top: 3.5rem;
  }

  .sidv-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .sidv-footer__description {
    font-size: .9rem;
  }

  .sidv-footer__contact li {
    font-size: .86rem;
  }
}


/*==================================================
  ACCESSIBILITY & REDUCED MOTION
  ==================================================*/

@media (prefers-reduced-motion: reduce) {
  .sidv-footer__social a,
  .sidv-footer__links a,
  .sidv-footer__links a::before,
  .sidv-footer__contact a,
  .sidv-footer__legal a {
    transition: none;
  }
}