/* CTB override: restaurar scrollbar nativo del navegador */
::-webkit-scrollbar { display: block; width: 10px; }
::-webkit-scrollbar-thumb { background: #999; border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }
html { scrollbar-width: thin; }

/* -------------------------------------------
   Cerveza TierraBuena — marca
   café oscuro #2b2118 · crema #f3e9d8 · dorado #c8a24a
------------------------------------------- */
:root {
    --ctb-brown: #2b2118;
    --ctb-cream: #f3e9d8;
    --ctb-gold: #c8a24a;
}

.mil-soft-bg { background-color: var(--ctb-cream); }

/* ---------- tarjeta de producto ---------- */
.ctb-product-card {
    background-color: var(--ctb-cream);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ctb-product-img {
    background-color: #fff;
    padding: 10px;
    text-align: center;
}
.ctb-product-img img {
    max-width: 100%;
    height: 300px;
    -o-object-fit: contain;
       object-fit: contain;
}
.ctb-product-info {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}
.ctb-price {
    color: var(--ctb-brown);
    font-weight: 500;
    letter-spacing: 1px;
}
/* grid de tienda: título y precio más legibles */
#ctb-productos .ctb-product-info h5 { font-size: 1.3rem; }
#ctb-productos .ctb-price { font-size: 1.2rem; }

/* ---------- filtros de tienda ---------- */
.ctb-filtros { display: flex; flex-wrap: wrap; gap: 10px; }
.ctb-filtro {
    border: 1px solid var(--ctb-brown);
    background: transparent;
    color: var(--ctb-brown);
    border-radius: 40px;
    padding: 10px 25px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.2s;
}
.ctb-filtro:hover { border-color: var(--ctb-gold); color: var(--ctb-gold); }
.ctb-filtro-active {
    background-color: var(--ctb-brown);
    border-color: var(--ctb-brown);
    color: var(--ctb-cream);
}

/* ---------- header de tienda (título + filtros) ---------- */
.ctb-tienda-head { display: flex; flex-direction: column; gap: 15px; }
.ctb-tienda-sub { margin-bottom: 0; }
@media (min-width: 992px) {
    .ctb-tienda-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 30px;
    }
    .ctb-tienda-title { margin-bottom: 15px; }
    .ctb-tienda-head .ctb-filtros { flex-wrap: nowrap; gap: 30px; padding-bottom: 8px; }
    /* chips desktop: sin píldora, subrayado dorado en el filtro activo */
    .ctb-tienda-head .ctb-filtro {
        border: none !important;
        background: transparent !important;
        color: var(--ctb-brown) !important;
        border-radius: 0 !important;
        padding: 6px 2px !important;
        position: relative;
    }
    .ctb-tienda-head .ctb-filtro::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -2px;
        height: 2px;
        background: var(--ctb-gold);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s ease;
    }
    .ctb-tienda-head .ctb-filtro:hover { color: var(--ctb-gold) !important; }
    .ctb-tienda-head .ctb-filtro-active { color: var(--ctb-brown) !important; }
    .ctb-tienda-head .ctb-filtro-active::after { transform: scaleX(1); }
}
@media (max-width: 768px) {
    /* móvil: header compacto, el filtro vive en el selector sticky */
    .ctb-tienda-header { padding-top: 100px; padding-bottom: 25px; }
    .ctb-tienda-title { font-size: 2.4rem; margin-bottom: 10px; }
    .ctb-tienda-sub { font-size: 14px; opacity: 0.8; }
    .ctb-tienda-head .ctb-filtros { display: none; }
}

/* ---------- barra de filtros sticky (ambos viewports) ---------- */
/* .mil-wrapper{overflow:hidden} rompe position:sticky; clip recorta
   igual pero sin crear scroll container (los sticky vuelven a funcionar) */
