/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'StackSansHeadline';
  src: url('assets/tipografia/StackSansHeadline-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'StackSansNotch';
  src: url('assets/tipografia/StackSansNotch-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'StackSansText';
  src: url('assets/tipografia/StackSansText-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --green:       #058b3f;
  --green-dark:  #046b30;
  --cream:       #f0f0e8;
  --white:       #ffffff;
  --text-dark:   #2d4a2d;
  --error:       #c0392b;

  --radius-input: 50px;
  --radius-btn:   50px;

  /* Card: asimétrica — top-right muy redondeada */
  --card-tl: 20px;
  --card-tr: 80px;
  --card-br: 20px;
  --card-bl: 20px;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'StackSansText', sans-serif;
  background: var(--green) url('assets/fondos/fondo-desktop.png') center top / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Accesibilidad: visually hidden pero disponible a screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher__link {
  font-family: 'StackSansText', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.lang-switcher__link--active {
  font-weight: 700;
  color: #ffffff;
}

a.lang-switcher__link:hover {
  color: #ffffff;
}

.lang-switcher__sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
}

/* ============================================================
   LAYOUT — DESKTOP (>768px)
   ============================================================ */
.page {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* --- Left panel --- */
.panel-left {
  position: relative;
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 56px;
  overflow: hidden;
}


.panel-left__isologo {
  width: 110px;
  position: relative;
  z-index: 1;
  filter: brightness(0) invert(1);
}

.panel-left__headline {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
}

.panel-left__headline p {
  font-family: 'StackSansNotch', sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 4.5vw, 72px);
  line-height: 1;
  color: var(--white);
}

.panel-left__headline strong {
  font-weight: 600;
}

.panel-left__logo {
  width: 150px;
  position: relative;
  z-index: 1;
  filter: brightness(0) invert(1);
}

/* --- Right panel --- */
.panel-right {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  position: relative;
}

/* Mobile-only elements: hidden on desktop */
.mobile-header,
.mobile-hero {
  display: none;
}

.mobile-br {
  display: none;
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--cream);
  border-radius: var(--card-tl) var(--card-tr) var(--card-br) var(--card-bl);
  padding: 44px 48px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.card__date {
  display: block;
  font-family: 'StackSansText', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--green);
  margin-bottom: 14px;
}
.card__date strong {
  font-weight: 700;
}

.card__title {
  font-family: 'StackSansNotch', sans-serif;
  font-weight: 400;
  font-size: clamp(25px, 2.6vw, 36px);
  line-height: 1.05;
  color: var(--green);
  margin-bottom: 14px;
}
.card__title strong {
  font-weight: 700;
  color: var(--green-dark);
}

.card__desc {
  font-family: 'StackSansText', sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--green);
  margin-bottom: 24px;
}
.card__desc strong {
  font-weight: 700;
  color: var(--green-dark);
}

/* ============================================================
   FORM — SHARED
   ============================================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form--hidden {
  display: none !important;
}

/* --- Field wrapper --- */
.field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* --- Inputs --- */
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  font-family: 'StackSansText', sans-serif;
  font-size: 14.48px;
  font-weight: 400;
  line-height: 1;
  color: var(--green);
  background: transparent;
  border: 1.5px solid var(--green);
  border-radius: var(--radius-input);
  padding: 12px 22px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  appearance: none;
}

.field textarea {
  border-radius: var(--radius-input);
  resize: none;
  height: 44px;
  min-height: unset;
  line-height: 1;
  padding-top: 12px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--green);
  opacity: 0.65;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(5, 139, 63, 0.18);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
}

/* --- Inline error --- */
.field__error {
  font-family: 'StackSansText', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--error);
  padding-left: 10px;
  min-height: 14px;
  line-height: 1.3;
}

/* --- Textarea wrapper transition --- */
.field--textarea {
  overflow: hidden;
}

/* ============================================================
   BUTTON
   ============================================================ */
.btn {
  font-family: 'StackSansText', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-btn);
  padding: 15px 32px;
  width: 100%;
  margin-top: 6px;
  transition: background 0.2s, transform 0.1s;
  -webkit-appearance: none;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-dark);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

