/* Official site chrome — adapted from QuilmesTEC header.php + footer.php */

.site-preheader {
  width: 100%;
  background-color: #7a61a1;
  color: #fff;
  padding: 8px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-preheader a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.site-preheader a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.site-preheader a .text {
  position: relative;
}

.site-preheader a .text::after {
  content: "";
  width: 0;
  transition: width 0.3s ease;
  height: 1.5px;
  background-color: #fff;
  display: block;
  bottom: 3px;
  left: 0;
  position: absolute;
}

.site-preheader a:hover .text::after {
  width: 100%;
}

.site-preheader a .arrow-right {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #fff;
  vertical-align: middle;
  transform: scale(0.7);
}

.site-preheader-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-preheader-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.9;
}

.site-preheader-social a:hover {
  opacity: 1;
}

.site-preheader-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-header-chrome {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-navbar {
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 5vw;
  min-height: 64px;
  flex-wrap: wrap;
}

.site-navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.site-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 25px;
  border: 2px solid #ecabce;
  color: #7a61a1;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 44px;
  flex-shrink: 0;
}

.site-navbar-menu > li {
  position: relative;
}

.site-navbar-menu > li > a {
  color: #424242;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 15px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.site-navbar-menu > li > a:hover {
  color: #7a61a1;
}

.site-navbar-menu > li > a::after {
  content: "";
  width: 0;
  transition: width 0.3s ease;
  height: 1.5px;
  background-color: #7a61a1;
  display: block;
  bottom: 4px;
  left: 14px;
  right: 14px;
  position: absolute;
}

.site-navbar-menu > li > a:hover::after {
  width: calc(100% - 28px);
}

.site-navbar-menu .arrow-down {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  margin-left: 2px;
}

.site-navbar-menu .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 8px 0;
  margin-top: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1002;
  list-style: none;
}

.site-navbar-menu > li:hover .dropdown,
.site-navbar-menu > li:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-navbar-menu .dropdown a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  text-transform: none;
}

.site-navbar-menu .dropdown a:hover {
  background: #7a61a1;
  color: #fff;
}

.site-navbar-toggler {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #7a61a1;
  flex-shrink: 0;
}

.site-navbar-toggler:focus-visible {
  outline: 3px solid #7a61a1;
  outline-offset: 2px;
}

.site-navbar-toggler-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 24px;
  height: 18px;
  position: relative;
}

.site-navbar-toggler-icon .hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.site-navbar-toggler-icon .hamburger-lines span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.site-navbar-toggler-icon .toggler-close-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  opacity: 0;
  visibility: hidden;
}

.site-header-chrome.has-menu-open .site-navbar-toggler-icon .hamburger-lines {
  opacity: 0;
  visibility: hidden;
}

.site-header-chrome.has-menu-open .site-navbar-toggler-icon .toggler-close-icon {
  opacity: 1;
  visibility: visible;
}

.site-header-phone:hover {
  background: #7a61a1;
  color: #fff;
  border-color: #7a61a1;
}

.site-header-phone .icon-phone {
  flex-shrink: 0;
}

.site-navbar-logo img {
  height: 48px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .site-navbar {
    flex-wrap: wrap;
  }

  .site-header-phone {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 0.25rem 0 0;
  }

  .site-navbar-menu {
    margin-left: 0;
  }

  .site-navbar-toggler {
    display: flex;
    margin-left: auto;
  }

  .site-navbar-menu {
    position: fixed;
    top: var(--mobile-header-height, 0);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    margin: 0;
    padding: 24px 5vw;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .site-header-chrome.has-menu-open .site-navbar-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.site-nav-open {
    overflow: hidden;
  }

  .site-navbar-menu > li {
    border-bottom: 1px solid #eee;
  }

  .site-navbar-menu > li > a {
    padding: 14px 0;
    justify-content: space-between;
    width: 100%;
  }

  .site-navbar-menu > li > a::after {
    display: none;
  }

  .site-navbar-menu .dropdown {
    position: static;
    min-width: auto;
    box-shadow: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #f8f8f8;
  }

  .site-navbar-menu > li.is-expanded .dropdown {
    max-height: 800px;
  }

  .site-navbar-menu .dropdown a {
    padding: 12px 16px 12px 24px;
    white-space: normal;
    border-bottom: 1px solid #eee;
  }
}

/* Footer oficial — bloque único */
.site-footer-official {
  background: #f0f2f4;
  color: #424242;
  font-size: 0.875rem;
  border-top: 4px solid #ecabce;
  margin-top: 2rem;
}

.site-footer-official a {
  color: #7a61a1;
  text-decoration: none;
}

.site-footer-official a:hover {
  color: #783884;
  text-decoration: underline;
}

.footer-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 5vw;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.footer-row + .footer-row {
  border-top: 1px solid #ddd;
}

.footer-row--top {
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
}

.footer-row--middle {
  align-items: center;
  gap: 1rem 1.5rem;
}

.footer-row--bottom {
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
}

.footer-col-brand {
  flex: 1 1 220px;
  min-width: 0;
}

.footer-col-brand img.brand-campaign {
  width: min(200px, 100%);
  margin-bottom: 0.5rem;
}

.footer-col-brand h4,
.footer-legal-col h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #424242;
}

.footer-col-brand ul,
.footer-legal-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col-brand li + li,
.footer-legal-col li + li {
  margin-top: 0.35rem;
}

.footer-hotlines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
}

.footer-hotline {
  width: 120px;
  text-align: center;
}

.footer-hotline a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
}

.footer-hotline a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.footer-hotline img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.footer-hotline span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #424242;
  line-height: 1.3;
}

.footer-bottom-logo {
  flex-shrink: 0;
  display: block;
}

.footer-bottom-logo img {
  width: 140px;
  height: auto;
  display: block;
}

.footer-phone-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 1rem;
  background: #fff;
  border: 2px solid #ecabce;
  border-radius: 25px;
  color: #7a61a1;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  min-height: 44px;
  flex-shrink: 0;
}

.footer-phone-banner:hover {
  background: #7a61a1;
  color: #fff;
  border-color: #7a61a1;
  text-decoration: none;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.footer-social a {
  display: block;
}

.footer-social img {
  width: 40px;
  height: 40px;
  display: block;
}

.footer-legal-col {
  flex: 1 1 220px;
  min-width: 0;
}

.footer-contact {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
}

.footer-contact__help {
  margin: 0;
  font-weight: 600;
  color: #424242;
}

.footer-meta {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #666;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .footer-row--top {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-col-brand img.brand-campaign {
    display: none;
  }

  .footer-hotlines {
    width: 100%;
    justify-content: space-around;
  }

  .footer-row--middle {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-social {
    margin-left: 0;
    justify-content: center;
  }

  .footer-row--bottom {
    flex-direction: column;
  }

  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .footer-hotline {
    width: 100px;
  }

  .footer-hotline img {
    width: 52px;
    height: 52px;
  }
}