.mil-wrapper { overflow: hidden; overflow: clip; }
.ctb-seg-wrap {
    display: block;
    position: sticky;
    top: 24px;
    z-index: 900;
    padding: 12px 15px;
    background-color: rgba(255, 253, 249, 0);
    transition: top 0.35s ease, box-shadow 0.3s ease, padding 0.25s ease, background-color 0.3s ease;
}
/* anclada: elevación + fondo + compresión sutil (transición de docking visible) */
.ctb-seg-wrap.ctb-docked {
    background-color: rgba(255, 253, 249, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 28px rgba(43, 33, 24, 0.14);
    padding: 8px 15px;
}
.ctb-seg {
    display: flex;
    gap: 4px;
    max-width: 420px;
    margin: 0 auto;
    padding: 4px;
    background: var(--ctb-cream);
    border: 1px solid #e4dccb;
    border-radius: 20px;
    transition: transform 0.3s ease;
}
.ctb-docked .ctb-seg { transform: scale(0.97); }
.ctb-seg-btn {
    flex: 1 1 0;
    border: none;
    background: transparent;
    color: var(--ctb-brown);
    border-radius: 16px;
    padding: 10px 4px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ctb-seg-active {
    background: var(--ctb-brown);
    color: var(--ctb-cream);
}
@media (min-width: 769px) {
    /* desktop: misma barra, más aire */
    .ctb-seg { max-width: 560px; }
    .ctb-seg-btn { font-size: 13px; letter-spacing: 2px; padding: 12px 8px; }
}
@media (max-width: 768px) {
    .ctb-seg-wrap { top: 90px; padding: 10px 15px; }
    /* navbar oculto (smart navbar): el selector sube al borde */
    .mil-frame.ctb-nav-hidden ~ .mil-content .ctb-seg-wrap { top: 0; }
}

/* ---------- encabezados de sección por tipo (catálogo agrupado) ---------- */
.ctb-tipo-header { padding: 40px 0 10px; }
.ctb-tipo-header h3 { margin-bottom: 0; }
.ctb-tipo-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--ctb-gold);
    margin-top: 12px;
}
.ctb-tipo-header:first-child { padding-top: 0; }

/* ---------- secciones por estilo (grid móvil) ---------- */
.ctb-estilo-header { padding: 20px 0 6px; }
.ctb-estilo-header h4 { margin-bottom: 0; }
.ctb-estilo-header::after {
    content: '';
    display: block;
    width: 42px;
    height: 2px;
    background: var(--ctb-gold);
    margin-top: 10px;
}

/* ---------- avisos ---------- */
.ctb-alert {
    background-color: var(--ctb-cream);
    border-left: 4px solid var(--ctb-gold);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}
.ctb-loading { text-align: center; padding: 60px 0; }

/* ---------- botón flotante del carrito ---------- */
#ctb-cart-toggle {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: var(--ctb-brown);
    color: var(--ctb-cream);
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(43, 33, 24, 0.35);
}
#ctb-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--ctb-gold);
    color: var(--ctb-brown);
    font-size: 12px;
    font-weight: 600;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 11px;
    padding: 0 4px;
}

/* ---------- popup del carrito (mismo patrón que el checkout) ---------- */
#ctb-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(43, 33, 24, 0.6);
    padding: 20px;
}
#ctb-cart-modal.ctb-open { display: flex; }
#ctb-cart-modal .ctb-cart-card { width: 560px; }
.ctb-modal-header .ctb-cart-close {
    background: none;
    border: none;
    color: var(--ctb-brown);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    flex: 0 0 auto;
}
.ctb-cart-empty { padding: 30px 0; text-align: center; }
.ctb-cart-empty-state { text-align: center; padding: 30px 0 20px; }
.ctb-cart-empty-state i {
    display: block;
    font-size: 44px;
    color: var(--ctb-gold);
    margin-bottom: 15px;
}
.ctb-cart-empty-state p { font-size: 1.15rem; margin-bottom: 25px; }
.ctb-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(200, 162, 74, 0.35);
}
.ctb-cart-item:last-child { border-bottom: none; }
.ctb-cart-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    -o-object-fit: cover;
       object-fit: cover;
    background-color: var(--ctb-cream);
    flex: 0 0 auto;
}
.ctb-cart-item-info { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.ctb-cart-item-info strong { font-size: 1.15rem; font-weight: 500; line-height: 1.25; overflow-wrap: break-word; color: var(--ctb-brown); }
.ctb-cart-item-info span { color: var(--ctb-brown); font-size: 1.1rem; font-weight: 600; }
.ctb-cart-item-qty { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ctb-cart-qty-num { min-width: 1.4em; text-align: center; font-weight: 600; }
.ctb-qty-btn {
    border: 1px solid var(--ctb-brown);
    background: none;
    color: var(--ctb-brown);
    cursor: pointer;
    line-height: 1;
}
.ctb-remove {
    background: none;
    border: none;
    color: #b04a3a;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}
.ctb-cart-foot { padding: 30px; border-top: 1px solid var(--ctb-cream); }
@media (max-width: 768px) {
    /* móvil: hoja inferior de ancho completo */
    #ctb-cart-modal { padding: 0; align-items: flex-end; }
    #ctb-cart-modal .ctb-cart-card {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 88vh;
    }
    /* id para ganarle a buttons-system.css (carga después) */
    #ctb-cart-modal .ctb-qty-btn { width: 40px; height: 40px; font-size: 16px; }
    #ctb-cart-modal .ctb-remove { width: 40px; height: 40px; font-size: 24px; }
}
.ctb-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ctb-brown);
}
#ctb-pagar { width: 100%; justify-content: center; }
#ctb-pagar:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- modal de checkout ---------- */
#ctb-checkout {
    position: fixed;
    inset: 0;
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(43, 33, 24, 0.6);
    padding: 20px;
}
#ctb-checkout.ctb-open { display: flex; }
.ctb-modal {
    background: #fff;
    border-radius: 20px;
    width: 520px;
    max-width: 100%;
    max-height: 88vh;
    overflow: hidden;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}
