/* Tobby Studio 3D — Hoja de Estilos Principal */
    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
    }

    .custom-scrollbar::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    .custom-scrollbar::-webkit-scrollbar-track {
      background: rgba(15, 23, 42, 0.4);
    }
    .custom-scrollbar::-webkit-scrollbar-thumb {
      background: rgba(100, 116, 139, 0.45);
      border-radius: 9999px;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
      background: rgba(148, 163, 184, 0.7);
    }

    .preview-scrollbar::-webkit-scrollbar {
      width: 5px;
    }
    .preview-scrollbar::-webkit-scrollbar-track {
      background: transparent;
    }
    .preview-scrollbar::-webkit-scrollbar-thumb {
      background: rgba(148, 163, 184, 0.35);
      border-radius: 9999px;
    }

    /* Clases dinámicas de tipografía para la invitación */
    .inv-font-sans {
      font-family: 'Plus Jakarta Sans', sans-serif;
    }
    .inv-font-serif {
      font-family: 'Playfair Display', Georgia, serif;
    }
    .inv-font-serif .inv-body-text {
      font-family: 'Plus Jakarta Sans', sans-serif;
    }
    .inv-font-cute {
      font-family: 'Quicksand', sans-serif;
    }
    .inv-font-script {
      font-family: 'Great Vibes', cursive;
    }
    .inv-font-script .inv-body-text {
      font-family: 'Plus Jakarta Sans', sans-serif;
    }

    /* Efectos 3D y Metálicos para el Título Principal */
    .title-fx-gold {
      background: linear-gradient(135deg, #92400e 0%, #d97706 25%, #fde047 50%, #b45309 75%, #78350f 100%);
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 3px 4px rgba(180, 83, 9, 0.28));
      animation: shineGold 4s linear infinite;
    }
    @keyframes shineGold {
      to { background-position: 200% center; }
    }
    .title-fx-3d {
      text-shadow: 0 2px 0 rgba(255,255,255,0.9), 0 4px 10px rgba(15, 23, 42, 0.22), 0 8px 20px rgba(15, 23, 42, 0.12);
    }
    .title-fx-magic {
      background: linear-gradient(90deg, #0284c7, #7c3aed, #db2777, #0284c7);
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 3px 6px rgba(124, 58, 237, 0.22));
      animation: shineGold 5s linear infinite;
    }

    /* Botones con relieve 3D y efecto destello (Shimmer) */
    .btn-3d-shimmer {
      position: relative;
      overflow: hidden;
      box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18), 0 10px 20px rgba(0, 0, 0, 0.14), inset 0 1px 1px rgba(255, 255, 255, 0.45);
      transform: translateY(0);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .btn-3d-shimmer:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18), 0 14px 24px rgba(0, 0, 0, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.55);
    }
    .btn-3d-shimmer:active {
      transform: translateY(3px);
      box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18), 0 4px 8px rgba(0, 0, 0, 0.12);
    }
    .btn-3d-shimmer::after {
      content: "";
      position: absolute;
      top: -50%;
      left: -60%;
      width: 40%;
      height: 200%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
      transform: rotate(25deg);
      animation: shimmerSweep 3.8s ease-in-out infinite;
      pointer-events: none;
    }
    @keyframes shimmerSweep {
      0% { left: -60%; }
      45%, 100% { left: 130%; }
    }

    /* Texturas de papel y fondos artísticos 3D */
    .texture-dots {
      background-image: radial-gradient(rgba(148, 163, 184, 0.28) 1.5px, transparent 1.5px);
      background-size: 18px 18px;
    }
    .texture-grid {
      background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.14) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
      background-size: 22px 22px;
    }
    .inv-font-dancing {
      font-family: 'Dancing Script', cursive;
    }
    .inv-font-dancing .inv-body-text {
      font-family: 'Plus Jakarta Sans', sans-serif;
    }
    .inv-font-pacifico {
      font-family: 'Pacifico', cursive;
    }
    .inv-font-pacifico .inv-body-text {
      font-family: 'Plus Jakarta Sans', sans-serif;
    }
    .inv-font-sacramento {
      font-family: 'Sacramento', cursive;
    }
    .inv-font-sacramento .inv-body-text {
      font-family: 'Plus Jakarta Sans', sans-serif;
    }

    .texture-linen {
      background-image:
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.08) 0px, rgba(148, 163, 184, 0.08) 1px, transparent 1px, transparent 6px),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.08) 0px, rgba(148, 163, 184, 0.08) 1px, transparent 1px, transparent 6px);
    }
    .texture-marble {
      background-image:
        radial-gradient(ellipse at 20% 30%, rgba(251, 191, 36, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(217, 119, 6, 0.12) 0%, transparent 50%),
        linear-gradient(125deg, transparent 40%, rgba(245, 158, 11, 0.09) 48%, transparent 55%);
    }
    .frame-double {
      box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.7), inset 0 0 0 8px rgba(148, 163, 184, 0.45);
    }
    .frame-artdeco {
      box-shadow: inset 0 0 0 4px #f59e0b, inset 0 0 0 9px rgba(255, 255, 255, 0.85), inset 0 0 0 11px #d97706;
    }
    .frame-stitch {
      outline: 2.5px dashed rgba(100, 116, 139, 0.45);
      outline-offset: -8px;
    }
    .btn-relief-3d {
      box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25), 0 8px 16px rgba(0, 0, 0, 0.15);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .btn-relief-3d:active {
      transform: translateY(3px);
      box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
    }
    .texture-watercolor {
      background-image:
        radial-gradient(at 15% 15%, rgba(255, 255, 255, 0.85) 0px, transparent 50%),
        radial-gradient(at 85% 45%, rgba(255, 255, 255, 0.7) 0px, transparent 50%),
        radial-gradient(at 30% 85%, rgba(255, 255, 255, 0.8) 0px, transparent 50%);
    }

    /* Animaciones 3D para figuras y stickers */
    @keyframes floatSlow {
      0%, 100% { transform: translateY(0px) rotate(0deg); }
      50% { transform: translateY(-8px) rotate(2deg); }
    }
    .animate-float {
      animation: floatSlow 3.6s ease-in-out infinite;
    }

    @keyframes pulseSoft {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.09); }
    }
    .animate-pulse-soft {
      animation: pulseSoft 2.8s ease-in-out infinite;
    }

    @keyframes swaySoft {
      0%, 100% { transform: rotate(-6deg) translateY(0px); }
      50% { transform: rotate(6deg) translateY(-4px); }
    }
    .animate-sway {
      animation: swaySoft 3.2s ease-in-out infinite;
    }

    /* Animación de partículas 3D desplazándose por TODA la invitación */
    @keyframes ambientTravelFull {
      0% {
        transform: translate3d(0px, 35px, 0) scale(0.75) rotate(0deg);
        opacity: 0;
      }
      18% {
        opacity: 0.92;
      }
      50% {
        transform: translate3d(20px, -75px, 0) scale(1.15) rotate(22deg);
        opacity: 0.96;
      }
      82% {
        opacity: 0.85;
      }
      100% {
        transform: translate3d(-18px, -170px, 0) scale(0.8) rotate(45deg);
        opacity: 0;
      }
    }
    .ambient-particle {
      position: absolute;
      pointer-events: none;
      user-select: none;
      will-change: transform, opacity;
      animation: ambientTravelFull 6.5s ease-in-out infinite;
      filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.16));
    }

    /* Acabado Ultra-Glassmorphism y Esferas de Luz Aurora */
    .ultra-glass-card {
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-shadow:
        inset 0 1.5px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(255, 255, 255, 0.4),
        0 18px 38px -10px rgba(15, 23, 42, 0.12),
        0 4px 12px -2px rgba(15, 23, 42, 0.06);
    }
    .ultra-glass-dark {
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.18),
        0 20px 42px -10px rgba(0, 0, 0, 0.55);
    }

    @keyframes auroraFloat {
      0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
      50% { transform: translate3d(22px, -28px, 0) scale(1.14); }
    }
    .aurora-orb {
      position: absolute;
      border-radius: 9999px;
      filter: blur(42px);
      pointer-events: none;
      opacity: 0.55;
      animation: auroraFloat 9s ease-in-out infinite;
    }

    /* Sobre 3D Realista con Solapa que Gira (rotateX) y Sello de Lacre 3D */
    .envelope-3d-stage {
      perspective: 1200px;
    }
    .envelope-3d-box {
      position: relative;
      width: 310px;
      height: 215px;
      border-radius: 18px;
      box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.38), 0 8px 20px rgba(15, 23, 42, 0.18);
      transform-style: preserve-3d;
    }
    .envelope-flap-top {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 125px;
      transform-origin: top center;
      transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.2s 0.4s;
      z-index: 30;
      filter: drop-shadow(0 6px 8px rgba(15, 23, 42, 0.18));
    }
    .envelope-3d-box.is-opening .envelope-flap-top {
      transform: rotateX(180deg);
      z-index: 5;
    }
    .envelope-letter-card {
      position: absolute;
      left: 18px;
      right: 18px;
      top: 16px;
      bottom: 16px;
      border-radius: 14px;
      background: #ffffff;
      z-index: 10;
      transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    }
    .envelope-3d-box.is-opening .envelope-letter-card {
      transform: translateY(-78px) scale(1.03);
    }
    .wax-seal-btn {
      position: absolute;
      top: 102px;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 74px;
      height: 74px;
      border-radius: 9999px;
      z-index: 40;
      background: radial-gradient(circle at 32% 28%, #fde047 0%, #f59e0b 42%, #b45309 82%, #78350f 100%);
      box-shadow:
        0 10px 20px rgba(120, 53, 15, 0.45),
        inset 0 2px 3px rgba(255, 255, 255, 0.65),
        inset 0 -3px 6px rgba(69, 26, 3, 0.65);
      border: 3px dashed rgba(254, 240, 138, 0.65);
      transition: transform 0.35s ease, opacity 0.4s ease;
    }
    .wax-seal-btn:hover {
      transform: translate(-50%, -50%) scale(1.08);
    }
    .envelope-3d-box.is-opening .wax-seal-btn {
      transform: translate(-50%, -50%) scale(0.2);
      opacity: 0;
    }

    /* Capas con respuesta Parallax 3D */
    .parallax-layer {
      transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: transform;
    }

    /* Animación de entrada suave al hacer scroll (Scroll Reveal) */
    .reveal-section {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal-section.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    @keyframes confettiFall {
      0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
      100% { transform: translateY(520px) rotate(360deg); opacity: 0; }
    }
    .confetti-piece {
      position: absolute;
      width: 9px;
      height: 14px;
      border-radius: 3px;
      pointer-events: none;
      box-shadow: 0 3px 6px rgba(0,0,0,0.2);
      animation: confettiFall 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }

    /* Indicador visual al arrastrar PNGs en la vista previa */
    .draggable-png-wrapper {
      cursor: grab;
      transition: box-shadow 0.15s ease, transform 0.15s ease;
      border-radius: 12px;
    }
    .draggable-png-wrapper:hover {
      box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.8);
      background: rgba(99, 102, 241, 0.08);
    }
    .draggable-png-wrapper:active {
      cursor: grabbing;
      box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.95);
    }
    @keyframes fireworkSpark3D {
      0% { transform: translate3d(0, 0, 0) scale(0.3); opacity: 1; }
      70% { opacity: 1; }
      100% { transform: translate3d(var(--tx), var(--ty), 0) scale(0.1); opacity: 0; }
    }
    @keyframes fireworkCoreFlash {
      0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
      50% { transform: translate(-50%, -50%) scale(1.6); opacity: 0.85; }
      100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
    }
    .firework-spark-3d {
      position: absolute;
      width: 8px;
      height: 8px;
      border-radius: 9999px;
      pointer-events: none;
      box-shadow: 0 0 12px currentColor, 0 0 22px currentColor;
      animation: fireworkSpark3D 1.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .firework-core-flash {
      position: absolute;
      width: 36px;
      height: 36px;
      border-radius: 9999px;
      pointer-events: none;
      background: radial-gradient(circle, #ffffff 0%, rgba(253,224,71,0.8) 45%, transparent 75%);
      animation: fireworkCoreFlash 0.65s ease-out forwards;
    }
