:root {
  --gift-teal: #0f766e;
  --gift-teal-soft: #ecfdf5;
  --gift-border: #d5d9d9;
  --gift-ink: #0f1111;
}

.gift-shell {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.gift-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gift-shell-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gift-shell-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f766e;
  text-decoration: none;
}

.gift-shell-nav a:hover {
  text-decoration: underline;
}

.gift-shell-nav__sep {
  color: #d6d3d1;
  user-select: none;
}

.gift-hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
}

.gift-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--gift-ink);
  letter-spacing: -0.02em;
}

.gift-hero p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #565959;
  line-height: 1.55;
}

.gift-card-visual {
  position: relative;
  margin: 0 auto 1.5rem;
  max-width: 20rem;
  aspect-ratio: 1.6 / 1;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
  isolation: isolate;
}

.gift-card-visual__bg {
  position: absolute;
  inset: 0;
  background-color: #134e4a;
  background-image: url("/app-store/v1/previews/w01a-embajador.webp?v=5ad6c21397");
  background-size: cover;
  background-position: center 38%;
  transform: scale(1.08);
}

.gift-card-visual__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 18, 28, 0.82) 0%,
      rgba(8, 18, 28, 0.22) 38%,
      rgba(8, 18, 28, 0.18) 58%,
      rgba(8, 18, 28, 0.85) 100%
    ),
    radial-gradient(
      ellipse 72% 68% at 52% 48%,
      rgba(8, 18, 28, 0.05) 0%,
      rgba(8, 18, 28, 0.55) 100%
    );
}

.gift-card-visual__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  color: #fff;
}

/* Más específico que .gift-hero p (portal/tailwind hereda gris oscuro) */
.gift-card-visual p,
.gift-hero .gift-card-visual p {
  margin: 0;
  color: #fff;
}

.gift-card-visual__brand {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f8fafc !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 0 1px rgba(0, 0, 0, 0.9);
}

.gift-card-visual__amount {
  font-size: clamp(1.75rem, 6vw, 2.1rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.85);
  line-height: 1.1;
}

.gift-card-visual__tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #ecfdf5 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 0 1px rgba(0, 0, 0, 0.9);
  line-height: 1.35;
}

.gift-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .gift-amount-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gift-amount-tile {
  border: 2px solid var(--gift-border);
  border-radius: 0.75rem;
  background: #fff;
  padding: 1rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.gift-amount-tile:hover {
  border-color: #99f6e4;
  background: var(--gift-teal-soft);
}

.gift-amount-tile.is-selected {
  border-color: var(--gift-teal);
  background: var(--gift-teal-soft);
  box-shadow: 0 0 0 1px var(--gift-teal);
}

.gift-amount-tile__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gift-ink);
}

.gift-panel {
  border: 1px solid var(--gift-border);
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
}

.gift-panel h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gift-ink);
  margin-bottom: 1rem;
}

.gift-field {
  margin-bottom: 0.85rem;
}

.gift-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #565959;
  margin-bottom: 0.35rem;
}

.gift-field input,
.gift-field textarea {
  width: 100%;
  border: 1px solid var(--gift-border);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

.gift-field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.gift-legal {
  font-size: 0.72rem;
  color: #565959;
  line-height: 1.5;
  margin-top: 1rem;
}

.gift-msg {
  min-height: 1.25rem;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.gift-msg.is-ok {
  color: #047857;
}

.gift-msg.is-err {
  color: #b91c1c;
}

.gift-btn-primary {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--gift-teal);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.gift-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.gift-preview-box {
  border-radius: 0.75rem;
  background: var(--gift-teal-soft);
  border: 1px solid #99f6e4;
  padding: 1rem;
  margin-bottom: 1rem;
}

.gift-preview-box p {
  font-size: 0.85rem;
  color: #134e4a;
  line-height: 1.5;
}

.gift-auth-gate {
  border-radius: 0.75rem;
  border: 1px dashed #d6d3d1;
  background: #fafaf9;
  padding: 1.25rem;
  text-align: center;
}

.gift-auth-gate a {
  color: var(--gift-teal);
  font-weight: 600;
}

.gift-code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
