/* =========================================================
   TIENDA PÚBLICA — estilo Fudo, rosa y blanco
   --rosa se inyecta desde "Mi tienda" (layouts/tienda)
   ========================================================= */

:root {
    --rosa: #e8557f;
    --rosa-suave: color-mix(in srgb, var(--rosa) 9%, white);
    --rosa-medio: color-mix(in srgb, var(--rosa) 25%, white);
    --rosa-oscuro: color-mix(in srgb, var(--rosa) 82%, black);
    --fondo: #fff8fa;
    --blanco: #ffffff;
    --texto: #2b2129;
    --texto-suave: #857880;
    --borde: #f3e6eb;
    --verde: #1f9d63;
    --rojo: #d94848;
    --ancho: 1080px;
    --sombra: 0 2px 10px rgba(120, 40, 70, .07);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.td-body {
    margin: 0;
    background: var(--fondo);
    color: var(--texto);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.td-body a { color: inherit; text-decoration: none; }
.td-body button { font-family: inherit; }
.td-body img { display: block; max-width: 100%; }

/* ---------- Barra superior ---------- */
.td-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--borde);
}

.td-nav-inner {
    max-width: var(--ancho);
    margin: 0 auto;
    height: 56px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.td-nav-marca {
    flex: 1;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-icono-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--texto);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}
.td-icono-btn:hover { background: var(--rosa-suave); }
.td-icono-btn svg { width: 22px; height: 22px; }

.td-contador {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--rosa);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.td-contador[data-vacio] { display: none; }

/* ---------- Menú lateral ---------- */
.td-drawer-fondo {
    position: fixed;
    inset: 0;
    background: rgba(43, 33, 41, .4);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.td-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 84vw);
    background: var(--blanco);
    z-index: 91;
    transform: translateX(-100%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    overflow-y: auto;
}
.td-drawer-abierto .td-drawer-fondo { opacity: 1; pointer-events: auto; }
.td-drawer-abierto .td-drawer { transform: none; }

.td-drawer-cabecera { display: flex; align-items: center; gap: 12px; padding: 0 8px 18px; border-bottom: 1px solid var(--borde); margin-bottom: 10px; }
.td-drawer-cabecera strong { display: block; font-size: 16px; }
.td-drawer-cabecera small { color: var(--texto-suave); }

.td-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 500;
}
.td-drawer-link:hover,
.td-drawer-link.activo { background: var(--rosa-suave); color: var(--rosa-oscuro); }
.td-drawer-sep { height: 1px; background: var(--borde); margin: 10px 0; }

/* ---------- Cabecera de la tienda ---------- */
.td-portada {
    height: 170px;
    background: linear-gradient(135deg, var(--rosa-medio), var(--rosa)) center/cover no-repeat;
}

.td-cabecera {
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 0 16px;
}

.td-cabecera-caja {
    background: var(--blanco);
    border-radius: 20px;
    box-shadow: var(--sombra);
    margin-top: -48px;
    position: relative;
    padding: 0 20px 18px;
    text-align: center;
}

.td-logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 4px solid var(--blanco);
    background: var(--rosa) center/cover no-repeat;
    margin: -44px auto 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    box-shadow: var(--sombra);
}

.td-titulo { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.td-slogan { color: var(--texto-suave); margin: 2px 0 12px; }

.td-datos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    font-size: 13px;
    color: var(--texto-suave);
}
.td-datos a:hover { color: var(--rosa-oscuro); }

