/* ============================================================
   ALPHA CUSTOM YACHTS
   Sistema visual replicado del sitio original: Bodoni Moda + Montserrat.
   ============================================================ */

/* Bricks fija html{font-size:62.5%} → todo rem se renderiza al 62.5%. */
html { font-size: 100% !important; }

/* Reset de los defaults de Bricks que pelean con el layout propio. */
.brxe-section:not(.a-hero) { display: block !important; padding: 0 !important; width: 100% !important; align-items: initial !important; }
.brxe-section.a-hero { padding: 0 !important; width: 100% !important; }
.brxe-container { width: 100% !important; max-width: none !important; flex-direction: row !important; align-items: initial !important; padding: 0 !important; }
.brxe-block, .brxe-div { display: block; flex-direction: row; width: auto; }

:root {
  --ink:      #0d0d0b;
  --ink-soft: #4a4a46;
  --line:     #e2e0dc;
  --paper:    #ffffff;
  --serif:    "Bodoni Moda", Didot, "Times New Roman", serif;
  --sans:     "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gut:      clamp(1.5rem, 5vw, 5rem);
  --maxw:     1320px;
  --hdr-h:    170px;
}

body.alpha {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}
body.alpha.nav-open { overflow: hidden; }

.a-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); box-sizing: border-box; }

/* ============================================================
   HEADER — medidas tomadas del original a 1440px:
   full-width · alto 170px · padding vertical 43.2px · margen lateral 36px
   IZQ burger(x=36) + botón Yachts(x=131) · CENTRO logo 243px · DER idioma(right=1404)
   ============================================================ */
/* Bricks envuelve el template en #brx-header: solo el WRAPPER va fijo. */
#brx-header {
  position: fixed !important;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background-color .4s ease;
}
#brx-header .a-header { position: static !important; background: transparent; }

.a-header__inner {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: none !important;          /* el original NO tiene contenedor centrado */
  padding: 43.2px 36px;                /* medido del original */
  min-height: 170px;
  box-sizing: border-box;
}

/* --- izquierda --- */
.a-header__left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 35px;                            /* burger right=96 → botón x=131 */
  flex: 0 0 auto !important;
  width: auto !important;
  z-index: 2;
}

/* --- centro: logo absolutamente centrado en el viewport --- */
.a-header__logo {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
  width: 243px !important;              /* ancho exacto del original */
  flex: 0 0 auto !important;
  z-index: 1;
}
.a-header__logo img {
  width: 100%; height: auto; display: block;
  filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0,0,0,.35));
  transition: filter .4s ease;
}
body.alpha.scrolled .a-header__logo img,
body.alpha.nav-open .a-header__logo img { filter: none; }

/* --- derecha: selector de idioma --- */
.a-header__lang {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  flex: 0 0 auto !important;
  width: auto !important;
  z-index: 2;
}
.a-lang__current {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; text-decoration: none;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  transition: color .4s ease, text-shadow .4s ease;
}
/* globo + caret como SVG de fondo (sin depender del Code element) */
.a-lang__current::before {
  content: ""; width: 20px; height: 20px; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4'><circle cx='12' cy='12' r='10'/><path d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4'><circle cx='12' cy='12' r='10'/><path d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/></svg>") center/contain no-repeat;
}
.a-lang__current::after {
  content: ""; width: 18px; height: 18px; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M7 10l5 5 5-5z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M7 10l5 5 5-5z'/></svg>") center/contain no-repeat;
}
body.alpha.scrolled .a-lang__current,
body.alpha.nav-open .a-lang__current { color: var(--ink); text-shadow: none; }

/* estado con scroll */
body.alpha.scrolled #brx-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(6px); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
body.alpha.scrolled .a-header__inner { padding-block: 18px; min-height: 0; }

