/* ── RESET & VARIABLES ── */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #e8a020;
  --white: #ffffff;
  --dark: #0a0a0a;
  --font-main: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--font-main);
  background: var(--dark);
  overflow: hidden;
}

/* ── TOP BAR ── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 18px 28px;
  pointer-events: none;
}

.topbar-logo {
  position: absolute;
  top: 12px;
  left: 50vw;
  width: 74px;
  height: 74px;
  object-fit: contain;
  transform: translateX(-50%);
  pointer-events: auto;
}

.language-switch {
  position: relative;
  pointer-events: auto;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.language-icon {
  font-size: 17px;
  line-height: 1;
}

.language-menu {
  position: absolute;
  top: calc(100% + 0px);
  right: 0;
  z-index: 120;
  min-width: 210px;
  padding: 10px 0;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 16px;
  font: inherit;
  font-size: 15px;
  color: #333333;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.language-option:hover,
.language-option:focus-visible {
  background: rgba(232, 160, 32, 0.14);
  outline: none;
}

.language-flag {
  width: 20px;
  font-size: 18px;
  line-height: 1;
}

body {
  top: 0 !important;
}

/* ── SPLIT SCREEN ── */
.hero {
  display: flex;
  height: 100vh;
  width: 100%;
  position: relative;
}

.panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.55s cubic-bezier(0.77, 0, 0.18, 1);
}

.panel:hover {
  flex: 1.18;
}

.panel:hover .panel-overlay {
  opacity: 0.38;
}

.panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
}

.panel:hover .panel-bg {
  transform: scale(1);
}

/* Produktiva */
.panel--left .panel-bg {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 100%),
    url('../img/bnr-left-pdk.jpg');
}

/* Global PDK */
.panel--right .panel-bg {
  background-image:
    linear-gradient(to left, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 100%),
    url('../img/bnr-right-pdk.jpeg');
}

.panel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.45s ease;
}

/* ── CONTENIDO DE PANELES ── */
.panel-content {
  position: absolute;
  top: 50%;
  left: 36px;
  right: 36px;
  z-index: 2;
}

.panel-name {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 80px);
  letter-spacing: 0.01em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.panel-desc {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 24px;
}

.panel-btn {
  display: inline-block;
  padding: 10px 22px;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

/* Ambos botones: dorado en hover */
.panel:hover .panel-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}


.panel--right .panel-content {
  text-align: right;
}

.panel--right .panel-desc {
  margin-left: auto;
  margin-right: 0;
}

.panel--right .panel-btn {
  float: right;
}

/* ── DIVISOR VERTICAL ── */
.divider {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 20%,
    rgba(255, 255, 255, 0.18) 80%,
    transparent 100%
  );
  z-index: 40;
  pointer-events: none;
  transition: left 0.55s cubic-bezier(0.77, 0, 0.18, 1);
}

/* ── BADGE CENTRAL ── */
.center-badge {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.center-badge .eyebrow {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.center-badge .headline {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.05;
  margin-bottom: 6px;
}

.center-badge .sub {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 640px) {
  html, body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
  }

  /* Badge compacto y cuadrado en mobile */
  .center-badge {
    position: absolute;
    top: 126px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 22px;
    background: transparent;
    text-align: center;
    width: 100%;
    display: block;
  }

  .center-badge .eyebrow {
    font-size: 9px;
    letter-spacing: 0.2em;
    margin-bottom: 7px;
  }

  .center-badge .headline {
    font-size: clamp(16px, 5.2vw, 22px);
    letter-spacing: 0.04em;
    margin-bottom: 2px;
  }

  .center-badge .sub {
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .topbar {
    padding: 14px 16px;
  }

  .topbar-logo {
    top: 10px;
    width: 58px;
    height: 58px;
  }

  .language-toggle {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 13px;
  }

  .language-menu {
    min-width: 178px;
  }

  /* Hero en columna */
  .hero {
    flex-direction: column;
    height: auto;
  }

  /* Cada panel ocupa toda la pantalla */
  .panel {
    flex: none;
    height: 100svh;
    width: 100%;
  }

  .panel:hover {
    flex: none;
  }

  /* Ocultar divisor */
  .divider {
    display: none;
  }

  /* Título ajustado a mobile */
  .panel-name {
    font-size: clamp(40px, 12vw, 60px);
  }

  /* Descripción sin ancho máximo restrictivo */
  .panel-desc {
    max-width: 100%;
    font-size: 14px;
  }

  /* Panel derecho vuelve a izquierda en mobile */
  .panel--right .panel-content {
    text-align: left;
  }

  .panel--right .panel-desc {
    margin-left: 0;
  }

  .panel--right .panel-btn {
    float: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .panel-bg {
    transition: none;
  }
}