.td-estado { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.td-estado::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.td-estado.abierto { color: var(--verde); }
.td-estado.cerrado { color: var(--rojo); }

.td-redes { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.td-red {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--rosa-suave);
    color: var(--rosa-oscuro);
    font-weight: 600;
    font-size: 13px;
}
.td-red svg { width: 16px; height: 16px; }
.td-red:hover { background: var(--rosa-medio); }

.td-aviso-cerrado {
    max-width: var(--ancho);
    margin: 14px auto 0;
    padding: 0 16px;
}
.td-aviso-cerrado div {
    background: #fdeaea;
    color: #a52a2a;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 500;
    text-align: center;
}

/* ---------- Pestañas de categorías (fijas) ---------- */
.td-tabs {
    position: sticky;
    top: 56px;
    z-index: 40;
    background: rgba(255, 248, 250, .96);
    backdrop-filter: blur(10px);
    margin-top: 18px;
    border-bottom: 1px solid var(--borde);
}

.td-tabs-inner {
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.td-tabs-lista {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    scroll-behavior: smooth;
}
.td-tabs-lista::-webkit-scrollbar { display: none; }

.td-tab {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--blanco);
    border: 1px solid var(--borde);
    color: var(--texto-suave);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}
.td-tab:hover { color: var(--texto); }
.td-tab.activo { background: var(--rosa); border-color: var(--rosa); color: #fff; }

.td-buscador {
    display: none;
    flex: 1;
    position: relative;
}
.td-buscando .td-tabs-lista { display: none; }
.td-buscando .td-buscador { display: block; }
.td-buscador input {
    width: 100%;
    padding: 9px 14px;
    border-radius: 20px;
    border: 1px solid var(--rosa-medio);
    font-size: 15px;
    outline: none;
    background: var(--blanco);
}
.td-buscador input:focus { border-color: var(--rosa); }

/* ---------- Catálogo ---------- */
.td-catalogo {
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 8px 16px 120px;
}

.td-seccion { scroll-margin-top: 120px; padding-top: 18px; }
.td-seccion-titulo { font-size: 22px; font-weight: 700; margin: 0; }
.td-seccion-desc { color: var(--texto-suave); font-size: 14px; margin: 2px 0 0; }

.td-productos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

.td-producto {
    display: flex;
    gap: 16px;
    width: 100%;
    padding: 16px;
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: 18px;
    text-align: left;
    cursor: pointer;
    color: var(--texto);
    transition: border-color .15s, box-shadow .15s, transform .1s;
}
.td-producto:hover { border-color: var(--rosa-medio); box-shadow: var(--sombra); }
.td-producto:active { transform: scale(.99); }
.td-producto[disabled] { cursor: default; }
.td-producto[disabled] .td-producto-foto,
.td-producto[disabled] .td-producto-nombre { opacity: .55; }

.td-producto-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.td-producto-nombre { font-weight: 600; font-size: 17px; }
.td-producto-desc {
    color: var(--texto-suave);
    font-size: 14px;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.td-producto-pie { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.td-precio { font-weight: 700; font-size: 17px; }
.td-etiqueta { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em; }
.td-etiqueta.sin-stock { background: #f3eff1; color: var(--texto-suave); }
.td-etiqueta.en-pedido { background: var(--rosa-suave); color: var(--rosa-oscuro); }

.td-producto-foto {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--rosa-suave) center/cover no-repeat;
}
.td-mas {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--rosa);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    border: 3px solid var(--blanco);
}
.td-producto-sin-foto .td-mas { position: static; border: 0; align-self: flex-end; }

.td-vacio { text-align: center; color: var(--texto-suave); padding: 50px 10px; }

/* ---------- Barra flotante "Ver pedido" ---------- */
.td-barra-pedido {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translate(-50%, 140%);
    width: min(520px, calc(100% - 32px));
    z-index: 60;
    background: var(--rosa);
    color: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--rosa) 40%, transparent);
    transition: transform .3s cubic-bezier(.2, .9, .3, 1.2);
}
.td-barra-pedido.visible { transform: translate(-50%, 0); }
.td-barra-pedido:hover { background: var(--rosa-oscuro); color: #fff; }
.td-barra-cant {
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .22);
    display: grid;
    place-items: center;
    font-size: 14px;
}
.td-barra-texto { flex: 1; }
.td-barra-pedido.rebote { animation: rebote .4s; }
@keyframes rebote { 40% { transform: translate(-50%, -6px); } }

/* ---------- Ficha de producto (sheet) ---------- */
.td-sheet-fondo {
    position: fixed;
    inset: 0;
    background: rgba(43, 33, 41, .45);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.td-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 81;
    background: var(--blanco);
    border-radius: 22px 22px 0 0;
    max-height: 92vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.2, .8, .3, 1);
    padding-bottom: env(safe-area-inset-bottom);
}
.td-sheet-abierto .td-sheet-fondo { opacity: 1; pointer-events: auto; }
.td-sheet-abierto .td-sheet { transform: none; }
.td-sheet-abierto { overflow: hidden; }

