footer {
  background-color: white;
}

.footer__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.footer__container {
  row-gap: 3rem;
  margin-top: 20px;
}

.footer__content {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  row-gap: 2rem;
}

.footer__title,
.footer__subtitle {
  font-size: var(--h3-font-size);
}

.footer__title {
  margin-bottom: var(--mb-0-5);
}

.footer__description {
  margin-bottom: var(--mb-2);
  font-size: 12px;
  line-height : 20px;
}

.footer__subtitle {
  margin-bottom: var(--mb-1);
}

.footer__item {
  margin-bottom: var(--mb-0-75);
}

.schedule-table--footer {
  max-width: 320px;
}

.schedule-table--footer .schedule-table__row {
  padding: 0.3rem 0.45rem;
  border-color: rgba(44, 55, 59, 0.22);
}

.schedule-table--footer .schedule-table__day {
  font-size: 0.72rem;
}

.schedule-table--footer .schedule-table__hours {
  font-size: 0.7rem;
}

.schedule-table--footer .schedule-table__note {
  font-size: 0.64rem;
}

.footer-services__all {
  display: inline-flex;
  margin-bottom: 0.6rem;
  font-weight: 400;
}

.footer-services {
  position: relative;
  z-index: 3;
}

.footer-services__details {
  position: relative;
  width: 100%;
  max-width: 300px;
  border: 1px solid rgba(44, 55, 59, 0.2);
  border-radius: 8px;
  background: #fff;
  overflow: visible;
}

.footer-services__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.79rem;
  font-weight: 400;
  color: var(--secundary-color);
  cursor: pointer;
  user-select: none;
}

.footer-services__summary::-webkit-details-marker {
  display: none;
}

.footer-services__summary::after {
  content: "+";
  font-size: 1rem;
  color: var(--yellow-primary);
  line-height: 1;
}

.footer-services__details[open] .footer-services__summary::after {
  content: "-";
}

