/* PURPL — Premium Link in Bio */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ig-accent: #7c3aed;
  --ig-accent-soft: #a78bfa;
  --ig-bg: #0d0518;
  --ig-text: #f5f3ff;
  --ig-muted: rgba(237, 233, 254, 0.62);
  --ig-faint: rgba(237, 233, 254, 0.42);
  --ig-card: rgba(255, 255, 255, 0.045);
  --ig-card-hover: rgba(255, 255, 255, 0.08);
  --ig-border: rgba(255, 255, 255, 0.1);
  --ig-border-hover: rgba(167, 139, 250, 0.42);
  --ig-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ig-page {
  min-height: 100dvh;
  font-family: var(--font-roobert, 'Roobert', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  color: var(--ig-text);
  background-color: var(--ig-bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(124, 58, 237, 0.4) 0%, transparent 62%),
    radial-gradient(ellipse 70% 45% at 100% 8%, rgba(167, 139, 250, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(91, 33, 182, 0.22) 0%, transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.ig-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 52px 22px 44px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.ig-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.ig-header {
  text-align: center;
  margin-bottom: 40px;
  animation: ig-fade-up 0.6s var(--ig-ease) both;
}

.ig-logo {
  display: inline-flex;
  text-decoration: none;
  margin-bottom: 18px;
  transition: transform 0.2s var(--ig-ease);
}

.ig-logo:hover {
  transform: translateY(-1px);
}

.ig-subtitle {
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--ig-muted);
  max-width: 320px;
  margin: 0 auto 22px;
}

.ig-trust {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 11px 18px;
  border-radius: 16px;
  background: var(--ig-card);
  border: 1px solid var(--ig-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.ig-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ig-trust__emoji {
  font-size: 15px;
  line-height: 1;
}

.ig-trust__text {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ig-muted);
  white-space: nowrap;
}

.ig-trust__text strong {
  font-weight: 600;
  color: var(--ig-text);
}

.ig-trust__divider {
  width: 1px;
  height: 22px;
  background: var(--ig-border);
}

/* ---------- Cards ---------- */
.ig-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.ig-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 20px;
  border-radius: 22px;
  border: 1px solid var(--ig-border);
  background: var(--ig-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ig-text);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition:
    background 0.2s var(--ig-ease),
    border-color 0.2s var(--ig-ease),
    transform 0.2s var(--ig-ease),
    box-shadow 0.2s var(--ig-ease);
  -webkit-tap-highlight-color: transparent;
  animation: ig-fade-up 0.6s var(--ig-ease) both;
}

.ig-links > *:nth-child(1) .ig-card,
.ig-links > .ig-card:nth-child(1) { animation-delay: 0.06s; }
.ig-links > *:nth-child(2) { animation: ig-fade-up 0.6s var(--ig-ease) both; animation-delay: 0.12s; }
.ig-links > *:nth-child(3) { animation: ig-fade-up 0.6s var(--ig-ease) both; animation-delay: 0.18s; }

a.ig-card:hover,
button.ig-card:hover,
.ig-card:focus-visible {
  background: var(--ig-card-hover);
  border-color: var(--ig-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(124, 58, 237, 0.2);
  outline: none;
}

.ig-card:active {
  transform: translateY(0) scale(0.99);
}

.ig-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ig-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ig-card__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ig-card__desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ig-muted);
  font-weight: 400;
}

.ig-card__arrow,
.ig-card__chevron {
  flex-shrink: 0;
  color: var(--ig-faint);
  transition: transform 0.2s var(--ig-ease), color 0.2s var(--ig-ease);
}

a.ig-card:hover .ig-card__arrow {
  transform: translateX(3px);
  color: var(--ig-accent-soft);
}

/* Primary card */
.ig-card--primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 55%, #5b21b6 100%);
  border-color: rgba(196, 181, 253, 0.5);
  box-shadow:
    0 10px 40px rgba(124, 58, 237, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ig-card--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 120% at 50% -20%, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.ig-card--primary:hover {
  background: linear-gradient(135deg, #8b4ef5 0%, #7c3aed 55%, #6d28d9 100%);
  border-color: rgba(221, 214, 254, 0.7);
  box-shadow:
    0 16px 52px rgba(124, 58, 237, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ig-card--primary .ig-card__icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}

.ig-card--primary .ig-card__desc {
  color: rgba(255, 255, 255, 0.82);
}

.ig-card--primary .ig-card__arrow {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Accordion ---------- */
.ig-accordion {
  display: flex;
  flex-direction: column;
  animation: ig-fade-up 0.6s var(--ig-ease) both;
  animation-delay: 0.12s;
}

.ig-card--accordion {
  animation: none;
  z-index: 1;
}

.ig-accordion.is-open .ig-card--accordion {
  border-radius: 22px 22px 0 0;
  border-bottom-color: transparent;
  background: var(--ig-card-hover);
}

.ig-card--accordion[aria-expanded="true"] .ig-card__chevron {
  transform: rotate(180deg);
  color: var(--ig-accent-soft);
}

.ig-accordion__panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.34s var(--ig-ease),
    opacity 0.26s var(--ig-ease),
    transform 0.34s var(--ig-ease);
  will-change: max-height;
}

.ig-accordion.is-open .ig-accordion__panel {
  opacity: 1;
  transform: translateY(0);
}

.ig-accordion__inner {
  display: flex;
  flex-direction: column;
  padding: 6px;
  gap: 4px;
  border: 1px solid var(--ig-border-hover);
  border-top: none;
  border-radius: 0 0 22px 22px;
  background: rgba(124, 58, 237, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ig-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: none;
  background: none;
  color: var(--ig-text);
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s var(--ig-ease);
  -webkit-tap-highlight-color: transparent;
}

.ig-row:hover,
.ig-row:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.ig-row__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 17px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.ig-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ig-row__title {
  font-size: 14px;
  font-weight: 600;
}

.ig-row__desc {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ig-muted);
}

.ig-row__arrow {
  flex-shrink: 0;
  color: var(--ig-faint);
  transition: transform 0.2s var(--ig-ease), color 0.2s var(--ig-ease);
}

.ig-row:hover .ig-row__arrow {
  transform: translateX(3px);
  color: var(--ig-accent-soft);
}

/* ---------- Footer ---------- */
.ig-footer {
  margin-top: 40px;
  text-align: center;
  animation: ig-fade-up 0.6s var(--ig-ease) both;
  animation-delay: 0.24s;
}

.ig-footer__divider {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, transparent, var(--ig-border) 50%, transparent);
}

.ig-footer__text {
  font-size: 13.5px;
  color: var(--ig-muted);
  margin-bottom: 14px;
}

.ig-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: 1px solid rgba(74, 222, 128, 0.5);
  box-shadow: 0 8px 26px rgba(34, 197, 94, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s var(--ig-ease), box-shadow 0.2s var(--ig-ease), background 0.2s var(--ig-ease);
}

.ig-footer__cta:hover,
.ig-footer__cta:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2ee36a 0%, #1bb152 100%);
  box-shadow: 0 14px 36px rgba(34, 197, 94, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  outline: none;
}

.ig-footer__cta:active {
  transform: translateY(0) scale(0.99);
}

/* ---------- Focus ring ---------- */
.ig-card:focus-visible,
.ig-row:focus-visible,
.ig-footer__cta:focus-visible {
  box-shadow: 0 0 0 2px var(--ig-bg), 0 0 0 4px rgba(167, 139, 250, 0.75);
}

/* ---------- Soluciones modal ---------- */
.ig-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ig-modal[hidden] {
  display: none;
}

.ig-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 3, 14, 0.74);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.25s var(--ig-ease);
}

.ig-modal.is-open .ig-modal__backdrop {
  opacity: 1;
}

.ig-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1c1136 0%, #150b28 100%);
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -16px 56px rgba(0, 0, 0, 0.55);
  transform: translateY(100%);
  transition: transform 0.32s var(--ig-ease);
}

.ig-modal.is-open .ig-modal__sheet {
  transform: translateY(0);
}

.ig-modal__sheet::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.ig-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 22px 16px;
  flex-shrink: 0;
}