.td-sheet-foto { height: 260px; background: var(--rosa-suave) center/cover no-repeat; }
.td-sheet-foto[hidden] { display: none; }
.td-sheet-cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .95);
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--sombra);
    z-index: 2;
}
.td-sheet-cuerpo { padding: 20px 20px 8px; }
.td-sheet-cuerpo h3 { font-size: 21px; font-weight: 700; margin: 0; }
.td-sheet-cuerpo p { color: var(--texto-suave); margin: 6px 0 0; white-space: pre-line; }
.td-sheet-precio { font-size: 19px; font-weight: 700; margin-top: 10px; }
.td-sheet-stock { font-size: 13px; color: var(--texto-suave); margin-top: 2px; }

.td-sheet-acciones {
    position: sticky;
    bottom: 0;
    background: var(--blanco);
    padding: 14px 20px 18px;
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--borde);
}

.td-cantidad {
    display: flex;
    align-items: center;
    border: 1px solid var(--borde);
    border-radius: 14px;
    overflow: hidden;
}
.td-cantidad button {
    width: 44px;
    height: 50px;
    border: 0;
    background: transparent;
    font-size: 22px;
    color: var(--rosa);
    cursor: pointer;
}
.td-cantidad button:disabled { color: #d9cfd4; cursor: default; }
.td-cantidad span { min-width: 26px; text-align: center; font-weight: 700; font-size: 17px; }

.td-btn-agregar {
    flex: 1;
    border: 0;
    border-radius: 14px;
    background: var(--rosa);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    cursor: pointer;
    min-height: 50px;
}
.td-btn-agregar:hover { background: var(--rosa-oscuro); }
.td-btn-agregar:disabled { background: #d9cfd4; cursor: default; }

/* ---------- Aviso (toast) ---------- */
.td-toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translate(-50%, -20px);
    z-index: 100;
    background: var(--texto);
    color: #fff;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    max-width: calc(100% - 32px);
    text-align: center;
}
.td-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.td-toast.error { background: var(--rojo); }

/* ---------- Pie ---------- */
.td-pie {
    text-align: center;
    color: var(--texto-suave);
    font-size: 12px;
    padding: 20px 16px 110px;
}

/* ---------- Escritorio ---------- */
@media (min-width: 768px) {
    .td-portada { height: 240px; }
    .td-cabecera-caja { text-align: left; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; padding: 20px 24px; margin-top: -60px; }
    .td-logo { margin: -60px 0 0; width: 112px; height: 112px; grid-row: span 3; font-size: 42px; }
    .td-datos, .td-redes { justify-content: flex-start; }
    .td-redes { margin-top: 12px; }
    .td-titulo { font-size: 28px; }

    .td-productos { grid-template-columns: 1fr 1fr; gap: 14px; }
    .td-producto-foto { width: 140px; height: 140px; }

    .td-sheet {
        left: 50%;
        right: auto;
        bottom: auto;
        top: 50%;
        width: 480px;
        border-radius: 22px;
        transform: translate(-50%, -45%) scale(.96);
        opacity: 0;
        pointer-events: none;
        transition: transform .2s, opacity .2s;
        max-height: 88vh;
    }
    .td-sheet-abierto .td-sheet { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
    .td-sheet-foto { height: 300px; }
}

/* =========================================================
   PEDIDO / CHECKOUT / COMPROBANTE
   ========================================================= */
.td-pagina {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 16px 140px;
}
.td-pagina-ancha { max-width: var(--ancho); }

.td-pagina-titulo { font-size: 24px; font-weight: 700; margin: 4px 0 4px; }
.td-pagina-sub { color: var(--texto-suave); margin: 0 0 18px; }

.td-volver { display: inline-flex; align-items: center; gap: 6px; color: var(--texto-suave); font-weight: 500; font-size: 14px; }
.td-volver:hover { color: var(--rosa-oscuro); }

.td-card {
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
}
.td-card-titulo { font-size: 16px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.td-paso {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--rosa);
    color: #fff;
    font-size: 13px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.td-aviso {
    background: #fff6e5;
    color: #8a5a00;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 14px;
}
.td-aviso.error { background: #fdeaea; color: #a52a2a; }
.td-aviso p { margin: 0; }
.td-aviso p + p { margin-top: 4px; }

/* Ítems del pedido */
/* Cada producto es su propio recuadro, con la X para eliminar en la esquina */
.td-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; padding-top: 6px; }
.td-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: 16px;
    transition: opacity .2s;
}
.td-item-foto { width: 60px; height: 60px; border-radius: 12px; background: var(--rosa-suave) center/cover no-repeat; flex-shrink: 0; display: grid; place-items: center; font-size: 24px; }
.td-item-info { flex: 1; min-width: 0; }
.td-item-nombre { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-item-precio { font-size: 13px; color: var(--texto-suave); display: block; }
.td-item-eliminar {
    position: absolute;
    top: -9px;
    right: -9px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #f1c9c9;
    background: var(--blanco);
    color: var(--rojo);
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(43, 33, 41, .12);
    transition: background .15s, color .15s, transform .15s;
}
.td-item-eliminar svg { width: 12px; height: 12px; }
.td-item-eliminar:hover { background: var(--rojo); color: #fff; border-color: var(--rojo); transform: scale(1.08); }
.td-item-subtotal { font-weight: 700; white-space: nowrap; }
.td-item .td-cantidad { border-radius: 12px; }
.td-item .td-cantidad button { width: 34px; height: 36px; font-size: 18px; }
.td-item .td-cantidad span { min-width: 22px; font-size: 15px; }
.td-item-derecha { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* Totales */
.td-totales { display: flex; flex-direction: column; gap: 6px; }
.td-total-linea { display: flex; justify-content: space-between; color: var(--texto-suave); }
.td-total-linea.final { color: var(--texto); font-weight: 700; font-size: 18px; border-top: 1px solid var(--borde); padding-top: 10px; margin-top: 4px; }
.td-total-linea .gratis { color: var(--verde); font-weight: 600; }
.td-totales > .td-total-linea.final:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.td-nota-envio { font-size: 13px; color: var(--rosa-oscuro); background: var(--rosa-suave); border-radius: 10px; padding: 8px 12px; margin-top: 10px; }

/* Botón principal */
.td-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 14px;
    background: var(--rosa);
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    min-height: 54px;
    padding: 0 20px;
    cursor: pointer;
    text-align: center;
}
.td-btn:hover { background: var(--rosa-oscuro); }
.td-btn:disabled { background: #d9cfd4; cursor: default; }
.td-btn.secundario { background: var(--blanco); color: var(--texto) !important; border: 1px solid var(--borde); }
.td-btn.secundario:hover { border-color: var(--rosa-medio); }
.td-btn.whatsapp { background: #25d366; }
.td-btn.whatsapp:hover { background: #1ebe5b; }
.td-btn svg { width: 22px; height: 22px; }

.td-accion-fija {
    position: sticky;
    bottom: 0;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, var(--fondo) 25%);
    z-index: 5;
}

/* Formularios */
.td-campo { margin-bottom: 12px; }
.td-campo:last-child { margin-bottom: 0; }
.td-campo label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.td-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--borde);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: var(--blanco);
    color: var(--texto);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.td-input:focus { border-color: var(--rosa); box-shadow: 0 0 0 3px var(--rosa-suave); }
.td-input.invalido { border-color: var(--rojo); }
.td-error { color: var(--rojo); font-size: 13px; margin-top: 4px; }
.td-fila { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }

/* Opciones (entrega / pago) */
.td-opciones { display: grid; gap: 10px; }
.td-opcion {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--borde);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.td-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.td-opcion:has(input:checked) { border-color: var(--rosa); background: var(--rosa-suave); }
.td-opcion:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--rosa-medio); }
.td-opcion.deshabilitada { opacity: .5; cursor: not-allowed; }
.td-opcion-icono { font-size: 24px; width: 32px; text-align: center; flex-shrink: 0; }
.td-opcion-texto { flex: 1; min-width: 0; }
.td-opcion-texto strong { display: block; }
.td-opcion-texto small { color: var(--texto-suave); display: block; }
.td-opcion-precio { font-weight: 700; white-space: nowrap; }
.td-opcion-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--borde);
    flex-shrink: 0;
    display: grid;
    place-items: center;
}
.td-opcion:has(input:checked) .td-opcion-check { border-color: var(--rosa); background: var(--rosa); }
.td-opcion:has(input:checked) .td-opcion-check::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

.td-info-caja { background: var(--fondo); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--texto-suave); margin-top: 10px; }
.td-info-caja strong { color: var(--texto); }

