/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 300;
  color: #111;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===========================
   TOP BAR
=========================== */
.topbar {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 9px 20px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* ===========================
   HEADER
=========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.header--ready .nav {
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header--ready .nav__logo img {
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .nav {
  height: 70px;
}

.header.scrolled .nav__logo img {
  height: 100px;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 110px;
  position: relative;
  transition: none;
}

/* NAV LINKS */
.nav__links {
  display: flex;
  gap: 0;
  align-items: center;
  height: 100%;
}

.nav__item {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav__link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
  position: relative;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: #111;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav__item:hover .nav__link::after {
  transform: scaleX(1);
}

.nav__item--mobile-only {
  display: none;
}

/* HAMBURGUESA */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1000;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger.open span:nth-child(2) {
  opacity: 0;
}
.nav__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* JENBACH LOGO EN MENU */
.jenbach-logo {
  display: block;
  width: 110px;
  height: 24px;
  overflow: hidden;
}
.jenbach-logo img {
  width: 127px;
  height: auto;
  margin-top: -46px;
  display: block;
}
.jenbach-logo--white img {
  filter: invert(1) brightness(10);
}
.jenbach-logo--banner {
  width: 420px;
  height: 90px;
}
.jenbach-logo--banner img {
  width: 420px;
  margin-top: -162px;
}

/* LOGO */
.nav__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  z-index: 1;
}

.nav__logo img {
  display: block;
  height: 170px;
  width: auto;
  margin-top: -4px;
  transition: none;
}

/* ACTIONS */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__whatsapp {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
  transition: opacity 0.2s;
}

.nav__whatsapp:hover {
  opacity: 0.55;
}

/* ===========================
   MEGAMENU
=========================== */
.megamenu {
  position: fixed;
  top: auto; /* se posiciona justo debajo del header via JS */
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 199;
}

.nav__item:hover .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.megamenu__inner {
  padding: 36px 40px 40px;
  display: flex;
  gap: 60px;
}

.megamenu__col {
  min-width: 160px;
}

.megamenu__title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.megamenu__col ul li {
  margin-bottom: 10px;
}

.megamenu__col ul li a {
  font-size: 13px;
  font-weight: 400;
  color: #333;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.megamenu__col ul li a:hover {
  color: #111;
  font-weight: 500;
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-total, 110px));
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.04) 60%,
    transparent 100%
  );
}

.hero__title {
  position: relative;
  z-index: 1;
  padding: 0;
  text-decoration: none;
  font-family: 'Red Hat Display', sans-serif;
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.5s forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   CATEGORÍAS
=========================== */
.categorias {
  display: flex;
  margin-top: 32px;
}

.cat__item {
  position: relative;
  width: 50%;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.cat__item:first-child {
  border-right: none;
}

.categorias--mt {
  margin-top: 32px;
}

.cat__img {
  display: block;
  width: 100%;
  height: 95vh;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.cat__item:hover .cat__img {
  transform: scale(1.04);
}

.cat__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.32) 0%,
    rgba(0,0,0,0.04) 55%,
    transparent 100%
  );
  transition: background 0.4s ease;
}

.cat__item:hover .cat__overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.42) 0%,
    rgba(0,0,0,0.08) 55%,
    transparent 100%
  );
}

.cat__label {
  position: absolute;
  top: 50%;
  left: 36px;
  transform: translateY(-50%);
  font-family: 'Red Hat Display', sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  line-height: 1.1;
}

.cat__label-sub {
  display: block;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ===========================
   FULL BANNER
=========================== */
.fullbanner {
  position: relative;
  width: 100%;
  height: 95vh;
  margin-top: 32px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.fullbanner--parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.fullbanner--duo {
  display: flex;
  cursor: default;
}

.fullbanner__half {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.fullbanner__half:hover .fullbanner__img {
  transform: scale(1.04);
}
}

.fullbanner__img {
  display: block;
  width: 100%;
  height: 95vh;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.fullbanner:hover .fullbanner__img {
  transform: scale(1.04);
}

.fullbanner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.32) 0%,
    rgba(0,0,0,0.04) 55%,
    transparent 100%
  );
}

