/* ============ TICKERS (announcement + social proof) ============ */
.ticker-wrap {
  overflow: hidden;
  width: 100%;
}
.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track--slow { animation-duration: 45s; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
}
.ticker-sep {
  color: rgba(255,255,255,0.25);
  font-size: var(--text-xs);
}

/* ============ ANNOUNCEMENT BAR ============ */
.announcement-bar {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  height: 40px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.35s var(--ease-out);
}
.announcement-bar.hidden { transform: translateY(-100%); }

@media (max-width: 767px) {
  .announcement-bar { height: 36px; }
}

/* ============ BOTÓN CTA PRINCIPAL (shimmer) ============ */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 2.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  box-shadow: var(--shadow-md);
}
.btn-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}
.btn-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.btn-cta--block { width: 100%; }
.btn-cta--light {
  background: white;
  color: var(--color-accent);
}
.btn-cta--light:hover {
  background: var(--color-bg);
  color: var(--color-accent-hover);
  box-shadow: var(--shadow-lg);
}

/* ============ BOTONES SECUNDARIOS (para gracias.html y pricing) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: var(--tap-min);
  padding: var(--s-3) var(--s-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  transition: all var(--t-base);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--primary {
  background: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn--outline:hover:not(:disabled) {
  background: var(--color-text);
  color: var(--color-text-light);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  text-transform: none;
  font-weight: var(--fw-medium);
  letter-spacing: 0;
}
.btn--ghost:hover { color: var(--color-text); text-decoration: underline; }

.btn--block { width: 100%; }
.btn--lg { min-height: 58px; padding: var(--s-4) var(--s-8); }

/* ============ ACCORDEÓN / FAQ ============ */
.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  width: 100%;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  min-height: auto;
  background: none;
  border: none;
  transition: color var(--t-fast);
}
.faq-question:hover { color: var(--color-accent); }

.faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: var(--fw-regular);
  line-height: 1;
  color: var(--color-accent);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--color-accent);
  color: white;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.faq-answer > div { overflow: hidden; }
.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}
.faq-answer p {
  padding-bottom: 1.25rem;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--lh-base);
}

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 600px) {
  .modal { align-items: center; padding: var(--s-4); }
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow-y: auto;
  padding: var(--s-6) var(--s-5) var(--s-8);
  box-shadow: var(--shadow-xl);
  animation: slide-up 0.4s var(--ease-out);
}
@media (min-width: 600px) {
  .modal__panel {
    border-radius: var(--radius-xl);
    max-height: 88dvh;
    padding: var(--s-7) var(--s-7) var(--s-7);
  }
}
@keyframes slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal__close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: 36px; height: 36px;
  min-height: auto;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.modal__close:hover { background: var(--color-border-strong); color: var(--color-text); }

.modal__title {
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--s-2);
}
.modal__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--s-5);
}

.modal__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.modal__packs {
  display: flex;
  flex-direction: row;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}

.modal__pack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--s-2) var(--s-2);
  cursor: pointer;
  transition: all var(--t-fast);
  position: relative;
  /* espacio para el badge que sobresale arriba */
  margin-top: 18px;
}
.modal__pack:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}
.modal__pack input { position: absolute; opacity: 0; pointer-events: none; }

/* Badge de pack en el modal (MÁS POPULAR, MAYOR AHORRO) */
.modal__pack-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: var(--fw-extrabold);
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  color: white;
}
.modal__pack-badge--popular { background: var(--color-accent); }
.modal__pack-badge--ahorro  { background: var(--color-urgency); }

.modal__pack-name {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}
.modal__pack-desc {
  font-size: 10px;
  color: var(--color-text-muted);
  line-height: 1.3;
}
.modal__pack-price-now {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  display: block;
  margin-top: var(--s-1);
}
.modal__pack-price-old {
  font-size: 10px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* Campos del form */
.field { margin-bottom: var(--s-4); }
.field__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  margin-bottom: 6px;
}
.field__error {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: 4px;
  min-height: 1em;
}

.input, .select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--t-fast);
  min-height: var(--tap-min);
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--color-accent);
}
.input--error { border-color: var(--color-error) !important; }

.modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.modal__cod {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--color-accent-light);
  color: var(--color-accent-hover);
  border-radius: var(--radius-md);
  padding: var(--s-3) var(--s-4);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--s-4);
}
.modal__cod-icon { width: 20px; height: 20px; flex-shrink: 0; }

.modal__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-4);
  padding: var(--s-3) 0;
  border-top: 1px solid var(--color-border);
}
.modal__total-label {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}
.modal__total-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.modal__msg {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--s-4);
  font-size: var(--text-sm);
}
.modal__msg--error { background: var(--color-urgency-bg); color: var(--color-error); }
.modal__msg--ok    { background: var(--color-accent-light); color: var(--color-accent-hover); }

.modal__security {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--s-3);
}

/* ============ FLOATING CTA (mobile) ============ */
.floating-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  padding: 0.75rem var(--container-padding);
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}
.floating-cta.is-visible { transform: translateY(0); }
@media (max-width: 1023px) {
  .floating-cta { display: block; }
}