/* Checkout en escritorio: formulario + resumen al costado */
.td-checkout { display: grid; gap: 14px; }
@media (min-width: 900px) {
    .td-checkout { grid-template-columns: 1fr 360px; align-items: start; }
    .td-checkout-resumen { position: sticky; top: 76px; }
    .td-accion-fija { position: static; background: none; padding: 4px 0 0; }
    .td-solo-movil { display: none; }
}
@media (max-width: 899px) {
    .td-solo-escritorio { display: none; }
}

/* Comprobante */
.td-exito { text-align: center; padding: 10px 0 18px; }
.td-exito-icono {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--rosa-suave);
    display: grid;
    place-items: center;
    font-size: 36px;
    margin: 0 auto 12px;
}
.td-exito h1 { font-size: 24px; font-weight: 700; margin: 0; }
.td-exito p { color: var(--texto-suave); margin: 6px 0 0; }
.td-numero-pedido { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 20px; background: var(--blanco); border: 1px solid var(--borde); font-weight: 700; }

.td-copiar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--fondo); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.td-copiar code { font-family: inherit; font-weight: 700; color: var(--texto); word-break: break-all; }
.td-copiar button { border: 0; background: var(--rosa); color: #fff; border-radius: 9px; padding: 7px 12px; font-weight: 600; font-size: 13px; cursor: pointer; flex-shrink: 0; }

.td-detalle-linea { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; }
.td-detalle-linea span:first-child { color: var(--texto-suave); }
.td-detalle-linea span:last-child { text-align: right; font-weight: 500; }

.td-carrito-vacio { text-align: center; padding: 60px 20px; }
.td-carrito-vacio div { font-size: 54px; }
.td-carrito-vacio p { color: var(--texto-suave); margin: 8px 0 20px; }

/* =========================================================
   PÁGINAS: info y contacto, mis trabajos, términos, ingreso
   ========================================================= */
.td-encabezado { text-align: center; padding: 26px 16px 8px; }
.td-encabezado h1 { font-size: 26px; font-weight: 700; margin: 0; }
.td-encabezado p { color: var(--texto-suave); margin: 4px 0 0; }

/* Info: tarjetas de datos */
.td-info-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .td-info-grid { grid-template-columns: 1fr 1fr; } }
.td-dato { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borde); }
.td-dato:last-child { border-bottom: 0; padding-bottom: 0; }
.td-dato:first-of-type { padding-top: 0; }
.td-dato-icono { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }
.td-dato strong { display: block; font-size: 14px; }
.td-dato span, .td-dato a { color: var(--texto-suave); font-size: 14px; }
.td-dato a:hover { color: var(--rosa-oscuro); }
.td-mapa { width: 100%; height: 240px; border: 0; border-radius: 14px; margin-top: 12px; background: var(--rosa-suave); }
.td-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.td-botones .td-btn { min-height: 48px; font-size: 14px; }
.td-chips-pago { display: flex; flex-wrap: wrap; gap: 8px; }
.td-chip-pago { padding: 7px 12px; border-radius: 20px; background: var(--rosa-suave); color: var(--rosa-oscuro); font-weight: 600; font-size: 13px; }