.footer-services__list {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 0.42rem;
  padding: 0.55rem 0.65rem 0.65rem;
  background: #fff;
  border: 1px solid rgba(44, 55, 59, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(30, 44, 58, 0.12);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.footer-services__details[open] .footer-services__list {
  max-height: 360px;
  overflow: auto;
  opacity: 1;
  pointer-events: auto;
}

.footer-services__list .footer__item {
  margin-bottom: 0;
}

.footer-services__list .footer__link {
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 400;
}

.footer__link {
  color: var(--text-color);
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.footer__link:hover,
.footer__link:focus-visible,
.footer__terms-link:hover,
.footer__terms-link:focus-visible {
  color: var(--yellow-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.certificados {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
  
}

.compromiso {
  width: 60%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.compromiso img {
  width: 20%;
}

.certificados__footer {
  width: 80%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.certificados__footer img:nth-child(2) {
  width: 20%;
}

.certificados__footer img:nth-child(3) {
  width: 30%;
}


.footer__rights {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  text-align: center;
}

.footer__copy, .footer__terms-link {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.footer__terms {
  display: flex;
  column-gap: 1.5rem;
  justify-content: center;
}

.footer__terms-link {
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.container-icon-svg-1{
  display: none;
}
.color-icon-svg #color-icon_1{
  fill: var(--text-color);
}
.color-icon-svg #color-icon_2{
  fill: var(--color-menu-footer);
}
.container__menu{
  position: relative;
}

.menu,
.submenu{
  list-style: none;
}


.menu__link,
.submenu__link{
  display: block;
  padding: 5px;
  color: var(--color-menu-footer);
  text-decoration: none;
}

.menu,
.submenu{
  position: absolute;
  width: 195px;
  background: var(--background-color-menu-footer);
  margin: 0 0 0 0px;
  padding: 0 0 0 10px;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
}

.submenu{
  width: 125px;
}
.container__menu:hover .menu{
  opacity: 1;
  visibility: visible;
}

.submenu_1{
  top: 0px;
}
.submenu_2{
  top: 50px;
}
.submenu_3{
  top: 90px;
}
.submenu_4{
  top: 130px;
}

.submenu_1,
.submenu_2,
.submenu_3,
.submenu_4{
  margin-left: 185px;
  margin-bottom: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.container__submenu:hover .submenu_1,
.container__submenu:hover .submenu_2,
.container__submenu:hover .submenu_3,
.container__submenu:hover .submenu_4{
  opacity: 1;
  visibility: visible;
}

.submenu__link:hover{
  text-decoration: underline;
}

/* @ Media Queris */



@media screen and (min-width: 768px) {
.footer__rights {
    flex-direction: row;
    justify-content: space-between;
}
}

@media screen and (min-width: 1024px) {
  .footer__content {
    justify-items: center;
  }
}


@media (max-width: 1024px) {
  .compromiso {
    width: 40%;
  }

  .compromiso img {
    width: 50%;
  }
}

@media (max-width: 770px) {
  .menu__hidden{
    display: none;
  }
  .menu{
    opacity: 1;
    visibility: visible;

  }

  .menu__btn{
    cursor: pointer;
  }
  .menu__btn:hover{
    text-decoration: underline;
  }

  .submenu{
    width: 100%;
    position: relative;
    background: var(--background-color-submenu-footer);
  }
  .submenu__btn{
    cursor: pointer;
  }
  .submenu_1-hidden{
    display: none;
  }
  .submenu_2-hidden,
  .submenu_3-hidden,
  .submenu_4-hidden{
    display: none;
  }
  .submenu_1,
  .submenu_2,
  .submenu_3,
  .submenu_4{
    top: 0px;
    margin: 0;    
  }

  .submenu_1,
  .submenu_2,
  .submenu_3,
  .submenu_4{
    opacity: 1;
    visibility: visible;
  }

  .submenu__link:hover{
    text-decoration: underline;
  }
  
}

@media (max-width: 600px) {
  .certificados__footer {
    flex-direction: column;
  } 

  .certificados__footer img:nth-child(2) {
    width: 40%;
  }

  .certificados__footer img:nth-child(3) {
    width: 50%;
  }

  .compromiso {
    width: 80%;
    gap: 20px;
  }

  .compromiso img {
    width: 30%;
  }
  
}

@media (max-width: 450px) {
  .certificados__footer img:nth-child(2) {
    width: 80%;
  }

  .certificados__footer img:nth-child(3) {
    width: 90%;
  }
}

@media screen and (max-width: 350px) {
  .footer__terms {
    flex-direction: column;
  }
}

@media (max-width: 770px) {
  .footer-services__details {
    max-width: 100%;
  }

  .footer-services__list {
    right: auto;
    width: min(92vw, 320px);
  }
}


.site-footer{
  padding:4.25rem 0 2rem;
  border-top:1px solid rgba(143,173,221,.1);
  background:linear-gradient(180deg, rgba(8,16,29,.78), rgba(5,10,19,.97));
}

.site-footer__grid{
  display:grid;
  gap:2.75rem;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
}

.brand-mark--footer{
  gap:.7rem;
  width:max-content;
  max-width:none;
  margin-bottom:1rem;
}

/* El lockup del footer es apilado (simbolo arriba, nombre debajo), no la
   version horizontal de la barra: por eso no hereda el max-height de 46px
   de .brand-mark__image, que aqui lo dejaria en 73px de ancho. */
.brand-mark__logo{
  display:block;
  width:clamp(150px, 42vw, 190px);
  height:auto;
}

.brand-mark__symbol{
  display:grid;
  flex:0 0 auto;
  width:2.4rem;
  height:2.4rem;
}

.brand-mark__symbol svg{
  width:100%;
  height:100%;
}

.brand-mark__text{
  color:#f4f8ff;
  font-family:"Bricolage Grotesque","Instrument Sans",sans-serif;
  font-size:1.06rem;
  font-weight:500;
  letter-spacing:-.01em;
}

.site-footer__copy-text{
  max-width:33ch;
  color:#aebfd9;
  line-height:1.75;
}

.site-footer__title{
  margin-bottom:1.1rem;
  font-family:"IBM Plex Mono","Consolas",monospace;
  font-size:.72rem;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#f2f6fc;
}

.site-footer__list{
  display:grid;
  gap:.8rem;
  padding:0;
  margin:0;
  list-style:none;
}

.site-footer__list a,
.site-footer__social a,
.site-footer__legal a{
  color:#d7e2f4;
  font-size:.9rem;
  line-height:1.5;
  transition:color .2s ease;
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible,
.site-footer__social a:hover,
.site-footer__social a:focus-visible,
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible{
  color:#ffffff;
}

.site-footer__social{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  margin-top:1.2rem;
}

.site-footer__bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-top:2.75rem;
  padding-top:1.3rem;
  border-top:1px solid rgba(143,173,221,.1);
  color:#8fa4c2;
  font-size:.82rem;
}

.site-footer__legal{
  display:flex;
  flex-wrap:wrap;
  gap:1.2rem;
}

@media (max-width: 980px){
  .site-footer__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 640px){
  .site-footer{
    padding:3.25rem 0 1.6rem;
  }

  .site-footer__grid,
  .site-footer__bottom{
    grid-template-columns:1fr;
    display:grid;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Banner de consentimiento de cookies

   Solo aparece cuando hay analitica activa. Aceptar y Rechazar comparten
   tamano y jerarquia: el unico distintivo de Aceptar es el relleno, no un
   contraste que empuje a pulsarlo.
   ───────────────────────────────────────────────────────────────────────── */

.cookie-consent{
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  border: 1px solid var(--line, rgba(143,173,221,.18));
  border-radius: var(--radius-md, 22px);
  background: var(--surface-strong, #fff);
  box-shadow: 0 18px 48px rgba(3, 10, 24, .22);
  animation: cookieConsentIn .24s cubic-bezier(.2,.9,.3,1.05);
}

.cookie-consent[hidden]{ display: none !important; }

@keyframes cookieConsentIn{
  from{ opacity: 0; transform: translateY(12px); }
  to{ opacity: 1; transform: none; }
}

.cookie-consent__inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.1rem 1.3rem;
}

.cookie-consent__text{ flex: 1 1 22rem; min-width: 0; }

.cookie-consent__title{
  margin: 0 0 .3rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink, #122036);
}

.cookie-consent__text p{
  margin: 0;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink-soft, #4f607e);
}

.cookie-consent__actions{
  display: flex;
  flex: 0 0 auto;
  gap: .6rem;
}

.cookie-consent__btn{
  padding: .62rem 1.25rem;
  border: 1px solid var(--line-strong, rgba(122,164,255,.34));
  border-radius: 999px;
  background: transparent;
  color: var(--ink, #122036);
  font: inherit;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.cookie-consent__btn:hover{ background: var(--surface, #f5f7fb); }

.cookie-consent__btn--primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary-strong, #4263ff), var(--accent, #bc3cff));
  color: #fff;
}

.cookie-consent__btn--primary:hover{ filter: brightness(1.06); background: linear-gradient(135deg, var(--primary-strong, #4263ff), var(--accent, #bc3cff)); }

@media (max-width: 34rem){
  .cookie-consent__actions{ width: 100%; }
  .cookie-consent__btn{ flex: 1 1 0; }
}

@media (prefers-reduced-motion: reduce){
  .cookie-consent{ animation: none; }
}