.fullbanner__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.fullbanner__main {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.fullbanner__sub {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* ===========================
   BANNER REGISTRO
=========================== */
.registro {
  background: #111;
  padding: 52px 40px;
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.registro__content {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 860px;
  width: 100%;
  justify-content: space-between;
}

.registro__text {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.registro__highlight {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.registro__btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid #fff;
  color: #fff;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}

.registro__btn:hover {
  background: #fff;
  color: #111;
}

/* ===========================
   CONTACTO
=========================== */
.contacto {
  background: #f7f7f7;
  padding: 80px 40px;
  margin-top: 32px;
}

.contacto__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contacto__label {
  display: inline-block;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
}

.contacto__titulo {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
  margin: 0 0 16px;
}

.contacto__desc {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 32px;
}

.contacto__datos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacto__datos li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 14px;
  color: #333;
}

.contacto__datos svg {
  flex-shrink: 0;
  color: #111;
}

.contacto__datos a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.contacto__datos a:hover {
  color: #111;
}

.contacto__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacto__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contacto__input {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 14px;
  color: #111;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s;
}

.contacto__input::placeholder {
  color: #aaa;
}

.contacto__input:focus {
  border-color: #111;
}

.contacto__textarea {
  resize: vertical;
  min-height: 130px;
}

.contacto__btn {
  align-self: flex-start;
  padding: 14px 36px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  border-radius: 0;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.contacto__btn:hover {
  background: #fff;
  color: #111;
}

.contacto__msg {
  font-size: 13px;
  margin-top: 4px;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  margin-top: 32px;
  background: #f7f7f7;
  border-top: 1px solid #e8e8e8;
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 60px 48px;
}

.footer__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 400;
  color: #555;
  line-height: 1.5;
}

.footer__col ul li a {
  color: #555;
  transition: color 0.2s;
}

.footer__col ul li a:hover {
  color: #111;
}

.footer__bottom {
  border-top: 1px solid #e0e0e0;
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  display: block;
  overflow: hidden;
  height: 52px;
}

.footer__logo img {
  height: 80px;
  width: auto;
  margin-top: -14px;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer__logo:hover img {
  opacity: 1;
}

.footer__redes {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.footer__redes a {
  color: #999;
  display: flex;
  transition: color 0.2s;
}

.footer__redes a:hover {
  color: #111;
}

.footer__copy {
  font-size: 11px;
  color: #999;
  letter-spacing: 0.04em;
}

.footer__copy a {
  color: #999;
  text-decoration: underline;
  transition: color 0.2s;
}

.footer__copy a:hover {
  color: #111;
}

/* ===========================
   WHATSAPP FLOTANTE
=========================== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37,211,102,0.5);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ===========================
   MOBILE
=========================== */
@media (max-width: 768px) {

  /* NAV */
  .nav {
    padding: 0 20px;
    height: 75px;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 0;
    z-index: 999;
    overflow-y: auto;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__item {
    width: 100%;
    height: auto;
  }

  .nav__link {
    width: 100%;
    height: auto;
    padding: 16px 24px;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav__link--jenbach {
    padding: 12px 24px;
  }

  .megamenu {
    display: none !important;
  }

  .nav__item--mobile-only {
    display: block;
  }

  .nav__logo img {
    height: 85px;
  }

  .nav__actions {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  /* HERO */
  .hero {
    background-attachment: scroll;
    height: 40vh;
  }

  .hero__title {
    font-size: 28px;
    letter-spacing: -0.5px;
  }

  /* CATEGORÍAS */
  .cat__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top !important;
    transition: transform 0.6s ease;
  }

  .categorias {
    flex-direction: column;
    margin-top: 20px;
  }

  .categorias--mt {
    margin-top: 20px;
  }

  .cat__item {
    width: 100%;
    border-right: none !important;
  }

  .cat__item {
    height: 50vh !important;
  }

  .cat__item + .cat__item {
    margin-top: 0;
  }

  .hero {
    background-attachment: scroll;
  }

  .cat__item {
    height: 320px;
  }

  .cat__label {
    font-size: 18px;
    left: 24px;
  }

  .cat__label-sub {
    font-size: 13px;
  }

  /* FULL BANNER */
  .fullbanner--parallax {
    background-attachment: scroll;
  }

  .fullbanner {
    margin-top: 4px;
  }

  .fullbanner {
    height: 50vh;
    margin-top: 20px;
  }

  .fullbanner__img {
    height: 50vh;
  }

  .jenbach-logo--banner {
    width: 260px;
    height: 57px;
  }

  .jenbach-logo--banner img {
    width: 260px;
    margin-top: -100px;
  }

  .fullbanner__main {
    font-size: 30px;
  }

  .fullbanner__sub {
    font-size: 13px;
  }

  /* CONTACTO */
  .contacto {
    padding: 48px 24px;
  }

  .contacto__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contacto__titulo {
    font-size: 24px;
  }

  .contacto__row {
    grid-template-columns: 1fr;
  }

  .contacto__btn {
    width: 100%;
    text-align: center;
  }

  /* BANNER REGISTRO */
  .registro {
    padding: 40px 24px;
    margin-top: 40px;
  }

  .registro__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .registro__text {
    font-size: 14px;
  }

  /* FOOTER */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    text-align: center;
  }
}
