﻿/* =========================================================
   DietasDeTupper — Home Page Styles
   ========================================================= */

:root {
    --dtc-accent:       #e8732a;
    --dtc-accent-dark:  #c55d1e;
    --dtc-text:         #1a1a1a;
    --dtc-text-muted:   #6b7280;
    --dtc-border:       #e5e7eb;
    --dtc-bg-soft:      #f9fafb;
    --dtc-radius:       12px;
    --dtc-container:    1160px;
}


.dtc-home {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dtc-text);
}

.dtc-home-container {
    max-width: var(--dtc-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Cabecera de sección ──────────────────────────────────── */
.dtc-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.dtc-section-header h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    margin: 0;
    color: var(--dtc-text);
}

.dtc-section-header p {
    margin: 4px 0 0;
    color: var(--dtc-text-muted);
    font-size: 15px;
    max-width: 480px;
}

.dtc-ver-todas {
    font-size: 14px;
    font-weight: 600;
    color: var(--dtc-accent);
    text-decoration: none;
    white-space: nowrap;
}
.dtc-ver-todas:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   SLIDER
   ═══════════════════════════════════════════════════════════ */

.dtc-slider {
    position: relative;
    height: 65vh;
    min-height: 460px;
    max-height: 720px;
    overflow: hidden;
    background: #1a0a00;
}

/* Contenedor de slides */
.dtc-slides {
    position: relative;
    height: 100%;
}

/* Slide base */
.dtc-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity .7s ease;
    pointer-events: none;
}

.dtc-slide-active {
    opacity: 1;
    pointer-events: auto;
}

/* Slide de mensaje — fondo degradado de marca */
.dtc-slide-mensaje {
    background:
        radial-gradient(ellipse at 75% 50%, rgba(232,115,42,.2) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 80%, rgba(34,197,94,.12) 0%, transparent 45%),
        linear-gradient(135deg, #1a0a00 0%, #3d1a00 50%, #1a2a1a 100%);
}

/* Slide de receta — imagen de fondo */
.dtc-slide-receta {
    background: var(--slide-img) center/cover no-repeat;
}

.dtc-slide-receta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10,5,0,.85) 0%,
        rgba(10,5,0,.65) 50%,
        rgba(10,5,0,.2) 100%
    );
}

/* Contenido del slide */
.dtc-slide-content {
    position: relative;
    z-index: 1;
    max-width: var(--dtc-container);
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    max-width: 680px;
    padding-left: clamp(24px, 6vw, 80px);
}

.dtc-hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dtc-accent);
    margin: 0 0 16px;
}

.dtc-hero-title {
    font-size: clamp(28px, 4.5vw, 56px);
    font-weight: 900;
    line-height: 1.08;
    color: #fff;
    margin: 0 0 20px;
}

.dtc-hero-title em {
    font-style: normal;
    color: var(--dtc-accent);
}

.dtc-slide-receta-titulo {
    font-size: clamp(24px, 3.5vw, 44px);
}

.dtc-hero-desc {
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.7;
    color: rgba(255,255,255,.78);
    margin: 0 0 32px;
    max-width: 480px;
}

.dtc-btn-hero-primary {
    display: inline-block;
    padding: 13px 28px;
    background: var(--dtc-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s, transform .1s;
}
.dtc-btn-hero-primary:hover {
    background: var(--dtc-accent-dark);
    transform: translateY(-1px);
    color: #fff;
}

/* Dots de navegación */
.dtc-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dtc-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.dtc-slider-dot.dtc-dot-active,
.dtc-slider-dot:hover {
    background: var(--dtc-accent);
    transform: scale(1.3);
}

/* Flechas */
.dtc-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
    backdrop-filter: blur(4px);
}
.dtc-slider-arrow:hover { background: rgba(255,255,255,.25); }
.dtc-slider-prev { left: 20px; }
.dtc-slider-next { right: 20px; }

