/* ============================================================
   LOT HERO — ISO 37301
   Tipografía: Cormorant Garamond (display / cuerpo) + Cormorant SC (versalitas)
   Paleta: negro azulado + azul oxford (lot-ox)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500;1,600&family=Cormorant+SC:wght@500;600;700&display=swap');

.lot-hero {
  --lot-font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --lot-font-caps: 'Cormorant SC', 'Cormorant Garamond', serif;

  /* Negro azulado de fondo */
  --lot-black: #060F1B;
  --lot-black-2: #03080F;
  --lot-black-3: #0D1F35;

  /* Azul Oxford: solo para líneas, texto e íconos (NUNCA como fondo sólido) */
  --lot-ox-900: #0D1F35;
  --lot-ox-700: #1A3A5C;
  --lot-ox-500: #2563A8;
  --lot-ox-400: #3B82C4;
  --lot-ox-300: #6AAAD9;
  --lot-ox-200: #93C4EA;
  --lot-ox-100: #D6EAFA;

  /* Letras en tonos neutros claros */
  --lot-ink: #D6EAFA;
  --lot-ink-muted: rgba(214, 234, 250, 0.6);
  --lot-ink-faint: rgba(214, 234, 250, 0.32);
}

.lot-hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--lot-black);
  background-image: url('/src/components/assets/images/landings/landings_37301/main_hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  font-family: var(--lot-font-display);
  overflow: hidden;
}

/* Overlay: negro degradado, SIN tinte de color */
.lot-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3,8,15,0.96) 0%, rgba(6,15,27,0.9) 55%, rgba(6,15,27,0.85) 100%);
  z-index: 0;
}

/* Textura sutil: retícula fina evocando una ficha de control / cumplimiento */
.lot-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 130, 196, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 196, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent 85%);
}

.lot-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

@media (max-width: 900px) {
  .lot-hero {
    min-height: auto;
  }
  .lot-hero__content {
    grid-template-columns: 1fr;
    padding: 56px 20px;
    gap: 36px;
  }
  .lot-hero__title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
  .lot-hero__trust {
    flex-wrap: wrap;
    row-gap: 16px;
  }
  .lot-form-card {
    padding: 28px 22px;
  }
}

@media (max-width: 480px) {
  .lot-hero__content {
    padding: 44px 16px;
  }
  .lot-hero__btns {
    flex-direction: column;
  }
  .lot-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Izquierda ── */
.lot-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lot-black-3);
  border: 1px solid rgba(59, 130, 196, 0.4);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--lot-font-caps);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--lot-ox-200);
  margin-bottom: 22px;
}

.lot-hero__logo {
  font-family: var(--lot-font-caps);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lot-ink);
  letter-spacing: 0.16em;
  margin-bottom: 22px;
}

.lot-hero__logo-accent { color: var(--lot-ox-200); }

.lot-hero__title {
  font-family: var(--lot-font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 600;
  color: var(--lot-ink);
  line-height: 1.1;
  letter-spacing: 0.005em;
  margin-bottom: 18px;
}

.lot-hero__title-accent {
  color: var(--lot-ox-200);
  font-style: italic;
  font-weight: 600;
}

.lot-hero__sub {
  font-size: 1.12rem;
  color: var(--lot-ink-muted);
  margin-bottom: 30px;
  line-height: 1.7;
  max-width: 46ch;
  font-weight: 400;
}

.lot-hero__trust {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(59, 130, 196, 0.25);
}

.lot-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--lot-font-caps);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--lot-ink-muted);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: default;
}

/* Ícono circular: fondo negro, borde y símbolo en azul oxford */
.lot-trust-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lot-black-3);
  border: 1px solid rgba(59, 130, 196, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lot-ox-200);
  font-size: 13px;
  flex-shrink: 0;
  font-family: var(--lot-font-display);
  transition: all 0.35s ease;
}

.lot-trust-item:hover { transform: translateY(-2px); color: var(--lot-ink); }

.lot-trust-item:hover .lot-trust-icon {
  background: var(--lot-black-2);
  color: var(--lot-ox-200);
  border-color: var(--lot-ox-200);
  transform: scale(1.15) rotate(8deg);
  box-shadow:
    0 0 15px rgba(59, 130, 196, 0.4),
    0 0 30px rgba(37, 99, 168, 0.25);
}