.ig-modal__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.ig-modal__sub {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ig-muted);
}

.ig-modal__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--ig-border);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ig-ease);
}

.ig-modal__close:hover,
.ig-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  outline: none;
}

.ig-modal__scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 18px 30px;
}

.ig-sol-section {
  margin-bottom: 24px;
}

.ig-sol-section:last-child {
  margin-bottom: 0;
}

.ig-sol-section__title {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(196, 181, 253, 0.8);
  padding: 0 4px;
  margin-bottom: 11px;
}

.ig-sol-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ig-sol-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--ig-border);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: var(--ig-text);
  transition: background 0.2s var(--ig-ease), border-color 0.2s var(--ig-ease), transform 0.2s var(--ig-ease);
}

.ig-sol-card:hover,
.ig-sol-card:focus-visible {
  background: var(--ig-card-hover);
  border-color: var(--ig-border-hover);
  transform: translateY(-1px);
  outline: none;
}

.ig-sol-card__icon {
  flex-shrink: 0;
  font-size: 20px;
  width: 30px;
  text-align: center;
}

.ig-sol-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ig-sol-card__name {
  font-size: 14px;
  font-weight: 600;
}

.ig-sol-card__desc {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ig-muted);
}

/* ---------- Contact modal steps ---------- */
.ig-contact-step {
  padding-top: 2px;
}

