/*
 * Kuro Omakase TV — carta editorial inspirada en la referencia Omakase Course.
 * Fondo oscuro tipo papel japonés, cabecera centrada y lista compacta de platos.
 * Todo queda encapsulado en .layout-kuro-omakase para no tocar otros diseños.
 */

.layout-kuro-omakase.ofctv-screen {
    background-color: #080807 !important;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(165, 125, 61, .12), transparent 48%),
        radial-gradient(ellipse at 0% 100%, rgba(165, 125, 61, .08), transparent 36%),
        linear-gradient(135deg, #080807 0%, #11100c 48%, #080807 100%) !important;
    color: #eee5d4;
    font-family: Georgia, "Times New Roman", serif;
}

/* La imagen ornamental va en el backdrop, debajo de la carta y encima del fondo. */
.layout-kuro-omakase .ofctv-backdrop {
    z-index: 0;
    opacity: 1;
    background-image: url("background-landscape.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.layout-kuro-omakase .ofctv-slide {
    z-index: 2;
    inset: clamp(42px, 4.5vw, 86px) clamp(75px, 15vw, 288px) clamp(34px, 3.5vw, 70px) clamp(75px, 14vw, 270px);
    gap: clamp(8px, .8vw, 17px);
}
.layout-kuro-omakase .ofctv-slide-header {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: clamp(5px, .65vw, 13px);
    min-height: 24%;
    padding: 0 0 clamp(8px, .8vw, 17px);
    border: 0;
    text-align: center;
}
.layout-kuro-omakase .ofctv-screen-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, .45vw, 9px);
    max-width: 100%;
    color: #d6b273;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(19px, 2.15vw, 42px);
    font-weight: 500;
    letter-spacing: .25em;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    opacity: .98;
}
.layout-kuro-omakase .ofctv-screen-logo {
    display: block;
    width: auto;
    max-width: clamp(78px, 10vw, 190px);
    max-height: clamp(48px, 7.5vw, 130px);
    object-fit: contain;
}
.layout-kuro-omakase .ofctv-category-heading {
    position: relative;
    width: 100%;
    text-align: center;
}
.layout-kuro-omakase .ofctv-category-heading::before {
    content: "✿";
    display: block;
    margin: 0 auto clamp(3px, .35vw, 8px);
    color: #b99256;
    font-size: clamp(15px, 1.15vw, 23px);
    line-height: 1;
    opacity: .9;
}
.layout-kuro-omakase .ofctv-category-heading h1 {
    margin: 0;
    color: #eee5d4;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3.55vw, 68px);
    font-weight: 400;
    letter-spacing: .075em;
    line-height: 1.05;
    text-transform: none;
}
.layout-kuro-omakase .ofctv-part-label {
    margin-top: 5px;
    color: #bba987;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(11px, .78vw, 15px);
    font-style: italic;
    letter-spacing: .07em;
}