@media (min-width: 993px) {
    #ctb-checkout .ctb-modal { width: 92%; max-width: 860px; }
}
/* zona 1: header fijo (logo + título del paso + cerrar) */
.ctb-modal-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 24px;
    border-bottom: 1px solid #e4dccb;
}
.ctb-modal-header .ctb-popup-logo {
    height: 40px;
    width: auto;
    margin: 0;
    display: block;
}
.ctb-modal-header h4 {
    flex: 1;
    margin: 0;
    font-size: 1.4rem;
    text-align: left;
}
/* zona 2: cuerpo, lo único que scrollea */
.ctb-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px;
    -webkit-overflow-scrolling: touch;
}
/* zona 3: footer fijo con las acciones */
.ctb-modal-footer {
    flex: 0 0 auto;
    padding: 16px 24px;
    border-top: 1px solid #e4dccb;
}
.ctb-modal-footer .ctb-step-actions { display: none; margin-top: 0; }
.ctb-modal-footer .ctb-step-actions-active { display: flex; }
.ctb-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    color: var(--ctb-brown);
    cursor: pointer;
    line-height: 1;
    flex: 0 0 auto;
}
.ctb-steps-nav { display: flex; gap: 8px; margin-bottom: 30px; }
.ctb-step-dot {
    height: 4px;
    flex: 1;
    border-radius: 2px;
    background-color: var(--ctb-cream);
}
.ctb-step-dot-active { background-color: var(--ctb-gold); }
.ctb-step { display: none; }
.ctb-step-active { display: block; }
.ctb-field { margin-bottom: 20px; }
.ctb-field label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ctb-brown);
    margin-bottom: 8px;
}
.ctb-field input {
    width: 100%;
    border: 1px solid #d9cdb9;
    border-radius: 20px;
    padding: 12px 15px;
    font-size: 15px;
    background-color: #fffdf9;
    color: var(--ctb-brown);
}
.ctb-field input:focus { outline: none; border-color: var(--ctb-gold); }
.ctb-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 30px;
}
#ctb-checkout-error {
    display: none;
    margin: 0 0 12px;
    padding: 12px 15px;
    border-radius: 20px;
    background-color: #f8e2dd;
    border-left: 4px solid #b04a3a;
    color: #7a2e22;
    font-size: 14px;
}
.ctb-resumen-linea {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--ctb-cream);
    font-size: 14px;
}
.ctb-resumen-total { font-weight: 600; border-bottom: none; color: var(--ctb-brown); }