.ig-contact-lead {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ig-muted);
  margin-bottom: 14px;
}

.ig-contact-resources {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ig-contact-resource {
  display: block;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--ig-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ig-text);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s var(--ig-ease), border-color 0.2s var(--ig-ease);
}

.ig-contact-resource:hover,
.ig-contact-resource:focus-visible {
  background: var(--ig-card-hover);
  border-color: var(--ig-border-hover);
  outline: none;
}

.ig-contact-notice {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(253, 224, 71, 0.92);
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 13px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.ig-contact-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--ig-border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color 0.2s var(--ig-ease), background 0.2s var(--ig-ease);
}

.ig-contact-check:has(.ig-contact-check__input:checked) {
  border-color: var(--ig-border-hover);
  background: rgba(124, 58, 237, 0.1);
}

.ig-contact-check__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ig-contact-check__box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  transition: background 0.2s var(--ig-ease), border-color 0.2s var(--ig-ease);
  margin-top: 1px;
}

.ig-contact-check__input:checked + .ig-contact-check__box {
  background: var(--ig-accent);
  border-color: var(--ig-accent);
}

.ig-contact-check__input:checked + .ig-contact-check__box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ig-contact-check__input:focus-visible + .ig-contact-check__box {
  box-shadow: 0 0 0 2px var(--ig-bg), 0 0 0 4px rgba(167, 139, 250, 0.75);
}

.ig-contact-check__label {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ig-text);
}

.ig-contact-error {
  font-size: 12.5px;
  color: #fca5a5;
  margin: 6px 2px 0;
}

.ig-contact-desc {
  display: block;
  margin-bottom: 4px;
}

.ig-contact-desc__label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ig-contact-desc__hint {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ig-muted);
  margin-bottom: 12px;
}

.ig-contact-desc__input {
  width: 100%;
  resize: vertical;
  min-height: 120px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--ig-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ig-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s var(--ig-ease), background 0.2s var(--ig-ease);
}

.ig-contact-desc__input::placeholder {
  color: var(--ig-faint);
}

.ig-contact-desc__input:focus {
  outline: none;
  border-color: var(--ig-border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.ig-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ig-ease), background 0.2s var(--ig-ease), box-shadow 0.2s var(--ig-ease), opacity 0.2s var(--ig-ease);
}

.ig-contact-btn:active {
  transform: scale(0.99);
}

.ig-contact-btn--primary {
  width: 100%;
  margin-top: 12px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.34);
}

.ig-contact-btn--primary:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.45);
}

.ig-contact-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ig-contact-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.ig-contact-btn--ghost {
  flex-shrink: 0;
  color: var(--ig-text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ig-border);
}

.ig-contact-btn--ghost:hover {
  background: var(--ig-card-hover);
}

.ig-contact-btn--whatsapp {
  flex: 1;
  color: #fff;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.32);
}

.ig-contact-btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.45);
}

.ig-contact-foot {
  font-size: 12px;
  color: var(--ig-faint);
  text-align: center;
  margin-top: 14px;
}

/* ---------- Animations ---------- */
@keyframes ig-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 480px) {
  .ig-main {
    padding-top: 64px;
  }
  .ig-subtitle {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ig-page *,
  .ig-page *::before,
  .ig-page *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}
