.lang{
  position:fixed;
  top:clamp(12px, 2vw, 16px);
  right:clamp(12px, 2vw, 16px);
  z-index:20;

  display:inline-flex;
  align-items:center;
  gap:6px;

  padding:8px 10px;
  border-radius:999px;

  background:rgba(15,17,19,.55);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.lang button{
  background:transparent;
  border:0;
  color:var(--muted);
  cursor:pointer;

  padding:6px 10px;
  border-radius:999px;

  font-size:14px;
  line-height:1;
  white-space:nowrap;

  transition:
    color .15s ease,
    background-color .15s ease,
    opacity .15s ease,
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease;
}

/* ✅ Estado activo del idioma (CSS-driven, accesible) */
.lang button[aria-pressed="true"]{
  border:1px solid rgba(244, 242, 238, 0.35);
  background:rgba(244, 242, 238, 0.12);
  color:var(--fg);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.lang button:hover{
  color:var(--fg);
  background:rgba(255,255,255,.06);
}

.lang button:focus-visible{
  outline:2px solid rgba(31,122,109,.95);
  outline-offset:2px;
  color:var(--fg);
  background:rgba(31,122,109,.12);
}

.lang button:active{
  opacity:.85;
}

/* -------------------------------------------------
   LANGUAGE SELECTOR — PRO (trigger + dropdown/sheet)
   ------------------------------------------------- */

.lang-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-width:44px;
  height:36px;
  padding:0 14px;

  border-radius:999px;
  background:transparent;
  border:0;

  color:var(--fg);
  cursor:pointer;
  font-size:14px;
  line-height:1;
  white-space:nowrap;

  transition:
    background-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

.lang-trigger:hover{
  background:rgba(255,255,255,.06);
}

.lang-trigger:focus-visible{
  outline:2px solid rgba(31,122,109,.95);
  outline-offset:2px;
  background:rgba(31,122,109,.12);
}

.lang-trigger[aria-expanded="true"]{
  border:1px solid rgba(244, 242, 238, 0.35);
  background:rgba(244, 242, 238, 0.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.lang-current{
  font-weight:500;
  letter-spacing:.02em;
}

/* Dropdown menu (desktop) */
.lang-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;

  min-width:180px;
  padding:6px;

  background:#111315;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;

  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

.lang-menu[hidden]{ display:none; }

.lang-menu li{ list-style:none; }

.lang-menu button{
  width:100%;
  text-align:left;

  background:transparent;
  border:0;
  border-radius:8px;

  padding:10px 12px;
  font-size:14px;
  color:var(--fg);
  cursor:pointer;

  transition:
    background-color .12s ease,
    color .12s ease;
}

.lang-menu button:hover{
  background:rgba(255,255,255,.06);
}

.lang-menu button:focus-visible{
  outline:2px solid rgba(31,122,109,.95);
  outline-offset:2px;
  background:rgba(31,122,109,.12);
}

.lang-menu button[aria-checked="true"]{
  background:rgba(31,122,109,.18);
  color:var(--fg);
}

/* Mobile sheet */
@media (max-width:720px){
  /* FIX iOS Safari: evita clipping del sheet al tener backdrop-filter en el trigger */
  .lang{
    z-index:21;
    background:transparent;
    border:0;
    box-shadow:none;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }

  .lang-trigger{
    background:rgba(244,242,238,.08);
    border:1px solid rgba(255,255,255,.10);
  }

  .lang-menu{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    top:auto;

    border-radius:16px 16px 0 0;
    padding:16px;

    background:#0f1113;
    box-shadow: 0 -20px 50px rgba(0,0,0,.6);
  }

  .lang-menu button{
    font-size:16px;
    padding:14px 12px;
  }
}

/* CTA */
.cta{
  display:inline-block;
  margin-top:24px;
  padding:14px 26px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  border:0;
  cursor:pointer;

  border:1px solid rgba(255,255,255,.10);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.22),
    0 0 0 rgba(0,0,0,0);

  transition:
    transform .12s ease,
    box-shadow .12s ease,
    filter .12s ease,
    background-color .12s ease;
}

.cta:hover{
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.28),
    0 10px 24px rgba(0,0,0,.28);
  filter: brightness(1.05);
}

.cta:focus-visible{
  outline:2px solid rgba(31,122,109,.95);
  outline-offset:3px;
  box-shadow: 0 0 0 4px rgba(31,122,109,.25);
}

.cta:active{
  transform: translateY(0);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.28),
    0 6px 16px rgba(0,0,0,.25);
}

/* --------- FASE 2.3 — CTA disabled --------- */
.cta:disabled,
.cta[aria-disabled="true"]{
  cursor:not-allowed;
  pointer-events:none;

  background:rgba(31,122,109,.35);
  border-color:rgba(31,122,109,.35);

  color:rgba(255,255,255,.9);
  box-shadow:none;
  filter:none;
  transform:none;
  opacity:1;
}

.form{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:24px;
}
.form input,
.form textarea{
  background:#14181b;
  border:1px solid #222;
  color:var(--fg);
  padding:12px 14px;
  border-radius:8px;
}

/* ---------------------------------------------
   LEGAL ACCEPTANCE — checkout consent
   --------------------------------------------- */

.legal-acceptance{
  display:grid;
  grid-template-columns:18px minmax(0, 1fr);
  gap:8px 10px;
  align-items:start;

  margin-top:4px;
  padding:12px 14px;

  border:1px solid rgba(236,220,189,.18);
  border-radius:10px;
  background:rgba(255,255,255,.025);
}

.form .legal-acceptance__checkbox{
  appearance:none;
  -webkit-appearance:none;

  width:18px;
  height:18px;
  min-width:18px;
  min-height:18px;

  margin:2px 0 0;
  padding:0;

  border-radius:4px;
  border:1px solid rgba(236,220,189,.42);
  background:rgba(20,24,27,.95);
  color:var(--fg);

  cursor:pointer;
}

.form .legal-acceptance__checkbox:checked{
  background:var(--accent);
  border-color:var(--accent);
  box-shadow:inset 0 0 0 3px #0f1113;
}

.form .legal-acceptance__checkbox:focus-visible{
  outline:2px solid rgba(31,122,109,.95);
  outline-offset:3px;
}

.legal-acceptance__label{
  margin:0;
  color:rgba(255,249,238,.94);
  font-size:14px;
  line-height:1.45;
}

.legal-acceptance__links{
  grid-column:2;
  display:flex;
  flex-wrap:wrap;
  gap:4px 8px;

  font-size:13px;
  line-height:1.35;
}

.legal-acceptance__links a{
  color:rgba(255,249,238,.82);
  text-decoration:underline;
  text-decoration-color:rgba(255,249,238,.34);
  text-underline-offset:3px;
}

.legal-acceptance__links a:hover{
  color:var(--fg);
  text-decoration-color:rgba(31,122,109,.9);
}

.legal-acceptance__links a:focus-visible{
  outline:2px solid rgba(31,122,109,.95);
  outline-offset:3px;
}

.legal-acceptance__error{
  grid-column:2;
  margin:0;
}

@media (max-width:720px){
  .legal-acceptance{
    grid-template-columns:18px minmax(0, 1fr);
    padding:12px;
    border-radius:9px;
  }

  .legal-acceptance__label{
    font-size:13.5px;
  }

  .legal-acceptance__links{
    font-size:13px;
  }
}

/* ---------------------------------------------
   FORM — SUCCESS STATUS (post-submit)
   --------------------------------------------- */

#contact-status{
  margin-top:12px;
  padding:12px 14px;
  border-radius:10px;

  background:rgba(31,122,109,.12);
  border:1px solid rgba(31,122,109,.35);

  color:var(--fg);
  font-size:14px;
  line-height:1.4;

  animation: fadeInStatus .25s ease-out both;
}

