@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

:root {
  --primary: #E76994;
  --primary-dark: #c95379;
  --primary-light: #fce8f0;
  --primary-glow: rgba(231,105,148,0.18);
  --bg: #fff6fa;
  --ink: #2a1e24;
  --ink-light: #7a5566;
  --card: #ffffff;
  --ok: #1a7a45;
  --ok-bg: #e6f5ec;
  --danger: #b02a3a;
  --danger-bg: #fdeaec;
  --border: #f0d8e3;
  --shadow-sm: 0 2px 8px rgba(231,105,148,0.10);
  --shadow-md: 0 8px 28px rgba(231,105,148,0.16);
  --shadow-lg: 0 20px 48px rgba(231,105,148,0.22);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; display: block; }
a { color: var(--primary); }

/* ─── Layout ─── */
.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ─── Header / Nav ─── */
.site-header {
  background: linear-gradient(100deg, #d4547c 0%, var(--primary) 50%, #ef93b6 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(180,50,90,0.28);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0;
  height: 64px;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.brand::before { content: '💗'; font-size: 1.1rem; }

nav { display: flex; align-items: center; gap: 0.2rem; }

nav a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
nav a:hover { background: rgba(255,255,255,0.18); color: #fff; }

.nav-btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.7);
  color: #fff !important;
  font-size: 0.88rem !important;
  padding: 0.38rem 1rem !important;
}
.nav-btn-outline:hover { background: rgba(255,255,255,0.2) !important; }

.nav-btn-solid {
  background: rgba(255,255,255,0.22);
  border: none;
  color: #fff !important;
  font-weight: 600 !important;
}
.nav-btn-solid:hover { background: rgba(255,255,255,0.35) !important; }

.inline-form { display: inline-flex; align-items: center; }
.inline-form button {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.65);
  color: #fff;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font: 500 0.88rem 'Poppins', sans-serif;
  transition: background var(--transition);
}
.inline-form button:hover { background: rgba(255,255,255,0.2); }

.user-menu{
    position:relative;
}

.user-menu svg{
    color: #ffffff;
}

.user-menu-btn{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    font-size:22px;
    background:transparent;
}

.user-menu-btn:hover{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    font-size:22px;
    background:rgba(255,255,255,0.18);
}

.user-dropdown{
    position:absolute;
    top:55px;
    right:0;
    min-width:220px;
    background: linear-gradient(100deg, #d4547c 0%, var(--primary) 50%, #ef93b6 100%);
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);

    display:none;
    flex-direction:column;
    overflow:hidden;
    z-index:999;
}

.user-dropdown.show{
    display:flex;
}

.user-dropdown a{
    padding:14px 18px;
    color:#ffffff;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:0.4rem;
}

.user-dropdown a:hover{
    background: rgba(255,255,255,0.18); 
    color: #fff;
}

.user-dropdown form{
    margin:0;
}

.user-dropdown form button{
    width:100%;
    padding:14px 18px;
    border:none;
    background:transparent;
    text-align:left;
    cursor:pointer;
    font-size:15px;
    color:#ffffff;
    display:flex;
    align-items:center;
    gap:0.4rem;
}

.user-dropdown form button:hover{
    background: rgba(255,255,255,0.18); 
    color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ─── Main content ─── */
main.container { padding: 2.5rem 0 4rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #fff;
  border: none;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font: 600 0.93rem 'Poppins', sans-serif;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px var(--primary-glow);
  white-space: nowrap;
}
.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(231,105,148,0.32);
  color: #fff;
}
.btn:active { transform: translateY(0); }

.btn-secondary {
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: none;
}
.btn-secondary:hover { background: #f8d5e5; color: var(--primary-dark); box-shadow: none; }

.btn-danger {
  background: var(--danger);
  box-shadow: none;
}
.btn-danger:hover { background: #8f1f2c; box-shadow: none; }

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ─── Alerts ─── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  border-left: 4px solid;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alert.success { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.alert.error   { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.alert.success::before { content: '✓'; font-weight: 700; }
.alert.error::before   { content: '✕'; font-weight: 700; }

/* ─── Cards & Panels ─── */
.panel {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
}
.panel.small {
  max-width: 480px;
  margin: 0 auto;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.panel-head h2 { margin: 0; }

/* ─── Forms ─── */
.form-grid { display: grid; gap: 1.1rem; }

.form-group { display: grid; gap: 0.4rem; }

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-light);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

input, textarea, select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: 400 0.95rem 'Poppins', sans-serif;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(231,105,148,0.12);
}
input::placeholder, textarea::placeholder { color: #c0a0ae; }

.input-icon-wrap {
  position: relative;
}
.input-icon-wrap input { padding-left: 2.5rem; }
.input-icon-wrap .icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 3rem; }
.toggle-pw {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink-light);
  padding: 0;
  line-height: 1;
}

.note {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

/* ─── File upload ─── */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.file-upload-area:hover, .file-upload-area.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}
.file-upload-area input[type="file"] {
  display: none;
}
.file-upload-area .upload-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.file-upload-area p { font-size: 0.9rem; color: var(--ink-light); margin: 0.2rem 0; }
.file-upload-area strong { color: var(--primary); }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}
.preview-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
.preview-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.preview-item textarea {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  font-size: 0.78rem;
  padding: 0.4rem 0.5rem;
  resize: none;
  min-height: 54px;
}
.preview-item textarea:focus { box-shadow: none; border-color: var(--primary); }
.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.preview-remove:hover { background: var(--danger); }
.preview-counter {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-top: 0.5rem;
  text-align: right;
}
.preview-counter.warn { color: var(--danger); font-weight: 600; }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, #fff 0%, #fff0f6 60%, #ffe3ef 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '💗';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 1.05rem;
  color: var(--ink-light);
  max-width: 560px;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ─── Steps / Features ─── */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.5rem 0 1.2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon { font-size: 2rem; margin-bottom: 0.7rem; }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink); }