/* Mis trabajos: galería tipo Instagram */
.td-filtros-galeria { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 14px; justify-content: center; flex-wrap: wrap; }
.td-galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 768px) { .td-galeria { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.td-trabajo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: var(--rosa-suave) center/cover no-repeat;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.td-trabajo span {
    position: absolute;
    inset: auto 0 0 0;
    padding: 24px 10px 8px;
    background: linear-gradient(transparent, rgba(43, 33, 41, .7));
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    opacity: 0;
    transition: opacity .2s;
}
.td-trabajo:hover span { opacity: 1; }
@media (hover: none) { .td-trabajo span { opacity: 1; } }

.td-visor {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(20, 14, 18, .92);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}
.td-visor.abierto { display: flex; }
.td-visor img { max-width: 100%; max-height: 75vh; border-radius: 14px; object-fit: contain; }
.td-visor h3 { color: #fff; margin: 14px 0 2px; font-size: 18px; text-align: center; }
.td-visor p { color: rgba(255, 255, 255, .75); margin: 0; text-align: center; max-width: 560px; font-size: 14px; }
.td-visor button { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 24px; cursor: pointer; }

/* Términos */
.td-prosa h2 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.td-prosa p, .td-prosa li { color: var(--texto-suave); font-size: 15px; margin: 0; }
.td-prosa ul { padding-left: 18px; margin: 0; }
.td-prosa section + section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--borde); }

/* Ingreso */
.td-login { max-width: 400px; margin: 40px auto; padding: 0 16px 80px; }
.td-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texto-suave); margin: 4px 0 16px; }