.lot-hero__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Botones hero: fondo SIEMPRE negro, borde/texto en azul oxford */
.lot-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 3px;
  font-family: var(--lot-font-caps);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.lot-btn--outline {
    background: #252a2a;
    color: #ffffff;
    border-color: #aeb8b2;
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}
.lot-btn--outline:hover {
    background: #303636;
    border-color: #d1d8d3;
    transform: translateY(-2px);
}

.lot-btn--primary {
    background: linear-gradient(135deg, #2563A8 0%, #3B82C4 100%);
        color: #ffffff;
        border-color: #70A9D8;
        box-shadow: 0 6px 18px rgba(59,130,196,0.16);
}
.lot-btn--primary:hover {
    background: linear-gradient(135deg, #3B82C4 0%, #70A9D8 100%);
        border-color: #A8D0ED;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(59,130,196,0.24);
}

/* ── Tarjeta formulario ── */
.lot-form-card {
  position: relative;
  background: linear-gradient(180deg, rgba(11,24,38,0.94), rgba(4,10,18,0.96));
  border: 1px solid rgba(59, 130, 196, 0.28);
  border-radius: 4px;
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}

/* Marcas de esquina — evocan un punto de control marcado en una ficha de auditoría */
.lot-form-card::before,
.lot-form-card::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-top: 1.5px solid rgba(59, 130, 196, 0.6);
  border-left: 1.5px solid rgba(59, 130, 196, 0.6);
  top: 12px;
  left: 12px;
}
.lot-form-card::after {
  top: auto;
  left: auto;
  bottom: 12px;
  right: 12px;
  border-top: none;
  border-left: none;
  border-bottom: 1.5px solid rgba(59, 130, 196, 0.6);
  border-right: 1.5px solid rgba(59, 130, 196, 0.6);
}

/* Progreso multi-paso */
.lot-form-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
}

.lot-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(214, 234, 250, 0.16);
  transition: all 0.3s ease;
}
.lot-step-dot.active,
.lot-step-dot--active {
  background: var(--lot-ox-200);
  width: 26px;
  border-radius: 4px;
}
.lot-step-dot--done {
  background: rgba(59, 130, 196, 0.5);
}

.lot-step-label {
  font-family: var(--lot-font-caps);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--lot-ink-faint);
  margin-left: 4px;
}

/* Pasos */
.lot-step { display: none; }
.lot-step--active { display: block; }

.lot-form-heading {
  font-family: var(--lot-font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--lot-ink);
  margin-bottom: 6px;
  letter-spacing: 0.005em;
}

.lot-form-sub {
  font-size: 0.92rem;
  color: var(--lot-ink-faint);
  margin-bottom: 22px;
  line-height: 1.6;
  font-weight: 400;
}

/* Campos */
.lot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lot-field { margin-bottom: 14px; }

.lot-field-label {
  display: block;
  font-family: var(--lot-font-caps);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--lot-ink-faint);
  margin-bottom: 6px;
}

/* Inputs: fondo negro (sin tinte de color), borde azul oxford tenue */
.lot-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 3px;
  border: 1px solid rgba(59, 130, 196, 0.28);
  background: var(--lot-black-3);
  color: var(--lot-ink);
  font-family: var(--lot-font-display);
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s, background 0.2s;
}
.lot-input::placeholder { color: var(--lot-ink-faint); }
.lot-input:focus {
  border-color: var(--lot-ox-200);
  background: var(--lot-black-2);
}

.lot-textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 3px;
  border: 1px solid rgba(59, 130, 196, 0.28);
  background: var(--lot-black-3);
  color: var(--lot-ink);
  font-family: var(--lot-font-display);
  font-size: 0.95rem;
  outline: none;
  resize: vertical;
  transition: border 0.2s, background 0.2s;
  min-height: 104px;
}
.lot-textarea::placeholder { color: var(--lot-ink-faint); }
.lot-textarea:focus {
  border-color: var(--lot-ox-200);
  background: var(--lot-black-2);
}

/* Grupo teléfono: selector personalizado + número */
.lot-phone-group {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px;
  align-items: center;
  position: relative;
}

.lot-country-select {
  position: relative;
  width: 100%;
}

