/* ============ TOPBAR ============ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 51;
  height: var(--top-h);
  display: flex;
  align-items: center;
  background: var(--amarillo);
  color: var(--negro);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
}

.topbar__contacto {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-width: 0;
  overflow: hidden;
}

.topbar__contacto a {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--negro);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.topbar__contacto a svg { flex: none; }

.topbar__contacto a span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__contacto a.solo-desktop { display: none; }

@media (min-width: 560px) {
  .topbar__contacto a.solo-desktop { display: flex; }
}

.topbar__redes {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: none;
  position: relative;
  z-index: 3;
}

.topbar__redes a,
.topbar__redes .lang-switch {
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 .45rem;
  border-radius: 999px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rojo);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  border: none;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background .2s, color .2s;
}

.topbar__redes a:hover,
.topbar__redes .lang-switch:hover {
  background: #991b1b;
  color: #fff;
}

.topbar__redes svg {
  width: 16px;
  height: 16px;
}

.topbar__redes .lang-switch {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.topbar__lang {
  display: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  border: none;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.topbar__redes .lang-switch {
  border: none;
  color: #fff;
}

.lang-switch:hover {
  background: #991b1b;
  color: #fff;
}

.nav .lang-switch {
  margin-right: .75rem;
  border-color: rgba(11, 15, 13, .15);
  color: var(--verde-oscuro, #0b0f0d);
}

.nav .lang-switch:hover {
  background: rgba(11, 15, 13, .06);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: var(--top-h);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}

/* Páginas internas: nav siempre sólida */
body.page-inner .nav {
  background: rgba(11, 15, 13, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linea);
}

/* Hero a pantalla completa (destinos): sin padding en body, nav semitransparente */
body.page-hero-cover .nav {
  background: rgba(11, 15, 13, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linea);
}

/* Home: nav transparente que se solidifica al scroll */
body.page-home .nav {
  background: transparent;
  border-bottom: 1px solid transparent;
}

body.page-home .nav.scrolled {
  background: rgba(11, 15, 13, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--linea);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  flex: none;
}

.logo img {
  height: clamp(2.6rem, 6vw, 4.2rem);
  width: auto;
  display: block;
}

@media (max-width: 919px) {
  .nav .logo img {
    height: 3.5rem;
  }
}

.nav-links {
  display: none;
  list-style: none;
  gap: 1.8rem;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nav-links > li { position: relative; }

.nav-links a {
  text-decoration: none;
  color: var(--crema);
}

.nav-links a:hover,
.nav-links a.activa { color: var(--amarillo); }

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem 0;
}

.nav-links > li > a svg {
  transition: transform .25s ease;
  flex: none;
}

.nav-links > li:hover > a svg,
.nav-links > li:focus-within > a svg { transform: rotate(180deg); }

@media (min-width: 920px) {
  .nav-links { display: flex; }
}

.nav-cta { display: none; }

@media (min-width: 920px) {
  .nav-cta { display: inline-flex; }
}

.nav-toggle {
  background: none;
  border: 1.5px solid var(--crema);
  border-radius: 4px;
  cursor: pointer;
  padding: .5rem .6rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 920px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--crema);
  display: block;
}

/* Dropdown escritorio */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 15rem;
  background: rgba(11, 15, 13, .97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--linea);
  border-radius: 8px;
  padding: .5rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.nav-links > li:hover > .nav-dropdown,
.nav-links > li:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: .6rem .9rem;
  border-radius: 6px;
  font-family: var(--cuerpo);
  font-size: .85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--crema);
  transition: background .15s, color .15s;
}

.nav-dropdown a:hover {
  background: rgba(245, 241, 230, .07);
  color: var(--amarillo);
}