.card p { font-size: 0.9rem; color: var(--ink-light); margin: 0; }

.badge-price {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-top: 0.5rem;
}

/* ─── Auth ─── */
.auth-wrapper {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}
.auth-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
}
.auth-card .brand-top {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.auth-card .brand-top::before { content: '💗 '; }
.auth-card h2 {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink-light);
  margin-bottom: 1.6rem;
}
.auth-footer {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-light);
  margin-top: 1.2rem;
}
.auth-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--border);
  font-size: 0.8rem;
  margin: 0.5rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Projects ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 0.5rem;
}

.project-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-card-header {
  background: linear-gradient(120deg, var(--primary) 0%, #ef8fb5 100%);
  padding: 1.1rem 1.2rem;
  color: #fff;
}
.project-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-card-header .tag {
  font-size: 0.78rem;
  opacity: 0.88;
}
.project-card-body {
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-light);
}
.project-meta strong { color: var(--ink); }
.project-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.project-card-footer {
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.qr-thumb {
  width: 68px;
  height: 68px;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ink-light);
}
.empty-state .empty-icon { font-size: 4rem; display: block; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--ink); }
.empty-state p { font-size: 0.93rem; margin-bottom: 1.5rem; }

/* ─── Gift intro overlay ─── */
.gift-intro {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18060e;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  overflow: hidden;
}
.gift-intro.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.gift-intro-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.22) saturate(1.6);
  transform: scale(1.1);
}

/* Corazones flotantes */
.gift-hearts-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ghp {
  position: absolute;
  bottom: -2rem;
  opacity: 0;
  animation: floatHeart linear infinite;
  line-height: 1;
}
@keyframes floatHeart {
  0%   { opacity: 0;   transform: translateY(0)      scale(0.6) rotate(0deg);  }
  8%   { opacity: 0.7; }
  85%  { opacity: 0.3; }
  100% { opacity: 0;   transform: translateY(-105vh) scale(1.1) rotate(15deg); }
}
.ghp-1 { left:  8%; font-size: 1.3rem; animation-duration:  7s; animation-delay:  0s;   }
.ghp-2 { left: 20%; font-size: 1.9rem; animation-duration:  9s; animation-delay:  1.4s; }
.ghp-3 { left: 35%; font-size: 1.0rem; animation-duration:  6s; animation-delay:  0.6s; }
.ghp-4 { left: 50%; font-size: 2.1rem; animation-duration: 11s; animation-delay:  2.8s; }
.ghp-5 { left: 66%; font-size: 1.5rem; animation-duration:  8s; animation-delay:  0.2s; }
.ghp-6 { left: 78%; font-size: 1.1rem; animation-duration: 10s; animation-delay:  3.5s; }
.ghp-7 { left: 88%; font-size: 1.8rem; animation-duration:  7s; animation-delay:  1.9s; }
.ghp-8 { left: 43%; font-size: 1.2rem; animation-duration:  8s; animation-delay:  4.2s; }

.gift-intro-card {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 2.8rem 2.4rem;
  max-width: 460px;
  width: 90%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}
.gift-intro-heart {
  font-size: 3.5rem;
  display: block;
  animation: heartbeat 1.5s ease-in-out infinite;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 12px rgba(231,105,148,0.6));
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%  { transform: scale(1.22); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.14); }
  70%  { transform: scale(1); }
}
.gift-intro-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  line-height: 1.25;
}
.gift-intro-from {
  color: rgba(255,255,255,0.58);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.gift-intro-from strong { color: #f0a8c3; font-weight: 600; }
.gift-intro-hint {
  color: rgba(255,255,255,0.32);
  font-size: 0.8rem;
  margin: 0 0 1.8rem;
  letter-spacing: 0.04em;
}
.gift-intro-empty { color: rgba(255,255,255,0.45); font-size: 0.9rem; margin-top: 0.8rem; }

.gift-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, #ef93b6 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(231,105,148,0.45), 0 0 0 0 rgba(231,105,148,0.4);
  transition: transform 0.22s, box-shadow 0.22s;
  animation: btnPulse 2.5s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(231,105,148,0.45), 0 0 0  0px rgba(231,105,148,0.35); }
  50%       { box-shadow: 0 4px 20px rgba(231,105,148,0.45), 0 0 0 12px rgba(231,105,148,0);   }
}
.gift-open-btn:hover { transform: scale(1.04); animation: none; box-shadow: 0 6px 30px rgba(231,105,148,0.65); }