/* Botón outline (heredado por compatibilidad) */
.dtc-btn-hero-outline {
    display: inline-block;
    padding: 13px 24px;
    border: 2px solid rgba(255,255,255,.35);
    color: rgba(255,255,255,.85);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
.dtc-btn-hero-outline:hover {
    border-color: rgba(255,255,255,.7);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   PILARES
   ═══════════════════════════════════════════════════════════ */

.dtc-pilares {
    padding: 80px 0;
    background: var(--dtc-bg-soft);
}

.dtc-pilares .dtc-section-header {
    text-align: center;
    display: block;
    margin-bottom: 48px;
}

.dtc-pilares .dtc-section-header h2 {
    font-size: clamp(24px, 3.5vw, 34px);
}

.dtc-pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dtc-pilar {
    background: #fff;
    border-radius: var(--dtc-radius);
    border: 1px solid var(--dtc-border);
    padding: 28px 24px;
    text-decoration: none;
    color: var(--dtc-text);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    transition: box-shadow .15s, transform .1s;
}

.dtc-pilar-disponible:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.dtc-pilar-pronto {
    opacity: .72;
    cursor: default;
}

.dtc-pilar-icon {
    font-size: 36px;
    line-height: 1;
}

.dtc-pilar-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    width: fit-content;
}

.dtc-badge-ok {
    background: #dcfce7;
    color: #15803d;
}

.dtc-badge-pronto {
    background: #f3f4f6;
    color: #6b7280;
}

.dtc-pilar h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--dtc-text);
}

.dtc-pilar p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dtc-text-muted);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   CARRUSEL RECETAS
   ═══════════════════════════════════════════════════════════ */

.dtc-home-recetas {
    padding: 80px 0;
}

.dtc-home-recetas .dtc-home-container {
    margin-bottom: 0;
}

.dtc-recetas-carousel-wrap {
    margin-top: 28px;
    overflow: hidden;
    position: relative;
}

/* Fade en los extremos */
.dtc-recetas-carousel-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 80px;
    background: linear-gradient(to right, transparent, #fff);
    pointer-events: none;
    z-index: 1;
}

.dtc-recetas-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 24px 24px;
    scrollbar-width: none;
}
.dtc-recetas-carousel::-webkit-scrollbar { display: none; }

/* Tarjeta de receta */
.dtc-home-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    border-radius: var(--dtc-radius);
    border: 1px solid var(--dtc-border);
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: var(--dtc-text);
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s, transform .1s;
}
.dtc-home-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    transform: translateY(-2px);
    color: var(--dtc-text);
}

.dtc-home-card-img {
    height: 160px;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}
.dtc-home-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.dtc-home-card:hover .dtc-home-card-img img {
    transform: scale(1.04);
}

.dtc-home-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 36px;
    color: #d1d5db;
}

.dtc-home-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dtc-home-card-tipo {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dtc-accent);
}

.dtc-home-card-body h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dtc-home-card-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--dtc-text-muted);
    margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════
   TARJETAS CONOCIMIENTO
   ═══════════════════════════════════════════════════════════ */

.dtc-home-conocimiento {
    padding: 80px 0;
    background: var(--dtc-bg-soft);
}

.dtc-home-tarjetas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.dtc-home-tarjeta {
    background: #fff;
    border-radius: var(--dtc-radius);
    border: 1px solid var(--dtc-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dtc-home-tarjeta-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.dtc-home-tarjeta-icon {
    font-size: 24px;
    line-height: 1;
}

.dtc-home-tarjeta p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--dtc-text-muted);
    margin: 0;
}