/* hamburguesa */
.a-burger {
  flex: 0 0 auto !important;
  width: 60px !important; height: 24px;      /* w=60 medido del original */
  display: flex !important; flex-direction: column !important; justify-content: center !important;
  gap: 7px; background: none; border: 0; cursor: pointer; padding: 0;
}
.a-burger > div { display: block; height: 1.5px; width: 100%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); transition: transform .35s ease, opacity .25s ease, background-color .4s ease, box-shadow .4s ease; }
body.alpha.scrolled .a-burger > div, body.alpha.nav-open .a-burger > div { box-shadow: none; }
body.alpha.scrolled .a-burger > div { background: var(--ink); }
body.alpha.nav-open .a-burger > div { background: var(--ink); }
body.alpha.nav-open .a-burger > div:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
body.alpha.nav-open .a-burger > div:nth-child(2) { opacity: 0; }
body.alpha.nav-open .a-burger > div:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ============================================================
   NAV OVERLAY
   ============================================================ */
.a-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  display: flex !important; flex-direction: column !important;
  align-items: center !important; justify-content: center !important;
  gap: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(-1.5rem);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
body.alpha.nav-open .a-nav { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.a-nav a {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.9;
  transition: opacity .25s ease;
}
.a-nav a:hover { opacity: .45; }
.a-nav__langs { display: flex !important; flex-direction: row !important; flex-wrap: wrap; justify-content: center !important; gap: 1.6rem; margin-top: 3rem; width: auto !important; }
.a-nav__langs a { font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; color: var(--ink-soft); }

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
.a-eyebrow {
  font-family: var(--sans); font-size: .7rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 1.5rem; line-height: 1.6;
}
.a-h1, .a-h2 {
  font-family: var(--serif); font-weight: 500; letter-spacing: .01em;
  line-height: 1.12; color: var(--ink); margin: 0; text-wrap: balance;
}
.a-h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); text-transform: uppercase; }
.a-h2 { font-size: clamp(1.8rem, 4vw, 3.1rem); text-transform: uppercase; }
.a-lead { font-size: clamp(.95rem, 1.15vw, 1.06rem); line-height: 1.9; color: var(--ink-soft); margin: 2rem 0 0; max-width: 62ch; }

/* ============================================================
   BOTÓN
   ============================================================ */
.a-cta {
  display: inline-block; font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink); text-decoration: none;
  padding: 1.05rem 2.6rem; border: 1px solid var(--ink); background: transparent;
  transition: background-color .3s ease, color .3s ease; margin-top: 2.6rem;
}
.a-cta:hover, .a-cta:focus-visible { background: var(--ink); color: var(--paper); }

/* ============================================================
   HERO — video a pantalla completa
   ============================================================ */
.a-hero { position: relative; min-height: 100vh; display: flex !important; align-items: center !important; justify-content: center !important; overflow: hidden; background: #0b0b0b; }
.a-hero__media { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
.a-hero__media video,
.a-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.16) 42%, rgba(0,0,0,.46) 100%); pointer-events: none; }
/* el hero del original NO lleva logo ni texto: es solo el video */
.a-hero__media .brxe-video, .a-hero__media > * { width: 100% !important; height: 100% !important; }

/* ============================================================
   INTRO
   ============================================================ */
.a-intro { padding: clamp(5rem, 11vw, 9.5rem) 0; text-align: center; }
.a-intro .a-lead { margin-inline: auto; }

/* ============================================================
   MODELOS
   ============================================================ */