/* ---------- paso 4: pago embebido (Stripe Payment Element) ---------- */
.ctb-pago-resumen {
    background-color: var(--ctb-cream);
    border-radius: 20px;
    padding: 18px 25px;
    margin-bottom: 25px;
}
.ctb-pago-resumen .ctb-resumen-linea { border-bottom-color: rgba(43, 33, 24, 0.08); }
.ctb-pago-box { min-height: 90px; }
#ctb-stripe-element { min-height: 0; }
#ctb-stripe-element iframe { max-width: 100%; }
.ctb-pago-cargando {
    font-size: 14px;
    color: var(--ctb-brown);
    opacity: 0.65;
    padding: 6px 0 12px;
}
#ctb-pago-fallback { margin-top: 15px; font-size: 14px; color: var(--ctb-brown); }
#ctb-pago-fallback a {
    color: var(--ctb-gold);
    font-weight: 600;
    text-decoration: underline;
}
#ctb-pagar-ahora:disabled { opacity: 0.4; cursor: not-allowed; }
.ctb-pago-trust {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--ctb-brown);
    opacity: 0.6;
}
.ctb-pago-trust i { color: var(--ctb-gold); margin-right: 6px; }

/* ---------- tarjetas info (Casa / Club) ---------- */
.ctb-info-card {
    background-color: var(--ctb-cream);
    border-radius: 20px;
    padding: 40px;
    height: calc(100% - 60px);
}

/* ---------- galeria Casa TierraBuena ---------- */
.ctb-casa-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 30px;
}
.ctb-casa-gallery img {
    width: 100%;
    aspect-ratio: 3 / 4;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* ---------- ajustes responsivos ---------- */
@media (max-width: 768px) {
    #ctb-cart-toggle { right: 20px; bottom: 20px; }
    .ctb-modal-header { padding: 14px 18px; }
    .ctb-modal-body { padding: 18px; }
    .ctb-modal-footer { padding: 12px 18px; }
}

/* CTB: carrusel 1 producto grande, contenido (swiper v8 css no cubre .swiper-container) */
.mil-2-slider {
    position: relative;
    overflow: hidden;
}
.mil-2-slider .swiper-slide .mil-cover-frame,
.mil-2-slider .swiper-slide { max-width: 100%; }
.mil-2-slider .mil-cover-frame img { height: 65vh; min-height: 420px; object-fit: contain; width: 100%; }
.mil-2-slider .ctb-product-card {
    max-width: 100%;
    margin: 0 auto;
}
.mil-2-slider .ctb-product-img {
    background-color: var(--ctb-cream);
    padding: 40px 20px 10px;
}
.mil-2-slider .ctb-product-img img { height: 48vh; min-height: 300px; }

/* ---------- CTB: logo del hero ---------- */
.ctb-hero-logo {
    height: 185px;
    width: auto;
    display: block;
    margin: 0 0 1.5rem;
}
/* dar aire vertical para que el logo quepa completo en 1440x900 */
.mil-banner .mil-banner-content { padding-bottom: 60px; }
.mil-banner .mil-banner-content h1 { margin-bottom: 40px; }

/* ---------- CTB: logo mono del frame en móvil (barra oscura, sin invert de fondo) ---------- */
@media screen and (max-width: 1200px) {
    .mil-frame .mil-frame-top .mil-logo img {
        filter: invert(1);
    }
}

/* ---------- CTB: preloader más grande ---------- */
.mil-preloader .mil-preloader-animation .mil-pos-abs p.mil-h3 {
    font-size: 64px;
    line-height: 1.15;
}
@media screen and (max-width: 992px) {
    .mil-preloader .mil-preloader-animation .mil-pos-abs p.mil-h3 {
        font-size: 38px;
    }
    .mil-preloader .mil-preloader-animation .mil-pos-abs p.mil-h3 img {
        height: 72px !important;
    }
}

/* ---------- CTB: texto informativo más grande (historia / casa / club / gracias) ---------- */
#historia p {
    font-size: 1.3rem;
    line-height: 1.75;
}
#historia .mil-mb-90 > p:first-of-type {
    font-size: 1.5rem;
    line-height: 1.65;
}
#historia .mil-quote {
    font-size: 1.5rem;
    line-height: 1.5;
}
#historia .ctb-info-card h4 {
    font-size: 2.1rem;
}
#historia .ctb-info-card .mil-text-sm {
    font-size: 1.1rem;
    line-height: 1.7;
}
#ctb-gracias p {
    font-size: 1.3rem;
    line-height: 1.75;
}

/* ---------- CTB: slider galería Casa TierraBuena ---------- */
.ctb-casa-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 30px;
}
.ctb-casa-slider .swiper-slide img {
    width: 100%;
    height: 320px;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}