.lot-country-current {
  width: 100%;
  height: 46px;
  padding: 0 6px;
  border-radius: 3px;
  border: 1px solid rgba(59, 130, 196, 0.32);
  background: var(--lot-black-3);
  color: var(--lot-ink);
  font-family: var(--lot-font-display);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: border 0.2s, background 0.2s, box-shadow 0.2s;
}

.lot-country-current:focus {
  outline: none;
  border-color: var(--lot-ox-200);
  background: var(--lot-black-2);
  box-shadow: 0 0 0 2px rgba(59, 130, 196, 0.2);
}
/* Foco visible para navegación por teclado */
.lot-input:focus-visible,
.lot-textarea:focus-visible,
.lot-country-current:focus-visible,
.lot-btn:focus-visible,
.lot-btn-next:focus-visible,
.lot-btn-back:focus-visible,
.lot-iso-btn:focus-visible {
  outline: 2px solid var(--lot-ox-200);
  outline-offset: 2px;
}
/* Nota: el mensaje de error se mantiene en rojo a propósito, por legibilidad
   y convención de accesibilidad (es una señal funcional, no decorativa) */
.lot-field-error {
  display: block;
  min-height: 16px;
  margin-top: 6px;

  font-family: var(--lot-font-caps);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;

  color: #ff4d3d !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* Botón principal del paso: fondo negro, borde y texto en azul oxford */
.lot-btn-next {
  width: 100%;
  padding: 14px;
  border-radius: 3px;
  background: var(--lot-black-3);
  color: var(--lot-ox-200);
  border: 1px solid var(--lot-ox-500);
  font-family: var(--lot-font-caps);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.09em;
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.22s, border-color 0.22s;
  margin-top: 4px;
}

.lot-country-current img,
.lot-country-option img {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.lot-country-code {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lot-ink);
  line-height: 1;
}

.lot-country-arrow {
  font-size: 0.72rem;
  color: var(--lot-ink-faint);
  line-height: 1;
}

.lot-country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 250px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--lot-black-3);
  border: 1px solid rgba(59, 130, 196, 0.32);
  border-radius: 4px;
  box-shadow: 0 18px 35px rgba(0,0,0,0.45);
  z-index: 100;
  display: none;
  padding: 6px;
}

.lot-country-select.is-open .lot-country-dropdown {
  display: block;
}

.lot-country-option {
  width: 100%;
  padding: 10px 9px;
  border: none;
  background: transparent;
  color: var(--lot-ink);
  font-family: var(--lot-font-display);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  border-radius: 3px;
  text-align: left;
}

.lot-country-option:hover {
  background: rgba(59, 130, 196, 0.16);
}

.lot-country-option span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lot-country-option small {
  color: var(--lot-ink-faint);
  font-size: 0.8rem;
}

.lot-input--phone {
  min-width: 0;
  width: 100%;
}

@media (max-width: 480px) {
  .lot-phone-group {
    grid-template-columns: 78px 1fr;
    gap: 7px;
  }

  .lot-country-current {
    padding: 0 5px;
    font-size: 0.78rem;
    gap: 4px;
  }

  .lot-country-current img {
    width: 17px;
    height: 12px;
  }

  .lot-country-code {
    font-size: 0.78rem;
  }

  .lot-country-arrow {
    font-size: 0.7rem;
  }

  .lot-country-dropdown {
    width: 235px;
  }
}
/* ===== NUEVO: Overlay de envío ===== */
.lot-form-card {
    position: relative; /* necesario para que el overlay se posicione encima */
}

.lot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.97);
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 50;
    padding: 24px;
}

.lot-overlay.lot-overlay--show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
} 
.lot-overlay-check {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
}

.lot-check-svg {
    width: 100%;
    height: 100%;
}

.lot-check-circle {
    stroke: #3B82C4; /* dorado, ajusta a tu paleta */
    stroke-width: 2;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: lotCircle 0.5s ease-out forwards;
}

.lot-check-mark {
    stroke: #3B82C4;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: lotCheck 0.35s 0.45s ease-out forwards;
}

@keyframes lotCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes lotCheck {
    to { stroke-dashoffset: 0; }
}