/* Una sola columna: filas de lectura editorial, sin cajas ni tarjetas grandes. */
.layout-kuro-omakase .ofctv-family-items {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(var(--ofctv-item-rows, 5), minmax(0, 1fr));
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
}
.layout-kuro-omakase .ofctv-family-item {
    position: relative;
    display: grid;
    grid-template-columns: clamp(38px, 4.2vw, 78px) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(10px, 1.1vw, 22px);
    min-width: 0;
    min-height: 0;
    overflow: visible;
    padding: clamp(6px, .65vw, 13px) 0;
    color: #eee5d4;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(190, 150, 83, .48);
    border-radius: 0;
    box-shadow: none;
}
.layout-kuro-omakase .ofctv-family-item:last-child { border-bottom-color: transparent; }
.layout-kuro-omakase .ofctv-family-item::after {
    content: "✿";
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: -.62em;
    transform: translateX(-50%);
    padding: 0 .65em;
    color: #b99256;
    background: #0b0a08;
    font-size: clamp(13px, 1.05vw, 20px);
    line-height: 1;
}
.layout-kuro-omakase .ofctv-family-item:last-child::after { display: none; }
.layout-kuro-omakase .ofctv-course-number {
    color: #c9a66c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.05vw, 40px);
    font-weight: 400;
    line-height: 1;
    text-align: left;
    font-variant-numeric: lining-nums;
}
.layout-kuro-omakase .ofctv-family-item.has-image {
    grid-template-columns: clamp(38px, 4.2vw, 78px) clamp(58px, 6.6vw, 126px) minmax(0, 1fr) auto;
}
.layout-kuro-omakase .ofctv-family-item .ofctv-item-image {
    grid-column: 2;
    grid-row: 1;
    width: clamp(58px, 6.6vw, 126px);
    height: clamp(58px, 6.6vw, 126px);
    min-height: 0;
    overflow: hidden;
    align-self: center;
    border: 1px solid rgba(190, 150, 83, .55);
    border-radius: 50%;
    background: #14110c;
}
.layout-kuro-omakase .ofctv-family-item .ofctv-item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.9) contrast(1.04);
}
.layout-kuro-omakase .ofctv-family-item .ofctv-item-body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0;
}
.layout-kuro-omakase .ofctv-family-item.has-image .ofctv-item-body { grid-column: 3; }
.layout-kuro-omakase .ofctv-family-item .ofctv-item-topline {
    display: grid;
    grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
    align-items: baseline;
    gap: clamp(12px, 1.4vw, 27px);
    min-width: 0;
}
.layout-kuro-omakase .ofctv-family-item .ofctv-item-topline.no-description h2 { grid-column: 1 / -1; }
.layout-kuro-omakase .ofctv-family-item h2 {
    min-width: 0;
    margin: 0;
    color: #eee5d4;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 1.72vw, 34px);
    font-weight: 400;
    letter-spacing: .005em;
    line-height: 1.16;
    overflow-wrap: anywhere;
}
.layout-kuro-omakase .ofctv-family-item p {
    min-width: 0;
    margin: 0;
    color: #c6b99f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(14px, 1.12vw, 22px);
    font-style: normal;
    line-height: 1.28;
    opacity: .95;
    overflow-wrap: anywhere;
}
.layout-kuro-omakase .ofctv-family-item .ofctv-price {
    grid-column: -2;
    grid-row: 1;
    justify-self: end;
    color: #d7b578;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.05vw, 40px);
    font-weight: 400;
    white-space: nowrap;
}
.layout-kuro-omakase .ofctv-slide-footer {
    padding-top: clamp(5px, .55vw, 11px);
    border-top: 1px solid rgba(190, 150, 83, .27);
    color: #b6a17d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(10px, .7vw, 14px);
    letter-spacing: .08em;
    opacity: .9;
}
.layout-kuro-omakase .ofctv-slide-footer span:first-child { display: none; }
.layout-kuro-omakase .ofctv-page-counter { color: #d7b578; }
.layout-kuro-omakase .ofctv-progress { z-index: 5; height: 3px; background: rgba(190,150,83,.12); }
.layout-kuro-omakase .ofctv-progress span { background: #c9a66c; }

/* Vertical monitor: same editorial list and its purpose-built 9:16 artwork. */
.is-portrait.layout-kuro-omakase .ofctv-backdrop {
    background-image: url("background-portrait.jpg");
    background-size: cover;
    background-position: center;
}
.is-portrait.layout-kuro-omakase .ofctv-slide {
    inset: clamp(30px, 4.2vw, 54px) clamp(130px, 19vw, 215px) clamp(30px, 4.2vw, 54px) clamp(130px, 19vw, 215px);
    gap: clamp(7px, .8vw, 14px);
}
.is-portrait.layout-kuro-omakase .ofctv-slide-header { min-height: 18%; gap: 6px; }
.is-portrait.layout-kuro-omakase .ofctv-screen-brand { font-size: clamp(19px, 2.8vw, 30px); letter-spacing: .18em; }
.is-portrait.layout-kuro-omakase .ofctv-screen-logo { max-width: clamp(72px, 10vw, 112px); max-height: clamp(48px, 6.5vw, 76px); }
.is-portrait.layout-kuro-omakase .ofctv-category-heading h1 { font-size: clamp(31px, 4vw, 46px); }
.is-portrait.layout-kuro-omakase .ofctv-family-items { grid-template-columns: 1fr; }
.is-portrait.layout-kuro-omakase .ofctv-family-item {
    grid-template-columns: clamp(34px, 5vw, 54px) minmax(0, 1fr) auto;
    gap: clamp(8px, 1vw, 12px);
    padding: clamp(8px, 1vw, 13px) 0;
}
.is-portrait.layout-kuro-omakase .ofctv-family-item .ofctv-item-topline {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
}
.is-portrait.layout-kuro-omakase .ofctv-family-item h2 { font-size: clamp(20px, 2.6vw, 28px); }
.is-portrait.layout-kuro-omakase .ofctv-family-item p { font-size: clamp(14px, 1.65vw, 18px); }
.is-portrait.layout-kuro-omakase .ofctv-course-number,
.is-portrait.layout-kuro-omakase .ofctv-family-item .ofctv-price { font-size: clamp(20px, 2.4vw, 27px); }
.is-portrait.layout-kuro-omakase .ofctv-family-item .ofctv-item-image {
    width: clamp(48px, 6.5vw, 72px);
    height: clamp(48px, 6.5vw, 72px);
}
.is-portrait.layout-kuro-omakase .ofctv-family-item.has-image { grid-template-columns: clamp(34px, 5vw, 54px) clamp(48px, 6.5vw, 72px) minmax(0, 1fr) auto; }
.is-portrait.layout-kuro-omakase .ofctv-family-item.has-image .ofctv-item-body { grid-column: 3; }
.is-portrait.layout-kuro-omakase .ofctv-family-item .ofctv-price { align-self: center; }
.is-portrait.layout-kuro-omakase .ofctv-slide-footer { font-size: 11px; }

@media (max-aspect-ratio: 4/5) {
    .layout-kuro-omakase .ofctv-family-item .ofctv-item-topline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .layout-kuro-omakase .ofctv-slide { transition: none; }
}

/* Alta densidad: hasta 10 platos por diapositiva sin volver a tarjetas grandes. */
.layout-kuro-omakase .ofctv-items:is(.ofctv-count-8, .ofctv-count-9, .ofctv-count-10) .ofctv-family-item {
    gap: clamp(6px, .75vw, 14px);
    padding: clamp(3px, .32vw, 7px) 0;
}
.layout-kuro-omakase .ofctv-items:is(.ofctv-count-8, .ofctv-count-9, .ofctv-count-10) .ofctv-course-number,
.layout-kuro-omakase .ofctv-items:is(.ofctv-count-8, .ofctv-count-9, .ofctv-count-10) .ofctv-price {
    font-size: clamp(18px, 1.42vw, 27px);
}
.layout-kuro-omakase .ofctv-items:is(.ofctv-count-8, .ofctv-count-9, .ofctv-count-10) .ofctv-family-item h2 {
    font-size: clamp(16px, 1.22vw, 24px);
    line-height: 1.08;
}
.layout-kuro-omakase .ofctv-items:is(.ofctv-count-8, .ofctv-count-9, .ofctv-count-10) .ofctv-family-item p {
    font-size: clamp(10px, .72vw, 14px);
    line-height: 1.12;
}
.layout-kuro-omakase .ofctv-items:is(.ofctv-count-8, .ofctv-count-9, .ofctv-count-10) .ofctv-family-item.has-image {
    grid-template-columns: clamp(34px, 2.8vw, 52px) clamp(34px, 2.8vw, 52px) minmax(0, 1fr) auto;
}
.layout-kuro-omakase .ofctv-items:is(.ofctv-count-8, .ofctv-count-9, .ofctv-count-10) .ofctv-item-image {
    width: clamp(34px, 2.8vw, 52px);
    height: clamp(34px, 2.8vw, 52px);
}

.is-portrait.layout-kuro-omakase .ofctv-items:is(.ofctv-count-8, .ofctv-count-9, .ofctv-count-10) .ofctv-family-item {
    gap: clamp(6px, .8vw, 10px);
    padding: clamp(5px, .7vw, 10px) 0;
}
.is-portrait.layout-kuro-omakase .ofctv-items:is(.ofctv-count-8, .ofctv-count-9, .ofctv-count-10) .ofctv-family-item h2 {
    font-size: clamp(17px, 2.05vw, 23px);
    line-height: 1.1;
}
.is-portrait.layout-kuro-omakase .ofctv-items:is(.ofctv-count-8, .ofctv-count-9, .ofctv-count-10) .ofctv-family-item p {
    font-size: clamp(11px, 1.3vw, 15px);
    line-height: 1.15;
}
.is-portrait.layout-kuro-omakase .ofctv-items:is(.ofctv-count-8, .ofctv-count-9, .ofctv-count-10) .ofctv-course-number,
.is-portrait.layout-kuro-omakase .ofctv-items:is(.ofctv-count-8, .ofctv-count-9, .ofctv-count-10) .ofctv-price {
    font-size: clamp(17px, 2vw, 23px);
}
.is-portrait.layout-kuro-omakase .ofctv-items:is(.ofctv-count-8, .ofctv-count-9, .ofctv-count-10) .ofctv-family-item.has-image {
    grid-template-columns: clamp(30px, 4vw, 44px) clamp(40px, 5vw, 56px) minmax(0, 1fr) auto;
}
.is-portrait.layout-kuro-omakase .ofctv-items:is(.ofctv-count-8, .ofctv-count-9, .ofctv-count-10) .ofctv-item-image {
    width: clamp(40px, 5vw, 56px);
    height: clamp(40px, 5vw, 56px);
}