.ctb-casa-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}
.ctb-casa-slider .swiper-pagination-bullet-active {
    background: var(--ctb-gold);
    opacity: 1;
}

/* ---------- CTB: newsletter (formulario footer + popup) ---------- */
.ctb-news-msg {
    display: none;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
}
.ctb-news-msg.ctb-error { color: #e07a63; display: block; }
.ctb-news-msg.ctb-ok { color: var(--ctb-gold); display: block; }
.ctb-news-overlay {
    position: fixed;
    inset: 0;
    z-index: 1005;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    display: none;
}
.ctb-news-overlay.ctb-open {
    display: flex;
}
.ctb-news-modal {
    background: var(--ctb-brown);
    color: var(--ctb-cream);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}
.ctb-popup-logo {
    display: block;
    height: 72px;
    width: auto;
    margin: 0 auto 20px;
}
.ctb-news-modal h4 {
    color: var(--ctb-cream);
    font-size: 1.9rem;
    margin-bottom: 20px;
}
.ctb-news-modal p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: rgba(243, 233, 216, 0.85);
}
.ctb-news-modal .ctb-news-close {
    background: var(--ctb-gold);
    color: var(--ctb-brown);
    border: none;
    border-radius: 40px;
    padding: 14px 40px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.2s;
}
.ctb-news-modal .ctb-news-close:hover { filter: brightness(1.08); }

/* ---------- CTB: página Club TierraBuena ---------- */
.ctb-club-card {
    background-color: var(--ctb-cream);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
}
.ctb-club-card h4 { margin-bottom: 20px; }
.ctb-club-card p { margin-bottom: 20px; }
.ctb-club-hero p {
    font-size: 1.3rem;
    line-height: 1.75;
}
.ctb-club-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    font-size: 1.15rem;
    line-height: 1.7;
}
.ctb-club-benefits li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
}
.ctb-club-benefits li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ctb-gold);
}
.ctb-club-form .ctb-field input { background-color: #fff; }
.ctb-club-result {
    display: none;
    margin-top: 25px;
    padding: 25px;
    border-radius: 20px;
    background: #fff;
    border-left: 4px solid var(--ctb-gold);
}
.ctb-club-result.ctb-show { display: block; }
.ctb-club-result.ctb-error { border-left-color: #b04a3a; }
.ctb-club-token {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}
.ctb-club-token code {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--ctb-brown);
    background: var(--ctb-cream);
    padding: 10px 18px;
    border-radius: 12px;
    word-break: break-all;
}
.ctb-club-copy {
    border: 1px solid var(--ctb-brown);
    background: transparent;
    color: var(--ctb-brown);
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
}
.ctb-club-copy:hover { border-color: var(--ctb-gold); color: var(--ctb-gold); }

/* ---------- CTB: ajustes móviles ---------- */
@media (max-width: 768px) {
    .ctb-hero-logo {
        height: 100px;
        max-width: 60vw;
        -o-object-fit: contain;
           object-fit: contain;
    }
    .mil-2-slider .ctb-product-card { max-width: 100%; }
    .mil-2-slider .ctb-product-img { padding: 25px 15px 5px; }
    .mil-2-slider .ctb-product-img img { height: 200px; }
    #historia p { font-size: 1.15rem; }
    #historia .mil-mb-90 > p:first-of-type { font-size: 1.3rem; }
    #historia .mil-quote { font-size: 1.25rem; }
    #historia .ctb-info-card h4 { font-size: 1.7rem; }
    .ctb-casa-slider .swiper-slide img { height: 230px; }
    .ctb-news-modal { padding: 35px 25px; }
    .ctb-news-modal h4 { font-size: 1.5rem; }
    .ctb-club-card { padding: 30px 20px; }
}

/* CTB: fuente mayor en menu desplegable */
.mil-main-menu ul li a { font-size: 3.2rem !important; }
@media (max-width: 992px) {
  .mil-main-menu ul li a { font-size: 2.2rem !important; }
}

/* ---------- CTB: estilo fotografico (radio 20 + sombra suave) ---------- */
.ctb-product-card .ctb-product-img {
    border-radius: 20px;
    box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.18);
    margin: 20px;
}
.ctb-product-img img { border-radius: 20px; }
.mil-about-photo .mil-img-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.18);
}
.ctb-casa-slider {
    border-radius: 20px;
    box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.18);
}