.lot-overlay-text {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.lot-overlay-sub {
    color: #b8b8b8;
    font-size: 0.9rem;
    max-width: 280px;
}

/* Bloqueo visual del formulario mientras se envía */
.lot-form-card--sending .lot-step {
    filter: blur(1px);
    pointer-events: none;
    user-select: none;
}
/* ===== FIN NUEVO ===== */
/* ===== NUEVO: Overlay de envío — formulario de contacto ===== */
.contact__form {
    position: relative; /* necesario para que el overlay se posicione encima */
}

.contact__form.lot-form-card--sending > *:not(.lot-overlay) {
    filter: blur(1px);
    pointer-events: none;
    user-select: none;
}
/* ===== FIN NUEVO ===== */

/* ===== NUEVO: Estados del overlay (enviando / éxito) — copiar tal cual en las 7 landings ===== */

/* Por defecto, ambos estados internos están ocultos */
.lot-overlay-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* El overlay controla, vía sus clases modificadoras, cuál estado se ve */
.lot-overlay--sending .lot-overlay-state--sending { display: flex; }
.lot-overlay--success .lot-overlay-state--success { display: flex; }

/* Spinner de "enviando" */
.lot-spinner {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border: 3px solid rgba(55, 107, 212, 0.2); /* ajusta al color de tu paleta si no es dorado */
    border-top-color: #3B82C4;
    border-radius: 50%;
    animation: lotSpin 0.8s linear infinite;
}

@keyframes lotSpin {
    to { transform: rotate(360deg); }
}

/* ===== FIN NUEVO ===== */

/* ------------------------------------------------------------------
   Cookies
   Gestión de la aceptación y preferencias de cookies del sitio.
   Incluye la lógica para mostrar el banner, guardar el consentimiento
   del usuario y controlar la carga de funcionalidades según la
   configuración seleccionada.
------------------------------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 9800;
  width: min(420px, calc(100vw - 1.4rem));
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(212, 173, 86, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.94), rgba(10, 11, 14, 0.9));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  color: rgba(255,255,255,0.94);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

body[data-theme="light"] .cookie-consent-banner {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(247,247,249,0.94));
  border-color: rgba(159, 118, 37, 0.18);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
  color: #18181b;
}

.cookie-consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent-banner.is-hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.cookie-consent-banner__eyebrow {
  margin-bottom: .45rem;
  color: #d4ad56;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

body[data-theme="light"] .cookie-consent-banner__eyebrow {
  color: #9b7728;
}

.cookie-consent-banner__title {
  margin: 0 0 .45rem;
  font-size: 1.34rem;
  line-height: 1.05;
}

.cookie-consent-banner__text,
.cookie-consent-banner__note {
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
}

.cookie-consent-banner__text + .cookie-consent-banner__text,
.cookie-consent-banner__text + .cookie-consent-banner__note,
.cookie-consent-banner__note + .cookie-consent-banner__actions {
  margin-top: .72rem;
}

.cookie-consent-banner__text--muted,
.cookie-consent-banner__note {
  color: rgba(255,255,255,0.72);
}

body[data-theme="light"] .cookie-consent-banner__text--muted,
body[data-theme="light"] .cookie-consent-banner__note {
  color: rgba(24,24,27,0.72);
}

.cookie-consent-banner a {
  color: #f0d38a;
  text-decoration-color: rgba(240,211,138,.45);
}

body[data-theme="light"] .cookie-consent-banner a {
  color: #8b6821;
  text-decoration-color: rgba(139,104,33,.34);
}

.cookie-consent-banner__actions {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
}

.cookie-consent-banner__button {
  appearance: none;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: .72rem 1rem;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.cookie-consent-banner__button:hover {
  transform: translateY(-1px);
}

.cookie-consent-banner__button--ghost {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
}

body[data-theme="light"] .cookie-consent-banner__button--ghost {
  border-color: rgba(24,24,27,.1);
  background: rgba(24,24,27,.04);
  color: #18181b;
}

.cookie-consent-banner__button--primary {
  background: linear-gradient(135deg, #9b7728 0%, #d4ad56 48%, #f0d38a 100%);
  color: #111;
  box-shadow: 0 10px 24px rgba(212,173,86,.22);
}

@media (max-width: 640px) {
  .cookie-consent-banner {
    right: .7rem;
    left: .7rem;
    bottom: .7rem;
    width: auto;
    padding: .95rem;
    border-radius: 18px;
  }

  .cookie-consent-banner__actions {
    justify-content: stretch;
  }

  .cookie-consent-banner__button {
    flex: 1 1 100%;
    width: 100%;
  }
}