@keyframes fadeInStatus{
  from{
    opacity:0;
    transform: translateY(-2px);
  }
  to{
    opacity:1;
    transform:none;
  }
}

/* ---------------------------------------------
   GOOGLE ADS CONSENT — MINIMAL BANNER
   --------------------------------------------- */

.consent-banner{
  position:fixed;
  left:24px;
  right:24px;
  bottom:20px;
  z-index:80;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;

  max-width:1180px;
  margin:0 auto;
  padding:18px 20px;

  background:#111315;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.28);

  color:var(--fg);
}

.consent-banner__content{
  min-width:0;
  flex:1 1 auto;
}

.consent-banner__title{
  margin:0 0 6px;
  color:var(--fg);
  font-size:15px;
  line-height:1.3;
  font-weight:600;
}

.consent-banner__text{
  margin:0;
  max-width:none;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.consent-banner__actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
}

.consent-banner__button{
  appearance:none;
  -webkit-appearance:none;

  min-width:96px;
  min-height:40px;
  padding:10px 14px;

  border-radius:8px;
  border:1px solid rgba(255,255,255,.14);
  background:transparent;
  color:var(--fg);

  font:inherit;
  font-size:14px;
  line-height:1.2;
  cursor:pointer;
}

.consent-banner__button:hover{
  background:rgba(255,255,255,.06);
}

.consent-banner__button:focus-visible{
  outline:2px solid rgba(31,122,109,.95);
  outline-offset:2px;
}

.consent-banner__button--primary{
  background:var(--accent);
  border-color:rgba(255,255,255,.12);
  color:#fff;
}

.consent-banner__button--primary:hover{
  filter:brightness(1.05);
}

@media (max-width:720px){
  .consent-banner{
    left:12px;
    right:12px;
    bottom:12px;

    align-items:stretch;
    flex-direction:column;
    gap:12px;

    padding:14px;
  }

  .consent-banner__actions{
    width:100%;
    justify-content:stretch;
  }

  .consent-banner__button{
    flex:1 1 0;
  }
}