.a-models { padding-bottom: clamp(4rem, 9vw, 8rem); }
.a-model { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.a-model:nth-child(even) .a-model__media { order: 2; }
.a-model__media { overflow: hidden; }
.a-model__media img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .9s cubic-bezier(.2,.6,.2,1); }
.a-model:hover .a-model__media img { transform: scale(1.035); }
.a-model__body { padding-block: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
#brx-footer, .a-footer { background: var(--ink); color: #fff; }
.a-footer__inner {
  display: flex !important; flex-direction: row !important; flex-wrap: wrap;
  align-items: center !important; justify-content: space-between !important; gap: 1rem;
  width: 100% !important; max-width: var(--maxw); margin-inline: auto;
  padding: 2.6rem var(--gut); box-sizing: border-box;
}
.a-footer a, .a-footer p { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); text-decoration: none; margin: 0; }
.a-footer a:hover { color: #fff; }
.a-footer__legal { display: flex !important; flex-direction: row !important; gap: 1.6rem; width: auto !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .a-model { grid-template-columns: 1fr; }
  .a-model:nth-child(even) .a-model__media { order: 0; }
  .a-hero { min-height: 88vh; }
  .a-footer__inner { flex-direction: column !important; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .a-navword:hover::after, .a-navword:focus-visible::after { animation: none; background-size: 100% 1px, 100% 1px, 1px 50%, 1px 50%, 1px 50%, 1px 50%; }
  .a-model__media img, .a-cta, .a-nav, .a-burger > div { transition: none; }
}

/* el hero es decorativo: sin controles ni interacción */
.a-hero video { pointer-events: none; }
.a-hero video::-webkit-media-controls,
.a-hero video::-webkit-media-controls-enclosure,
.a-hero video::-webkit-media-controls-panel { display: none !important; opacity: 0 !important; }
.a-hero figure { margin: 0; width: 100%; height: 100%; }

/* ============================================================
   ZONA DERECHA — idioma en desktop, hamburguesa en móvil
   ============================================================ */
.a-header__right {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 18px;
  flex: 0 0 auto !important;
  width: auto !important;
  z-index: 2;
}

/* botón "Menu": mismo lenguaje que "Yachts" */
.a-btn-outline.a-menu-toggle { cursor: pointer; }
.a-menu-toggle { -webkit-tap-highlight-color: transparent; }

/* DESKTOP: se ven los botones con borde; la hamburguesa no */
@media (min-width: 861px) {
  .a-header__right .a-burger { display: none !important; }
}

/* MÓVIL: la hamburguesa manda, a la derecha; los botones con borde se ocultan */
@media (max-width: 860px) {
  .a-header__left { display: none !important; }
  .a-header__right .a-lang__current { display: none !important; }
  .a-header__right .a-burger { display: flex !important; }
  .a-header__inner { padding: 26px 22px; min-height: 96px; }
  .a-header__logo { width: 178px !important; left: 22px !important; transform: translateY(-50%) !important; }
  /* con el logo a la izquierda, el inner reparte logo | hamburguesa */
  .a-header__inner { justify-content: flex-end !important; }
  body.alpha.scrolled .a-header__inner { padding-block: 16px; }
}

/* el overlay abierto muestra su propio cierre */
body.alpha.nav-open .a-btn-outline.a-menu-toggle { color: var(--ink); border-color: var(--ink); text-shadow: none; }

/* ============================================================
   NAVEGACIÓN EN PALABRA — sin recuadro; el peso lo da la
   tipografía y un fondo cristalino que solo aparece al pasar.
   ============================================================ */
.a-navword {
  position: relative;
  display: inline-flex; align-items: center; gap: .62rem;
  font-family: var(--sans);
  font-size: .74rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: #fff; text-decoration: none;
  padding: .68rem 1.05rem;
  text-shadow: 0 1px 5px rgba(0,0,0,.4);
  border-radius: 2px;
  background: transparent;
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  transition: background-color .45s cubic-bezier(.2,.6,.2,1),
              border-color .45s ease, backdrop-filter .45s ease,
              color .4s ease, text-shadow .4s ease;
  white-space: nowrap;
}
/* el cristal: apenas un velo, no una caja */
.a-navword:hover, .a-navword:focus-visible {
  background: rgba(255,255,255,.10);
  -webkit-backdrop-filter: blur(9px) saturate(1.3);
          backdrop-filter: blur(9px) saturate(1.3);
}
/* filete que crece desde el centro: la firma del hover */
/* EL TRAZO SE ABRE DESDE ARRIBA Y ABAJO.
   Seis segmentos: las horizontales nacen en el centro y corren hacia los
   dos lados; después los costados bajan/suben desde las cuatro esquinas y
   se encuentran a media altura, cerrando el marco. Simétrico en los dos ejes. */
.a-navword::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(currentColor, currentColor) center top    / 0 1px no-repeat,  /* 1 arriba:  centro → lados */
    linear-gradient(currentColor, currentColor) center bottom / 0 1px no-repeat,  /* 2 abajo:   centro → lados */
    linear-gradient(currentColor, currentColor) left  top     / 1px 0 no-repeat,  /* 3 izq  ↓ desde esquina sup */
    linear-gradient(currentColor, currentColor) left  bottom  / 1px 0 no-repeat,  /* 4 izq  ↑ desde esquina inf */
    linear-gradient(currentColor, currentColor) right top     / 1px 0 no-repeat,  /* 5 der  ↓ desde esquina sup */
    linear-gradient(currentColor, currentColor) right bottom  / 1px 0 no-repeat;  /* 6 der  ↑ desde esquina inf */
  transition: opacity .3s ease .25s;
}
@keyframes a-trace {
  0% {
    background-size: 0 1px, 0 1px, 1px 0, 1px 0, 1px 0, 1px 0;
  }
  /* las horizontales terminan de abrirse */
  55% {
    background-size: 100% 1px, 100% 1px, 1px 0, 1px 0, 1px 0, 1px 0;
  }
  /* los costados se encuentran a la mitad */
  100% {
    background-size: 100% 1px, 100% 1px, 1px 50%, 1px 50%, 1px 50%, 1px 50%;
  }
}
.a-navword:hover::after, .a-navword:focus-visible::after {
  opacity: .5;
  transition: opacity .12s ease;
  animation: a-trace .34s cubic-bezier(.3,.05,.2,1) forwards;
}

/* MENU se distingue de YACHTS por su glifo de tres líneas */
.a-navword--menu::before {
  content: ""; width: 15px; height: 9px; flex: 0 0 auto;
  background:
    linear-gradient(currentColor, currentColor) 0 0   / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50%  / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  opacity: .95;
  transition: opacity .35s ease;
}
.a-navword--menu:hover::before { opacity: 1; }

/* con el header sólido o el overlay abierto, la tinta manda */
body.alpha.scrolled .a-navword,
body.alpha.nav-open  .a-navword { color: var(--ink); text-shadow: none; }
body.alpha.scrolled .a-navword:hover,
body.alpha.nav-open  .a-navword:hover { background: rgba(13,13,11,.045); }

/* ============================================================
   SELECTOR DE IDIOMA — desplegable
   ============================================================ */
.a-lang { position: relative !important; width: auto !important; }
.a-lang__menu {
  position: absolute !important;
  top: calc(100% + 12px); right: 0;
  min-width: 172px;
  display: flex !important; flex-direction: column !important;
  padding: .5rem 0;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
          backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(13,13,11,.09);
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .32s ease, transform .32s cubic-bezier(.2,.6,.2,1);
  pointer-events: none;
  z-index: 20;
}
.a-lang.is-open .a-lang__menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.a-lang__opt {
  display: block;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); text-decoration: none;
  padding: .62rem 1.35rem;
  transition: background-color .22s ease, color .22s ease;
}
.a-lang__opt:hover { background: rgba(13,13,11,.045); color: var(--ink); }
.a-lang__opt[aria-current="true"] { color: var(--ink); font-weight: 500; }
/* el caret gira al abrir */
.a-lang.is-open .a-lang__current::after { transform: rotate(180deg); }
.a-lang__current::after { transition: transform .32s ease; }
.a-lang__current { cursor: pointer; }