/* ---------- CTB: banner Club en tienda ---------- */
.ctb-club-banner {
    background-color: var(--ctb-brown);
    color: var(--ctb-cream);
    border-radius: 20px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.18);
}
.ctb-club-banner h2 {
    color: var(--ctb-cream);
    font-size: 2.4rem;
    margin-bottom: 15px;
}
.ctb-club-banner p {
    color: rgba(243, 233, 216, 0.85);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 15px;
    max-width: 640px;
}
.ctb-club-banner .ctb-club-trust {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--ctb-gold);
    margin-bottom: 0;
}
.ctb-club-banner-cta {
    flex-shrink: 0;
    display: inline-block;
    background-color: var(--ctb-gold);
    color: var(--ctb-brown) !important;
    border-radius: 40px;
    padding: 18px 40px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
}
.ctb-club-banner-cta:hover { filter: brightness(1.08); }
@media (max-width: 768px) {
    .ctb-club-banner { padding: 35px 25px; }
    .ctb-club-banner h2 { font-size: 1.8rem; }
}

/* ---------- CTB: texto del footer mas legible ---------- */
footer .mil-light-soft,
footer .mil-menu-list a {
    font-size: 1.1rem;
    line-height: 1.7;
}
footer p.mil-light-soft { font-size: 1.1rem; }
footer .mil-vert-between > p.mil-light-soft { font-size: 0.95rem; } /* legal, un paso abajo */

/* ---------- CTB: CTAs del hero mas visibles ---------- */
.mil-banner .mil-button span,
.mil-banner .mil-link span {
    font-size: 1.05rem;
    letter-spacing: 2.5px;
}
.mil-banner .mil-button:not(.mil-icon-button):not(.mil-icon-button-sm) {
    padding: 0 15px 0 50px;
    height: 74px;
}

/* ---------- CTB: botón flotante de WhatsApp ---------- */
#ctb-wa {
    position: fixed;
    left: 28px;
    bottom: 40px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.2s;
}
#ctb-wa:hover {
    box-shadow: 0 0 0 3px var(--ctb-gold), 0 6px 20px rgba(0, 0, 0, 0.35);
}
/* en páginas con carrito flotante, apilar arriba del carrito */
#ctb-wa.ctb-wa-stacked { bottom: 32px; }
@media (max-width: 768px) {
    #ctb-wa { left: 20px; right: auto; bottom: 20px; width: 54px; height: 54px; font-size: 26px; }
    #ctb-wa.ctb-wa-stacked { bottom: 20px; }
}

