:root {
    --color-naranja: #ff751f;
    --color-acero: #729aa7;
    --color-salvia: #91b9ad;
    --color-beige: #fbf9f3;
    --color-texto: #3a3a3a;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-beige);
    color: var(--color-texto);
}

h1, h2 {
    font-family: "Bevan", Georgia, serif;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.titulo-producto {
    font-family: "Nunito Sans", sans-serif;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.logo-envoltorio {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.logo {
    height: 80px;
    transform-origin: center;
    animation: leudar 3.5s ease-in-out infinite;
}

@keyframes leudar {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.logo-destello {
    position: absolute;
    color: var(--color-naranja);
    font-size: 14px;
    opacity: 0;
    animation: destellar 3.5s ease-in-out infinite;
}

.logo-destello-1 { top: 4px; right: -6px; font-size: 12px; animation-delay: 0.2s; }
.logo-destello-2 { top: 30px; right: -16px; font-size: 18px; animation-delay: 1.1s; }
.logo-destello-3 { bottom: 10px; right: -2px; font-size: 10px; animation-delay: 2.1s; }

@keyframes destellar {
    0%, 100% { opacity: 0; transform: scale(0.6) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(20deg); }
}

@media (prefers-reduced-motion: reduce) {
    .logo, .logo-destello { animation: none; }
}

.nav-principal a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--color-texto);
    font-weight: 600;
    font-size: 14px;
}

.nav-carrito { color: var(--color-naranja) !important; }

.boton-delivery {
    background: var(--color-naranja);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 999px;
    margin-left: 20px !important;
}

.banner-evento {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ff8c42 0%, var(--color-naranja) 55%, #e0611a 100%);
    color: #fff;
    text-align: center;
    padding: 56px 24px 64px;
    isolation: isolate;
}

.banner-evento::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.15;
    background-image: radial-gradient(#fff 1.5px, transparent 1.5px);
    background-size: 14px 14px;
}

.banner-contenido {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.banner-kicker {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 12px;
    opacity: 0.9;
}

.banner-titulo {
    font-family: "Bevan", Georgia, serif;
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 20px;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.08);
}

.banner-fechas {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 0 0 28px;
    font-family: "Bevan", Georgia, serif;
}

.banner-fechas span {
    font-size: 34px;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.banner-fechas i { font-style: normal; opacity: 0.7; }

.banner-fechas em {
    font-family: "Nunito Sans", sans-serif;
    font-style: normal;
    font-size: 14px;
    margin-left: 8px;
    opacity: 0.85;
}

.banner-cta {
    display: inline-block;
    background: #fff;
    color: var(--color-naranja) !important;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease;
}

.banner-cta:hover { transform: translateY(-2px); }

.banner-sparkle {
    position: absolute;
    color: #fff;
    opacity: 0.55;
    font-size: 28px;
}

.banner-sparkle-1 { top: 24px; left: 10%; font-size: 22px; }
.banner-sparkle-2 { top: 60px; right: 12%; font-size: 34px; }
.banner-sparkle-3 { bottom: 20px; left: 20%; font-size: 18px; }

@media (max-width: 768px) {
    .banner-titulo { font-size: 28px; }
    .banner-fechas span { width: 42px; height: 42px; font-size: 26px; }
}

.seccion-productos { padding: 32px 24px; max-width: 1000px; margin: 0 auto; }

.seccion-productos h1 {
    font-size: 28px;
    margin-bottom: 4px;
}

.bajada {
    color: #777;
    margin-top: 0;
    margin-bottom: 24px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 768px) {
    .grid-productos {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-principal a { margin-left: 12px; font-size: 12px; }
}

.tarjeta-producto {
    text-decoration: none;
    color: inherit;
    display: block;
}

.imagen-producto {
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border: 1px solid #e8e5df;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

.tarjeta-producto h2 {
    font-size: 15px;
    margin: 4px 0;
}

.precio {
    font-family: "Nunito Sans", sans-serif;
    font-weight: 800;
    color: var(--color-naranja);
    margin: 0;
}

.agotado {
    font-size: 12px;
    color: #b33;
    margin: 2px 0 0;
}

.pie {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #ff8c42 0%, var(--color-naranja) 55%, #e0611a 100%);
    padding: 48px 24px 24px;
    margin-top: 40px;
    isolation: isolate;
}

.pie::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.12;
    background-image: radial-gradient(#fff 1.5px, transparent 1.5px);
    background-size: 16px 16px;
}

.pie-contenido {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.pie-logo {
    height: 52px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.pie-marca p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    max-width: 320px;
}

.pie-columna h3 {
    font-family: "Bevan", Georgia, serif;
    font-weight: 400;
    font-size: 17px;
    color: #fff;
    margin: 0 0 14px;
}

.pie-columna ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pie-columna li { margin-bottom: 10px; }

.pie-columna a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
}

.pie-columna a:hover { color: #fff; text-decoration: underline; }

.pie-copy {
    position: relative;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.pie-copy a { color: rgba(255, 255, 255, 0.9); }
.pie-copy a:hover { color: #fff; }

@media (max-width: 768px) {
    .pie-contenido {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Carrito flotante */
.carrito-flotante {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--color-naranja);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255, 117, 31, 0.4);
    z-index: 100;
    transition: transform 0.15s ease;
}

.carrito-flotante:hover { transform: scale(1.06); }

.carrito-flotante-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-acero);
    color: #fff;
    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--color-beige);
}

.tarjeta-producto-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.form-agregar { margin-top: 8px; }

.boton-agregar {
    width: 100%;
    background: transparent;
    border: 1.5px solid var(--color-naranja);
    color: var(--color-naranja);
    font-family: "Nunito Sans", sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.boton-agregar:hover {
    background: var(--color-naranja);
    color: #fff;
}

/* Carrito y checkout */
.carrito-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
}

.carrito-item {
    display: grid;
    grid-template-columns: 64px 1fr auto auto auto;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8e5df;
    border-radius: 12px;
    padding: 10px 14px;
}

.carrito-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.carrito-item-info h2 { font-size: 14px; margin: 0; }
.carrito-item-info p { font-size: 12px; color: #888; margin: 2px 0 0; }

.carrito-item-cantidad {
    display: flex;
    gap: 6px;
    align-items: center;
}

.carrito-item-cantidad input {
    width: 50px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.carrito-item-subtotal {
    font-weight: 700;
    color: var(--color-naranja);
    white-space: nowrap;
}

.carrito-item-quitar {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
}

.carrito-total {
    display: flex;
    justify-content: space-between;
    max-width: 700px;
    padding: 16px 14px;
    border-top: 2px solid var(--color-texto);
    margin: 16px 0 24px;
    font-weight: 700;
}

.carrito-total-monto { color: var(--color-naranja); }

.form-checkout {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-checkout label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
}

.form-checkout input,
.form-checkout textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.form-checkout fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
}

.form-checkout .radio {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    margin-bottom: 6px;
}

/* Trivia */
.trivia-wrap {
    display: flex;
    justify-content: center;
}

.trivia-card {
    background: #fff;
    border: 1px solid #e8e5df;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
}

.trivia-opciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.trivia-opcion {
    text-align: left;
    background: var(--color-beige);
    border: 1.5px solid #e8e5df;
    border-radius: 10px;
    padding: 12px 16px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.trivia-opcion:hover {
    border-color: var(--color-naranja);
    background: #fff3ea;
}

.boton-solido {
    background: var(--color-naranja) !important;
    color: #fff !important;
    border: none !important;
}

/* Tips del Maestro */
.tips-lista {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .tips-lista { grid-template-columns: 1fr; }
}

.tip-card {
    background: #fff;
    border: 1px solid #e8e5df;
    border-radius: 12px;
    padding: 16px;
}

.tip-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.tip-card p { font-size: 14px; color: #555; }

/* Banners secundarios del home */
.banners-secundarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 0 24px 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.banner-secundario {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    position: relative;
    aspect-ratio: 16/9;
}

.banner-secundario img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-secundario-texto {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 60%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
}

.banner-secundario-texto h3 { margin: 0; font-size: 15px; }
.banner-secundario-texto p { margin: 2px 0 0; font-size: 12px; opacity: 0.9; }

.carrito-flotante-icono {
    width: 26px;
    height: 26px;
}

/* Ficha de producto (PDP) */
.pdp { max-width: 1000px; margin: 0 auto; padding: 24px 24px 60px; }

.pdp-volver {
    display: inline-block;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.pdp-volver:hover { color: var(--color-naranja); }

.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.pdp-imagen {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid #e8e5df;
    border-radius: 0;
    overflow: hidden;
}

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

.pdp-badge-agotado {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #c0392b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
}

.pdp-kicker {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-salvia);
    margin: 0 0 6px;
}

.pdp-titulo {
    font-family: "Nunito Sans", sans-serif;
    font-weight: 800;
    letter-spacing: -0.3px;
    font-size: 32px;
    margin: 0 0 10px;
}

.pdp-corta { color: #666; font-size: 15px; margin: 0 0 18px; }

.pdp-precio {
    font-family: "Nunito Sans", sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: var(--color-naranja);
    margin: 0 0 24px;
}

.pdp-precio span { font-size: 16px; font-family: "Nunito Sans", sans-serif; }

.pdp-form-agregar, .pdp-form-aviso { margin-bottom: 32px; }

.pdp-form-aviso label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.pdp-form-aviso input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 280px;
}

.pdp-boton-cta {
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 117, 31, 0.3);
    transition: transform 0.15s ease;
}

.pdp-boton-cta:hover { transform: translateY(-2px); }

.pdp-aviso-ok {
    color: var(--color-salvia);
    font-weight: 700;
    margin-bottom: 24px;
}

.pdp-proceso {
    background: var(--color-beige);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.pdp-proceso h2 {
    font-size: 17px;
    margin: 0 0 10px;
}

.pdp-proceso p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.pdp-tips-link {
    display: inline-block;
    color: var(--color-acero);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.pdp-tips-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .pdp-grid { grid-template-columns: 1fr; gap: 24px; }
    .pdp-titulo { font-size: 26px; }
}

/* Sección Masa Madre (home) rediseñada */
.seccion-masa-madre { padding: 48px 64px 60px; max-width: 1300px; margin: 0 auto; }

@media (max-width: 768px) {
    .seccion-masa-madre { padding: 40px 24px 48px; }
}

.seccion-masa-madre-titulo { text-align: center; margin-bottom: 36px; }

.seccion-kicker {
    color: var(--color-salvia);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 13px;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.seccion-masa-madre-titulo h1 { font-size: 34px; margin: 0 0 8px; }
.seccion-masa-madre-titulo .bajada { margin: 0 auto; max-width: 420px; text-align: center; }

.tarjeta-producto {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0;
    padding: 6px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.tarjeta-producto:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.tarjeta-agotada { opacity: 0.75; }

.imagen-producto {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--color-beige);
    border: none;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.imagen-producto img { transition: transform 0.3s ease; }
.tarjeta-producto:hover .imagen-producto img { transform: scale(1.05); }

.tarjeta-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-salvia);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}

.tarjeta-pill-agotado {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
}

.tarjeta-info { padding: 8px 4px 2px; }

.tarjeta-producto h2 { font-size: 16px; margin: 0 0 4px; }

.precio small { font-size: 12px; font-weight: 600; }

.form-agregar { padding: 0 4px 4px; }

.boton-agregar {
    width: 100%;
    background: transparent;
    border: 1.5px solid var(--color-naranja);
    color: var(--color-naranja);
    font-family: "Nunito Sans", sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    padding: 10px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.boton-agregar:hover {
    background: var(--color-naranja);
    color: #fff;
    transform: translateY(-1px);
}

/* Banner Delivery (estilo flyer) */
.banner-delivery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    margin: 0 auto 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    min-height: 280px;
}

.banner-delivery-izq {
    background: var(--color-beige);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    text-align: center;
}

.banner-delivery-logo { height: 70px; }

.banner-delivery-web {
    font-style: italic;
    color: var(--color-naranja);
    font-weight: 700;
    font-size: 16px;
    margin: 0;
}

.banner-delivery-linea {
    width: 140px;
    height: 1px;
    background: var(--color-naranja);
    opacity: 0.4;
}

.banner-delivery-der {
    position: relative;
    background: linear-gradient(160deg, #ff8c42 0%, var(--color-naranja) 60%, #e0611a 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px;
    text-align: center;
    overflow: hidden;
}

.banner-delivery-der::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(#fff 1.5px, transparent 1.5px);
    background-size: 14px 14px;
}

.banner-delivery-der h2 {
    font-family: "Bevan", Georgia, serif;
    font-size: 32px;
    line-height: 1.1;
    margin: 0;
    position: relative;
}

.banner-delivery-icono { width: 64px; height: 64px; position: relative; }

.banner-delivery-telefono {
    font-family: "Bevan", Georgia, serif;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    position: relative;
}

.banner-delivery-telefono:hover { text-decoration: underline; }

.banner-delivery-lineas {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 4px 0 0;
    position: relative;
}

@media (max-width: 768px) {
    .banner-delivery { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; }
}

#btn-geolocalizar {
    background: var(--color-beige);
    border: 1.5px solid var(--color-acero);
    color: var(--color-acero);
    font-family: "Nunito Sans", sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

#btn-geolocalizar:hover {
    background: var(--color-acero);
    color: #fff;
}

.trivia-cupon {
    background: repeating-linear-gradient(135deg, #fff3ea, #fff3ea 10px, #ffe8d8 10px, #ffe8d8 20px);
    border: 2px dashed var(--color-naranja);
    border-radius: 14px;
    padding: 20px;
    margin: 16px 0;
}

.trivia-cupon-porcentaje {
    font-family: "Bevan", Georgia, serif;
    font-size: 36px;
    color: var(--color-naranja);
    margin: 0;
}

.trivia-cupon-codigo {
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    background: #fff;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    margin: 8px 0;
}

.trivia-cupon-nota {
    font-size: 12px;
    color: #888;
    margin: 4px 0 0;
}

/* Oculto visualmente pero legible por buscadores y lectores de pantalla (SEO/accesibilidad) */
.visualmente-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tabla y badges del portal de cliente */
.tabla-cliente {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #eee;
    max-width: 700px;
    margin-bottom: 24px;
}

.tabla-cliente th, .tabla-cliente td {
    text-align: left;
    padding: 12px 14px;
    font-size: 13px;
    border-bottom: 1px solid #f0eee9;
}

.tabla-cliente th { background: #faf9f6; font-weight: 800; color: #666; text-transform: uppercase; font-size: 11px; }
.tabla-cliente-link { color: var(--color-naranja); font-weight: 700; text-decoration: none; font-size: 13px; }
.tabla-cliente-link:hover { text-decoration: underline; }

.badge-estado {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    display: inline-block;
    background: #eee;
}

.badge-estado-pendiente_pago { background: #fdecea; color: #c0392b; }
.badge-estado-pagado { background: #eafaf1; color: #1e8449; }
.badge-estado-en_espera { background: #f2ecfb; color: #7a4fc7; }
.badge-estado-en_preparacion { background: #fef6e0; color: #a67c00; }
.badge-estado-despachado, .badge-estado-entregado { background: #e8f0fe; color: #1a56c4; }
.badge-estado-cancelado { background: #eee; color: #888; }

/* Timeline de seguimiento de pedido */
.seguimiento-timeline {
    display: flex;
    justify-content: space-between;
    margin: 24px 0 36px;
    position: relative;
}

.seguimiento-timeline::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: #eee;
    z-index: 0;
}

.seguimiento-paso {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.seguimiento-icono {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #eee;
}

.seguimiento-label { font-size: 11px; font-weight: 700; color: #999; text-align: center; }

.seguimiento-paso-completo .seguimiento-icono { background: #eafaf1; box-shadow: 0 0 0 2px var(--color-salvia); }
.seguimiento-paso-completo .seguimiento-label { color: var(--color-salvia); }

.seguimiento-paso-actual .seguimiento-icono {
    background: var(--color-naranja);
    box-shadow: 0 0 0 4px rgba(255, 117, 31, 0.25);
    transform: scale(1.15);
}
.seguimiento-paso-actual .seguimiento-label { color: var(--color-naranja); font-weight: 800; }

.seguimiento-cancelado {
    background: #fdecea;
    color: #c0392b;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 700;
    margin: 16px 0;
}

@media (max-width: 768px) {
    .seguimiento-label { font-size: 9px; }
    .seguimiento-icono { width: 34px; height: 34px; font-size: 15px; }
}

.boton-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25D366;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 999px;
    margin-left: 20px !important;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.boton-whatsapp svg { width: 16px; height: 16px; }

.boton-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .boton-whatsapp span, .boton-whatsapp { font-size: 12px; padding: 6px 12px; }
}

/* Pestañas de categoría en el home */
.tabs-categoria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 32px;
}

.tab-categoria {
    background: #fff;
    border: 1.5px solid #e8e5df;
    color: var(--color-texto);
    font-family: "Nunito Sans", sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab-categoria:hover { border-color: var(--color-naranja); }

.tab-categoria.activa {
    background: var(--color-naranja);
    border-color: var(--color-naranja);
    color: #fff;
}

@media (max-width: 768px) {
    .tabs-categoria { gap: 6px; }
    .tab-categoria { padding: 8px 14px; font-size: 12px; }
}

/* Aviso de estado del pedido en el portal del cliente */
.aviso-pedido {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin: 0 0 14px;
    border-radius: 14px;
    background: #fff8f0;
    border: 1px solid #ffd9b8;
    border-left: 5px solid var(--color-naranja);
    color: var(--color-texto);
    text-decoration: none;
    animation: aviso-entrada 0.5s ease both;
}

.aviso-pedido p { margin: 2px 0 0; font-size: 13px; color: #666; }
.aviso-pedido-icono { font-size: 28px; line-height: 1; }
.aviso-pedido-despachado { background: #eef4ff; border-color: #c9d9f7; border-left-color: #1a56c4; }
.aviso-pedido-entregado, .aviso-pedido-pagado { background: #eefaf3; border-color: #c6ebd3; border-left-color: #1e8449; }
.aviso-pedido-cancelado { background: #fdecea; border-color: #f5c6c1; border-left-color: #c0392b; }
a.aviso-pedido:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); transform: translateY(-1px); }

@keyframes aviso-entrada {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .aviso-pedido { animation: none; }
}

/* Menú hamburguesa (móvil) */
.cabecera { position: relative; z-index: 50; }

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: var(--color-naranja);
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(255, 117, 31, 0.3);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle-abierto span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle-abierto span:nth-child(2) { opacity: 0; }
.menu-toggle-abierto span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
    .cabecera { padding: 10px 16px; }
    .logo { height: 56px; }
    .menu-toggle { display: flex; }

    .nav-principal {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 12px 16px 20px;
        background: var(--color-beige, #fbf9f3);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .nav-principal.nav-abierto {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-principal a,
    .nav-principal .boton-delivery,
    .nav-principal .boton-whatsapp {
        margin: 0 !important;
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 12px;
        text-align: center;
        justify-content: center;
    }

    .nav-principal a:not(.boton-delivery):not(.boton-whatsapp) { background: #fff; }
    .nav-principal .boton-whatsapp { display: flex; align-items: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-principal, .menu-toggle span { transition: none; }
}

.banner-descuentos span { width: auto; min-width: 64px; padding: 0 12px; font-size: 30px; }
@media (max-width: 768px) {
    .banner-descuentos span { min-width: 52px; padding: 0 8px; font-size: 22px; height: 42px; }
}

/* ============================================================
   Trivia como juego
   ============================================================ */
.juego-body { background: linear-gradient(180deg, #fff3ea 0%, var(--color-beige) 60%); }

.juego-escena {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 120px);
    padding: 28px 16px 48px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    isolation: isolate;
}

.juego-fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.juego-fondo span {
    position: absolute;
    bottom: -40px;
    left: var(--x);
    font-size: 30px;
    color: var(--color-naranja);
    opacity: 0;
    animation: juego-flotar var(--t) linear var(--d) infinite;
}

@keyframes juego-flotar {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.55; }
    90% { opacity: 0.35; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

.juego-panel {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 28px;
    padding: 26px 22px 22px;
    box-shadow: 0 18px 50px rgba(224, 97, 26, 0.18), 0 2px 0 rgba(255, 117, 31, 0.15);
    border: 2px solid #ffe1cb;
    animation: juego-entrada 0.6s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}

@keyframes juego-entrada {
    from { opacity: 0; transform: translateY(24px) scale(0.94); }
    to { opacity: 1; transform: none; }
}

.juego-hud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }

.juego-chip {
    background: #fff3ea;
    border: 1.5px solid #ffd2b0;
    color: #a4460c;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
}

.juego-chip b { font-family: "Bevan", Georgia, serif; font-size: 15px; color: var(--color-naranja); margin-left: 2px; }

.juego-saludo { text-align: center; color: #777; font-size: 14px; margin: 0 0 8px; }

.juego-mascota { display: inline-block; animation: juego-rebote 1.4s ease-in-out infinite; transform-origin: bottom center; }

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

.juego-pregunta {
    font-family: "Bevan", Georgia, serif;
    font-size: 24px;
    line-height: 1.25;
    text-align: center;
    color: var(--color-texto);
    margin: 10px 0 22px;
    animation: juego-pop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) 0.2s both;
}

@keyframes juego-pop {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: none; }
}

.juego-opciones { display: grid; gap: 12px; }

.juego-opcion {
    --color: var(--color-naranja);
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 2.5px solid var(--color);
    border-radius: 18px;
    padding: 12px 14px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-texto);
    cursor: pointer;
    box-shadow: 0 5px 0 var(--color);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.25s ease;
    animation: juego-opcion-entra 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) calc(0.35s + var(--i) * 0.09s) both;
}

.juego-opcion-a { --color: #ff751f; }
.juego-opcion-b { --color: #4f8797; }
.juego-opcion-c { --color: #5b9b86; }
.juego-opcion-d { --color: #d9a21b; }

@keyframes juego-opcion-entra {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: none; }
}

.juego-opcion:hover, .juego-opcion:focus-visible { transform: translateY(-3px); background: color-mix(in srgb, var(--color) 8%, #fff); outline: none; }
.juego-opcion:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--color); }

.juego-opcion-letra {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--color);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: "Bevan", Georgia, serif;
    font-size: 18px;
}

.juego-opcion-texto { flex: 1; }

.juego-opciones.juego-enviando .juego-opcion { pointer-events: none; opacity: 0.35; }
.juego-opciones.juego-enviando .juego-opcion.juego-elegida {
    opacity: 1;
    background: color-mix(in srgb, var(--color) 14%, #fff);
    animation: juego-elegida 0.5s ease both;
}

@keyframes juego-elegida {
    0% { transform: scale(1); }
    40% { transform: scale(1.05) rotate(-1deg); }
    100% { transform: scale(1.03); }
}

.juego-ayuda { text-align: center; font-size: 12px; color: #aaa; margin: 16px 0 0; }

.juego-revelando {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(255, 243, 234, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Bevan", Georgia, serif;
    color: var(--color-naranja);
}

.juego-revelando[hidden] { display: none; }
.juego-revelando-pan { font-size: 64px; animation: juego-giro 0.9s ease-in-out infinite; }

@keyframes juego-giro {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.25); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Resultado */
.juego-resultado { text-align: center; }

.juego-emoji { font-size: 84px; line-height: 1; margin: 6px 0; display: inline-block; }
.juego-emoji-ok { animation: juego-salto 0.9s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.juego-emoji-fallo { animation: juego-tambaleo 0.8s ease both; }

@keyframes juego-salto {
    0% { transform: scale(0) rotate(-30deg); }
    60% { transform: scale(1.25) rotate(10deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes juego-tambaleo {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-12px) rotate(-8deg); }
    35% { transform: translateX(10px) rotate(6deg); }
    55% { transform: translateX(-8px) rotate(-4deg); }
    75% { transform: translateX(5px) rotate(2deg); }
}

.juego-resultado-fallo { animation: juego-entrada 0.6s ease both, juego-sacudida 0.5s ease 0.6s both; }

@keyframes juego-sacudida {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.juego-titulo-resultado {
    font-family: "Bevan", Georgia, serif;
    font-size: 32px;
    margin: 4px 0 8px;
    color: var(--color-texto);
    animation: juego-pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) 0.25s both;
}

.juego-resultado-ok .juego-titulo-resultado { color: #3f8a71; }
.juego-resultado-fallo .juego-titulo-resultado { color: #c0392b; }

.juego-racha-msg { font-weight: 800; color: #d9600f; margin: 0 0 6px; animation: juego-pop 0.6s ease 0.5s both; }
.juego-msg { color: #666; margin: 8px 0 4px; }

.cupon-revelado {
    position: relative;
    overflow: hidden;
    animation: juego-cupon 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) 0.6s both;
}

.cupon-revelado::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: skewX(-20deg);
    animation: juego-brillo 2.6s ease-in-out 1.6s infinite;
}

@keyframes juego-cupon {
    from { opacity: 0; transform: scale(0.4) rotate(-8deg); }
    to { opacity: 1; transform: none; }
}

@keyframes juego-brillo {
    0% { left: -60%; }
    60%, 100% { left: 130%; }
}

.juego-acciones { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.juego-boton {
    display: block;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    padding: 15px 22px;
    border-radius: 16px;
    transition: transform 0.15s ease;
}

.juego-boton:hover { transform: translateY(-2px); }
.juego-boton-principal { background: var(--color-naranja); color: #fff; box-shadow: 0 5px 0 #c24e0b; animation: juego-latido 1.8s ease-in-out 1.5s infinite; }
.juego-boton-secundario { background: #fff3ea; color: #a4460c; border: 2px solid #ffd2b0; }

@keyframes juego-latido {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Confeti */
.confeti-pieza {
    position: fixed;
    top: -16px;
    left: var(--x);
    width: var(--w);
    height: calc(var(--w) * 1.6);
    background: var(--c);
    border-radius: 2px;
    z-index: 120;
    pointer-events: none;
    animation: confeti-caer var(--t) cubic-bezier(0.3, 0.6, 0.6, 1) var(--d) forwards;
}

@keyframes confeti-caer {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate3d(var(--dx), 108vh, 0) rotate(var(--r)); opacity: 1; }
}

@media (max-width: 480px) {
    .juego-pregunta { font-size: 20px; }
    .juego-opcion { font-size: 15px; }
    .juego-panel { padding: 20px 16px 18px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .juego-fondo span, .juego-mascota, .juego-boton-principal, .cupon-revelado::after, .juego-revelando-pan { animation: none; }
    .juego-panel, .juego-pregunta, .juego-opcion, .juego-emoji, .juego-titulo-resultado, .cupon-revelado, .juego-resultado-fallo { animation-duration: 0.01s; animation-delay: 0s; }
    .confeti-pieza { display: none; }
}
@media (max-width: 768px) {
    .banner-descuentos { flex-wrap: wrap; }
    .banner-descuentos em { flex-basis: 100%; text-align: center; margin: 4px 0 0; }
}

.casilla-politica {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.casilla-politica input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-naranja);
    cursor: pointer;
}

.casilla-politica a {
    color: #777;
    text-decoration: underline;
    text-decoration-color: #aaa;
}

.casilla-politica a:hover { color: var(--color-naranja); text-decoration-color: var(--color-naranja); }

/* Pips de racha (5 puntos de progreso hacia el cupón) */
.juego-pips {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 14px;
}

.juego-pip {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffe1cb;
    border: 2px solid #ffd2b0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.juego-pip-lleno {
    background: var(--color-naranja);
    border-color: var(--color-naranja);
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(255, 117, 31, 0.18);
}

.juego-acciones-cupon {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.juego-acciones-cupon form { margin: 0; }
.juego-acciones-cupon .juego-boton { width: 100%; border: none; font: inherit; cursor: pointer; }

/* Cupón de descuento en el carrito/checkout */
.carrito-cupon, .checkout-cupon {
    max-width: 700px;
    margin: 20px 0 0;
}

.carrito-cupon-form label, .checkout-cupon-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.carrito-cupon-campo, .checkout-cupon-campo { display: flex; gap: 8px; max-width: 360px; }

.carrito-cupon-campo input, .checkout-cupon-campo input {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    text-transform: uppercase;
    font-size: 14px;
}

.carrito-cupon-campo button, .checkout-cupon-campo button {
    background: var(--color-naranja);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
}

.carrito-cupon-mensaje { font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.carrito-cupon-error, .checkout-cupon-error { color: #c0392b; }
.carrito-cupon-ok, .checkout-cupon-ok { color: #1e8449; }

.carrito-cupon-aplicado, .checkout-cupon-aplicado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #eafaf1;
    border: 1.5px solid #c6ebd3;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    max-width: 420px;
}

.carrito-cupon-quitar {
    background: none;
    border: none;
    color: #c0392b;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.carrito-total-descuento .carrito-total-monto { color: #1e8449; }
.carrito-total-final { border-top: none; font-weight: 800; font-size: 17px; }

.checkout-cupon-aplicado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #eafaf1;
    border: 1.5px solid #c6ebd3;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 8px;
}

.checkout-cupon-aplicado a { color: var(--color-naranja); font-size: 12px; }

/* Aviso de plazo de entrega (carrito, checkout y condiciones de compra) */
.aviso-entrega {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    margin: 0 0 22px;
    border-radius: 14px;
    background: #fff3e8;
    border: 2px solid var(--color-naranja);
    color: var(--color-texto);
}
.aviso-entrega-icono { font-size: 30px; line-height: 1; }
.aviso-entrega-titulo {
    display: block;
    font-family: "Bevan", Georgia, serif;
    font-size: 17px;
    color: var(--color-naranja);
}
.aviso-entrega p { margin: 4px 0 6px; font-size: 14px; line-height: 1.45; }
.aviso-entrega a { color: var(--color-naranja); font-size: 13px; font-weight: 700; }

/* Página de condiciones de compra */
.condiciones h2 { margin-top: 28px; }
.condiciones li { margin-bottom: 6px; }

/* Promociones vigentes (carrito y checkout) */
.aviso-promos {
    margin: 0 0 22px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #eef6f3;
    border: 1px solid #cfe3dc;
    border-left: 5px solid var(--color-salvia);
}
.aviso-promos p { margin: 4px 0; font-size: 14px; line-height: 1.45; }
.aviso-promos-falta { display: block; color: #6b7d80; font-size: 13px; }
.aviso-promos-ok { display: block; color: #1e8449; font-size: 13px; font-weight: 700; }

/* Detalle del total en la confirmación del pedido */
.confirmacion-detalle { max-width: 360px; margin: 0 auto 22px; text-align: left; font-size: 14px; }
.confirmacion-detalle p { display: flex; justify-content: space-between; margin: 6px 0; }
.confirmacion-descuento { color: #1e8449; font-weight: 700; }
.confirmacion-total { border-top: 1px solid #e5e0d6; padding-top: 8px; font-weight: 800; font-size: 16px; }

/* Banner de bienvenida: 20% primera compra + despacho gratis */
.banner-porcentaje {
    display: inline-block;
    padding: 0 14px;
    border-radius: 14px;
    background: #fff;
    color: var(--color-naranja);
}
.banner-envio {
    display: table;
    margin: 6px auto 22px;
    padding: 10px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-size: 15px;
    line-height: 1.45;
}
@media (max-width: 600px) {
    .banner-envio { font-size: 13px; }
}

/* Sección "Visítanos en YouTube": una fila de Shorts con scroll horizontal */
.seccion-videos { padding: 48px 0 56px; max-width: 1300px; margin: 0 auto; }
.seccion-videos-titulo { text-align: center; margin: 0 24px 28px; }
.seccion-videos-titulo h2 { font-family: "Bevan", Georgia, serif; font-size: 32px; margin: 0 0 6px; }
.seccion-videos-titulo .bajada { margin: 0 auto; text-align: center; }

.videos-fila {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 64px;
    padding: 4px 64px 16px;
    scrollbar-width: thin;
}
/* Centra la fila cuando caben todos; si no caben, se desliza normal desde el primero */
.videos-fila > .video-short:first-child { margin-left: auto; }
.videos-fila > .video-short:last-child { margin-right: auto; }

.video-short { flex: 0 0 165px; margin: 0; scroll-snap-align: start; }
.video-short-marco,
.video-short iframe {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #1e1e1e;
}
.video-short-marco { position: relative; padding: 0; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12); }
.video-short-marco img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.video-short-marco:hover img { transform: scale(1.04); }
.video-short-play {
    position: absolute;
    top: 50%; left: 50%;
    width: 46px; height: 46px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--color-naranja);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.video-short-play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.video-short figcaption { margin-top: 10px; font-size: 14px; font-weight: 700; text-align: center; color: var(--color-texto); }
.seccion-videos-cta { text-align: center; margin-top: 18px; }

@media (max-width: 768px) {
    .videos-fila { padding: 4px 24px 16px; gap: 14px; scroll-padding-inline: 24px; }
    .video-short { flex-basis: 44%; }
    .seccion-videos-titulo h2 { font-size: 26px; }
}

/* ------------------------------------------------------------
   Portal Empresas (B2B)
   ------------------------------------------------------------ */
.boton-empresas {
    border: 2px solid var(--color-acero);
    color: #355c66 !important;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 700;
}
.boton-empresas:hover { background: #355c66; border-color: #355c66; color: #fff !important; }

.empresas-error { color: #b33; font-weight: 600; }
.empresas-nota { font-size: 13px; color: #888; text-align: center; margin-top: 14px; }

.empresas-landing { max-width: 1100px; margin: 0 auto; padding: 48px 24px 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.empresas-hero h1 { font-family: "Bevan", Georgia, serif; font-size: 38px; line-height: 1.15; margin: 6px 0 14px; color: #355c66; }
.empresas-hero .seccion-kicker { text-align: left; }
.empresas-tramos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 24px; }
.empresas-tramo { background: #fff; border: 1px solid #e8e5df; border-top: 4px solid var(--color-naranja); border-radius: 14px; padding: 16px; }
.empresas-tramo strong { display: block; font-family: "Bevan", Georgia, serif; font-size: 30px; color: var(--color-naranja); }
.empresas-tramo span { font-size: 13px; color: #666; }
.empresas-ingreso h2 { margin-top: 0; }
@media (max-width: 820px) {
    .empresas-landing { grid-template-columns: 1fr; padding-top: 32px; }
    .empresas-hero h1 { font-size: 30px; }
}

.portal-empresas { max-width: 1240px; margin: 0 auto; padding: 32px 24px 64px; }
.portal-saludo { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.portal-saludo h1 { font-family: "Bevan", Georgia, serif; font-size: 30px; margin: 4px 0; color: #355c66; }
.portal-saludo .seccion-kicker, .portal-saludo .bajada { text-align: left; margin: 0; }
.portal-salir { font-size: 13px; color: #888; white-space: nowrap; }

.portal-descuento { display: grid; grid-template-columns: 1fr 1.3fr 1.6fr; gap: 14px; margin-bottom: 32px; }
.portal-kpi { background: #fff; border: 1px solid #e8e5df; border-radius: 16px; padding: 18px; }
.portal-kpi span { font-size: 13px; color: #666; font-weight: 700; }
.portal-kpi strong { display: block; font-family: "Bevan", Georgia, serif; font-size: 30px; margin: 4px 0; color: #355c66; }
.portal-kpi small { font-size: 13px; color: #666; }
.portal-kpi small strong { display: inline; font-family: inherit; font-size: inherit; margin: 0; color: var(--color-naranja); }
.portal-kpi-destacado { background: var(--color-naranja); border-color: var(--color-naranja); }
.portal-kpi-destacado span, .portal-kpi-destacado small, .portal-kpi-destacado strong { color: #fff; }
.portal-barra { height: 8px; border-radius: 99px; background: #eee9e1; margin: 8px 0; overflow: hidden; }
.portal-barra div { height: 100%; background: var(--color-salvia); border-radius: 99px; }
.portal-leyenda { background: #eef6f3; border: 1px solid #cfe3dc; border-radius: 16px; padding: 14px 18px; font-size: 13px; line-height: 1.5; }
.portal-leyenda p { margin: 4px 0; }
.portal-leyenda ul { margin: 4px 0; padding-left: 18px; }

.portal-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.portal-catalogo h2, .portal-resumen h2, .portal-pedidos h2 { font-family: "Bevan", Georgia, serif; font-size: 22px; margin: 0 0 4px; }
.portal-catalogo > .bajada { text-align: left; margin: 0 0 16px; }
.portal-productos { display: flex; flex-direction: column; gap: 10px; }
.portal-producto {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #e8e5df;
    border-radius: 16px;
    padding: 10px 14px 10px 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.portal-producto-activo { border-color: var(--color-naranja); box-shadow: 0 4px 14px rgba(255, 117, 31, 0.12); }
.portal-producto img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.portal-producto h3 { font-size: 15px; margin: 0 0 4px; }
.portal-precio { margin: 0; font-weight: 800; color: var(--color-naranja); font-size: 16px; }
.portal-precio s { color: #aaa; font-weight: 600; font-size: 13px; margin-left: 6px; }
.portal-neto { margin: 2px 0 0; font-size: 12px; color: #888; }
.portal-badge { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #1e8449; background: #eafaf1; border-radius: 99px; padding: 2px 8px; }
.portal-cantidad { display: flex; align-items: center; gap: 6px; }
.portal-cantidad button {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid #e0d9cf; background: #fbf9f3;
    font-size: 20px; line-height: 1; cursor: pointer; color: var(--color-texto);
}
.portal-cantidad button:hover { border-color: var(--color-naranja); color: var(--color-naranja); }
.portal-cantidad input { width: 56px; height: 36px; text-align: center; border: 1px solid #e0d9cf; border-radius: 10px; font-size: 16px; font-weight: 700; }

.portal-resumen { position: sticky; top: 16px; background: #fff; border: 1px solid #e8e5df; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.portal-resumen dl { margin: 0; }
.portal-resumen dl div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.portal-resumen dt, .portal-resumen dd { margin: 0; }
.portal-resumen dl div[hidden] { display: none; }
.portal-resumen .r-descuento { color: #1e8449; font-weight: 700; }
.portal-resumen .r-total { border-top: 1px solid #eee; margin-top: 4px; padding-top: 10px; font-size: 18px; font-weight: 800; }
.portal-resumen .r-desglose { font-size: 12px; color: #888; }
.portal-resumen label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.portal-resumen label.radio { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.portal-resumen input[type="text"], .portal-resumen input[type="date"], .portal-resumen select, .portal-resumen textarea {
    padding: 9px 10px; border: 1px solid #e0d9cf; border-radius: 10px; font: inherit; font-weight: 400;
}
.portal-resumen small { font-weight: 400; color: #888; }
.portal-resumen fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.portal-resumen legend { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.portal-resumen #p-despacho { display: flex; flex-direction: column; gap: 12px; }
.portal-resumen #p-despacho[hidden] { display: none; }
.portal-resumen button[type="submit"] { width: 100%; border: none; font-size: 15px; }
.portal-resumen button[disabled] { opacity: 0.45; cursor: not-allowed; }

.portal-pedidos { margin-top: 40px; }
.portal-tabla-scroll { overflow-x: auto; }
.portal-pedidos table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; font-size: 14px; }
.portal-pedidos th, .portal-pedidos td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0ece5; white-space: nowrap; }
.portal-pedidos th { background: #f6f2ea; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #666; }

@media (max-width: 960px) {
    .portal-descuento { grid-template-columns: 1fr 1fr; }
    .portal-leyenda { grid-column: 1 / -1; }
    .portal-grid { grid-template-columns: 1fr; }
    .portal-resumen { position: static; }
}
@media (max-width: 560px) {
    .portal-empresas { padding: 24px 16px 48px; }
    .portal-descuento { grid-template-columns: 1fr; }
    .portal-producto { grid-template-columns: 72px 1fr; padding: 10px; }
    .portal-producto img { width: 72px; height: 72px; }
    .portal-cantidad { grid-column: 1 / -1; justify-content: flex-end; }
    .portal-saludo h1 { font-size: 24px; }
}
.portal-barra-movil { display: none; }
@media (max-width: 960px) {
    .portal-barra-movil:not([hidden]) {
        display: flex; justify-content: space-between; align-items: center;
        position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
        padding: 14px 18px; border-radius: 16px;
        background: #355c66; color: #fff; text-decoration: none; font-size: 15px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }
    .portal-empresas { padding-bottom: 96px; }
}
.portal-enlaces { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.portal-enlaces .portal-salir:first-child { color: #355c66; font-weight: 700; }

/* Portal empresas: catálogo en líneas */
.catalogo-cabecera { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.catalogo-cabecera .bajada { text-align: left; margin: 0; }
.catalogo-buscar { padding: 10px 14px; border: 1px solid #e0d9cf; border-radius: 99px; font: inherit; min-width: 220px; background: #fff; }
.catalogo-filtros { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.catalogo-filtros button { border: 1px solid #e0d9cf; background: #fff; border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: #355c66; }
.catalogo-filtros button.activo { background: #355c66; border-color: #355c66; color: #fff; }
.catalogo-lista { display: flex; flex-direction: column; background: #fff; border: 1px solid #e8e5df; border-radius: 18px; overflow: hidden; }
.catalogo-categoria { margin: 0; padding: 10px 18px; background: var(--color-naranja); color: #fff; font-family: "Bevan", Georgia, serif; font-size: 15px; letter-spacing: .3px; }
.catalogo-categoria[hidden], .catalogo-item[hidden] { display: none; }
.catalogo-item {
    display: grid; grid-template-columns: 132px 1fr 150px 210px; gap: 18px; align-items: center;
    padding: 14px 18px; border-bottom: 1px solid #f0ece5; transition: background .2s;
}
.catalogo-item:last-of-type { border-bottom: 0; }
.catalogo-item-activo { background: #fff6ef; box-shadow: inset 4px 0 0 var(--color-naranja); }
.catalogo-item img { width: 132px; height: 110px; object-fit: cover; border-radius: 12px; background: #f6f2ea; }
.catalogo-info h4 { margin: 0 0 4px; font-size: 16px; color: #355c66; }
.catalogo-detalle { margin: 0; font-size: 13px; color: #6b6b6b; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.catalogo-etiquetas { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.catalogo-etiquetas .portal-badge { margin: 0; }
.catalogo-en-pedido { font-size: 11px; font-weight: 800; color: #fff; background: var(--color-naranja); border-radius: 99px; padding: 2px 9px; }
.catalogo-en-pedido[hidden] { display: none; }
.catalogo-precio { display: flex; flex-direction: column; gap: 2px; }
.catalogo-precio strong { font-size: 20px; color: var(--color-naranja); }
.catalogo-precio s { color: #aaa; font-size: 13px; }
.catalogo-precio span { font-size: 12px; color: #888; }
.catalogo-accion { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.catalogo-accion .portal-cantidad { justify-content: center; }
.catalogo-agregar {
    border: 0; border-radius: 99px; padding: 10px 14px; background: var(--color-naranja); color: #fff;
    font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; transition: transform .15s, background .2s;
}
.catalogo-agregar:hover { background: #e9661a; }
.catalogo-agregar.agregado { background: #1e8449; transform: scale(1.04); }
.catalogo-vacio { padding: 24px; text-align: center; color: #888; margin: 0; }

.pedido-lineas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.pedido-lineas li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; font-size: 13px; padding-bottom: 8px; border-bottom: 1px dashed #eee; }
.pl-nombre { font-weight: 700; color: #355c66; }
.pl-cant { display: flex; align-items: center; gap: 4px; }
.pl-cant button, .pl-quitar { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #e0d9cf; background: #fbf9f3; cursor: pointer; line-height: 1; font-size: 14px; padding: 0; }
.pl-cant b { min-width: 22px; text-align: center; }
.pl-total { font-weight: 700; min-width: 64px; text-align: right; }
.pl-quitar { border-color: transparent; background: transparent; color: #c0392b; font-size: 18px; }
.pedido-vacio { margin: 0; font-size: 13px; color: #888; background: #fbf9f3; border-radius: 12px; padding: 12px; }
.pedido-vacio[hidden] { display: none; }

@media (max-width: 1100px) {
    .catalogo-item { grid-template-columns: 110px 1fr 180px; }
    .catalogo-item img { width: 110px; height: 96px; }
    .catalogo-precio { grid-column: 2; grid-row: 2; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px; }
    .catalogo-accion { grid-column: 3; grid-row: 1 / span 2; }
    .catalogo-item img { grid-row: 1 / span 2; }
}
@media (max-width: 600px) {
    .catalogo-item { grid-template-columns: 92px 1fr; gap: 10px 12px; padding: 12px; }
    .catalogo-item img { width: 92px; height: 92px; grid-row: 1 / span 2; }
    .catalogo-precio { grid-column: 2; grid-row: 2; }
    .catalogo-accion { grid-column: 1 / -1; grid-row: 3; flex-direction: row; }
    .catalogo-accion .portal-cantidad { flex: 0 0 auto; }
    .catalogo-agregar { flex: 1; }
    .catalogo-buscar { width: 100%; }
}
.catalogo-precio .catalogo-kilo { color: #355c66; font-weight: 700; }
