
.modal-publicar {
    max-width: 1020px;
    display: grid;
    grid-template-columns: 340px 1fr;
    max-height: 92vh;
    overflow: hidden;
    padding: 0;
    animation: publicarEntra 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes publicarEntra {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}

/* Panel izquierdo oscuro con vista previa en vivo */
.publicar-lateral {
    position: relative;
    overflow: hidden;
    background: #050303;
    color: #fff;
    padding: 40px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
}

.pl-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: blobMover 12s ease-in-out infinite alternate;
}

.pl-b1 { width: 240px; height: 240px; background: var(--morado); top: -80px; right: -90px; }
.pl-b2 { width: 220px; height: 220px; background: #c9a53d; bottom: -90px; left: -70px; animation-delay: -5s; }

.publicar-lateral > * { position: relative; z-index: 1; }
.publicar-lateral > .pl-blob { position: absolute; z-index: 0; }

.pl-etiqueta {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
}

.pl-titulo {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 30px;
    line-height: 1.1;
}

.pl-titulo em { color: var(--acento); }

.pv-tarjeta {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    padding: 12px 12px 16px;
    animation: pvFlotar 5s ease-in-out infinite;
}

@keyframes pvFlotar {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-8px) rotate(1deg); }
}

.pv-imagen {
    aspect-ratio: 3 / 4;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 10px, rgba(255,255,255,.1) 10px 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    margin-bottom: 12px;
}

.pv-imagen img { width: 100%; height: 100%; object-fit: cover; }

.pv-tarjeta h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.pv-marca { font-family: var(--serif); font-style: italic; font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-bottom: 6px; }
.pv-tarjeta strong { font-size: 15px; }
.pl-nota { font-family: var(--serif); font-style: italic; font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* Panel derecho: formulario */
.publicar-cuerpo {
    position: relative;
    padding: 44px 46px 34px;
    overflow-y: auto;
}

.publicar-etiqueta {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--acento);
    font-weight: 700;
    margin-bottom: 6px;
}

.publicar-cuerpo h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 30px;
    margin-bottom: 18px;
}

.publicar-progreso { display: flex; gap: 8px; margin-bottom: 10px; }

.publicar-progreso span {
    flex: 1;
    height: 3px;
    background: var(--linea-oscura);
    position: relative;
    overflow: hidden;
}

.publicar-progreso span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--negro), var(--acento));
    transform: translateX(-101%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.publicar-progreso span.activo::after { transform: none; }

.publicar-paso-texto { font-size: 12px; color: var(--niebla); margin-bottom: 22px; }

.publicar-paso { display: none; }
.publicar-paso.activo { display: block; animation: pasoEntra 0.45s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes pasoEntra {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: none; }
}

.publicar-pie { display: flex; gap: 12px; margin-top: 24px; }
.publicar-pie .btn-ancho { flex: 1; }
.publicar-pie .btn-negro { flex: 1; }

.publicar-resumen {
    font-size: 13px;
    color: var(--niebla);
    background: var(--hueso);
    padding: 12px 14px;
    border-left: 3px solid var(--acento);
}

.publicar-bloqueo { text-align: center; padding: 40px 10px; }
.publicar-bloqueo h3 { font-size: 24px; margin-bottom: 10px; }
.publicar-bloqueo p { color: var(--niebla); line-height: 1.6; margin-bottom: 24px; }

/* Éxito */
.publicar-exito { text-align: center; padding: 30px 10px 10px; }
.publicar-exito h3 { font-size: 28px; margin: 14px 0 8px; }
.publicar-exito p { color: var(--niebla); line-height: 1.6; }

.check-grande {
    width: 84px;
    height: 84px;
    color: var(--acento);
    display: inline-block;
}

.check-grande circle,
.check-grande path {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: trazar 0.9s 0.1s ease forwards;
}

.check-grande path { animation-delay: 0.5s; stroke-dasharray: 50; stroke-dashoffset: 50; }



/* Chips de talla y color */
.chip-sel {
    padding: 9px 16px;
    border: 1px solid var(--linea-oscura);
    border-radius: 20px;
    font-size: 13px;
    background: var(--blanco);
    color: var(--negro);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip-sel:hover { border-color: var(--negro); transform: translateY(-2px); }
.chip-sel:active { transform: scale(0.95); }

.chip-sel.activo {
    background: var(--negro);
    color: var(--blanco);
    border-color: var(--negro);
    animation: chipPop 0.35s cubic-bezier(0.2, 1.5, 0.4, 1);
}



.punto-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(128, 128, 128, 0.5);
}

@media (max-width: 860px) {
    .modal-publicar { grid-template-columns: 1fr; }
    .publicar-lateral { display: none; }
    .publicar-cuerpo { padding: 36px 24px 28px; }
}