/* ---------- CTB: bordes redondeados de secciones ---------- */
.mil-banner.mil-dark-bg {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow: hidden;
}
footer.mil-dark-bg {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
}
section.mil-soft-bg {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* ---------- CTB: visor 3D del hero ---------- */
.ctb-hero-3d {
    position: absolute;
    top: 10vh;
    right: 4vw;
    width: 44vw;
    max-width: 640px;
    height: 78vh;
    pointer-events: auto;
}
.ctb-hero-3d model-viewer { width: 100%; height: 100%; }
.ctb-hero-3d-fallback {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
    opacity: 0.9;
}
@media (max-width: 992px) {
    .ctb-hero-3d {
        top: 4vh;
        right: 0;
        width: 60vw;
        height: 40vh;
        opacity: 0.55;
    }
}

/* ---------- CTB: pagina 404 ---------- */
#ctb-404 { min-height: 70vh; display: flex; align-items: center; }
#ctb-404 .mi-invert-fix { width: 100%; }
.ctb-404-code { font-size: 9rem; color: #fff; letter-spacing: 8px; }
.ctb-404-gold { color: var(--ctb-gold); }
.ctb-404-text { color: rgba(243, 233, 216, 0.85); font-size: 1.4rem; line-height: 1.7; }
@media (max-width: 768px) { .ctb-404-code { font-size: 5.5rem; } .ctb-404-text { font-size: 1.15rem; } }

/* CTB: boton Agregar mejorado */
.ctb-add {
  background: #2b2118 !important;
  color: #f3e9d8 !important;
  border-radius: 14px !important;
  padding: 14px 26px !important;
  font-size: 0.95rem !important;
  letter-spacing: 1.5px;
  border: 1.5px solid #2b2118 !important;
  transition: all .25s ease !important;
  display: inline-flex; align-items: center; gap: 9px;
}
.ctb-add::before {
  content: "\f291";
  font-family: "Font Awesome 5 Free"; font-weight: 900;
  font-size: 0.95em; color: #c8a24a;
  transition: color .25s ease;
}
.ctb-add:hover {
  background: #c8a24a !important;
  color: #2b2118 !important;
  border-color: #c8a24a !important;
  transform: translateY(-2px);
  box-shadow: 4px 6px 14px rgba(43, 33, 24, .28);
}
.ctb-add:hover::before { color: #2b2118; }
.ctb-add.ctb-added {
  background: #3e7a3e !important;
  border-color: #3e7a3e !important;
  color: #fff !important;
}
.ctb-add.ctb-added::before { content: "\f07a"; color: #fff; }

/* CTB: burbujas doradas minimal en hero */
.ctb-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ctb-bubble {
  position: absolute; bottom: -30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(200,162,74,.5), rgba(200,162,74,.12) 65%, transparent);
  animation: ctb-rise linear infinite;
}
@keyframes ctb-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: .55; }
  92%  { opacity: .25; }
  100% { transform: translateY(-108vh) translateX(24px); opacity: 0; }
}
.ctb-bubble.b1  { left: 8%;  width: 10px; height: 10px; animation-duration: 14s; animation-delay: 0s; }
.ctb-bubble.b2  { left: 18%; width: 6px;  height: 6px;  animation-duration: 18s; animation-delay: 3s; }
.ctb-bubble.b3  { left: 28%; width: 14px; height: 14px; animation-duration: 12s; animation-delay: 6s; }
.ctb-bubble.b4  { left: 38%; width: 8px;  height: 8px;  animation-duration: 16s; animation-delay: 1.5s; }
.ctb-bubble.b5  { left: 48%; width: 5px;  height: 5px;  animation-duration: 20s; animation-delay: 8s; }
.ctb-bubble.b6  { left: 58%; width: 12px; height: 12px; animation-duration: 13s; animation-delay: 4s; }
.ctb-bubble.b7  { left: 66%; width: 7px;  height: 7px;  animation-duration: 17s; animation-delay: 10s; }
.ctb-bubble.b8  { left: 74%; width: 16px; height: 16px; animation-duration: 11s; animation-delay: 2s; }
.ctb-bubble.b9  { left: 82%; width: 9px;  height: 9px;  animation-duration: 15s; animation-delay: 7s; }
.ctb-bubble.b10 { left: 90%; width: 6px;  height: 6px;  animation-duration: 19s; animation-delay: 5s; }
.ctb-bubble.b11 { left: 33%; width: 4px;  height: 4px;  animation-duration: 22s; animation-delay: 12s; }
.ctb-bubble.b12 { left: 62%; width: 5px;  height: 5px;  animation-duration: 21s; animation-delay: 14s; }
@media (prefers-reduced-motion: reduce) { .ctb-bubble { animation: none; opacity: .15; } }

/* CTB: inputs y forms sin mayusculas forzadas */
input, textarea, select, .mil-subscribe-form input, form label {
  text-transform: none !important;
}
input::placeholder, textarea::placeholder { text-transform: none !important; }

/* CTB: boton secundario (Regresar) */
.ctb-btn-secondary {
  background: transparent; color: #2b2118;
  border: 1.5px solid #2b2118; border-radius: 14px;
  padding: 13px 24px; font-size: .95rem; cursor: pointer;
  letter-spacing: 1px; transition: all .25s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.ctb-btn-secondary:hover { background: #2b2118; color: #f3e9d8; }
.ctb-btn-secondary i { font-size: .85em; }

/* CTB: scroll lock con popup activo */
body.ctb-no-scroll { overflow: hidden !important; }

/* CTB: modal de orden mas ancho en desktop */
@media (min-width: 993px) {
  .ctb-checkout-modal .ctb-modal-card, .ctb-modal-card { max-width: 860px !important; width: 92%; }
}

/* CTB: mas burbujas */
.ctb-bubble.b13 { left: 13%; width: 7px;  height: 7px;  animation-duration: 16s; animation-delay: 9s; }
.ctb-bubble.b14 { left: 23%; width: 11px; height: 11px; animation-duration: 13s; animation-delay: 11s; }
.ctb-bubble.b15 { left: 44%; width: 6px;  height: 6px;  animation-duration: 18s; animation-delay: 2.5s; }
.ctb-bubble.b16 { left: 54%; width: 9px;  height: 9px;  animation-duration: 14s; animation-delay: 13s; }
.ctb-bubble.b17 { left: 71%; width: 5px;  height: 5px;  animation-duration: 20s; animation-delay: 6.5s; }
.ctb-bubble.b18 { left: 86%; width: 12px; height: 12px; animation-duration: 12s; animation-delay: 9.5s; }



/* CTB: burbuja saludo whatsapp — flota encima del boton, con cola */
#ctb-wa-bubble {
  position: fixed; left: 28px; bottom: 104px; z-index: 998;
  background: #f3e9d8; color: #2b2118; font-size: .95rem;
  padding: 12px 34px 12px 16px; border-radius: 16px 16px 16px 4px;
  box-shadow: 4px 6px 18px rgba(0,0,0,.25); cursor: pointer;
  opacity: 0; transform: translateY(10px) scale(.85);
  transform-origin: bottom left;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none; max-width: 240px;
}
#ctb-wa-bubble::after {
  content: ""; position: absolute; bottom: -9px; left: 18px;
  border-right: 10px solid transparent; border-left: 4px solid transparent;
  border-top: 10px solid #f3e9d8;
}
#ctb-wa-bubble.ctb-wa-bubble-on { opacity: 1; transform: none; pointer-events: auto; }
#ctb-wa-bubble button {
  position: absolute; top: 4px; right: 8px; border: 0; background: none;
  font-size: 1rem; cursor: pointer; color: #8a7a5e;
}
@media (max-width: 768px) { #ctb-wa-bubble { left: 20px; right: auto; bottom: 92px; } }

/* CTB: club v2 — diagrama desk */
.ctb-diagrama-desk { display: flex; align-items: stretch; gap: 10px; justify-content: center; }
.ctb-diagrama-desk .ctb-paso {
  flex: 1; max-width: 250px; background: #f3e9d8; border-radius: 20px;
  padding: 28px 20px; text-align: center; position: relative;
}
.ctb-diagrama-desk .ctb-paso > i { font-size: 2rem; color: #c8a24a; margin-bottom: 14px; display: block; }
.ctb-paso-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: #2b2118; color: #c8a24a;
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.ctb-diagrama-desk h5 { margin-bottom: 8px; }
.ctb-diagrama-desk p { font-size: .92rem; line-height: 1.45; }
.ctb-paso-flecha { display: flex; align-items: center; color: #c8a24a; font-size: 1.3rem; }
.ctb-diagrama-mobile { display: none; }

/* CTB: club v2 — diagrama mobile */
@media (max-width: 768px) {
  .ctb-diagrama-desk { display: none; }
  .ctb-diagrama-mobile { display: block; max-width: 420px; margin: 0 auto; }
  .ctb-paso-m { display: flex; gap: 16px; align-items: flex-start; }
  .ctb-paso-m .ctb-paso-num { position: static; transform: none; flex: 0 0 30px; margin-top: 2px; }
  .ctb-paso-m h5 { margin-bottom: 4px; }
  .ctb-paso-m h5 i { color: #c8a24a; margin-right: 6px; }
  .ctb-paso-m p { font-size: .95rem; }
  .ctb-paso-m-linea { width: 2px; height: 26px; background: #c8a24a; margin: 6px 0 6px 14px; }
}

/* CTB: club v2 — FAQ */
.ctb-faq-item {
  background: #fff; border: 1px solid #e4dccb; border-radius: 20px;
  margin-bottom: 14px; padding: 0; overflow: hidden;
}
.ctb-faq-item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1.08rem;
  list-style: none; position: relative; user-select: none;
}
.ctb-faq-item summary::-webkit-details-marker { display: none; }
.ctb-faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: #c8a24a; font-size: 1.4rem; font-weight: 400; transition: transform .25s ease;
}
.ctb-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ctb-faq-item > p, .ctb-faq-item > form, .ctb-faq-item > div { padding: 0 24px 20px; }
.ctb-faq-item form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }


