/* =========================
   USUAL (OTF) - SELF HOSTED
   Ruta: /assets/fonts/usual/
   ========================= */

/* Light 300 */
@font-face {
  font-family: "Usual";
  src: url("../fonts/usual/Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Usual";
  src: url("../fonts/usual/Light%20Italic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Regular 400 */
@font-face {
  font-family: "Usual";
  src: url("../fonts/usual/Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Usual";
  src: url("../fonts/usual/Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Medium 500 */
@font-face {
  font-family: "Usual";
  src: url("../fonts/usual/Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Usual";
  src: url("../fonts/usual/Medium%20Italic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* Bold 700 */
@font-face {
  font-family: "Usual";
  src: url("../fonts/usual/Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Usual";
  src: url("../fonts/usual/Bold%20Italic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ExtraBold 800 */
@font-face {
  font-family: "Usual";
  src: url("../fonts/usual/ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Usual";
  src: url("../fonts/usual/ExtraBold%20Italic.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* =========================
   APLICACIÓN GLOBAL
   ========================= */

:root {
  --font-sans:
    "Usual", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --logo-height: 38px;
  --nav-color: #392f2d;
}

body {
  font-family: var(--font-sans);
}

/* =========================
   HEADER / NAV
   ========================= */
header.bg-white {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
}
.header-shell {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.navbar {
  min-height: 72px;
  padding-top: 0.75rem;
}

.navbar-brand,
.navbar-nav,
.lang-switcher {
  position: static;
  top: auto;
}

.navbar-brand {
  margin-left: 40px;
}

/* Logo */
.site-logo {
  height: var(--logo-height);
  width: auto;
  display: block;
}

/* Menú */
.navbar-nav .menu-item {
  position: relative;
}

.navbar-nav .menu-item a {
  text-decoration: none;
  text-transform: uppercase;
  color: var(--nav-color);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.9rem;
}

.navbar-nav .menu-item a:hover {
  opacity: 0.75;
}

/* Banderas manuales */
.lang-switcher {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px;
}

.lang-switcher a {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  text-decoration: none;
}

.lang-switcher img {
  width: 20px !important;
  height: auto !important;
  display: block !important;
}

/* Desktop */
@media (min-width: 992px) {
  .header-shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 575.98px) {
  .header-shell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* =========================
   HEADER SUBMENUS
   ========================= */

/* Contenedor submenú */
.navbar-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid rgba(57, 47, 45, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(57, 47, 45, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  z-index: 50;
}

/* Mostrar al hover en desktop */
.navbar-nav .menu-item:hover > .sub-menu,
.navbar-nav .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Items del submenú */
.navbar-nav .sub-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Enlaces del submenú */
.navbar-nav .sub-menu li a {
  display: block;
  padding: 0.7rem 1rem;
  color: #392f2d;
  text-decoration: none;
  text-transform: none;
  font-size: 0.9rem;
  line-height: 1.35;
  letter-spacing: normal;
  font-weight: 400;
  border-left: 3px solid transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

/* Hover */
.navbar-nav .sub-menu li a:hover,
.navbar-nav .sub-menu li a:focus {
  background: rgba(255, 198, 45, 0.14);
  color: #392f2d;
  border-left-color: #ffc62d;
  opacity: 1;
}

/* Si hay sub-submenús */
.navbar-nav .sub-menu .sub-menu {
  top: -0.6rem;
  left: calc(100% + 0.4rem);
}

/* =========================
   HEADER MOBILE COMPLETO
   ========================= */

@media (max-width: 991.98px) {
  .navbar {
    min-height: 72px;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .header-shell {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .navbar-brand,
  .navbar-nav,
  .lang-switcher {
    position: relative;
    top: 0;
  }

  .navbar-brand {
    margin-left: 0;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }

  .site-logo {
    height: 38px;
    width: auto;
    display: block;
  }

  /* Botón hamburguesa */
  .navbar-toggler {
    border: 0;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    box-shadow: none !important;
  }

  .navbar-toggler:focus,
  .navbar-toggler:active {
    box-shadow: none !important;
    outline: none;
  }

  .navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  /* Caja del menú desplegable */
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem 1rem 0.9rem;
    background: #fff;
    border: 1px solid rgba(57, 47, 45, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(57, 47, 45, 0.08);
  }

  .navbar-nav {
    margin-top: 0.15rem;
    margin-bottom: 0 !important;
    gap: 0;
  }

  .navbar-nav .menu-item {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(57, 47, 45, 0.08);
    list-style: none;
  }

  .navbar-nav .menu-item:last-child {
    border-bottom: 0;
  }

  .navbar-nav .menu-item > a {
    display: block;
    width: 100%;
    padding: 0.9rem 0;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--nav-color);
    font-size: 0.94rem;
    line-height: 1.3;
    letter-spacing: 0.04em;
  }

  .navbar-nav .menu-item > a:hover,
  .navbar-nav .menu-item > a:focus {
    opacity: 1;
    color: var(--nav-color);
  }

  /* Items con submenú */
  .navbar-nav .menu-item-has-children {
    position: relative;
  }

  .navbar-nav .menu-item-has-children > a {
    position: relative;
    padding-right: 2rem;
  }

  .navbar-nav .menu-item-has-children > a::after {
    content: "›";
    position: absolute;
    right: 0.15rem;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center;
    font-size: 1.1rem;
    line-height: 1;
    color: #392f2d;
    transition: transform 0.22s ease;
  }

  .navbar-nav .menu-item-has-children.is-open > a::after {
    transform: translateY(-50%) rotate(-90deg);
  }

  /* Submenús */
  .navbar-nav .menu-item-has-children > .sub-menu {
    display: none;
    position: static;
    min-width: 100%;
    margin: 0 0 0.7rem 0;
    padding: 0 0 0 0.9rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    list-style: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .navbar-nav .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  .navbar-nav .sub-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 0;
  }

  .navbar-nav .sub-menu li a {
    display: block;
    padding: 0.42rem 0;
    font-size: 0.84rem;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: normal;
    color: #392f2d;
    text-decoration: none;
    opacity: 0.9;
    position: relative;
  }

  .navbar-nav .sub-menu li a::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.55rem;
    border-radius: 50%;
    background: #ffc62d;
    position: relative;
    top: -1px;
  }

  .navbar-nav .sub-menu li a:hover,
  .navbar-nav .sub-menu li a:focus {
    opacity: 1;
    color: #392f2d;
  }

  /* Sub-submenús si existieran */
  .navbar-nav .sub-menu .sub-menu {
    display: none;
    padding-left: 0.8rem;
    margin-top: 0.2rem;
  }

  .navbar-nav .sub-menu .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  /* Switcher idiomas */
  .lang-switcher {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 0.75rem !important;
    margin-top: 0.9rem !important;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(57, 47, 45, 0.08);
  }

  .lang-switcher a {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    text-decoration: none;
  }

  .lang-switcher img {
    width: 18px !important;
    height: auto !important;
    display: block !important;
  }
}

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

.site-footer-wrap {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-footer-box {
  background: #ffc62d;
  border-radius: 16px;
  padding: 2rem 3rem 1.5rem;
}

.site-footer-top {
  display: grid;
  gap: 1.15rem;
  align-items: start;
}

.site-footer-logo-row {
  display: flex;
  justify-content: flex-start;
  padding-left: 1.25rem;
}

.site-footer-main {
  display: block;
}

.site-footer-logo {
  display: inline-block;
  width: fit-content;
}

.site-footer-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.site-footer-contact {
  max-width: 230px;
  color: #392f2d;
  font-size: 0.72rem;
  line-height: 1.35;
}

.site-footer-contact p,
.site-footer-contact address {
  margin: 0;
}

.site-footer-contact address {
  font-style: normal;
}

.site-footer-contact-company {
  margin-bottom: 0.4rem !important;
  font-weight: 700;
  line-height: 1.25;
}

.site-footer-contact-office {
  margin-bottom: 0.22rem !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer-contact-phone {
  display: inline-block;
  margin-top: 0.28rem;
  color: #392f2d;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  text-decoration: none;
}

.site-footer-contact-phone:hover {
  text-decoration: underline;
}

.site-footer-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.site-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

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

.site-footer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) repeat(4, minmax(120px, 1fr));
  column-gap: 2.5rem;
  row-gap: 0.75rem;
  align-items: start;
  width: 100%;
}

.site-footer-menu-list li,
.site-footer-menu-list .sub-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-menu-list li a {
  color: #392f2d;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.3;
}

.site-footer-menu-list li a:hover {
  text-decoration: underline;
}

.site-footer-menu-list > li:not(.site-footer-contact) > a {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 0.15rem;
  color: #392f2d;
}

/* Estado final actualmente aplicado al submenú */
.site-footer-menu-list .sub-menu {
  list-style: none;
  margin: 0.35rem 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.site-footer-menu-list .sub-menu a {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #392f2d;
  display: inline-block;
  max-width: 140px;
  line-height: 1.25;
  white-space: normal;
  padding: 0.08rem 0;
}

.site-footer-anchor-list {
  list-style: none;
  margin: 0.35rem 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer-anchor-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-menu-list .site-footer-anchor-list a {
  display: inline-block;
  max-width: 140px;
  padding: 0.08rem 0;
  color: #392f2d;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
}

.site-footer-menu-list .site-footer-anchor-list a:hover {
  text-decoration: underline;
}

/* Línea */
.site-footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  margin: 1.5rem 0 1.1rem;
}

/* Parte inferior */
.site-footer-bottom {
  text-align: center;
}

.site-footer-copy,
.site-footer-credit,
.site-footer-legal-intro {
  margin: 0;
  color: #392f2d;
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-footer-copy {
  max-width: 760px;
  margin: 0 auto 0.9rem;
  font-size: 0.6rem;
}

.site-footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.site-footer-legal-intro,
.site-footer-legal-list,
.site-footer-legal-list li,
.site-footer-legal-list a {
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-footer-legal-intro {
  display: inline;
  margin-right: 0.25rem;
}

/* Menú legal */
.site-footer-legal {
  display: inline;
}

.site-footer-legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.site-footer-legal-list li {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #392f2d;
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-footer-legal-list li::after {
  content: "|";
  margin-left: 0.45rem;
}

.site-footer-legal-list li:last-child::after {
  content: "";
  margin-left: 0;
}

.site-footer-legal-list a {
  color: #392f2d;
  text-decoration: underline;
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-footer-credit a {
  color: #392f2d;
  text-decoration: underline;
  font-weight: 700;
}

/* Tablet */
@media (max-width: 991.98px) {
  .site-footer-box {
    padding: 1.75rem 2rem 1.25rem;
  }

  .site-footer-top {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .site-footer-logo-row {
    justify-content: center;
    padding-left: 0;
  }

  .site-footer-main {
    display: block;
  }

  .site-footer-contact {
    max-width: 420px;
    text-align: center;
  }

  .site-footer-menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    padding-left: 0;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .site-footer-box {
    border-radius: 12px;
    padding: 1.35rem 1.2rem 1rem;
  }

  .site-footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .site-footer-logo-row {
    justify-content: center;
    padding-left: 0;
  }

  /* 1) Logo Conterol */
  .site-footer-logo {
    order: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0.7rem;
  }

  .site-footer-logo img {
    height: 38px;
  }

  /* 2) Datos de contacto */
  .site-footer-contact {
    max-width: 270px;
    margin: 0 auto 0.35rem;
    text-align: center;
    font-size: 0.74rem;
  }

  .site-footer-contact-office {
    font-size: 0.68rem;
  }

  .site-footer-menu-list {
    order: 2;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    gap: 0.9rem;
    text-align: center;
    margin: 0 auto;
  }

  .site-footer-menu-list > li {
    text-align: center;
    max-width: 100%;
  }

  .site-footer-menu-list > li:not(.site-footer-contact) > a {
    display: inline-block;
    margin-bottom: 0.2rem;
  }

  .site-footer-menu-list .sub-menu {
    margin: 0.15rem 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  .site-footer-menu-list .sub-menu a {
    display: inline-block;
    text-align: center;
    font-size: 0.84rem;
    line-height: 1.2;
    max-width: 220px;
    white-space: normal;
    padding: 0.05rem 0;
  }

  .site-footer-anchor-list {
    margin-top: 0.15rem;
    align-items: center;
    gap: 0.3rem;
  }

  .site-footer-menu-list .site-footer-anchor-list a {
    max-width: 220px;
    padding: 0.05rem 0;
    font-size: 0.84rem;
    line-height: 1.2;
    text-align: center;
  }

  /* Redes sociales bajo Contact */
  .site-footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
  }

  .site-footer-social img {
    width: 22px;
    height: 22px;
  }

  /* Separador */
  .site-footer-divider {
    margin: 1.1rem 0 0.9rem;
  }

  /* Parte inferior */
  .site-footer-bottom {
    text-align: center;
  }

  .site-footer-copy {
    max-width: 100%;
    margin: 0 auto 0.9rem;
  }

  .site-footer-legal-row {
    justify-content: center;
    text-align: center;
  }

  .site-footer-legal {
    display: block;
    width: 100%;
  }

  .site-footer-legal-list {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }

  .site-footer-copy,
  .site-footer-credit,
  .site-footer-legal-intro,
  .site-footer-legal-list li,
  .site-footer-legal-list a {
    font-size: 0.75rem;
  }
}
/* =========================
   FOOTER TABLET REFINADO
   ========================= */
@media (min-width: 576px) and (max-width: 991.98px) {
  .site-footer-wrap {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .site-footer-box {
    border-radius: 14px;
    padding: 2rem 2.25rem 1.4rem;
  }

  .site-footer-top {
    gap: 1.5rem;
  }

  .site-footer-logo {
    margin: 0 auto;
  }

  .site-footer-logo img {
    height: 40px;
  }

  .site-footer-contact {
    max-width: 420px;
    text-align: center;
  }

  .site-footer-social {
    justify-self: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 0.8rem;
  }

  .site-footer-social img {
    width: 23px;
    height: 23px;
  }

  .site-footer-menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, max-content));
    justify-content: center;
    column-gap: 2rem;
    row-gap: 1.1rem;
    text-align: center;
  }

  .site-footer-menu-list > li {
    text-align: center;
  }

  .site-footer-menu-list > li:not(.site-footer-contact) > a {
    margin-bottom: 0.25rem;
  }

  .site-footer-menu-list .sub-menu {
    align-items: center;
    gap: 0.4rem;
  }

  .site-footer-menu-list .sub-menu a,
  .site-footer-menu-list .site-footer-anchor-list a {
    max-width: 200px;
    text-align: center;
    line-height: 1.22;
  }

  .site-footer-anchor-list {
    align-items: center;
    gap: 0.35rem;
  }

  .site-footer-divider {
    margin: 1.35rem 0 1rem;
  }

  .site-footer-copy {
    max-width: 680px;
    font-size: 0.74rem;
    margin-bottom: 0.8rem;
  }

  .site-footer-legal-row {
    text-align: center;
    gap: 0.25rem;
    margin-bottom: 0.2rem;
  }

  .site-footer-credit,
  .site-footer-legal-intro,
  .site-footer-legal-list li,
  .site-footer-legal-list a {
    font-size: 0.76rem;
  }
}