/* ─── Gift carousel (pantalla completa) ─── */
.gift-carousel {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  flex-direction: column;
  background: #08030a;
  overflow: hidden;
}
.gift-carousel.open { display: flex; }

.gift-carousel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.28) saturate(1.6);
  transform: scale(1.1);
  transition: background-image 0.5s ease;
  will-change: background-image;
}

/* Barra de progreso */
.gift-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 20;
}
.gift-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #ef93b6);
  transition: none;
}

.gift-carousel-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem 0.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 100%);
  flex-shrink: 0;
  margin-top: 3px;
}
.gift-carousel-title {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.93rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}
.gift-topbar-actions { display: flex; gap: 0.4rem; align-items: center; }
.gift-icon-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: rgba(255,255,255,0.9);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.gift-icon-btn:hover { background: rgba(255,255,255,0.24); }

/* Área del slide */
.gift-slide-wrap {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 5rem;
  overflow: hidden;
  min-height: 0;
}
.gift-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  width: 100%;
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.42s ease, transform 0.42s ease;
}
.gift-slide.in { opacity: 1; transform: translateY(0) scale(1); }

.gift-img-frame {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.07);
}
.gift-img-frame img {
  max-height: 68vh;
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  background: #111;
}
.gift-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1.2rem 0.9rem;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 100%);
  color: rgba(255,255,255,0.93);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

/* Flechas de navegación */
.gift-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  backdrop-filter: blur(6px);
  opacity: 0.7;
}
.gift-nav:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) scale(1.08); opacity: 1; }
.gift-prev { left: 0.9rem; }
.gift-next { right: 0.9rem; }

/* Pie: puntos + contador */
.gift-carousel-footer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  flex-shrink: 0;
}
.gift-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.gift-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  padding: 0;
  transition: background 0.22s, transform 0.22s;
}
.gift-dot.active { background: var(--primary); transform: scale(1.55); }
.gift-footer-counter {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: rgba(255,255,255,0.38);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
#giftCurrNum { color: rgba(255,255,255,0.7); font-weight: 600; }
.gift-counter-sep { color: rgba(255,255,255,0.2); }

/* YouTube oculto */
#ytContainer {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
  overflow: hidden; bottom: 0; left: 0;
}

body.carousel-open { overflow: hidden; }

/* Responsivo: ocultar flechas en móvil */
@media (max-width: 560px) {
  .gift-nav { display: none; }
  .gift-slide-wrap { padding: 0.5rem 0.8rem; }
  .gift-img-frame img { max-height: 60vh; }
}