/* ============================================================
   CUSTOM CHECKBOXES
   ============================================================ */
.check-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

/* Ocultar el input nativo */
.check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Círculo custom */
.check-custom {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

/* Estado marcado */
.check-label input[type="checkbox"]:checked + .check-custom {
  background: var(--green);
  border-color: var(--green);
}

/* Checkmark */
.check-label input[type="checkbox"]:checked + .check-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Focus visible */
.check-label input[type="checkbox"]:focus-visible + .check-custom {
  box-shadow: 0 0 0 3px rgba(5, 139, 63, 0.3);
}

.check-text {
  font-family: 'StackSansText', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

.check-text--legal {
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
}

.check-text--legal .link {
  font-weight: 700;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.check-text .link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   DISCLAIMER
   ============================================================ */
.disclaimer {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: oblique;
  color: var(--green);
  line-height: 1;
  margin-top: 2px;
}

/* ============================================================
   THANK YOU
   ============================================================ */
.thankyou {
  text-align: center;
  padding: 40px 0 20px;
}

.thankyou__title {
  font-family: 'StackSansNotch', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.15;
  margin-bottom: 14px;
}

.thankyou__sub {
  font-family: 'StackSansText', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--green);
}

/* ============================================================
   AFORO COMPLETO
   ============================================================ */
.soldout {
  text-align: center;
  padding: 24px 0;
}

.soldout__title {
  font-family: 'StackSansNotch', sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.05;
  margin-bottom: 18px;
}

.soldout__sub {
  font-family: 'StackSansText', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: var(--green);
  margin-bottom: 28px;
}

.btn--link {
  display: inline-block;
  width: auto;
  text-align: center;
  text-decoration: none;
}

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

  body {
    background: var(--green) url('assets/fondos/fondo-mobile.png') center / cover no-repeat;
  }

  .page {
    flex-direction: column;
    min-height: 100vh;
    background-image: none;
  }

  /* Ocultar panel izquierdo desktop */
  .panel-left {
    display: none;
  }

  /* Panel derecho: columna completa */
  .panel-right {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    width: 100%;
  }

  /* --- Mobile hero (fondo + header + headline) --- */
  .mobile-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('assets/fondos/fondo-mobile.png');
    background-size: cover;
    background-position: center;
    padding: 0 20px 40px;
    position: relative;
    min-height: 210px;
  }

  /* --- Mobile header dentro del hero --- */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 16px;
    position: relative;
    z-index: 2;
  }

  .mobile-header__iso {
    width: 36px;
    filter: brightness(0) invert(1);
  }

  .mobile-header__logo {
    width: 120px;
    filter: brightness(0) invert(1);
  }

  .mobile-hero__headline {
    font-family: 'StackSansNotch', sans-serif;
    font-weight: 300;
    font-size: 32.78px;
    line-height: 1;
    color: var(--white);
    position: relative;
    z-index: 1;
  }

  .mobile-hero__headline strong {
    font-weight: 700;
  }

  /* --- Card mobile --- */
  .card {
    border-radius: 20px 80px 20px 20px;
    padding: 24px 24px 32px;
    width: auto;
    max-width: none;
    margin: -32px 16px 16px;
    position: relative;
    z-index: 2;
  }

  .card__date {
    margin-bottom: 8px;
  }

  .mobile-br {
    display: inline;
  }

  .card__title {
    font-size: 25px;
    margin-bottom: 10px;
  }

  .card__desc {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .form {
    gap: 6px;
  }

  .field__error {
    min-height: 0;
  }

  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"],
  .field textarea {
    font-size: 16px;
    padding: 8px 16px;
  }

  .btn {
    font-size: 15px;
    padding: 12px 24px;
    margin-top: 2px;
  }

  .btn--link {
    padding: 14px 36px;
  }

  .soldout__title {
    font-size: 46px;
  }

  .mobile-header {
    position: relative;
  }

  .mobile-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .lang-switcher {
    top: 30px;
    right: 20px;
    left: auto;
    transform: none;
  }

  .lang-switcher__link {
    font-size: 13px;
  }

  .lang-switcher__sep {
    font-size: 11px;
  }

}