/* Reutilizamos los colores de dtc-recipe.css */
.dtc-home-tarjeta.dtc-tarjeta-vitamina  { border-left: 3px solid #f59e0b; background: #fffbeb; }
.dtc-home-tarjeta.dtc-tarjeta-mineral   { border-left: 3px solid #3b82f6; background: #eff6ff; }
.dtc-home-tarjeta.dtc-tarjeta-acido_graso { border-left: 3px solid #14b8a6; background: #f0fdfa; }
.dtc-home-tarjeta.dtc-tarjeta-macro     { border-left: 3px solid #22c55e; background: #f0fdf4; }
.dtc-home-tarjeta.dtc-tarjeta-condicion { border-left: 3px solid #a855f7; background: #faf5ff; }

.dtc-home-conocimiento-note {
    font-size: 13px;
    color: var(--dtc-text-muted);
    text-align: center;
    font-style: italic;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   CTA FINAL
   ═══════════════════════════════════════════════════════════ */

.dtc-home-cta {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(135deg, #1a0a00, #3d1a00);
}

.dtc-home-cta h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 16px;
}

.dtc-home-cta p {
    font-size: 17px;
    color: rgba(255,255,255,.7);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .dtc-pilares-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dtc-home-tarjetas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dtc-hero { min-height: 70vh; }
    .dtc-pilares-grid { grid-template-columns: 1fr; }
    .dtc-home-tarjetas-grid { grid-template-columns: 1fr; }
    .dtc-recetas-carousel-wrap::after { display: none; }
    .dtc-pilares,
    .dtc-home-recetas,
    .dtc-home-conocimiento { padding: 52px 0; }
}

/* -- De temporada -- */
.dtc-home-temporada .dtc-section-header h2 { color: #15803d; }

.dtc-home-card-temp-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 16px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}

/* --- Slider temporada (archive) --- */
.dtc-filter-group--slider {
    align-items: center;
}
.dtc-slider-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.dtc-range-input {
    flex: 1;
    accent-color: #2e7d32;
    height: 4px;
    cursor: pointer;
    min-width: 100px;
    max-width: 200px;
}
.dtc-slider-label {
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   CARTA DE MENÚ  (menu-evento.php)
   ═══════════════════════════════════════════════════════════ */

.dtc-evento-nav {
    padding: 20px 0 4px;
}
.dtc-evento-nav-back {
    font-size: 13px;
    font-weight: 600;
    color: var(--dtc-text-muted);
    text-decoration: none;
    transition: color .15s;
}
.dtc-evento-nav-back:hover { color: var(--dtc-accent); }

/* ── Hero ── */
.dtc-evento-hero {
    margin: 16px 0 48px;
    padding: 36px 40px;
    background: linear-gradient(135deg, #fef3e8 0%, #fdf8f4 60%, #fff 100%);
    border: 1px solid #f0d9c4;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dtc-evento-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--dtc-accent);
    margin-bottom: 10px;
}

.dtc-evento-nombre {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.15;
}

.dtc-evento-meta {
    font-size: 15px;
    color: var(--dtc-text-muted);
    margin: 0;
}

/* Strip the bordered box from .dtc-recipe-salud when inside hero */
.dtc-evento-indicadores {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    flex-wrap: wrap;
}
.dtc-evento-indicadores .dtc-salud-item {
    background: rgba(255, 255, 255, .75);
}

/* Error state */
.dtc-evento-error {
    padding: 80px 24px;
    text-align: center;
    color: var(--dtc-text-muted);
}
.dtc-evento-error p { margin-bottom: 20px; font-size: 16px; }

/* ── Carta header ── */
.dtc-evento-carta {
    margin-bottom: 64px;
}

.dtc-evento-carta-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}
.dtc-evento-carta-linea {
    flex: 1;
    height: 1px;
    background: var(--dtc-border);
}
.dtc-evento-carta-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: #9ca3af;
    white-space: nowrap;
}

/* ── Platos ── */
.dtc-evento-platos {
    display: flex;
    flex-direction: column;
}

.dtc-evento-plato {
    display: flex;
    align-items: flex-start;
    border-top: 1px solid var(--dtc-border);
    padding: 36px 0;
}
.dtc-evento-plato:last-child {
    border-bottom: 1px solid var(--dtc-border);
}

.dtc-evento-plato-num {
    font-size: 52px;
    font-weight: 900;
    color: #f0deca;
    line-height: 1;
    width: 76px;
    flex-shrink: 0;
    padding-top: 6px;
    letter-spacing: -2px;
    user-select: none;
    font-variant-numeric: tabular-nums;
}

.dtc-evento-plato-link {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    text-decoration: none;
    color: inherit;
}

.dtc-evento-plato-img-wrap {
    width: 190px;
    height: 190px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--dtc-bg-soft);
    border: 1px solid var(--dtc-border);
}
.dtc-evento-plato-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.dtc-evento-plato-link:hover .dtc-evento-plato-img {
    transform: scale(1.05);
}
.dtc-evento-plato-img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
}

.dtc-evento-plato-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.dtc-evento-plato-curso {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--dtc-accent);
}

.dtc-evento-plato-titulo {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 800;
    color: #111;
    margin: 2px 0 0;
    line-height: 1.2;
    transition: color .15s;
}
.dtc-evento-plato-link:hover .dtc-evento-plato-titulo {
    color: var(--dtc-accent);
}

.dtc-evento-plato-desc {
    font-size: 14px;
    color: var(--dtc-text-muted);
    line-height: 1.55;
    margin: 6px 0 10px;
}

.dtc-evento-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}
.dtc-evento-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--dtc-bg-soft);
    color: var(--dtc-text-muted);
    border: 1px solid var(--dtc-border);
    white-space: nowrap;
}
.dtc-evento-badge--salud         { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.dtc-evento-badge--fodmap-verde  { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.dtc-evento-badge--fodmap-amarillo { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.dtc-evento-badge--fodmap-rojo   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

.dtc-evento-plato-cta {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dtc-accent);
    transition: letter-spacing .15s;
}
.dtc-evento-plato-link:hover .dtc-evento-plato-cta {
    letter-spacing: .04em;
}

@media (max-width: 680px) {
    .dtc-evento-hero { padding: 24px 20px; }
    .dtc-evento-plato-num { width: 44px; font-size: 34px; letter-spacing: -1px; }
    .dtc-evento-plato-link { flex-direction: column; gap: 16px; }
    .dtc-evento-plato-img-wrap { width: 100%; height: 210px; }
    .dtc-evento-plato-body { padding-top: 0; }
}

/* ── Bloque intro editable desde WP editor ── */
.dtc-page-editor-intro {
    max-width: 820px;
    margin: 0 auto 36px;
    padding: 0 24px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}
.dtc-page-editor-intro p { margin-bottom: 14px; }
.dtc-page-editor-intro h2,
.dtc-page-editor-intro h3 { margin-bottom: 10px; font-weight: 700; color: #111; }

/* =========================================================
   Programas de Menú — Planificador
   ========================================================= */

.dtc-pg-root {
    padding: 32px 0 64px;
}

.dtc-pg-loading {
    text-align: center;
    padding: 60px 0;
    color: var(--dtc-text-muted);
    font-size: 15px;
}

/* ── Cabecera de vista ─── */
.dtc-pg-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.dtc-pg-title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    margin: 0;
    flex: 1;
}
.dtc-pg-back {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--dtc-text-muted);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: color .15s;
}
.dtc-pg-back:hover { color: var(--dtc-accent); }
.dtc-pg-new-btn { margin-left: auto; white-space: nowrap; }

/* ── Empty state ─── */
.dtc-pg-empty {
    background: var(--dtc-bg-soft);
    border: 1px dashed var(--dtc-border);
    border-radius: var(--dtc-radius);
    padding: 48px 32px;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}
.dtc-pg-empty-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dtc-text);
}
.dtc-pg-empty p { color: var(--dtc-text-muted); margin: 0; font-size: 15px; }