/* ─── Contact ─── */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 0.7rem 0;
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid #f2c3d5;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--ink); }
.contact-card .contact-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.contact-card strong { display: block; font-size: 0.8rem; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-card span { font-size: 0.98rem; font-weight: 600; color: var(--primary-dark); }

/* ─── Section headers ─── */
.section-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.section-head h2 { margin: 0; font-size: 1.3rem; }
.section-head .section-icon { font-size: 1.4rem; }

/* ─── Footer ─── */
.site-footer {
  background: #1a0e14;
  color: rgba(255,255,255,0.55);
  padding: 1.8rem 0;
  font-size: 0.88rem;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-brand { color: var(--primary); font-weight: 700; font-size: 1rem; }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }

/* ─── Responsive ─── */
@media (max-width: 680px) {
  nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: linear-gradient(180deg,#d4547c,var(--primary)); padding: 1rem; gap: 0; z-index: 99; }
  nav.open { display: flex; }
  nav a { padding: 0.7rem 1rem; border-radius: var(--radius-sm); }
  .inline-form { width: 100%; }
  .inline-form button { width: 100%; text-align: left; border-radius: var(--radius-sm); border: none; padding: 0.7rem 1rem; }
  .site-header { position: relative; }
  .nav-toggle { display: flex; }
  .hero { padding: 2rem 1.2rem; }
  .hero::after { display: none; }
  .auth-card { padding: 1.8rem 1.2rem; }
  .panel { padding: 1.2rem; }
  .gift-hero { padding: 2rem 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* ─── Template filter ─── */
.template-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.filter-btn {
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--ink-light);
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  font: 500 0.88rem 'Poppins', sans-serif;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ─── Templates grid ─── */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.template-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.template-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Preview thumbnail */
.template-preview {
  position: relative;
  height: 180px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #ffe3ef 0%, #fff0f6 100%);
}
.template-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.template-card:hover .template-preview img { transform: scale(1.04); }
.preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(231,105,148,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.4rem;
}
.template-card:hover .preview-overlay { opacity: 1; }

/* Mockup visual cuando no hay imagen */
.template-mock {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #fce8f0 0%, #fff6fa 100%);
  border-bottom: 1px solid var(--border);
}
.mock-header {
  background: linear-gradient(90deg, var(--primary) 0%, #ef8fb5 100%);
  padding: 0.35rem 0.7rem;
  display: flex;
  align-items: center;
}
.mock-dots { display: flex; gap: 4px; }
.mock-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  font-style: normal;
}
.mock-body {
  flex: 1;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mock-img-row {
  display: flex;
  gap: 5px;
  flex: 1;
}
.mock-img {
  flex: 1;
  background: linear-gradient(135deg, #f0c0d5 0%, #fce8f0 100%);
  border-radius: 5px;
  min-height: 55px;
}
.mock-text-row { display: flex; flex-direction: column; gap: 4px; }
.mock-line {
  height: 8px;
  background: #e8c0d0;
  border-radius: 4px;
}
.mock-line.short { width: 65%; }
.mock-note {
  font-size: 0.85rem;
  text-align: center;
  color: var(--primary);
  letter-spacing: 3px;
}
.mock-label {
  background: rgba(231,105,148,0.12);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 0.25rem;
  border-top: 1px solid var(--border);
}

.template-info {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.template-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.template-meta h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.template-category {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.template-desc {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin: 0;
  line-height: 1.5;
}
.template-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

/* ─── Modales ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(20, 8, 14, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-box {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }

.preview-modal-box { max-width: 700px; }
.order-modal-box   { max-width: 440px; }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-light);
  border: none;
  color: var(--primary-dark);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--primary); color: #fff; }

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 2rem 1.2rem 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Mockup grande en previsualización */
.preview-mockup-full {
  background: linear-gradient(145deg, #fce8f0 0%, #fff6fa 100%);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pmf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid #f0c0d5;
}
.pmf-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}
.pmf-cat {
  font-size: 0.8rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}
.pmf-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.pmf-img {
  border-radius: var(--radius-sm);
  height: 90px;
  background: linear-gradient(135deg, #f0b8d0 0%, #fce0ee 100%);
}
.pmf-img1 { background: linear-gradient(135deg, #e87da4 0%, #f8b8d2 100%); }
.pmf-img2 { background: linear-gradient(135deg, #d4547c 0%, #ef8fb5 100%); }
.pmf-img3 { background: linear-gradient(135deg, #f0c0d5 0%, #fce8f0 100%); }
.pmf-img4 { background: linear-gradient(135deg, #e76994 0%, #ffb8d4 100%); }
.pmf-music {
  background: rgba(231,105,148,0.1);
  border: 1px solid #f2c3d5;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--primary-dark);
  font-weight: 500;
  text-align: center;
}
.pmf-desc {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin: 0;
  line-height: 1.6;
  text-align: center;
}
.pmf-qr {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ─── Resumen de pedido ─── */
.order-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  color: var(--ink);
  margin-top: 0.8rem;
}

/* ─── Rename en tarjeta de proyecto ─── */
.project-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}
.project-title-row h3 {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-icon {
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.btn-icon:hover { background: rgba(255,255,255,0.45); }

.rename-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.rename-input {
  background: rgba(255,255,255,0.9) !important;
  color: var(--ink) !important;
  font-size: 0.9rem !important;
  padding: 0.5rem 0.7rem !important;
}
.rename-actions {
  display: flex;
  gap: 0.4rem;
}

@media (max-width: 680px) {
  .templates-grid { grid-template-columns: 1fr; }
  .template-filter { gap: 0.35rem; }
  .pmf-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
   ESTILOS MULTI-PLANTILLA — gift/show.php
   ═══════════════════════════════════════════════════════════════ */

/* ─── Partículas genéricas ─── */
.gift-ptcl-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.gp { position: absolute; opacity: 0; line-height: 1; font-style: normal; }

/* Float up: corazones (hearts) */
.gp-float { bottom: -2rem; animation: gpFloat linear infinite; }
@keyframes gpFloat {
  0%   { opacity: 0;   transform: translateY(0) scale(0.6) rotate(0deg); }
  8%   { opacity: 0.75; }
  85%  { opacity: 0.3; }
  100% { opacity: 0;   transform: translateY(-108vh) scale(1.1) rotate(18deg); }
}

/* Drift down: estrellas (stars) */
.gp-twinkle { top: -2rem; animation: gpTwinkle linear infinite; }
@keyframes gpTwinkle {
  0%   { opacity: 0;   transform: translateY(0) scale(0.7); }
  10%  { opacity: 0.9; }
  80%  { opacity: 0.4; }
  100% { opacity: 0;   transform: translateY(108vh) scale(1.1); }
}

/* Diagonal fall: pétalos (petals) */
.gp-fall { top: -2rem; animation: gpFall linear infinite; }
@keyframes gpFall {
  0%   { opacity: 0;   transform: translateX(0) translateY(0) rotate(0deg); }
  10%  { opacity: 0.85; }
  80%  { opacity: 0.5; }
  100% { opacity: 0;   transform: translateX(70px) translateY(110vh) rotate(360deg); }
}

/* Sway + fall: flores (floral) */
.gp-sway { top: -2rem; animation: gpSway linear infinite; }
@keyframes gpSway {
  0%   { opacity: 0;   transform: translateX(0) translateY(0) rotate(0deg); }
  10%  { opacity: 0.8; }
  50%  { transform: translateX(-30px) translateY(55vh) rotate(180deg); }
  80%  { opacity: 0.4; }
  100% { opacity: 0;   transform: translateX(20px) translateY(110vh) rotate(360deg); }
}

/* Confetti spin (festive) */
.gp-spin { bottom: -2rem; animation: gpSpin linear infinite; }
@keyframes gpSpin {
  0%   { opacity: 0;   transform: translateY(0) rotate(0deg) scale(0.7); }
  8%   { opacity: 1; }
  85%  { opacity: 0.5; }
  100% { opacity: 0;   transform: translateY(-110vh) rotate(720deg) scale(1.2); }
}

/* ─── Temas de intro ─── */

/* dark-pink (hearts) – por defecto, mismo que antes */
.gift-intro.theme-dark-pink { background: #18060e; }

/* dark-navy (stars) */
.gift-intro.theme-dark-navy { background: #06061e; }
.gift-intro.theme-dark-navy .gift-intro-bg { filter: blur(22px) brightness(0.18) saturate(1.2); }
.gift-intro.theme-dark-navy .gift-intro-card { background: rgba(255,255,255,0.05); border-color: rgba(255,215,80,0.22); }
.gift-intro.theme-dark-navy .gift-intro-title { color: #f5d060; }
.gift-intro.theme-dark-navy .gift-intro-from  { color: rgba(255,215,80,0.55); }
.gift-intro.theme-dark-navy .gift-intro-from strong { color: #e8c040; }
.gift-intro.theme-dark-navy .gift-intro-hint  { color: rgba(255,215,80,0.3); }

/* soft-rose (petals) */
.gift-intro.theme-soft-rose { background: #2e0d1e; }
.gift-intro.theme-soft-rose .gift-intro-bg { filter: blur(22px) brightness(0.2) saturate(1.8); }
.gift-intro.theme-soft-rose .gift-intro-card { background: rgba(255,220,235,0.07); border-color: rgba(255,170,200,0.2); }
.gift-intro.theme-soft-rose .gift-intro-title { color: #ffd4e8; }
.gift-intro.theme-soft-rose .gift-intro-from strong { color: #ffaacf; }

/* garden (floral) */
.gift-intro.theme-garden { background: #051408; }
.gift-intro.theme-garden .gift-intro-bg { filter: blur(22px) brightness(0.18) saturate(1.4); }
.gift-intro.theme-garden .gift-intro-card { background: rgba(255,255,255,0.05); border-color: rgba(100,210,110,0.2); }
.gift-intro.theme-garden .gift-intro-title { color: #b8f0c0; }
.gift-intro.theme-garden .gift-intro-from  { color: rgba(150,230,160,0.55); }
.gift-intro.theme-garden .gift-intro-from strong { color: #90d898; }
.gift-intro.theme-garden .gift-intro-hint  { color: rgba(100,200,110,0.35); }

/* light (minimal) */
.gift-intro.theme-light { background: #f4f4f6; }
.gift-intro.theme-light .gift-intro-bg { filter: blur(22px) brightness(0.82) saturate(0.6); }
.gift-intro.theme-light .gift-intro-card {
  background: rgba(255,255,255,0.88);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.9);
}
.gift-intro.theme-light .gift-intro-title { color: #1a1a2e; text-shadow: none; }
.gift-intro.theme-light .gift-intro-from  { color: #666; }
.gift-intro.theme-light .gift-intro-from strong { color: #333; }
.gift-intro.theme-light .gift-intro-hint  { color: #aaa; }
.gift-intro.theme-light .gift-intro-empty { color: #888; }

/* colorful (festive) */
.gift-intro.theme-colorful { background: #0e0820; }
.gift-intro.theme-colorful .gift-intro-bg { filter: blur(22px) brightness(0.2) saturate(2); }
.gift-intro.theme-colorful .gift-intro-card { background: rgba(255,255,255,0.06); border-color: rgba(255,190,60,0.22); }
.gift-intro.theme-colorful .gift-intro-title { color: #ffe880; font-size: clamp(1.8rem, 5vw, 2.8rem); }
.gift-intro.theme-colorful .gift-intro-from  { color: rgba(255,200,80,0.6); }
.gift-intro.theme-colorful .gift-intro-from strong { color: #ffc040; }
.gift-intro.theme-colorful .gift-intro-hint  { color: rgba(255,200,80,0.35); }

/* ─── Iconos intro per estilo ─── */
.gift-intro-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 12px rgba(231,105,148,0.5));
}
.gift-intro-icon.style-hearts  { animation: heartbeat 1.5s ease-in-out infinite; }
.gift-intro-icon.style-petals  { animation: petalSway 3s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(255,120,170,0.5)); }
.gift-intro-icon.style-floral  { animation: floralPulse 2.2s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(80,190,90,0.5)); }
.gift-intro-icon.style-festive { animation: festiveBounce 0.7s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(255,190,50,0.5)); }

@keyframes petalSway {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50%       { transform: rotate(8deg) scale(1.1); }
}
@keyframes floralPulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 8px rgba(80,190,90,0.4)); }
  50%       { transform: scale(1.12); filter: drop-shadow(0 0 18px rgba(80,190,90,0.7)); }
}
@keyframes festiveBounce {
  0%, 100% { transform: translateY(0)    rotate(-5deg); }
  50%       { transform: translateY(-12px) rotate(5deg); }
}

/* ─── Sobre animado (stars) ─── */
.env-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  user-select: none;
  outline: none;
  padding: 0.5rem;
}
.env-icon {
  font-size: 5.5rem;
  display: block;
  animation: envPulse 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(255,215,60,0.55));
  transition: filter 0.3s;
}
.env-wrap:hover .env-icon { animation: none; transform: scale(1.1); filter: drop-shadow(0 0 35px rgba(255,215,60,0.9)); }
.env-wrap:focus-visible .env-icon { outline: 2px dashed #ffe066; outline-offset: 4px; }
@keyframes envPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25%       { transform: scale(1.06) rotate(-3deg); }
  75%       { transform: scale(1.06) rotate(3deg); }
}
.env-opening { animation: envOpen 0.85s ease forwards !important; }
@keyframes envOpen {
  0%   { transform: scale(1) rotate(0deg); opacity: 1; }
  20%  { transform: scale(1.35) rotate(-8deg); }
  45%  { transform: scale(1.2) rotate(8deg); }
  65%  { transform: scale(1.6) rotate(-4deg); }
  85%  { transform: scale(2.0) rotate(0deg); opacity: 0.4; }
  100% { transform: scale(2.8) rotate(0deg); opacity: 0; }
}
.env-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #f5d060;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  text-align: center;
  line-height: 1.25;
  margin: 0;
}
.env-from {
  color: rgba(255,215,80,0.55);
  font-size: 0.92rem;
  margin: 0;
  text-align: center;
}
.env-from strong { color: #e8c040; font-weight: 600; }
.env-hint {
  color: rgba(255,215,80,0.6);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  animation: hintBlink 2.2s ease-in-out infinite;
  margin: 0;
}
@keyframes hintBlink {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* ─── Ícono minimal ─── */
.minimal-intro-icon {
  font-size: 2.8rem;
  color: #1a1a2e;
  display: block;
  margin-bottom: 1.2rem;
  font-family: Georgia, serif;
  animation: minimalRotate 12s linear infinite;
}
@keyframes minimalRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── Botones de abrir per estilo ─── */
.gift-open-btn.style-petals {
  background: linear-gradient(135deg, var(--primary) 0%, #f9a8cc 100%);
}
.gift-open-btn.style-floral {
  background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(46,125,50,0.5);
  animation: none;
}
.gift-open-btn.style-floral:hover { animation: none; box-shadow: 0 6px 28px rgba(46,125,50,0.7); transform: scale(1.04); }
.gift-open-btn.style-minimal {
  background: #1a1a2e;
  color: #fff;
  animation: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  letter-spacing: 0.04em;
}
.gift-open-btn.style-minimal:hover { background: #2d2d4e; animation: none; transform: scale(1.03); }
.gift-open-btn.style-festive {
  background: linear-gradient(135deg, #ff6b35 0%, #f7c59f 50%, #ffe66d 100%);
  color: #1a0800;
  box-shadow: 0 4px 22px rgba(255,100,50,0.55);
}
.gift-open-btn.style-festive:hover { transform: scale(1.06); animation: none; box-shadow: 0 6px 32px rgba(255,100,50,0.75); }

/* ─── Carrusel: colores de acento por tema ─── */
.theme-carousel-dark-navy .gift-progress-bar    { background: linear-gradient(90deg, #c8a728, #ffe066); }
.theme-carousel-dark-navy .gift-dot.active       { background: #c8a728; }
.theme-carousel-soft-rose .gift-progress-bar    { background: linear-gradient(90deg, #e87da4, #f9a8cc); }
.theme-carousel-soft-rose .gift-dot.active       { background: #e87da4; }
.theme-carousel-garden .gift-progress-bar       { background: linear-gradient(90deg, #2e7d32, #66bb6a); }
.theme-carousel-garden .gift-dot.active          { background: #66bb6a; }
.theme-carousel-light .gift-carousel-bg         { filter: blur(28px) brightness(0.55) saturate(0.7); }
.theme-carousel-colorful .gift-progress-bar     { background: linear-gradient(90deg, #ff6b35, #ffe66d); }
.theme-carousel-colorful .gift-dot.active        { background: #ffe66d; }

/* ─── Transiciones de slide (via data-trans) ─── */

/* fade (hearts, minimal) — usa los estilos base existentes */
[data-trans="fade"] .gift-slide         { opacity: 0; transform: translateY(10px) scale(0.97) !important; }
[data-trans="fade"] .gift-slide.in      { opacity: 1; transform: translateY(0) scale(1)      !important;
                                          transition: opacity 0.42s ease, transform 0.42s ease !important; }

/* slide-right (stars) */
[data-trans="slide-right"] .gift-slide    { opacity: 0; transform: translateX(45px) !important; }
[data-trans="slide-right"] .gift-slide.in { opacity: 1; transform: translateX(0)    !important;
                                            transition: opacity 0.38s ease, transform 0.38s ease !important; }

/* zoom (petals) */
[data-trans="zoom"] .gift-slide    { opacity: 0; transform: scale(0.86) !important; }
[data-trans="zoom"] .gift-slide.in { opacity: 1; transform: scale(1)    !important;
                                     transition: opacity 0.36s ease, transform 0.4s cubic-bezier(.34,1.56,.64,1) !important; }

/* slide-bottom (floral) */
[data-trans="slide-bottom"] .gift-slide    { opacity: 0; transform: translateY(45px) !important; }
[data-trans="slide-bottom"] .gift-slide.in { opacity: 1; transform: translateY(0)    !important;
                                             transition: opacity 0.4s ease, transform 0.4s ease !important; }

/* crossfade (minimal — lento y limpio) */
[data-trans="crossfade"] .gift-slide    { opacity: 0; transform: none !important; }
[data-trans="crossfade"] .gift-slide.in { opacity: 1; transform: none !important;
                                          transition: opacity 0.65s ease !important; }

/* bounce (festive) */
[data-trans="bounce"] .gift-slide    { opacity: 0; transform: scale(0.84) translateY(22px) !important; }
[data-trans="bounce"] .gift-slide.in { opacity: 1; transform: scale(1) translateY(0)       !important;
                                       transition: opacity 0.28s ease, transform 0.55s cubic-bezier(.34,1.56,.64,1) !important; }

/* ─── Posiciones del caption ─── */

/* overlay-top (festive) */
.gift-caption-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: auto;
  padding: 1rem 1.2rem 2.8rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.78) 0%, transparent 100%);
  color: rgba(255,255,255,0.93);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

/* below (stars, floral, minimal) */
[data-layout="below"] .gift-slide      { flex-direction: column; }
[data-layout="below"] .gift-img-frame  { border-radius: 14px 14px 0 0; overflow: hidden; }
[data-layout="below"] .gift-img-frame img { border-radius: 0; }
.gift-caption-below {
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(6px);
  padding: 0.75rem 1.2rem;
  border-radius: 0 0 14px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  line-height: 1.65;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

/* right (petals) */
[data-layout="right"] .gift-slide {
  flex-direction: row !important;
  align-items: center;
  gap: 1.5rem;
  max-width: 920px;
}
[data-layout="right"] .gift-img-frame           { max-width: 58%; flex-shrink: 0; border-radius: 14px; }
[data-layout="right"] .gift-img-frame img        { max-height: 62vh; border-radius: 14px; }
.gift-caption-panel {
  flex: 1;
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  line-height: 1.8;
  text-align: left;
  padding: 1.2rem 1rem;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* minimal: texto más amplio y limpio */
.theme-carousel-light .gift-caption-below {
  background: rgba(255,255,255,0.88);
  color: #1a1a2e;
  font-size: 0.95rem;
  font-weight: 400;
  border-radius: 0 0 14px 14px;
  backdrop-filter: blur(0);
}
.theme-carousel-light .gift-slide-wrap { padding: 0.5rem 5rem; }

/* ─── Responsive ─── */
@media (max-width: 680px) {
  [data-layout="right"] .gift-slide { flex-direction: column !important; }
  [data-layout="right"] .gift-img-frame { max-width: 100%; }
  [data-layout="right"] .gift-caption-panel { width: 100%; min-height: auto; }
}

/* ─── Template card: thumbnails estilizados por estilo ─── */
.tplmock {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Fondo de color por estilo */
.tplmock-hearts  { background: linear-gradient(145deg, #2a0614 0%, #6b1030 60%, #d43068 100%); }
.tplmock-stars   { background: linear-gradient(145deg, #07081a 0%, #0f1a42 60%, #1a2f6b 100%); }
.tplmock-petals  { background: linear-gradient(145deg, #1e0812 0%, #5c1535 60%, #c45080 100%); }
.tplmock-floral  { background: linear-gradient(145deg, #071408 0%, #124018 60%, #2e7d32 100%); }
.tplmock-minimal { background: linear-gradient(145deg, #e8e8f0 0%, #d0d4e8 60%, #b8bfe0 100%); }
.tplmock-festive { background: linear-gradient(145deg, #120308 0%, #3a0a1a 60%, #7a1832 100%); }

.tplmock-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.35;
}

/* Partículas decorativas generadas por CSS (pseudo-elementos) */
.tplmock-hearts  .tplmock-particles::before  { content: '💗 💕 ❤️'; color: #ff6b95; font-size: 1.1rem; position: absolute; top: 8%; left: 8%; letter-spacing: 8px; animation: tplFloat 4s ease-in-out infinite; }
.tplmock-hearts  .tplmock-particles::after   { content: '💖 💗 💓'; color: #ff6b95; font-size: 0.9rem; position: absolute; bottom: 30%; right: 5%; letter-spacing: 6px; animation: tplFloat 5s ease-in-out infinite reverse; }
.tplmock-stars   .tplmock-particles::before  { content: '⭐ ✨ 🌟'; color: #f5d060; font-size: 1rem; position: absolute; top: 5%; left: 5%; letter-spacing: 8px; animation: tplTwinkle 3s ease-in-out infinite; }
.tplmock-stars   .tplmock-particles::after   { content: '💫 ⭐ ✨'; color: #ffe066; font-size: 0.85rem; position: absolute; bottom: 28%; right: 4%; letter-spacing: 6px; animation: tplTwinkle 4s ease-in-out infinite 1s; }
.tplmock-petals  .tplmock-particles::before  { content: '🌸 🌷 🌺'; color: #ffb8d0; font-size: 1.1rem; position: absolute; top: 6%; left: 6%; letter-spacing: 7px; animation: tplFloat 5s ease-in-out infinite; }
.tplmock-petals  .tplmock-particles::after   { content: '🌷 🌸 🌺'; color: #ffb8d0; font-size: 0.9rem; position: absolute; bottom: 28%; right: 5%; letter-spacing: 5px; animation: tplFloat 4s ease-in-out infinite reverse; }
.tplmock-floral  .tplmock-particles::before  { content: '🌺 🍃 🌸'; color: #a5d6a7; font-size: 1.05rem; position: absolute; top: 6%; left: 5%; letter-spacing: 7px; animation: tplSway 4.5s ease-in-out infinite; }
.tplmock-floral  .tplmock-particles::after   { content: '🌿 🌸 🌺'; color: #a5d6a7; font-size: 0.9rem; position: absolute; bottom: 28%; right: 5%; letter-spacing: 5px; animation: tplSway 5s ease-in-out infinite reverse; }
.tplmock-minimal .tplmock-particles::before  { content: '· · ·'; color: #888aaa; font-size: 1.6rem; position: absolute; top: 8%; left: 8%; letter-spacing: 12px; }
.tplmock-minimal .tplmock-particles::after   { content: '—'; color: #9a9cc0; font-size: 1rem; position: absolute; bottom: 30%; right: 8%; letter-spacing: 5px; }
.tplmock-festive .tplmock-particles::before  { content: '🎉 🎊 🎈'; color: #ffc040; font-size: 1.1rem; position: absolute; top: 6%; left: 5%; letter-spacing: 7px; animation: tplSpin 2s ease-in-out infinite; }
.tplmock-festive .tplmock-particles::after   { content: '🎁 ⭐ 🎉'; color: #ffc040; font-size: 0.9rem; position: absolute; bottom: 28%; right: 5%; letter-spacing: 5px; animation: tplSpin 2.5s ease-in-out infinite reverse; }

@keyframes tplFloat   { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(4deg); } }
@keyframes tplTwinkle { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes tplSway    { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes tplSpin    { 0% { transform: rotate(0deg); } 100% { transform: rotate(15deg); } }

.tplmock-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 0.7rem 0.5rem;
  position: relative;
  z-index: 1;
}
.tplmock-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.tplmock-name {
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.tplmock-minimal .tplmock-name { color: #1a1a2e; text-shadow: none; }
.tplmock-badge {
  font-size: 0.67rem;
  font-weight: 600;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.22);
}
.tplmock-minimal .tplmock-badge { background: rgba(26,26,46,0.1); color: #3a3a5c; border-color: rgba(26,26,46,0.2); }

.tplmock-photos {
  display: flex;
  gap: 3px;
  height: 54px;
  padding: 0 0 0;
  position: relative;
  z-index: 1;
}
.tplmock-photo {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.08);
}
.tplmock-photo:first-child { border-radius: 0 0 0 4px; }
.tplmock-photo:last-child  { border-radius: 0 0 4px 0; }

/* ─── Preview modal: iframe de presentación real ─── */
.preview-modal-box { max-width: 860px; padding: 1.2rem 1.4rem; }

.preview-iframe-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0e0820;
}
.preview-iframe-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  background: #12091e;
}
.preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .preview-iframe-wrap { height: 380px; }
  .preview-modal-box   { padding: 0.8rem; }
}

/* ─── Thumbnail de plantilla: iframe escalado (reemplaza tplmock CSS) ─── */
.tplmock-iframe-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0e0820; /* fallback mientras carga */
}

/* iframe de 900x540 escalado a caber en los 180px de altura del card
   scale = 180/540 = 0.3333
   ancho visual = 900 * 0.3333 = 300px → left = 50% - 150px (centra los 300px) */
.tplmock-iframe {
  position: absolute;
  top: 0;
  left: calc(50% - 150px);
  width: 900px;
  height: 540px;
  border: none;
  pointer-events: none;
  transform: scale(0.3333);
  transform-origin: top left;
}

/* ─── Selector tipo degradado ─── */
.grad-type-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.grad-type-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--card);
  transition: border-color var(--transition), background var(--transition);
  font-weight: normal;
  min-width: 80px;
}
.grad-type-opt input { display: none; }
.grad-type-opt:hover { border-color: var(--primary-light); }
.grad-type-opt.active { border-color: var(--primary); background: var(--primary-light); }
.grad-swatch {
  width: 56px;
  height: 36px;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,0.1);
  display: block;
  flex-shrink: 0;
}
.grad-lbl {
  font-size: 0.72rem;
  text-align: center;
  color: var(--ink);
  line-height: 1.3;
}

/* ── Admin: order badges ───────────────────────────────────────────────── */
.order-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-pending  { background: #fff3e0; color: #e65100; border: 1px solid #ffb74d; }
.badge-paid     { background: #e8f5e9; color: #2e7d32; border: 1px solid #66bb6a; }
.badge-cancelled{ background: #fce4ec; color: #b71c1c; border: 1px solid #ef9a9a; }
.badge-info     { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
