
    /* =========================
       JARDÍN DE LUZ
       ========================= */
    body.tc-template-jardin_luz {
      --tc-jl-bg: #f7f4ef;
      --tc-jl-gold: #c7a46a;
      --tc-jl-sage: #8ea892;
      --tc-jl-text: #5c5348;
    }

    body.tc-template-jardin_luz .tc-inv-root,
    body.tc-template-jardin_luz .tc-preview,
    body.tc-template-jardin_luz .tc-preview-card,
    #tc_preview.tc-template-jardin_luz {
      background: linear-gradient(180deg, #f8f5ef 0%, #f3eee7 100%);
      color: var(--tc-jl-text);
    }

    body.tc-template-jardin_luz .tc-chip,
    #tc_preview.tc-template-jardin_luz .tc-chip,
    .tc-preview-card.tc-template-jardin_luz .tc-chip {
      background: rgba(255,255,255,.65);
      border: 1px solid rgba(199,164,106,.45);
      color: var(--tc-jl-text);
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 11px;
    }

    body.tc-template-jardin_luz .tc-inv-title,
    body.tc-template-jardin_luz h1,
    body.tc-template-jardin_luz h2,
    body.tc-template-jardin_luz h3,
    #tc_preview.tc-template-jardin_luz h2,
    .tc-preview-card.tc-template-jardin_luz h3 {
      color: var(--tc-primary);
      letter-spacing: .2px;
    }

    body.tc-template-jardin_luz .tc-msg,
    #tc_preview.tc-template-jardin_luz .tc-msg,
    .tc-preview-card.tc-template-jardin_luz .tc-msg {
      background: rgba(255,255,255,.55);
      border: 1px solid rgba(199,164,106,.18);
      border-radius: 14px;
      color: var(--tc-jl-text);
      box-shadow: 0 10px 30px rgba(0,0,0,.05);
    }

    body.tc-template-jardin_luz .tc-photo-wrap,
    #tc_preview.tc-template-jardin_luz .tc-photo-wrap,
    .tc-preview-card.tc-template-jardin_luz .tc-photo-wrap {
      border: 1px solid rgba(199,164,106,.22);
      border-radius: 18px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 12px 30px rgba(0,0,0,.06);
    }

    body.tc-template-jardin_luz .tc-line strong,
    #tc_preview.tc-template-jardin_luz .tc-line strong,
    .tc-preview-card.tc-template-jardin_luz p strong {
      color: var(--tc-secondary);
    }

    body.tc-template-jardin_luz .tc-inv-card,
    body.tc-template-jardin_luz .tc-preview-card,
    #tc_preview.tc-template-jardin_luz {
      border-radius: 22px;
      box-shadow: 0 14px 40px rgba(0,0,0,.07);
      border: 1px solid rgba(199,164,106,.18);
      position: relative;
      overflow: hidden;
    }

    body.tc-template-jardin_luz .tc-inv-card:before,
    body.tc-template-jardin_luz .tc-preview-card:before,
    #tc_preview.tc-template-jardin_luz:before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at top left, rgba(142,168,146,.10), transparent 28%),
        radial-gradient(circle at bottom right, rgba(199,164,106,.10), transparent 30%);
    }

    #tc_preview.tc-template-jardin_luz .tc-overlay {
      background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.18) 100%);
      color: var(--tc-jl-text);
    }

    #tc_preview.tc-template-jardin_luz .tc-line,
    #tc_preview.tc-template-jardin_luz .tc-msg,
    #tc_preview.tc-template-jardin_luz .tc-chip {
      color: var(--tc-jl-text);
    }

    /* =========================
       NOCHE DORADA
       ========================= */
    body.tc-template-noche_dorada {
      --tc-nd-bg-1: #0f1117;
      --tc-nd-bg-2: #1a1d26;
      --tc-nd-panel: rgba(19, 22, 31, 0.92);
      --tc-nd-text: #f5efe6;
      --tc-nd-border: rgba(212, 175, 55, 0.24);
      --tc-nd-glow: rgba(212, 175, 55, 0.10);
    }

    body.tc-template-noche_dorada .tc-inv-root,
    body.tc-template-noche_dorada .tc-preview,
    body.tc-template-noche_dorada .tc-preview-card,
    #tc_preview.tc-template-noche_dorada {
      background:
        linear-gradient(160deg, var(--tc-nd-bg-1) 0%, var(--tc-nd-bg-2) 100%);
      color: var(--tc-nd-text);
    }

    body.tc-template-noche_dorada .tc-inv-card,
    body.tc-template-noche_dorada .tc-preview-card,
    #tc_preview.tc-template-noche_dorada {
      border-radius: 24px;
      border: 1px solid var(--tc-nd-border);
      box-shadow:
        0 18px 50px rgba(0,0,0,.32),
        inset 0 1px 0 rgba(255,255,255,.03);
      position: relative;
      overflow: hidden;
    }

    body.tc-template-noche_dorada .tc-inv-card:before,
    body.tc-template-noche_dorada .tc-preview-card:before,
    #tc_preview.tc-template-noche_dorada:before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at top right, var(--tc-nd-glow), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255,255,255,.04), transparent 22%);
    }

    body.tc-template-noche_dorada .tc-chip,
    #tc_preview.tc-template-noche_dorada .tc-chip,
    .tc-preview-card.tc-template-noche_dorada .tc-chip {
      background: rgba(212,175,55,.08);
      border: 1px solid rgba(212,175,55,.35);
      color: var(--tc-secondary);
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 11px;
    }

    body.tc-template-noche_dorada .tc-inv-title,
    body.tc-template-noche_dorada h1,
    body.tc-template-noche_dorada h2,
    body.tc-template-noche_dorada h3,
    #tc_preview.tc-template-noche_dorada h2,
    .tc-preview-card.tc-template-noche_dorada h3 {
      color: var(--tc-primary);
      letter-spacing: .2px;
      text-shadow: 0 2px 10px rgba(0,0,0,.18);
    }

    body.tc-template-noche_dorada .tc-line,
    #tc_preview.tc-template-noche_dorada .tc-line,
    .tc-preview-card.tc-template-noche_dorada p {
      color: var(--tc-nd-text);
    }

    body.tc-template-noche_dorada .tc-line strong,
    #tc_preview.tc-template-noche_dorada .tc-line strong,
    .tc-preview-card.tc-template-noche_dorada p strong {
      color: var(--tc-secondary);
    }

    body.tc-template-noche_dorada .tc-msg,
    #tc_preview.tc-template-noche_dorada .tc-msg,
    .tc-preview-card.tc-template-noche_dorada .tc-msg {
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 16px;
      color: var(--tc-nd-text);
      box-shadow: 0 12px 30px rgba(0,0,0,.18);
    }

    body.tc-template-noche_dorada .tc-photo-wrap,
    #tc_preview.tc-template-noche_dorada .tc-photo-wrap,
    .tc-preview-card.tc-template-noche_dorada .tc-photo-wrap {
      border: 1px solid rgba(212,175,55,.22);
      border-radius: 18px;
      overflow: hidden;
      background: #0b0d12;
      box-shadow: 0 12px 32px rgba(0,0,0,.28);
    }

    #tc_preview.tc-template-noche_dorada .tc-overlay {
      background:
        linear-gradient(180deg, rgba(10,13,19,.20) 0%, rgba(10,13,19,.08) 100%);
      color: var(--tc-nd-text);
    }

    #tc_preview.tc-template-noche_dorada .tc-line,
    #tc_preview.tc-template-noche_dorada .tc-msg,
    #tc_preview.tc-template-noche_dorada .tc-chip {
      color: var(--tc-nd-text);
    }
    
    /* =========================
   PERLA ROSÉ
   ========================= */
    body.tc-template-perla_rose {
      --tc-pr-bg-1: #fff8fb;
      --tc-pr-bg-2: #f4e9ef;
      --tc-pr-text: #6c5a63;
      --tc-pr-accent: #d8b7c3;
    }
    
    body.tc-template-perla_rose .tc-inv-root,
    body.tc-template-perla_rose .tc-preview,
    body.tc-template-perla_rose .tc-preview-card,
    #tc_preview.tc-template-perla_rose {
      background: linear-gradient(180deg, var(--tc-pr-bg-1) 0%, var(--tc-pr-bg-2) 100%);
      color: var(--tc-pr-text);
    }
    
    body.tc-template-perla_rose .tc-inv-card,
    body.tc-template-perla_rose .tc-preview-card,
    #tc_preview.tc-template-perla_rose {
      border-radius: 24px;
      border: 1px solid rgba(216,183,195,.22);
      box-shadow: 0 14px 38px rgba(0,0,0,.08);
      position: relative;
      overflow: hidden;
    }
    
    body.tc-template-perla_rose .tc-inv-card:before,
    body.tc-template-perla_rose .tc-preview-card:before,
    #tc_preview.tc-template-perla_rose:before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at top left, rgba(255,255,255,.45), transparent 30%),
        radial-gradient(circle at bottom right, rgba(216,183,195,.18), transparent 32%);
    }
    
    body.tc-template-perla_rose .tc-chip,
    #tc_preview.tc-template-perla_rose .tc-chip,
    .tc-preview-card.tc-template-perla_rose .tc-chip {
      background: rgba(255,255,255,.68);
      border: 1px solid rgba(216,183,195,.42);
      color: var(--tc-pr-text);
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 11px;
    }
    
    body.tc-template-perla_rose .tc-inv-title,
    body.tc-template-perla_rose h1,
    body.tc-template-perla_rose h2,
    body.tc-template-perla_rose h3,
    #tc_preview.tc-template-perla_rose h2,
    .tc-preview-card.tc-template-perla_rose h3 {
      color: var(--tc-primary);
      letter-spacing: .2px;
      text-shadow: 0 1px 6px rgba(255,255,255,.28);
    }
    
    body.tc-template-perla_rose .tc-line,
    #tc_preview.tc-template-perla_rose .tc-line,
    .tc-preview-card.tc-template-perla_rose p {
      color: var(--tc-pr-text);
    }
    
    body.tc-template-perla_rose .tc-line strong,
    #tc_preview.tc-template-perla_rose .tc-line strong,
    .tc-preview-card.tc-template-perla_rose p strong {
      color: var(--tc-secondary);
    }
    
    body.tc-template-perla_rose .tc-msg,
    #tc_preview.tc-template-perla_rose .tc-msg,
    .tc-preview-card.tc-template-perla_rose .tc-msg {
      background: rgba(255,255,255,.58);
      border: 1px solid rgba(216,183,195,.18);
      border-radius: 16px;
      color: var(--tc-pr-text);
      box-shadow: 0 10px 24px rgba(0,0,0,.04);
    }
    
    body.tc-template-perla_rose .tc-photo-wrap,
    #tc_preview.tc-template-perla_rose .tc-photo-wrap,
    .tc-preview-card.tc-template-perla_rose .tc-photo-wrap {
      border: 1px solid rgba(216,183,195,.20);
      border-radius: 18px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 10px 24px rgba(0,0,0,.05);
    }
    
    #tc_preview.tc-template-perla_rose .tc-overlay {
      background: linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.12) 100%);
      color: var(--tc-pr-text);
    }
    
    #tc_preview.tc-template-perla_rose .tc-line,
    #tc_preview.tc-template-perla_rose .tc-msg,
    #tc_preview.tc-template-perla_rose .tc-chip {
      color: var(--tc-pr-text);
    }
    
    /* =========================
   BOSQUE IMPERIAL
   ========================= */
    body.tc-template-bosque_imperial {
      --tc-bi-bg-1: #0f1f1a;
      --tc-bi-bg-2: #1f3a31;
      --tc-bi-text: #ecf2ee;
      --tc-bi-accent: #a88c4a;
    }
    
    body.tc-template-bosque_imperial .tc-inv-root,
    body.tc-template-bosque_imperial .tc-preview,
    body.tc-template-bosque_imperial .tc-preview-card,
    #tc_preview.tc-template-bosque_imperial {
      background: linear-gradient(160deg, var(--tc-bi-bg-1) 0%, var(--tc-bi-bg-2) 100%);
      color: var(--tc-bi-text);
    }
    
    body.tc-template-bosque_imperial .tc-inv-card,
    body.tc-template-bosque_imperial .tc-preview-card,
    #tc_preview.tc-template-bosque_imperial {
      border-radius: 24px;
      border: 1px solid rgba(168,140,74,.24);
      box-shadow: 0 18px 50px rgba(0,0,0,.24);
      position: relative;
      overflow: hidden;
    }
    
    body.tc-template-bosque_imperial .tc-inv-card:before,
    body.tc-template-bosque_imperial .tc-preview-card:before,
    #tc_preview.tc-template-bosque_imperial:before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at top left, rgba(168,140,74,.14), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255,255,255,.04), transparent 24%);
    }
    
    body.tc-template-bosque_imperial .tc-chip,
    #tc_preview.tc-template-bosque_imperial .tc-chip,
    .tc-preview-card.tc-template-bosque_imperial .tc-chip {
      background: rgba(168,140,74,.10);
      border: 1px solid rgba(168,140,74,.36);
      color: var(--tc-secondary);
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 11px;
    }
    
    body.tc-template-bosque_imperial .tc-inv-title,
    body.tc-template-bosque_imperial h1,
    body.tc-template-bosque_imperial h2,
    body.tc-template-bosque_imperial h3,
    #tc_preview.tc-template-bosque_imperial h2,
    .tc-preview-card.tc-template-bosque_imperial h3 {
      color: var(--tc-primary);
      letter-spacing: .2px;
      text-shadow: 0 2px 10px rgba(0,0,0,.18);
    }
    
    body.tc-template-bosque_imperial .tc-line,
    #tc_preview.tc-template-bosque_imperial .tc-line,
    .tc-preview-card.tc-template-bosque_imperial p {
      color: var(--tc-bi-text);
    }
    
    body.tc-template-bosque_imperial .tc-line strong,
    #tc_preview.tc-template-bosque_imperial .tc-line strong,
    .tc-preview-card.tc-template-bosque_imperial p strong {
      color: var(--tc-secondary);
    }
    
    body.tc-template-bosque_imperial .tc-msg,
    #tc_preview.tc-template-bosque_imperial .tc-msg,
    .tc-preview-card.tc-template-bosque_imperial .tc-msg {
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 16px;
      color: var(--tc-bi-text);
      box-shadow: 0 12px 30px rgba(0,0,0,.18);
    }
    
    body.tc-template-bosque_imperial .tc-photo-wrap,
    #tc_preview.tc-template-bosque_imperial .tc-photo-wrap,
    .tc-preview-card.tc-template-bosque_imperial .tc-photo-wrap {
      border: 1px solid rgba(168,140,74,.22);
      border-radius: 18px;
      overflow: hidden;
      background: #0d1512;
      box-shadow: 0 12px 32px rgba(0,0,0,.28);
    }
    
    #tc_preview.tc-template-bosque_imperial .tc-overlay {
      background: linear-gradient(180deg, rgba(7,18,14,.16) 0%, rgba(7,18,14,.06) 100%);
      color: var(--tc-bi-text);
    }
    
    /* =========================
       MARFIL NOCTURNO
       ========================= */
    body.tc-template-marfil_nocturno {
      --tc-mn-bg-1: #faf6ef;
      --tc-mn-bg-2: #ebe2d4;
      --tc-mn-text: #4e463f;
      --tc-mn-accent: #493f35;
    }
    
    body.tc-template-marfil_nocturno .tc-inv-root,
    body.tc-template-marfil_nocturno .tc-preview,
    body.tc-template-marfil_nocturno .tc-preview-card,
    #tc_preview.tc-template-marfil_nocturno {
      background: linear-gradient(180deg, var(--tc-mn-bg-1) 0%, var(--tc-mn-bg-2) 100%);
      color: var(--tc-mn-text);
    }
    
    body.tc-template-marfil_nocturno .tc-inv-card,
    body.tc-template-marfil_nocturno .tc-preview-card,
    #tc_preview.tc-template-marfil_nocturno {
      border-radius: 24px;
      border: 1px solid rgba(73,63,53,.14);
      box-shadow: 0 14px 38px rgba(0,0,0,.08);
      position: relative;
      overflow: hidden;
    }
    
    body.tc-template-marfil_nocturno .tc-inv-card:before,
    body.tc-template-marfil_nocturno .tc-preview-card:before,
    #tc_preview.tc-template-marfil_nocturno:before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at top right, rgba(255,255,255,.38), transparent 28%),
        radial-gradient(circle at bottom left, rgba(73,63,53,.05), transparent 24%);
    }
    
    body.tc-template-marfil_nocturno .tc-chip,
    #tc_preview.tc-template-marfil_nocturno .tc-chip,
    .tc-preview-card.tc-template-marfil_nocturno .tc-chip {
      background: rgba(255,255,255,.70);
      border: 1px solid rgba(73,63,53,.16);
      color: var(--tc-mn-text);
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 11px;
    }
    
    body.tc-template-marfil_nocturno .tc-inv-title,
    body.tc-template-marfil_nocturno h1,
    body.tc-template-marfil_nocturno h2,
    body.tc-template-marfil_nocturno h3,
    #tc_preview.tc-template-marfil_nocturno h2,
    .tc-preview-card.tc-template-marfil_nocturno h3 {
      color: var(--tc-primary);
      letter-spacing: .2px;
    }
    
    body.tc-template-marfil_nocturno .tc-line,
    #tc_preview.tc-template-marfil_nocturno .tc-line,
    .tc-preview-card.tc-template-marfil_nocturno p {
      color: var(--tc-mn-text);
    }
    
    body.tc-template-marfil_nocturno .tc-line strong,
    #tc_preview.tc-template-marfil_nocturno .tc-line strong,
    .tc-preview-card.tc-template-marfil_nocturno p strong {
      color: var(--tc-secondary);
    }
    
    body.tc-template-marfil_nocturno .tc-msg,
    #tc_preview.tc-template-marfil_nocturno .tc-msg,
    .tc-preview-card.tc-template-marfil_nocturno .tc-msg {
      background: rgba(255,255,255,.58);
      border: 1px solid rgba(73,63,53,.10);
      border-radius: 16px;
      color: var(--tc-mn-text);
      box-shadow: 0 10px 24px rgba(0,0,0,.04);
    }
    
    body.tc-template-marfil_nocturno .tc-photo-wrap,
    #tc_preview.tc-template-marfil_nocturno .tc-photo-wrap,
    .tc-preview-card.tc-template-marfil_nocturno .tc-photo-wrap {
      border: 1px solid rgba(73,63,53,.10);
      border-radius: 18px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 10px 24px rgba(0,0,0,.05);
    }
    
    #tc_preview.tc-template-marfil_nocturno .tc-overlay {
      background: linear-gradient(180deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.10) 100%);
      color: var(--tc-mn-text);
    }
    
    /* =========================
   ORO CEREMONIAL
       ========================= */
    body.tc-template-oro_ceremonial{
      --tc-oc-bg-1:#0c1118;
      --tc-oc-bg-2:#182435;
      --tc-oc-text:#f7f1e6;
    }
    body.tc-template-oro_ceremonial .tc-inv-root,
    body.tc-template-oro_ceremonial .tc-preview,
    body.tc-template-oro_ceremonial .tc-preview-card,
    #tc_preview.tc-template-oro_ceremonial{
      background:linear-gradient(160deg,var(--tc-oc-bg-1) 0%, var(--tc-oc-bg-2) 100%);
      color:var(--tc-oc-text);
    }
    body.tc-template-oro_ceremonial .tc-inv-card,
    body.tc-template-oro_ceremonial .tc-preview-card,
    #tc_preview.tc-template-oro_ceremonial{
      border-radius:24px;
      border:1px solid rgba(212,175,55,.24);
      box-shadow:
        0 18px 50px rgba(0,0,0,.30),
        inset 0 1px 0 rgba(255,255,255,.03);
      position:relative;
      overflow:hidden;
    }
    body.tc-template-oro_ceremonial .tc-inv-card:before,
    body.tc-template-oro_ceremonial .tc-preview-card:before,
    #tc_preview.tc-template-oro_ceremonial:before{
      content:"";
      position:absolute;
      inset:0;
      pointer-events:none;
      background:
        radial-gradient(circle at top right, rgba(212,175,55,.12), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255,255,255,.04), transparent 22%);
    }
    body.tc-template-oro_ceremonial .tc-chip,
    #tc_preview.tc-template-oro_ceremonial .tc-chip,
    .tc-preview-card.tc-template-oro_ceremonial .tc-chip{
      background:rgba(212,175,55,.08);
      border:1px solid rgba(212,175,55,.36);
      color:var(--tc-secondary);
      text-transform:uppercase;
      letter-spacing:1px;
      font-size:11px;
    }
    body.tc-template-oro_ceremonial .tc-inv-title,
    body.tc-template-oro_ceremonial h1,
    body.tc-template-oro_ceremonial h2,
    body.tc-template-oro_ceremonial h3,
    #tc_preview.tc-template-oro_ceremonial h2,
    .tc-preview-card.tc-template-oro_ceremonial h3{
      color:var(--tc-primary);
      letter-spacing:.2px;
      text-shadow:0 2px 10px rgba(0,0,0,.18);
    }
    body.tc-template-oro_ceremonial .tc-line,
    #tc_preview.tc-template-oro_ceremonial .tc-line,
    .tc-preview-card.tc-template-oro_ceremonial p{
      color:var(--tc-oc-text);
    }
    body.tc-template-oro_ceremonial .tc-line strong,
    #tc_preview.tc-template-oro_ceremonial .tc-line strong,
    .tc-preview-card.tc-template-oro_ceremonial p strong{
      color:var(--tc-secondary);
    }
    body.tc-template-oro_ceremonial .tc-msg,
    #tc_preview.tc-template-oro_ceremonial .tc-msg,
    .tc-preview-card.tc-template-oro_ceremonial .tc-msg{
      background:rgba(255,255,255,.04);
      border:1px solid rgba(255,255,255,.08);
      border-radius:16px;
      color:var(--tc-oc-text);
      box-shadow:0 12px 30px rgba(0,0,0,.18);
    }
    body.tc-template-oro_ceremonial .tc-photo-wrap,
    #tc_preview.tc-template-oro_ceremonial .tc-photo-wrap,
    .tc-preview-card.tc-template-oro_ceremonial .tc-photo-wrap{
      border:1px solid rgba(212,175,55,.22);
      border-radius:18px;
      overflow:hidden;
      background:#0b0f14;
      box-shadow:0 12px 32px rgba(0,0,0,.28);
    }
    #tc_preview.tc-template-oro_ceremonial .tc-overlay{
      background:linear-gradient(180deg, rgba(8,12,18,.16) 0%, rgba(8,12,18,.06) 100%);
      color:var(--tc-oc-text);
    }
    
    /* =========================
       VELVET ROMANCE
       ========================= */
    body.tc-template-velvet_romance{
      --tc-vr-bg-1:#2a0f1c;
      --tc-vr-bg-2:#4a1630;
      --tc-vr-text:#f8eef2;
    }
    body.tc-template-velvet_romance .tc-inv-root,
    body.tc-template-velvet_romance .tc-preview,
    body.tc-template-velvet_romance .tc-preview-card,
    #tc_preview.tc-template-velvet_romance{
      background:linear-gradient(160deg,var(--tc-vr-bg-1) 0%, var(--tc-vr-bg-2) 100%);
      color:var(--tc-vr-text);
    }
    body.tc-template-velvet_romance .tc-inv-card,
    body.tc-template-velvet_romance .tc-preview-card,
    #tc_preview.tc-template-velvet_romance{
      border-radius:24px;
      border:1px solid rgba(232,182,198,.20);
      box-shadow:0 18px 50px rgba(0,0,0,.28);
      position:relative;
      overflow:hidden;
    }
    body.tc-template-velvet_romance .tc-inv-card:before,
    body.tc-template-velvet_romance .tc-preview-card:before,
    #tc_preview.tc-template-velvet_romance:before{
      content:"";
      position:absolute;
      inset:0;
      pointer-events:none;
      background:
        radial-gradient(circle at top left, rgba(232,182,198,.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255,255,255,.04), transparent 24%);
    }
    body.tc-template-velvet_romance .tc-chip,
    #tc_preview.tc-template-velvet_romance .tc-chip,
    .tc-preview-card.tc-template-velvet_romance .tc-chip{
      background:rgba(255,255,255,.06);
      border:1px solid rgba(232,182,198,.26);
      color:var(--tc-secondary);
      text-transform:uppercase;
      letter-spacing:1px;
      font-size:11px;
    }
    body.tc-template-velvet_romance .tc-inv-title,
    body.tc-template-velvet_romance h1,
    body.tc-template-velvet_romance h2,
    body.tc-template-velvet_romance h3,
    #tc_preview.tc-template-velvet_romance h2,
    .tc-preview-card.tc-template-velvet_romance h3{
      color:var(--tc-primary);
      letter-spacing:.2px;
      text-shadow:0 2px 10px rgba(0,0,0,.16);
    }
    body.tc-template-velvet_romance .tc-line,
    #tc_preview.tc-template-velvet_romance .tc-line,
    .tc-preview-card.tc-template-velvet_romance p{
      color:var(--tc-vr-text);
    }
    body.tc-template-velvet_romance .tc-line strong,
    #tc_preview.tc-template-velvet_romance .tc-line strong,
    .tc-preview-card.tc-template-velvet_romance p strong{
      color:var(--tc-secondary);
    }
    body.tc-template-velvet_romance .tc-msg,
    #tc_preview.tc-template-velvet_romance .tc-msg,
    .tc-preview-card.tc-template-velvet_romance .tc-msg{
      background:rgba(255,255,255,.05);
      border:1px solid rgba(255,255,255,.08);
      border-radius:16px;
      color:var(--tc-vr-text);
      box-shadow:0 12px 30px rgba(0,0,0,.16);
    }
    body.tc-template-velvet_romance .tc-photo-wrap,
    #tc_preview.tc-template-velvet_romance .tc-photo-wrap,
    .tc-preview-card.tc-template-velvet_romance .tc-photo-wrap{
      border:1px solid rgba(232,182,198,.18);
      border-radius:18px;
      overflow:hidden;
      background:#210b15;
      box-shadow:0 12px 32px rgba(0,0,0,.24);
    }
    #tc_preview.tc-template-velvet_romance .tc-overlay{
      background:linear-gradient(180deg, rgba(22,6,14,.12) 0%, rgba(22,6,14,.04) 100%);
      color:var(--tc-vr-text);
    }
    
    /* =========================
       AURORA PASTEL
       ========================= */
    body.tc-template-aurora_pastel{
      --tc-ap-bg-1:#fff8fc;
      --tc-ap-bg-2:#f2f6ff;
      --tc-ap-text:#6b6170;
    }
    body.tc-template-aurora_pastel .tc-inv-root,
    body.tc-template-aurora_pastel .tc-preview,
    body.tc-template-aurora_pastel .tc-preview-card,
    #tc_preview.tc-template-aurora_pastel{
      background:linear-gradient(180deg,var(--tc-ap-bg-1) 0%, var(--tc-ap-bg-2) 100%);
      color:var(--tc-ap-text);
    }
    body.tc-template-aurora_pastel .tc-inv-card,
    body.tc-template-aurora_pastel .tc-preview-card,
    #tc_preview.tc-template-aurora_pastel{
      border-radius:24px;
      border:1px solid rgba(217,184,234,.22);
      box-shadow:0 14px 38px rgba(0,0,0,.08);
      position:relative;
      overflow:hidden;
    }
    body.tc-template-aurora_pastel .tc-inv-card:before,
    body.tc-template-aurora_pastel .tc-preview-card:before,
    #tc_preview.tc-template-aurora_pastel:before{
      content:"";
      position:absolute;
      inset:0;
      pointer-events:none;
      background:
        radial-gradient(circle at top left, rgba(217,184,234,.20), transparent 30%),
        radial-gradient(circle at bottom right, rgba(186,220,255,.20), transparent 32%),
        radial-gradient(circle at center top, rgba(255,255,255,.35), transparent 26%);
    }
    body.tc-template-aurora_pastel .tc-chip,
    #tc_preview.tc-template-aurora_pastel .tc-chip,
    .tc-preview-card.tc-template-aurora_pastel .tc-chip{
      background:rgba(255,255,255,.72);
      border:1px solid rgba(217,184,234,.34);
      color:var(--tc-ap-text);
      text-transform:uppercase;
      letter-spacing:1px;
      font-size:11px;
    }
    body.tc-template-aurora_pastel .tc-inv-title,
    body.tc-template-aurora_pastel h1,
    body.tc-template-aurora_pastel h2,
    body.tc-template-aurora_pastel h3,
    #tc_preview.tc-template-aurora_pastel h2,
    .tc-preview-card.tc-template-aurora_pastel h3{
      color:var(--tc-primary);
      letter-spacing:.2px;
    }
    body.tc-template-aurora_pastel .tc-line,
    #tc_preview.tc-template-aurora_pastel .tc-line,
    .tc-preview-card.tc-template-aurora_pastel p{
      color:var(--tc-ap-text);
    }
    body.tc-template-aurora_pastel .tc-line strong,
    #tc_preview.tc-template-aurora_pastel .tc-line strong,
    .tc-preview-card.tc-template-aurora_pastel p strong{
      color:var(--tc-secondary);
    }
    body.tc-template-aurora_pastel .tc-msg,
    #tc_preview.tc-template-aurora_pastel .tc-msg,
    .tc-preview-card.tc-template-aurora_pastel .tc-msg{
      background:rgba(255,255,255,.60);
      border:1px solid rgba(217,184,234,.16);
      border-radius:16px;
      color:var(--tc-ap-text);
      box-shadow:0 10px 24px rgba(0,0,0,.04);
    }
    body.tc-template-aurora_pastel .tc-photo-wrap,
    #tc_preview.tc-template-aurora_pastel .tc-photo-wrap,
    .tc-preview-card.tc-template-aurora_pastel .tc-photo-wrap{
      border:1px solid rgba(217,184,234,.18);
      border-radius:18px;
      overflow:hidden;
      background:#fff;
      box-shadow:0 10px 24px rgba(0,0,0,.05);
    }
    #tc_preview.tc-template-aurora_pastel .tc-overlay{
      background:linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.12) 100%);
      color:var(--tc-ap-text);
    }
    
    /* =========================
       CIELO DE NÁCAR
       ========================= */
    body.tc-template-cielo_de_nacar{
      --tc-cn-bg-1:#fbfdff;
      --tc-cn-bg-2:#eef3f9;
      --tc-cn-text:#56606b;
    }
    body.tc-template-cielo_de_nacar .tc-inv-root,
    body.tc-template-cielo_de_nacar .tc-preview,
    body.tc-template-cielo_de_nacar .tc-preview-card,
    #tc_preview.tc-template-cielo_de_nacar{
      background:linear-gradient(180deg,var(--tc-cn-bg-1) 0%, var(--tc-cn-bg-2) 100%);
      color:var(--tc-cn-text);
    }
    body.tc-template-cielo_de_nacar .tc-inv-card,
    body.tc-template-cielo_de_nacar .tc-preview-card,
    #tc_preview.tc-template-cielo_de_nacar{
      border-radius:24px;
      border:1px solid rgba(184,200,216,.22);
      box-shadow:0 14px 38px rgba(0,0,0,.08);
      position:relative;
      overflow:hidden;
    }
    body.tc-template-cielo_de_nacar .tc-inv-card:before,
    body.tc-template-cielo_de_nacar .tc-preview-card:before,
    #tc_preview.tc-template-cielo_de_nacar:before{
      content:"";
      position:absolute;
      inset:0;
      pointer-events:none;
      background:
        radial-gradient(circle at top right, rgba(184,200,216,.20), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255,255,255,.42), transparent 26%);
    }
    body.tc-template-cielo_de_nacar .tc-chip,
    #tc_preview.tc-template-cielo_de_nacar .tc-chip,
    .tc-preview-card.tc-template-cielo_de_nacar .tc-chip{
      background:rgba(255,255,255,.76);
      border:1px solid rgba(184,200,216,.28);
      color:var(--tc-cn-text);
      text-transform:uppercase;
      letter-spacing:1px;
      font-size:11px;
    }
    body.tc-template-cielo_de_nacar .tc-inv-title,
    body.tc-template-cielo_de_nacar h1,
    body.tc-template-cielo_de_nacar h2,
    body.tc-template-cielo_de_nacar h3,
    #tc_preview.tc-template-cielo_de_nacar h2,
    .tc-preview-card.tc-template-cielo_de_nacar h3{
      color:var(--tc-primary);
      letter-spacing:.2px;
    }
    body.tc-template-cielo_de_nacar .tc-line,
    #tc_preview.tc-template-cielo_de_nacar .tc-line,
    .tc-preview-card.tc-template-cielo_de_nacar p{
      color:var(--tc-cn-text);
    }
    body.tc-template-cielo_de_nacar .tc-line strong,
    #tc_preview.tc-template-cielo_de_nacar .tc-line strong,
    .tc-preview-card.tc-template-cielo_de_nacar p strong{
      color:var(--tc-secondary);
    }
    body.tc-template-cielo_de_nacar .tc-msg,
    #tc_preview.tc-template-cielo_de_nacar .tc-msg,
    .tc-preview-card.tc-template-cielo_de_nacar .tc-msg{
      background:rgba(255,255,255,.62);
      border:1px solid rgba(184,200,216,.16);
      border-radius:16px;
      color:var(--tc-cn-text);
      box-shadow:0 10px 24px rgba(0,0,0,.04);
    }
    body.tc-template-cielo_de_nacar .tc-photo-wrap,
    #tc_preview.tc-template-cielo_de_nacar .tc-photo-wrap,
    .tc-preview-card.tc-template-cielo_de_nacar .tc-photo-wrap{
      border:1px solid rgba(184,200,216,.18);
      border-radius:18px;
      overflow:hidden;
      background:#fff;
      box-shadow:0 10px 24px rgba(0,0,0,.05);
    }
    #tc_preview.tc-template-cielo_de_nacar .tc-overlay{
      background:linear-gradient(180deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.10) 100%);
      color:var(--tc-cn-text);
    }
    
    /* =========================
       COMPONENTES FINALES COMPARTIDOS
       ========================= */
    body.tc-invitation-single .tc-rsvp-wrap,
    body.tc-invitation-single .tc-inv-map,
    body.tc-invitation-single .tc-countdown-wrap{
      margin-top:18px;
    }
    
    body.tc-invitation-single .tc-rsvp-wrap{
      display:block !important;
      visibility:visible !important;
      opacity:1 !important;
      padding:14px;
      border-radius:18px;
      background:rgba(255,255,255,.06);
      border:1px solid rgba(255,255,255,.12);
      box-shadow:0 10px 24px rgba(0,0,0,.08);
    }
    
    body.tc-invitation-single .tc-rsvp-notice{
      margin:0 0 12px;
      padding:12px 14px;
      border-radius:14px;
      background:rgba(255,255,255,.10);
      border:1px solid rgba(255,255,255,.14);
      color:var(--tc-secondary);
      font-weight:700;
    }
    
    body.tc-invitation-single .tc-rsvp-grid{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:12px;
    }
    
    body.tc-invitation-single .tc-rsvp-form{
      display:block !important;
      visibility:visible !important;
      opacity:1 !important;
    }
    
    body.tc-invitation-single .tc-rsvp-form > *{
      visibility:visible !important;
    }
        
    body.tc-invitation-single .tc-rsvp-form label{
      display:block;
      margin:0 0 6px;
      font-size:13px;
      font-weight:700;
      color:var(--tc-secondary) !important;
    }
    
    body.tc-invitation-single .tc-rsvp-form input:not([type="checkbox"]):not([type="radio"]),
    body.tc-invitation-single .tc-rsvp-form input[type="number"],
    body.tc-invitation-single .tc-rsvp-form select,
    body.tc-invitation-single .tc-rsvp-form textarea{
      width:100%;
      box-sizing:border-box;
      border:1px solid rgba(255,255,255,.12) !important;
      border-radius:12px !important;
      padding:10px 14px !important;
      background:rgba(255,255,255,.08) !important;
      color:var(--tc-secondary) !important;
      font-size:14px !important;
      box-shadow:none !important;
    }
    
    body.tc-invitation-single .tc-rsvp-form textarea{
      min-height:110px;
      resize:vertical;
    }
    
    body.tc-invitation-single .tc-rsvp-form input::placeholder,
    body.tc-invitation-single .tc-rsvp-form textarea::placeholder{
      color:rgba(255,255,255,.68) !important;
    }
    
    body.tc-invitation-single .tc-rsvp-form select{
      appearance:none !important;
      -webkit-appearance:none !important;
      -moz-appearance:none !important;
      padding-right:42px !important;
      background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
      background-repeat:no-repeat !important;
      background-position:right 14px center !important;
      background-size:16px !important;
    }

    /* En navegadores de escritorio el menú nativo puede usar fondo blanco.
       Forzamos texto oscuro para que ambas opciones sean legibles. */
    body.tc-invitation-single .tc-rsvp-form select option,
    body.tc-invitation-single .tc-rsvp-form select optgroup{
      background:#ffffff !important;
      color:#172033 !important;
      -webkit-text-fill-color:#172033 !important;
    }
    
    body.tc-invitation-single .tc-rsvp-btn,
    body.tc-invitation-single .tc-rsvp-submit{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:100%;
      border:1px solid var(--tc-cta-border) !important;
      background:var(--tc-cta-bg) !important;
      color:var(--tc-cta-text) !important;
      border-radius:14px !important;
      padding:13px 16px !important;
      font-weight:800 !important;
      text-decoration:none !important;
      box-shadow:0 12px 24px rgba(0,0,0,.12);
      cursor:pointer;
    }
    
    body.tc-invitation-single .tc-rsvp-submit{
      margin-top:12px;
    }
    
    /* FIX CTA: conservar gradiente en la invitación final */
    body.tc-invitation-single .tc-rsvp-btn,
    body.tc-invitation-single .tc-rsvp-submit{
      background:var(--tc-cta-bg, var(--tc-secondary)) !important;
      background-image:linear-gradient(
        135deg,
        var(--tc-cta-bg, var(--tc-secondary)) 0%,
        var(--tc-primary) 135%
      ) !important;
      color:var(--tc-cta-text) !important;
    }
    
    /* Templates claros */
    body.tc-template-jardin_luz .tc-rsvp-wrap,
    body.tc-template-perla_rose .tc-rsvp-wrap,
    body.tc-template-marfil_nocturno .tc-rsvp-wrap,
    body.tc-template-aurora_pastel .tc-rsvp-wrap,
    body.tc-template-cielo_de_nacar .tc-rsvp-wrap{
      background:rgba(255,255,255,.52);
      border:1px solid rgba(0,0,0,.06);
    }
    
    body.tc-template-jardin_luz .tc-rsvp-notice,
    body.tc-template-perla_rose .tc-rsvp-notice,
    body.tc-template-marfil_nocturno .tc-rsvp-notice,
    body.tc-template-aurora_pastel .tc-rsvp-notice,
    body.tc-template-cielo_de_nacar .tc-rsvp-notice{
      background:rgba(255,255,255,.72);
      border:1px solid rgba(0,0,0,.08);
      color:#374151;
    }
    
    body.tc-template-jardin_luz .tc-rsvp-form label,
    body.tc-template-perla_rose .tc-rsvp-form label,
    body.tc-template-marfil_nocturno .tc-rsvp-form label,
    body.tc-template-aurora_pastel .tc-rsvp-form label,
    body.tc-template-cielo_de_nacar .tc-rsvp-form label{
      color:#374151 !important;
    }
    
    body.tc-template-jardin_luz .tc-rsvp-form input:not([type="checkbox"]):not([type="radio"]),
    body.tc-template-jardin_luz .tc-rsvp-form input[type="number"],
    body.tc-template-jardin_luz .tc-rsvp-form select,
    body.tc-template-jardin_luz .tc-rsvp-form textarea,
    body.tc-template-perla_rose .tc-rsvp-form input:not([type="checkbox"]):not([type="radio"]),
    body.tc-template-perla_rose .tc-rsvp-form input[type="number"],
    body.tc-template-perla_rose .tc-rsvp-form select,
    body.tc-template-perla_rose .tc-rsvp-form textarea,
    body.tc-template-marfil_nocturno .tc-rsvp-form input:not([type="checkbox"]):not([type="radio"]),
    body.tc-template-marfil_nocturno .tc-rsvp-form input[type="number"],
    body.tc-template-marfil_nocturno .tc-rsvp-form select,
    body.tc-template-marfil_nocturno .tc-rsvp-form textarea,
    body.tc-template-aurora_pastel .tc-rsvp-form input:not([type="checkbox"]):not([type="radio"]),
    body.tc-template-aurora_pastel .tc-rsvp-form input[type="number"],
    body.tc-template-aurora_pastel .tc-rsvp-form select,
    body.tc-template-aurora_pastel .tc-rsvp-form textarea,
    body.tc-template-cielo_de_nacar .tc-rsvp-form input:not([type="checkbox"]):not([type="radio"]),
    body.tc-template-cielo_de_nacar .tc-rsvp-form input[type="number"],
    body.tc-template-cielo_de_nacar .tc-rsvp-form select,
    body.tc-template-cielo_de_nacar .tc-rsvp-form textarea{
      background:rgba(255,255,255,.78) !important;
      border:1px solid rgba(0,0,0,.08) !important;
      color:#374151 !important;
    }
    
    body.tc-template-jardin_luz .tc-rsvp-form input::placeholder,
    body.tc-template-jardin_luz .tc-rsvp-form textarea::placeholder,
    body.tc-template-perla_rose .tc-rsvp-form input::placeholder,
    body.tc-template-perla_rose .tc-rsvp-form textarea::placeholder,
    body.tc-template-marfil_nocturno .tc-rsvp-form input::placeholder,
    body.tc-template-marfil_nocturno .tc-rsvp-form textarea::placeholder,
    body.tc-template-aurora_pastel .tc-rsvp-form input::placeholder,
    body.tc-template-aurora_pastel .tc-rsvp-form textarea::placeholder,
    body.tc-template-cielo_de_nacar .tc-rsvp-form input::placeholder,
    body.tc-template-cielo_de_nacar .tc-rsvp-form textarea::placeholder{
      color:rgba(55,65,81,.68) !important;
    }

    @media (max-width:767px){
      body.tc-invitation-single .tc-rsvp-grid{
        grid-template-columns:1fr;
      }
    }
    
    ';
    
    echo '
    /* =========================
       OVERRIDES FINALES SINGLE
       ========================= */
    body.tc-invitation-single .tc-inv-root{
      width:min(100%, 430px);
      max-width:430px;
      margin:0 auto;
      padding:0 !important;
      background:transparent !important;
      border:0 !important;
      border-radius:0 !important;
      box-shadow:none !important;
    }
    
    body.tc-invitation-single .elementor-widget-shortcode,
    body.tc-invitation-single .elementor-widget-shortcode .elementor-widget-container,
    body.tc-invitation-single .elementor-widget-shortcode .elementor-shortcode{
      width:100% !important;
      max-width:none !important;
    }
    
    body.tc-invitation-single .tc-inv-root::before,
    body.tc-invitation-single .tc-inv-root::after{
      pointer-events:none;
    }
    
    body.tc-invitation-single .tc-inv-card,
    body.tc-invitation-single .tc-preview-card{
      width:min(100%, 430px) !important;
      max-width:430px !important;
      padding:0 !important;
      box-sizing:border-box !important;
    }
    
    
    body.tc-invitation-single .tc-photo-wrap img,
    body.tc-invitation-single .tc-inv-user-img{
      width:100% !important;
      height:100% !important;
      object-fit:cover !important;
      object-position:var(--tc-img-focus-x, 50%) var(--tc-img-focus-y, 35%) !important;
      transform:scale(var(--tc-img-zoom, 1)) !important;
      transform-origin:var(--tc-img-focus-x, 50%) var(--tc-img-focus-y, 35%) !important;
      display:block !important;
    }
    
    body.tc-invitation-single .tc-preview-watermark{
      display:none !important;
    }

    body.tc-invitation-single [data-tc-final-card="1"] > .tc-overlay > .tc-chip{
      display:none !important;
    }
    
    @media (max-width:767px){
      body.tc-invitation-single .tc-inv-root{
        width:100%;
        max-width:100%;
      }
      body.tc-invitation-single .tc-inv-title{
      text-align:left !important;
    }
    
    }
    ';

 echo '
  body.tc-invitation-single .tc-photo-wrap{
    width:100% !important;
    aspect-ratio:16 / 9 !important;
    height:auto !important;
    min-height:0 !important;
    overflow:hidden !important;
    line-height:0 !important;
  }

  body.tc-invitation-single .tc-photo-wrap img,
  body.tc-invitation-single .tc-inv-user-img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:var(--tc-img-focus-x, 50%) var(--tc-img-focus-y, 35%) !important;
    transform:scale(var(--tc-img-zoom, 1)) !important;
    transform-origin:var(--tc-img-focus-x, 50%) var(--tc-img-focus-y, 35%) !important;
    display:block !important;
  }
  
  body.tc-template-noche_dorada [data-tc-final-card="1"]{
    --tc-template-content-color:#f5efe6;
    --tc-template-effect-color:#d4af37;
  }

  body.tc-template-jardin_luz [data-tc-final-card="1"]{
    --tc-template-content-color:#5c5348;
    --tc-template-effect-color:#c7a46a;
  }

  body.tc-template-perla_rose [data-tc-final-card="1"]{
    --tc-template-content-color:#6c5a63;
    --tc-template-effect-color:#d8b7c3;
  }

  body.tc-template-bosque_imperial [data-tc-final-card="1"]{
    --tc-template-content-color:#ecf2ee;
    --tc-template-effect-color:#a88c4a;
  }

  body.tc-template-marfil_nocturno [data-tc-final-card="1"]{
    --tc-template-content-color:#4e463f;
    --tc-template-effect-color:#b89f7a;
  }

  body.tc-template-oro_ceremonial [data-tc-final-card="1"]{
    --tc-template-content-color:#fff8dc;
    --tc-template-effect-color:#d4af37;
  }

  body.tc-template-velvet_romance [data-tc-final-card="1"]{
    --tc-template-content-color:#f8eef2;
    --tc-template-effect-color:#e8b6c6;
  }

  body.tc-template-aurora_pastel [data-tc-final-card="1"]{
    --tc-template-content-color:#686276;
    --tc-template-effect-color:#d9b8ea;
  }

  body.tc-template-cielo_de_nacar [data-tc-final-card="1"]{
    --tc-template-content-color:#545e68;
    --tc-template-effect-color:#b8c8d8;
  }

  body.tc-invitation-single [data-tc-final-card="1"] .tc-inv-title,
  body.tc-invitation-single [data-tc-final-card="1"] .tc-msg,
  body.tc-invitation-single [data-tc-final-card="1"] .tc-line,
  body.tc-invitation-single [data-tc-final-card="1"] .tc-preview-extra-title{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
  }

  body.tc-invitation-single [data-tc-final-card="1"] .tc-inv-title{
    color:var(--tc-primary) !important;
    font-family:var(--tc-font) !important;
  }

  body.tc-invitation-single [data-tc-final-card="1"]{
      --tc-content-color: var(--tc-secondary);
      --tc-effect-color: var(--tc-template-effect-color, var(--tc-primary));
    }

    /* Título principal igual al preview */
    body.tc-invitation-single [data-tc-final-card="1"] .tc-inv-title,
    body.tc-invitation-single [data-tc-final-card="1"] h1,
    body.tc-invitation-single [data-tc-final-card="1"] h2,
    body.tc-invitation-single [data-tc-final-card="1"] h3{
      color:var(--tc-primary) !important;
      font-family:var(--tc-font) !important;
    }

    /* Labels importantes: Fecha, Hora, Lugar, Faltan */
    body.tc-invitation-single [data-tc-final-card="1"] .tc-line strong,
    body.tc-invitation-single [data-tc-final-card="1"] .tc-preview-extra-title{
      color:var(--tc-primary) !important;
    }

    /* Contenido editable: fecha, hora, lugar, mensaje */
    body.tc-invitation-single [data-tc-final-card="1"] .tc-line,
    body.tc-invitation-single [data-tc-final-card="1"] .tc-line span,
    body.tc-invitation-single [data-tc-final-card="1"] .tc-msg{
      color:var(--tc-secondary) !important;
    }

    /* Chip/template */
    body.tc-invitation-single [data-tc-final-card="1"] .tc-chip{
      color:var(--tc-secondary) !important;
    }

    /* Cuenta regresiva igual al preview */
    body.tc-invitation-single [data-tc-final-card="1"] .tc-preview-count-box strong{
      color:var(--tc-primary) !important;
    }

    body.tc-invitation-single [data-tc-final-card="1"] .tc-preview-count-box span{
      color:var(--tc-secondary) !important;
    }

    /* RSVP / formularios */
    body.tc-invitation-single [data-tc-final-card="1"] .tc-preview-rsvp-help,
    body.tc-invitation-single [data-tc-final-card="1"] .tc-rsvp-form label,
    body.tc-invitation-single [data-tc-final-card="1"] .tc-rsvp-form input,
    body.tc-invitation-single [data-tc-final-card="1"] .tc-rsvp-form select,
    body.tc-invitation-single [data-tc-final-card="1"] .tc-rsvp-form textarea{
      color:var(--tc-secondary) !important;
    }

  @media (max-width:767px){
    body.tc-invitation-single .tc-photo-wrap{
      aspect-ratio:16 / 9 !important;
      height:auto !important;
      min-height:0 !important;
    }
  }
          /* RSVP preview/editor/final - estructura vertical */
        #tc_preview .tc-preview-form-grid,
        .tc-preview-card .tc-preview-form-grid,
        body.tc-invitation-single [data-tc-final-card="1"] .tc-preview-form-grid{
            display:grid !important;
            grid-template-columns:1fr !important;
            gap:10px !important;
            width:100%;
        }

        #tc_preview .tc-preview-form-grid input,
        #tc_preview .tc-preview-form-grid select,
        #tc_preview .tc-preview-form-grid textarea,
        .tc-preview-card .tc-preview-form-grid input,
        .tc-preview-card .tc-preview-form-grid select,
        .tc-preview-card .tc-preview-form-grid textarea,
        body.tc-invitation-single [data-tc-final-card="1"] .tc-preview-form-grid input,
        body.tc-invitation-single [data-tc-final-card="1"] .tc-preview-form-grid select,
        body.tc-invitation-single [data-tc-final-card="1"] .tc-preview-form-grid textarea{
            width:100% !important;
            max-width:100% !important;
            box-sizing:border-box !important;
            display:block !important;
        }

        #tc_preview .tc-preview-form-grid textarea,
        .tc-preview-card .tc-preview-form-grid textarea,
        body.tc-invitation-single [data-tc-final-card="1"] .tc-preview-form-grid textarea{
            grid-column:1/-1 !important;
            min-height:92px;
            resize:none;
        }

        #tc_preview .tc-preview-rsvp-card,
        .tc-preview-card .tc-preview-rsvp-card,
        body.tc-invitation-single [data-tc-final-card="1"] .tc-preview-rsvp-card{
            width:100%;
            box-sizing:border-box;
        }

        #tc_preview .tc-preview-submit-btn,
        #tc_preview .tc-preview-cta-btn,
        .tc-preview-card .tc-preview-submit-btn,
        .tc-preview-card .tc-preview-cta-btn,
        body.tc-invitation-single [data-tc-final-card="1"] .tc-preview-submit-btn,
        body.tc-invitation-single [data-tc-final-card="1"] .tc-preview-cta-btn{
            width:100% !important;
        }
        
        /* RSVP real de la invitación final */
        body.tc-invitation-single [data-tc-final-card="1"] .tc-rsvp-wrap{
            width:100% !important;
            max-width:100% !important;
            box-sizing:border-box !important;
        }

        body.tc-invitation-single [data-tc-final-card="1"] .tc-rsvp-form{
            width:100% !important;
            max-width:100% !important;
            box-sizing:border-box !important;
        }

        body.tc-invitation-single [data-tc-final-card="1"] .tc-rsvp-grid{
            display:grid !important;
            grid-template-columns:1fr !important;
            gap:14px !important;
            width:100% !important;
            max-width:100% !important;
            box-sizing:border-box !important;
        }

        body.tc-invitation-single [data-tc-final-card="1"] .tc-rsvp-grid > div{
            width:100% !important;
            max-width:100% !important;
            min-width:0 !important;
            grid-column:1 / -1 !important;
            box-sizing:border-box !important;
        }

        body.tc-invitation-single [data-tc-final-card="1"] .tc-rsvp-form label{
            display:block !important;
            width:100% !important;
            margin:0 0 7px !important;
            line-height:1.3 !important;
        }

        body.tc-invitation-single [data-tc-final-card="1"] .tc-rsvp-form input,
        body.tc-invitation-single [data-tc-final-card="1"] .tc-rsvp-form select,
        body.tc-invitation-single [data-tc-final-card="1"] .tc-rsvp-form textarea{
            display:block !important;
            width:100% !important;
            max-width:100% !important;
            min-width:0 !important;
            box-sizing:border-box !important;
        }

        body.tc-invitation-single [data-tc-final-card="1"] .tc-rsvp-form textarea{
            min-height:110px !important;
            resize:vertical;
        }

        body.tc-invitation-single [data-tc-final-card="1"] .tc-rsvp-submit{
            width:100% !important;
            max-width:100% !important;
            display:flex !important;
            align-items:center !important;
            justify-content:center !important;
            text-align:center !important;
        }

        /* Paridad definitiva entre configurador, editor posterior y publicación. */
        #tc_preview,
        .tc-preview-card,
        body.tc-invitation-single [data-tc-final-card="1"]{
            width:min(100%, 430px) !important;
            max-width:430px !important;
            padding:0 !important;
            box-sizing:border-box !important;
        }

        #tc_preview > .tc-overlay,
        .tc-preview-card > .tc-overlay,
        body.tc-invitation-single [data-tc-final-card="1"] > .tc-overlay{
            width:100% !important;
            max-width:none !important;
            box-sizing:border-box !important;
        }

        body.tc-invitation-single [data-tc-final-card="1"] .tc-inv-title{
            max-width:100% !important;
            overflow-wrap:normal !important;
            word-break:normal !important;
            hyphens:none !important;
        }

        body.tc-invitation-single [data-tc-final-card="1"] .tc-countdown-title{
            color:var(--tc-primary) !important;
            font-family:var(--tc-font) !important;
        }

        body.tc-invitation-single [data-tc-final-card="1"] .tc-countdown-box strong{
            color:var(--tc-primary) !important;
            font-family:var(--tc-font) !important;
        }

        body.tc-invitation-single [data-tc-final-card="1"] .tc-countdown-box span{
            color:var(--tc-secondary) !important;
            font-family:var(--tc-font) !important;
        }
            
