/* ============================================================
   TARJETAS DE REGALO — Destino Regalo
   6 temáticas visuales para la carta-regalo
   ============================================================ */

/* ── Base de tarjeta ──────────────────────────────────────── */
.gift-card {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 148/105; /* A5 horizontal */
  border-radius: var(--radio-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sombra-lg), 0 0 0 1px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 32px;
  font-family: var(--font-display);
  cursor: default;
  transition: transform var(--duration-md) var(--ease-out);
}

.gift-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(0,0,0,0.5) 20px, rgba(0,0,0,0.5) 21px),
    repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(0,0,0,0.5) 20px, rgba(0,0,0,0.5) 21px);
  pointer-events: none;
}

.gift-card-deco {
  position: absolute;
  pointer-events: none;
}

.gift-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.gift-card-brand {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  font-family: var(--font-body);
}

.gift-card-icon {
  font-size: 22px;
  line-height: 1;
}

.gift-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}

.gift-card-title {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.gift-card-message {
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  line-height: 1.6;
  font-style: italic;
  opacity: 0.80;
  font-family: var(--font-body);
  font-weight: 400;
  max-height: 3.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.gift-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.gift-card-de-para {
  font-size: 9px;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  opacity: 0.65;
  line-height: 1.8;
}

.gift-card-de-para strong {
  opacity: 0.85;
  font-weight: 600;
}

.gift-card-code {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 0.45;
  text-transform: uppercase;
}

/* ── Temática 1: Clásica ──────────────────────────────────── */
.tarjeta-clasica {
  background: linear-gradient(145deg, #F5EFE6 0%, #EDE0CC 60%, #E2D0B0 100%);
  color: #2E2A26;
}
.tarjeta-clasica .gift-card-brand  { color: #2E2A26; }
.tarjeta-clasica .gift-card-title  { color: #2E2A26; }
.tarjeta-clasica .gift-card-message{ color: #5B544D; }
.tarjeta-clasica::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(201,123,92,0.12);
  pointer-events: none;
}
.tarjeta-clasica .gift-card-deco-circle {
  top: -40px; left: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(107,125,90,0.08);
}

/* ── Temática 2: Cumpleaños ───────────────────────────────── */
.tarjeta-cumpleanos {
  background: linear-gradient(135deg, #FDF0E0 0%, #FAE0B5 50%, #F5CFA0 100%);
  color: #3B2A1A;
}
.tarjeta-cumpleanos .gift-card-title   { color: #7A4A1E; }
.tarjeta-cumpleanos .gift-card-message { color: #6B4030; }
.tarjeta-cumpleanos::after {
  content: '🎉';
  position: absolute;
  top: 12px; right: 14px;
  font-size: 48px;
  opacity: 0.15;
  pointer-events: none;
  font-style: normal;
}
.tarjeta-cumpleanos .confetti {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, #E8A838 2px, transparent 2px),
    radial-gradient(circle, #C97B5C 2px, transparent 2px),
    radial-gradient(circle, #6B7D5A 2px, transparent 2px);
  background-size: 40px 40px, 65px 65px, 55px 55px;
  background-position: 5px 5px, 20px 20px, 35px 10px;
  opacity: 0.10;
  pointer-events: none;
}

/* ── Temática 3: Navidad ──────────────────────────────────── */
.tarjeta-navidad {
  background: linear-gradient(145deg, #1A3A2A 0%, #0F2418 100%);
  color: #F5EFE6;
}
.tarjeta-navidad .gift-card-brand  { color: rgba(245,239,230,0.65); }
.tarjeta-navidad .gift-card-title  { color: #E8D5A0; }
.tarjeta-navidad .gift-card-message{ color: rgba(245,239,230,0.75); }
.tarjeta-navidad .gift-card-de-para{ color: rgba(245,239,230,0.65); }
.tarjeta-navidad .gift-card-code   { color: rgba(245,239,230,0.40); }
.tarjeta-navidad::after {
  content: '❄';
  position: absolute;
  bottom: 16px; right: 20px;
  font-size: 60px;
  opacity: 0.08;
  pointer-events: none;
}
.tarjeta-navidad .snowflakes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: 10px 10px;
  opacity: 0.08;
}

/* ── Temática 4: Jubilación ───────────────────────────────── */
.tarjeta-jubilacion {
  background: linear-gradient(140deg, #E8F0F8 0%, #C8DAEA 60%, #AACAE0 100%);
  color: #1A3050;
}
.tarjeta-jubilacion .gift-card-brand  { color: #2A5080; }
.tarjeta-jubilacion .gift-card-title  { color: #1A3050; }
.tarjeta-jubilacion .gift-card-message{ color: #3A5070; }
.tarjeta-jubilacion::after {
  content: '🧭';
  position: absolute;
  bottom: 12px; right: 16px;
  font-size: 56px;
  opacity: 0.12;
  pointer-events: none;
}
.tarjeta-jubilacion .compass-ring {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 12px solid rgba(42,80,128,0.08);
}

/* ── Temática 5: Aniversario ──────────────────────────────── */
.tarjeta-aniversario {
  background: linear-gradient(140deg, #FDF0F4 0%, #F5D5E0 60%, #EAB8CC 100%);
  color: #3A1A28;
}
.tarjeta-aniversario .gift-card-brand  { color: #7A3050; }
.tarjeta-aniversario .gift-card-title  { color: #5A1A30; }
.tarjeta-aniversario .gift-card-message{ color: #7A4050; }
.tarjeta-aniversario::after {
  content: '♡';
  position: absolute;
  top: 50%; right: 20px;
  transform: translateY(-50%);
  font-size: 80px;
  opacity: 0.07;
  pointer-events: none;
  font-style: normal;
  line-height: 1;
}
.tarjeta-aniversario .birds {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 18px;
  opacity: 0.25;
}

/* ── Temática 6: San Valentín ─────────────────────────────── */
.tarjeta-san-valentin {
  background: linear-gradient(145deg, #F5E8E0 0%, #EAC8B0 60%, #DFA890 100%);
  color: #3A1A10;
}
.tarjeta-san-valentin .gift-card-brand  { color: #8A3020; }
.tarjeta-san-valentin .gift-card-title  { color: #7A1A10; }
.tarjeta-san-valentin .gift-card-message{ color: #6A3020; }
.tarjeta-san-valentin::after {
  content: '';
  position: absolute;
  bottom: -15px; right: -15px;
  width: 100px; height: 100px;
  background: radial-gradient(circle at 30% 30%, #C97B5C, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}
.tarjeta-san-valentin::before {
  content: '❤';
  position: absolute;
  top: 8px; right: 16px;
  font-size: 24px;
  opacity: 0.20;
  pointer-events: none;
  background: none;
}

/* ── Selector de temáticas (en configurador) ──────────────── */
.theme-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.theme-option {
  position: relative;
  cursor: pointer;
}

.theme-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.theme-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radio-sm);
  border: 2px solid transparent;
  overflow: hidden;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  cursor: pointer;
}

.theme-option input:checked + .theme-preview {
  border-color: var(--terracota);
  box-shadow: 0 0 0 3px rgba(201,123,92,0.20);
}

.theme-option:hover .theme-preview { transform: translateY(-2px); }

.theme-preview-clasica     { background: linear-gradient(145deg, #F5EFE6, #E2D0B0); }
.theme-preview-cumpleanos  { background: linear-gradient(135deg, #FDF0E0, #F5CFA0); }
.theme-preview-navidad     { background: linear-gradient(145deg, #1A3A2A, #0F2418); }
.theme-preview-jubilacion  { background: linear-gradient(140deg, #E8F0F8, #AACAE0); }
.theme-preview-aniversario { background: linear-gradient(140deg, #FDF0F4, #EAB8CC); }
.theme-preview-san-valentin{ background: linear-gradient(145deg, #F5E8E0, #DFA890); }

.theme-name {
  display: block;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--tinta-suave);
  margin-top: var(--sp-2);
}

@media (max-width: 640px) {
  .theme-selector { grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
}

@media (max-width: 400px) {
  .theme-selector { grid-template-columns: repeat(2, 1fr); }
}