.nav-dropdown__todo {
  margin-top: .3rem;
  padding-top: .7rem !important;
  border-top: 1px solid var(--linea);
  color: var(--amarillo) !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

/* ============ MENÚ MÓVIL ============ */
.menu-movil {
  position: fixed;
  top: calc(var(--top-h) + var(--nav-h));
  left: 0;
  right: 0;
  z-index: 49;
  background: rgba(11, 15, 13, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linea);
  display: none;
  max-height: calc(100vh - var(--top-h) - var(--nav-h));
  overflow-y: auto;
}

.menu-movil.abierto {
  display: block;
  z-index: 52;
}

@media (min-width: 920px) {
  .menu-movil,
  .menu-movil.abierto {
    display: none !important;
  }

  body.menu-abierto {
    overflow: auto;
  }
}

body.menu-abierto {
  overflow: hidden;
}

.menu-movil .container {
  padding: 1.2rem clamp(1.25rem, 5vw, 3rem) 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.menu-movil a {
  color: var(--crema);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: .06em;
  padding: .3rem 0;
}

.menu-movil .btn {
  margin-top: .6rem;
  align-self: flex-start;
}

.menu-movil__grupo {
  border-bottom: 1px solid var(--linea);
  padding-bottom: .6rem;
}

.menu-movil__grupo summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--crema);
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: .06em;
  padding: .3rem 0;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.menu-movil__grupo summary::-webkit-details-marker { display: none; }

.menu-movil__grupo summary svg {
  transition: transform .25s ease;
  flex: none;
  color: var(--amarillo);
}

.menu-movil__grupo[open] summary svg { transform: rotate(180deg); }

.menu-movil__sub {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .4rem 0 .2rem .4rem;
}

.menu-movil__sub a {
  font-family: var(--cuerpo);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--gris);
  padding: .45rem 0;
}

.menu-movil__sub a:hover { color: var(--amarillo); }

.menu-movil__sub a.nav-dropdown__todo {
  color: var(--amarillo);
  border-top: 1px solid var(--linea);
  margin-top: .2rem;
  padding-top: .6rem;
}

/* ============ FOOTER ============ */
.site-footer {
  padding: 3rem 0 1.6rem;
  border-top: 1px solid var(--linea);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-grid h3 {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--amarillo);
  margin-bottom: .9rem;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: .55rem;
  font-size: .9rem;
}

.footer-grid a {
  color: var(--gris);
  text-decoration: none;
}

.footer-grid a:hover { color: var(--amarillo); }

.footer-marca p {
  font-size: .9rem;
  max-width: 22rem;
  margin-top: .8rem;
  color: var(--gris);
}

.footer-contacto {
  border-top: 1px solid var(--linea);
  padding: 1.3rem 0;
  margin-bottom: 1.3rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: .9rem 2rem;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--gris);
}

@media (min-width: 760px) {
  .footer-contacto {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-contacto a {
  color: var(--crema);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color .2s;
}

.footer-contacto a:hover { color: var(--amarillo); }

.footer-contacto a svg {
  flex: none;
  color: var(--amarillo);
}

.footer-contacto .divisor { display: none; }

@media (min-width: 760px) {
  .footer-contacto .divisor {
    display: inline-block;
    width: 1px;
    height: 1.1rem;
    background: var(--linea);
  }
}

.footer-bottom {
  border-top: 1px solid var(--linea);
  padding-top: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .78rem;
  font-family: var(--mono);
  color: var(--gris);
}

@media (min-width: 760px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============ FLOTANTES ============ */
.flotantes {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  align-items: center;
}

.flotantes a,
.flotantes button {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  flex: none;
  line-height: 0;
}

.fl-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .35);
  animation: pulse-wa 2.5s infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}

.fl-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .5);
}

.fl-wa svg {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

@keyframes pulse-wa {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, .35);
  }
  50% {
    box-shadow:
      0 4px 28px rgba(37, 211, 102, .6),
      0 0 0 8px rgba(37, 211, 102, .08);
  }
}

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

.fl-top {
  background: var(--amarillo);
  color: var(--negro);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}

.fl-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