/* ── Tabla de programas ─── */
.dtc-pg-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--dtc-border);
    border-radius: var(--dtc-radius);
    background: #fff;
}
.dtc-pg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.dtc-pg-table thead th {
    background: var(--dtc-bg-soft);
    padding: 12px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--dtc-text-muted);
    border-bottom: 2px solid var(--dtc-border);
    white-space: nowrap;
}
.dtc-pg-table tbody tr {
    border-bottom: 1px solid var(--dtc-border);
    transition: background .12s;
}
.dtc-pg-table tbody tr:last-child { border-bottom: none; }
.dtc-pg-table tbody tr:hover { background: #fafafa; }
.dtc-pg-table td {
    padding: 14px 20px;
    vertical-align: middle;
    line-height: 1.4;
}
.dtc-pg-td-nombre {
    font-weight: 600;
    font-size: 15px;
    min-width: 160px;
}
.dtc-pg-td-center {
    text-align: center;
    white-space: nowrap;
    color: var(--dtc-text);
    font-size: 13px;
}
.dtc-pg-td-acciones {
    white-space: nowrap;
    text-align: right;
}
.dtc-pg-td-acciones .dtc-btn-outline-sm { margin-left: 6px; }
.dtc-pg-btn-del {
    background: none;
    border: 1px solid #fca5a5;
    color: #dc2626;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 13px;
    cursor: pointer;
    margin-left: 6px;
    transition: background .15s;
}
.dtc-pg-btn-del:hover { background: #fef2f2; }
.dtc-pg-btn-del {
    background: none;
    border: 1px solid #fca5a5;
    color: #dc2626;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.dtc-pg-btn-del:hover { background: #fef2f2; }

/* ── Badges / estado ─── */
.dtc-pg-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}
.dtc-pg-badge--borrador { background: #fef3c7; color: #92400e; }
.dtc-pg-badge--activo   { background: #d1fae5; color: #065f46; }

/* ── Formulario ─── */
.dtc-pg-form { max-width: 640px; }
.dtc-pg-hint {
    font-size: 14px;
    color: var(--dtc-text-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}
.dtc-pg-form-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.dtc-pg-form-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dtc-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 20px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--dtc-border);
}

/* ── Matriz de platos ─── */
.dtc-pg-matrix {
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 4px;
}
.dtc-pg-matrix th,
.dtc-pg-matrix td {
    padding: 8px 16px;
    border: 1px solid var(--dtc-border);
    text-align: center;
}
.dtc-pg-matrix th { background: var(--dtc-bg-soft); font-weight: 600; }
.dtc-pg-matrix td:first-child { text-align: left; font-weight: 500; }
.dtc-pg-matrix input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

/* ── Tabla de comensales ─── */
.dtc-pg-table-wrap { overflow: auto; margin: 8px 0 0; }
.dtc-pg-comensales-table {
    border-collapse: collapse;
    font-size: 14px;
    min-width: 360px;
}
.dtc-pg-comensales-table th,
.dtc-pg-comensales-table td {
    padding: 8px 16px;
    border: 1px solid var(--dtc-border);
    text-align: center;
}
.dtc-pg-comensales-table th { background: var(--dtc-bg-soft); font-weight: 600; }
.dtc-pg-dia-cell { text-align: left; font-weight: 500; }
.dtc-pg-slot-input { width: 72px; }

/* ── Vista instancia: tabla horizontal días × platos ─── */
.dtc-pg-inst-wrap {
    overflow-x: auto;
    border: 1px solid var(--dtc-border);
    border-radius: var(--dtc-radius);
    background: #fff;
    margin-top: 8px;
}
.dtc-pg-inst-table {
    border-collapse: collapse;
    font-size: 13px;
    min-width: 500px;
    width: 100%;
}
.dtc-pg-inst-table th,
.dtc-pg-inst-table td {
    border: 1px solid var(--dtc-border);
    padding: 0;
    vertical-align: top;
}
.dtc-pg-inst-th-dia {
    background: var(--dtc-bg-soft);
    padding: 10px 14px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--dtc-text-muted);
    white-space: nowrap;
    width: 90px;
}
.dtc-pg-inst-th-srv {
    padding: 8px 12px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-align: center;
    border-bottom: 2px solid var(--dtc-border);
}
.dtc-pg-inst-th-srv--comida { background: #fff7ed; color: #c2410c; }
.dtc-pg-inst-th-srv--cena   { background: #eff6ff; color: #1d4ed8; }
.dtc-pg-inst-th-tipo {
    background: var(--dtc-bg-soft);
    padding: 6px 12px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--dtc-text-muted);
    text-align: center;
    white-space: nowrap;
}
.dtc-pg-inst-td-dia {
    background: var(--dtc-bg-soft);
    padding: 12px 14px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    vertical-align: middle;
}
.dtc-pg-inst-td-recipe { padding: 10px 12px; min-width: 160px; max-width: 220px; }
.dtc-pg-inst-table tbody tr:hover .dtc-pg-inst-td-dia { background: #f3f4f6; }
.dtc-pg-inst-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dtc-pg-inst-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.dtc-pg-inst-cell-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dtc-pg-inst-cell-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--dtc-text);
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dtc-pg-inst-cell-name:hover { color: var(--dtc-accent); text-decoration: underline; }
.dtc-pg-swap-btn {
    align-self: flex-start;
    background: none;
    border: 1px solid var(--dtc-border);
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    color: var(--dtc-text-muted);
    white-space: nowrap;
    transition: border-color .15s, color .15s;
}
.dtc-pg-swap-btn:hover { border-color: var(--dtc-accent); color: var(--dtc-accent); }
.dtc-pg-swap-btn:disabled { opacity: .5; cursor: default; }
.dtc-pg-plato-vacio {
    font-size: 12px;
    color: var(--dtc-text-muted);
    display: block;
    text-align: center;
    padding: 8px 0;
}

/* ── Modal asignar al calendario ─── */
.dtc-pg-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dtc-pg-modal-box {
    background: #fff;
    border-radius: var(--dtc-radius);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.dtc-pg-modal-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
}

@media (max-width: 600px) {
    .dtc-pg-dias { grid-template-columns: 1fr; }
    .dtc-pg-table thead { display: none; }
    .dtc-pg-table tbody tr { display: block; padding: 12px 0; }
    .dtc-pg-table td { display: block; padding: 4px 16px; border: none; }
    .dtc-pg-td-nombre { font-size: 16px; padding-bottom: 6px; }
    .dtc-pg-td-acciones { padding-top: 8px; }
}