.floating-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.floating-cta__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.floating-cta__price-row { display: flex; align-items: center; gap: var(--s-3); }
.floating-cta__price {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
}
.floating-cta__price-old {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.floating-cta__btn {
  flex-shrink: 0;
  padding: 0 1.5rem;
  min-height: 48px;
  font-size: var(--text-xs);
}

/* ============ CUSTOM CURSOR (desktop) ============ */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s;
    mix-blend-mode: multiply;
    opacity: 0;
  }
  .custom-cursor.active { opacity: 1; }
  .custom-cursor.hover {
    transform: scale(2.2);
    background: var(--color-accent);
    opacity: 0.25;
  }
}

/* ============ SCROLL LOCK ============ */
body.modal-open { overflow: hidden; }

/* ============ NUEVOS ESTILOS DEL FORMULARIO ============ */

.modal__form-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  text-align: center;
  margin: var(--s-3) 0 var(--s-5);
}

.field__label--req::after {
  content: ' *';
  color: var(--color-urgency);
}

.field__opt {
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.field__note {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-top: 6px;
  line-height: 1.5;
}
.field__note--block {
  margin-bottom: var(--s-4);
}

.field--check { margin-bottom: var(--s-4); }
.field__check-label {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: var(--fw-semibold);
}
.field__check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.modal__notice {
  font-size: var(--text-sm);
  line-height: 1.55;
  border-radius: var(--radius-md);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-3);
}
.modal__notice--warn {
  background: var(--color-urgency-bg);
  color: #7B2D2D;
  border: 1px solid #FCA5A5;
}
.modal__notice--info {
  background: var(--color-pink);
  color: #6B4854;
  border: 1px solid var(--color-pink-strong);
}

.modal__submit-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 64px;
  padding: var(--s-3) var(--s-6);
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  margin-top: var(--s-5);
  margin-bottom: var(--s-3);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(46, 139, 87, 0.32);
  position: relative;
  overflow: hidden;
}
.modal__submit-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 3s infinite;
}
.modal__submit-btn:hover:not(:disabled) {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(46, 139, 87, 0.42);
}
.modal__submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.modal__submit-price {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--fw-extrabold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.modal__submit-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  opacity: 0.9;
}

.select:disabled { opacity: 0.55; cursor: not-allowed; }

/* ============ PREFIJO TELEFÓNICO ============ */
.input-phone-wrap {
  display: flex;
  align-items: stretch;
}
.input-phone-prefix {
  flex-shrink: 0;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border-strong);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 0 12px;
  min-height: var(--tap-min);
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--color-text);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.input--phone {
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
  flex: 1;
  min-width: 0;
}
.input-phone-wrap .input--error {
  border-left: none !important;
}

/* ============ COPY PROTECTION ============ */
body, img, p, h1, h2, h3, h4, h5, h6, span, div, section, article, li {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
/* Re-enable pointer events for interactive images if needed */
a img, button img { pointer-events: auto; }

/* ============ DOWNSELL POPUP ============ */
.downsell-popup {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
}
.downsell-popup.is-visible { display: flex; }

.downsell-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.downsell-popup__card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--s-6) var(--s-6) var(--s-7);
  max-width: 340px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  animation: downsell-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes downsell-pop {
  from { opacity: 0; transform: scale(0.82) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.downsell-popup__eyebrow {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  margin: 0;
}
.downsell-popup__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
}

/* Starburst badge — clip-path 12 puntas */
.downsell-popup__badge {
  width: 168px;
  height: 168px;
  background: linear-gradient(145deg, #3FB87A 0%, var(--color-accent) 55%, var(--color-accent-hover) 100%);
  clip-path: polygon(
    50% 0%,  56% 18%, 73%  6%, 71% 24%,
    93% 21%, 82% 37%, 100% 44%, 85% 55%,
    96% 73%, 77% 72%, 78% 93%, 62% 84%,
    55% 100%, 44% 84%, 37% 96%, 33% 75%,
    13% 84%, 19% 64%,  0% 57%, 16% 44%,
     5% 24%, 25% 28%, 24%  6%, 44% 18%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--s-1) auto;
  filter: drop-shadow(0 6px 18px rgba(46, 139, 87, 0.45));
}
.downsell-popup__badge-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 2px;
}
.downsell-popup__pct {
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  font-family: var(--font-body);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.downsell-popup__pct-sub {
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
}

.downsell-popup__prices {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  justify-content: center;
}
.downsell-popup__old {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  text-decoration: line-through;
  opacity: 0.6;
}
.downsell-popup__arrow {
  color: var(--color-accent);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
}
.downsell-popup__new {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  font-family: var(--font-display);
}
.downsell-popup__pack {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  margin: 0;
  opacity: 0.6;
}
.downsell-popup__reject {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.5;
  padding: 0;
  transition: opacity 0.2s;
  font-family: var(--font-body);
}
.downsell-popup__reject:hover { opacity: 0.85; }
