/* =====================================================================
   Cristal 2.0: lo que antes estaba en <style> sueltos de cada pantalla
   (tienda/index.php y header.php), mas las piezas nuevas: hero a todo el
   ancho, franja Club + ACP, popup, aviso y menu de la cuenta.
   La hoja de siempre (tienda.css, ex estilos19.css) va antes y no se toca.
   ===================================================================== */

/* ---- Catalogo (de tienda/index.php) ---- */
.catalog-container { max-width: 1250px; margin: 40px auto; display: flex; gap: 30px; padding: 0 15px; position: relative; align-items: flex-start;}

.catalog-sidebar { flex: 0 0 260px; background: #fff; padding: 25px; border-radius: 16px; box-shadow: 0 5px 20px rgba(0,0,0,0.04); border: 1px solid #f0f0f0; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
.catalog-sidebar::-webkit-scrollbar { width: 6px; }
.catalog-sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

.filter-box { margin-bottom: 25px; }
.filter-title { font-size: 15px; font-weight: 800; color: #2c3e50; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #eee; padding-bottom: 8px;}
.filter-link t {white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

/* Links de filtros normales */
.filter-link { display: flex; justify-content: space-between; align-items: center; color: #555; text-decoration: none; font-size: 13.5px; margin-bottom: 10px; transition: color 0.2s;}
.filter-link:hover { color: var(--color1, #0877D3); font-weight: 600;}
.filter-link span { color: #aaa; font-size: 12px; }

/* Badges Activos (Ocupan el 100% de la caja) */
.badge-active { display: flex; justify-content: space-between; align-items: center; background: #fdf2f0; color: #c0392b; border: 1px solid #fadbd8; padding: 10px 15px; border-radius: 8px; font-size: 13px; font-weight: bold; text-decoration: none; transition: 0.2s; width: 100%; box-sizing: border-box;}
.badge-active:hover { background: #fadbd8; }
.badge-active i { font-size: 16px; margin-left: 10px; }

/* Variante del Badge para el Buscador (No borrable) */
.badge-search { background: #f0f7ff; color: var(--color1, #0877D3); border: 1px solid #cce4fc; cursor: default; }
.badge-search:hover { background: #f0f7ff; }

/* Precios */
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; outline: none; width: 100%;}
.price-inputs input:focus { border-color: var(--color1, #0877D3); }
.btn-price { background: #eee; border: none; padding: 10px; border-radius: 6px; cursor: pointer; color: #555; transition: 0.3s; display:flex; align-items:center; justify-content:center;}
.btn-price:hover { background: var(--color1, #0877D3); color: white; }

/* Contenido Principal */
.catalog-content { flex: 1; min-width: 0; }
.catalog-topbar { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 15px 25px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid #f0f0f0; margin-bottom: 20px; }
.catalog-topbar h1 { font-size: 20px; color: #333; margin: 0; font-family: 'Xmind', sans-serif; font-weight: 800; display: flex; gap: 8px}
.catalog-topbar em { font-size: 16px; color: #555; font-style: normal; display: flex; gap: 5px; font-family: 'Xmind', sans-serif; font-weight: 800; margin-top: 7px; }
.catalog-topbar em i { font-size: 20px; color: #555; }
.catalog-topbar p { margin: 5px 0 0 0; font-size: 13px; color: #777; }
.sort-box { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #555; font-weight: bold;}
.sort-box select { padding: 8px 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; background: #fafafa; cursor: pointer; }
.btn-mobile-filter { display: none; background: var(--color1, #0877D3); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: bold; font-size: 14px; cursor: pointer; align-items: center; gap: 5px; }

/* Loader y Botón Ver Más */
.catalog-loader { display: none; text-align: center; padding: 40px; width: 100%; grid-column: 1 / -1;}
.btn-load-more { background: #fff; border: 2px solid var(--color1, #0877D3); color: var(--color1, #0877D3); padding: 12px 30px; border-radius: 50px; font-weight: bold; font-size: 15px; cursor: pointer; transition: 0.3s; margin: 30px auto; display: block; text-transform: uppercase;}
.btn-load-more:hover { background: var(--color1, #0877D3); color: #fff;}

@media (max-width: 900px) {
.catalog-container { flex-direction: column; margin-top: 20px; }
.catalog-topbar { flex-direction: column; align-items: flex-start; gap: 15px; }
.btn-mobile-filter { display: flex; width: 100%; justify-content: center; }
.sort-box { width: 100%; justify-content: space-between; }
.catalog-sidebar { position: fixed; top: 0; left: -100%; width: 85vw; height: 100vh; z-index: 9999; border-radius: 0; transition: left 0.3s ease; padding-top: 60px; }
.sidebar-active { left: 0; }
.close-filter { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 30px; color: #333; cursor: pointer; display: block; }
}
@media (min-width: 901px) { .close-filter { display: none; } }

.marca-item a{
    max-height: 60px;
}

/* La franja de marcas va pegada: sin el relleno de 60px de tienda.css ni el del envoltorio. */
.marcas-section,
.marquee-wrapper{
    padding: 0;
}

.marquee-wrapper {
overflow: hidden;
white-space: nowrap;
width: 100%;
}

.marquee-track {
display: inline-flex; /* inline-flex alinea mejor las imágenes verticales que inline-block */
align-items: center;
width: max-content;
animation: scroll-left 170s linear infinite; /* mas lenta: antes iba a 100s */
}

@keyframes scroll-left {
0% { 
    transform: translateX(0); 
}
100% { 
    /* Se mueve exactamente hasta la mitad de la pista duplicada */
    transform: translateX(-50%); 
}
}

/* ---- Cabecera y buscador (de header.php) ---- */
#buscar:focus-within input[type="submit"] {
	background-color: var(--color1); border-color: var(--color1);
}
input#search_q{box-shadow: none; }
input#search_q:focus { border-color: var(--color1); }

.head_group_right a{border-radius: 15px}

	body{padding-top: 0;}
	
	.admin-dashboard {
		padding-top: 20px;
	}
	
	.ojoPass{
		right: 12px;
		left: auto !important;
		top: 28px;
	}
	
	.input-wrapper input {
		border-radius: 12px !important;
		border: 2px solid transparent !important;
		background: linear-gradient(white, white) padding-box, linear-gradient(90deg, #77bdf7, #ff8e83) border-box !important;
	}
	.input-wrapper input:focus {
		background: linear-gradient(white, white) padding-box, linear-gradient(90deg, #0877D3, #e74c3c) border-box !important;
	}
.cd-search-clear{
    position: absolute;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 18px !important;
    line-height: 1;
    color: #9aa0a6;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    -webkit-user-select: none;
    user-select: none;
    transition: background .15s, color .15s;
}
.cd-search-clear:hover{ background: rgba(0,0,0,.08); color: #444; }
.cd-sug{
    position: absolute;
    display: none;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
    overflow: hidden;
    z-index: 10050;
    max-height: 430px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.cd-sug-item{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f2f2f2;
    transition: background .12s;
}
.cd-sug-item:last-child{ border-bottom: 0; }
.cd-sug-item:hover,
.cd-sug-item.cd-activo{ background: #f2f7fd; }

.cd-sug-img{
    width: 46px; height: 46px; flex-shrink: 0;
    object-fit: contain;
    border: 1px solid #eee; border-radius: 8px; background: #fff;
}
.cd-sug-txt{ flex: 1; min-width: 0; }
.cd-sug-marca{
    font-size: 10.5px; color: #999; text-transform: uppercase;
    letter-spacing: .4px; line-height: 1.2;
}
.cd-sug-nombre{
    font-size: 13px; color: #2c3e50; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.cd-sug-nombre b{ color: var(--color1, #0877D3); font-weight: 700; }
.cd-sug-precio{
    flex-shrink: 0; text-align: right; font-size: 13.5px;
    font-weight: 800; color: #2c3e50; white-space: nowrap;
}
.cd-sug-off{
    display: block; font-size: 10px; font-weight: 700;
    color: #27ae60; margin-top: 2px;
}
.cd-sug-todos{
    display: block; padding: 11px 12px; text-align: center;
    font-size: 12.5px; font-weight: 700; color: var(--color1, #0877D3);
    background: #fafbfc; cursor: pointer; text-decoration: none;
    border-top: 1px solid #eee;
}
.cd-sug-todos.cd-activo{ background: #eaf3fc; }
.cd-sug-msg{ padding: 16px 12px; text-align: center; font-size: 12.5px; color: #999; }

/* =====================================================================
   Piezas nuevas de la 2.0
   ===================================================================== */
[hidden] { display: none !important; }


/* ---- Aviso de abajo (reemplaza a alert) ---- */
.v2-aviso { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 99999; display: flex; align-items: center;
            gap: 8px; max-width: calc(100vw - 32px); box-sizing: border-box; background: #222; color: #fff; padding: 12px 22px;
            border-radius: 50px; font-size: 14px; font-weight: bold; box-shadow: 0 4px 15px rgba(0,0,0,.4); }
.v2-aviso .material-icons { color: #2ecc71; font-size: 20px; }
.v2-aviso-error .material-icons { color: #ff8a80; }
.v2-girando { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff;
              border-radius: 50%; animation: v2gira .7s linear infinite; vertical-align: middle; }
@keyframes v2gira { to { transform: rotate(360deg); } }

/* ---- Hero a todo el ancho ---- */
.v2-hero { position: relative; width: 100%; height: clamp(320px, 38vw, 470px); overflow: hidden; background: #fdecef; }
.v2-hero-lamina { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s;
                  background: radial-gradient(circle at 75% 50%, #fff 0, var(--fondo) 55%); }
.v2-hero-lamina.activa { opacity: 1; visibility: visible; }
.v2-hero-fondo, .v2-hero-fondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v2-hero-imagen .v2-hero-contenido { background: linear-gradient(90deg, rgba(0,0,0,.55) 0, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%); }
.v2-hero-imagen .v2-hero-titulo, .v2-hero-imagen .v2-hero-bajada, .v2-hero-imagen .v2-hero-ante { color: #fff; }
.v2-hero-contenido { position: relative; height: 100%; max-width: 1250px; margin: 0 auto; padding: 0 80px; box-sizing: border-box;
                     display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.v2-hero-texto { flex: 1 1 50%; max-width: 560px; }
.v2-hero-ante { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--color1); margin-bottom: 12px; }
.v2-hero-titulo { font-family: 'Xmind', sans-serif; font-size: clamp(24px, 3.4vw, 44px); line-height: 1.12; font-weight: 800;
                  color: #2c2c2c; margin: 0 0 14px; }
.v2-hero-bajada { font-size: 17px; color: #555; margin: 0 0 22px; line-height: 1.5; }
.v2-hero-boton { display: inline-flex; align-items: center; gap: 8px; background: var(--color1); color: #fff !important; padding: 15px 30px;
                 border-radius: 50px; font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 8px 20px rgba(179,36,76,.3);
                 transition: transform .2s, box-shadow .2s; }
.v2-hero-boton:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(179,36,76,.38); }
.v2-hero-boton .material-icons { font-size: 20px; }
.v2-hero-foto { flex: 0 1 44%; height: 100%; display: flex; align-items: center; justify-content: center; }
.v2-hero-foto img { max-height: 86%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.v2-hero-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0;
                  background: rgba(255,255,255,.9); box-shadow: 0 4px 12px rgba(0,0,0,.15); cursor: pointer; display: flex;
                  align-items: center; justify-content: center; color: #333; z-index: 2; padding: 0; }
.v2-hero-prev { left: 16px; }
.v2-hero-next { right: 16px; }
.v2-hero-puntos { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.v2-hero-punto { width: 10px; height: 10px; padding: 0; border-radius: 10px; border: 0; background: rgba(0,0,0,.22); cursor: pointer;
                 transition: width .3s, background .3s; }
.v2-hero-punto.activo { width: 28px; background: var(--color1); }

@media (max-width: 700px) {
    .v2-hero { height: 470px; }
    .v2-hero-contenido { flex-direction: column-reverse; justify-content: center; padding: 20px 20px 46px; gap: 10px; text-align: center; }
    .v2-hero-imagen .v2-hero-contenido { justify-content: flex-end; text-align: left;
                                         background: linear-gradient(0deg, rgba(0,0,0,.65) 0, rgba(0,0,0,0) 70%); }
    .v2-hero-texto { flex: 0 0 auto; }
    .v2-hero-foto { flex: 0 1 auto; height: 210px; }
    .v2-hero-foto img { max-height: 100%; }
    .v2-hero-ante { letter-spacing: 2px; margin-bottom: 6px; font-size: 12px; }
    .v2-hero-bajada { font-size: 15px; margin-bottom: 16px; }
    .v2-hero-boton { padding: 14px 24px; font-size: 15px; }
    .v2-hero-flecha { display: none; }
}

/* ---- Franja Cristal Club + Escuela ACP ---- */
.v2-franja { max-width: 1250px; margin: 24px auto 0; padding: 0 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; box-sizing: border-box; }
.v2-franja-item { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 16px; text-decoration: none;
                  color: #fff !important; min-height: 84px; box-sizing: border-box; transition: transform .2s, box-shadow .2s; }
.v2-franja-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.v2-franja-club { background: linear-gradient(120deg, #1f1f1f, #3a3a3a); }
.v2-franja-club > .material-icons { font-size: 40px; color: #f1c40f; }
.v2-franja-acp { background: linear-gradient(120deg, var(--color1), #d9466f); }
.v2-franja-acp img { width: 64px; height: auto; background: #fff; border-radius: 10px; padding: 6px; box-sizing: border-box; }
.v2-franja-texto { flex: 1; font-size: 14px; line-height: 1.4; }
.v2-franja-texto strong { display: block; font-family: 'Xmind', sans-serif; font-size: 18px; margin-bottom: 2px; }
.v2-franja-ir { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.v2-franja-ir .material-icons { font-size: 18px; }
@media (max-width: 800px) {
    .v2-franja { grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
    .v2-franja-item { padding: 14px 16px; gap: 12px; }
    .v2-franja-ir { display: none; }
}

/* ---- Popup promocional ---- */
.v2-popup { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.55); display: flex; align-items: center;
            justify-content: center; padding: 16px; }
.v2-popup-caja { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: #fff;
                 border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); animation: v2aparece .3s ease; }
@keyframes v2aparece { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.v2-popup-cerrar { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0;
                   background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; display: flex;
                   align-items: center; justify-content: center; color: #333; padding: 0; }
.v2-popup-imagen { display: block; width: 100%; height: auto; }
.v2-popup-cuerpo { padding: 22px 24px 26px; text-align: center; }
.v2-popup-cuerpo h2 { font-family: 'Xmind', sans-serif; font-size: 22px; margin: 0 0 10px; color: #2c2c2c; }
.v2-popup-cuerpo p { color: #555; font-size: 15px; line-height: 1.5; margin: 0 0 18px; }
.v2-popup-boton { display: inline-block; background: var(--color1); color: #fff !important; padding: 14px 32px; border-radius: 50px;
                  font-weight: 700; text-decoration: none; }

/* ---- Catalogo: lo que antes eran estilos en linea ---- */
.v2-velo { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9998; }
.v2-filtros-titulo { margin-top: 0; color: var(--color1); font-weight: 900; font-family: 'Xmind', sans-serif; display: flex; align-items: center; gap: 8px; }
.v2-radio { cursor: pointer; font-size: 14px; color: #555; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.v2-radio input { accent-color: var(--color1); }
.v2-sin-opciones { color: #999; font-size: 13px; }
.v2-mas-marcas { color: var(--color1) !important; font-weight: bold; justify-content: flex-start !important; margin-top: 10px; background: none;
                 border: 0; padding: 0; cursor: pointer; font: inherit; }
.price-inputs span { color: #aaa; }
.sort-box select { font: inherit; }
.catalog-loader p { color: var(--color1); font-weight: bold; margin-top: 10px; }
.v2-vacio { text-align: center; padding: 50px 20px; width: 100%; }
.v2-vacio .material-icons { font-size: 48px; color: #ccc; }
.v2-vacio h3 { color: #666; margin-top: 15px; }
.v2-vacio p { color: #999; }
.badge-search i { font-size: 16px; }

/* ---- Tarjeta ---- */
.v2-card { display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.v2-card-link { text-decoration: none; color: inherit; display: block; flex: 1; }
.v2-card .card-body { padding-bottom: 5px; }
.v2-combo { background: #f3eaf7; color: #6c3483; border: 1px solid #d6c2e0; border-radius: 6px; padding: 5px 8px; font-size: 12px;
            font-weight: 700; margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.v2-card-pie { padding: 0 15px 15px; display: flex; flex-direction: column; gap: 12px; }
.v2-card .card-price { width: 100%; padding: 0; margin: 0; border: none; }
.v2-card .old-price { text-decoration: line-through; color: #999; font-size: 13px; min-height: 19px; }
.v2-consultar { color: var(--color1); font-weight: bold; }
.v2-card .card-actions { width: 100%; margin: 0; padding: 0; }
.v2-card .action-qty-box button { background: #f8f9fa; border: none; color: #555; cursor: pointer; font-weight: bold; font-size: 22px;
                                  height: 100%; width: 32px; }
.v2-card .action-qty-box input { height: 100%; text-align: center; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd;
                                 outline: none; font-weight: bold; color: #333; padding: 0; border-radius: 0 !important; box-shadow: none;
                                 background: transparent; }
.v2-card .action-btn-add { background: #e74c3c; cursor: pointer; }
.v2-card .action-btn-add:disabled { background: #ccc; cursor: not-allowed; }
.v2-card .action-btn-add .material-icons { font-size: 18px; vertical-align: middle; }
.v2-btn-opciones { display: block; width: 100%; text-align: center; background: #eee; border: 1px solid #ddd; padding: 10px;
                   border-radius: 4px; text-decoration: none; color: #333 !important; font-weight: bold; font-size: 14px; box-sizing: border-box; }
.v2-sin-stock { width: 100%; text-align: center; background: #ffebee; color: #c62828; padding: 10px; border-radius: 4px; font-weight: bold;
                font-size: 14px; box-sizing: border-box; }
.v2-menu-cat { font-weight: bolder; text-transform: uppercase; }

/* ---- Ficha del producto (lo que antes iba en linea en detalle_producto.php) ---- */
.v2-foto-principal { cursor: zoom-in; }
.v2-miniatura { padding: 0; background: #fff; position: relative; }
.v2-icono-video { position: absolute; top: 50%; left: 50%; width: 30px !important; height: 30px !important; margin: -15px 0 0 -15px; }
.datos_producto h1.v2-nombre-producto { font-size: 26px; font-weight: 700; color: #333; line-height: 1.3; margin: 0; }
.v2-favorito { background: none; border: 0; padding: 4px; cursor: pointer; }
.v2-favorito img { width: 30px; display: block; }
.precio-container h2.v2-precio { font-size: 36px; color: #333; font-weight: 700; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.precio-container h2.v2-consultar { font-size: 26px; color: var(--color1); }
.v2-tachado { margin-bottom: 5px; color: #999; text-decoration: line-through; font-size: 16px; }
.v2-leyenda-lista { font-size: 14px; color: #4caf50; margin-top: 5px; font-weight: bold; }
.v2-eans { margin-top: 8px; font-size: 14px; color: #555; }
.v2-combo-ficha { display: flex; align-items: center; gap: 15px; background: linear-gradient(135deg, #f3eaf7, #ede1f5); border: 2px solid #8e5fa8;
                  border-radius: 12px; padding: 18px 20px; margin-top: 15px; box-shadow: 0 2px 8px rgba(142,95,168,.15); }
.v2-combo-ficha img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 2px solid #fff; flex-shrink: 0; }
.v2-combo-titulo { font-size: 18px; font-weight: 800; color: #5a2d75; line-height: 1.3; }
.v2-combo-texto { font-size: 13px; color: #8e5fa8; margin-top: 4px; font-weight: 600; }
.v2-form-producto { margin-top: 15px; }
.v2-empaque { margin: 0 0 18px; background: #f8f9fa; padding: 15px; border-radius: 8px; border: 1px solid #e0e0e0; }
.v2-empaque legend { font-weight: bold; color: #333; padding: 0 4px; }
.v2-empaque-opcion { display: inline-flex; width: calc(50% - 6px); box-sizing: border-box; cursor: pointer; }
.v2-empaque-opcion + .v2-empaque-opcion { margin-left: 8px; }
.v2-empaque-opcion input { position: absolute; opacity: 0; }
.v2-empaque-opcion span { flex: 1; padding: 10px; text-align: center; border: 2px solid #ccc; border-radius: 6px; background: #fff; }
.v2-empaque-opcion b { display: block; color: #333; }
.v2-empaque-opcion small { font-size: 13px; color: #666; }
.v2-empaque-opcion input:checked + span { border-color: var(--color1); }
.v2-empaque-opcion input:checked + span b { color: var(--color1); }
.v2-empaque-opcion input:focus-visible + span { outline: 3px solid rgba(179,36,76,.35); }
.v2-cuotas { flex-direction: row !important; align-items: center; gap: 8px !important; color: #444; font-size: 15px; }
.v2-cuotas img { width: 25px; }
.v2-sin-interes { color: #00a650; font-weight: 600; }
.v2-poco-stock { color: #e74c3c; font-weight: bold; margin-left: 5px; }
.v2-hay-stock { color: #27ae60; font-weight: bold; margin-left: 5px; }
.picItemVar { display: block; }
.picItemVar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.controlsVar button { border: 0; font: inherit; }
/* En el celular tienda.css clavaba la cantidad abajo a la derecha con position: absolute, contando con
   que debajo del nombre hubiera una linea de precio: sin precio ni stock por opcion el renglon quedaba
   mas bajo que los botones y cada uno se subia al renglon de arriba. Nombre y cantidad en la misma fila. */
@media (max-width: 768px) {
    .itemListaVar { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 10px 12px; }
    .itemListaVar-info, .infoVarContainer { width: auto; min-width: 0; }
    .nombreItemVar { margin-bottom: 0 !important; }
    .precioItemVar { width: auto !important; padding-top: 0; }
    .controlsVar { position: static; }
}
.v2-cantidad { margin-top: 20px; display: flex; align-items: center; gap: 15px; }
.v2-cantidad label { font-weight: 600; color: #444; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input { -moz-appearance: textfield; box-shadow: none !important; border: none !important; border-left: 1px solid #eee !important;
             border-right: 1px solid #eee !important; border-radius: 0; width: 56px; height: 44px; text-align: center; font-size: 16px;
             font-weight: bold; color: #333; outline: none; background: transparent; }
.qty-container { display: flex; align-items: center; background: #fff; border: 1px solid #ccc; border-radius: 8px; overflow: hidden; width: fit-content; }
.qty-btn { background: #f8f9fa; border: none; color: #555; font-size: 22px; font-weight: bold; width: 44px; height: 44px; cursor: pointer;
           display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--color1); color: #fff; }
button.add_cart { border: 0; font: inherit; width: 100%; cursor: pointer; margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 6px; }
/* En la ficha, ".item_producto_full .add_cart { display: block }" de tienda.css le ganaba al flex de arriba
   y el icono quedaba sobre la linea del texto, 7 px mas alto que las letras. */
.item_producto_full button.add_cart { display: flex; }
button.add_cart .material-icons { font-size: 22px; line-height: 1; }
button.add_cart:disabled { opacity: .7; cursor: wait; }
.v2-consultar-wa { display: block; text-align: center; text-decoration: none; background: #25d366 !important; color: #fff !important; margin-top: 20px; }
.v2-sin-stock-ficha { background-color: #ccc !important; cursor: default; pointer-events: none; box-shadow: none; text-align: center; margin-top: 20px; }
.desc-producto h3 { font-family: 'Xmind', sans-serif; color: #333; margin-top: 0; }
.v2-no-esta { padding: 80px 20px; }
.v2-no-esta a { color: var(--color1); font-weight: 700; }
.slider-btn { border: 0; }
@media (max-width: 750px) {
    .qty-btn { font-size: 28px; width: 56px; height: 56px; }
    .qty-input { height: 56px; }
}

.v2-sugeridos { box-shadow: none; background: transparent; padding: 0; float: none; box-sizing: border-box; max-width: 1250px; margin: 30px auto; }
.v2-sugeridos .slider-track .product-card { flex: 0 0 230px; }
.v2-sugeridos .action-group { flex-direction: column; align-items: stretch; gap: 8px; }
.v2-sugeridos .action-qty-box { width: 100%; justify-content: space-between; }
.v2-sugeridos .action-qty-box input { flex: 1; }
.v2-sugeridos .action-btn-add { width: 100%; }

/* ---- Portal mayorista: la tabla de resultados (antes en get_listas_mayorista.php) ---- */
.header-resultados { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.header-resultados h5 { margin: 0; color: #2c3e50; font-size: 18px; font-family: 'Xmind', sans-serif; }
.header-resultados h5 b { color: var(--color1, #0877D3); font-size: 22px; background: #eef6fc; padding: 4px 12px; border-radius: 8px; }
.btn-pdf { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); color: white; text-decoration: none; padding: 12px 24px; border-radius: 8px; font-weight: bold; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3); }
.btn-pdf:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4); color: white; }
.container-tabla-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; box-shadow: 0 8px 30px rgba(8, 119, 211, 0.1); border: 1px solid #e0eaf5; background: #fff; }
.tabla-moderna { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
.tabla-moderna th { background: linear-gradient(135deg, #0877D3 0%, #00a4e4 100%); color: #ffffff; padding: 18px 15px; text-align: left; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; border-bottom: none; white-space: nowrap; }
.tabla-moderna td { padding: 8px 15px; border-bottom: 1px solid #f0f4f8; color: #444; vertical-align: middle; transition: background-color 0.2s ease; }
.tabla-moderna tbody tr:nth-child(even) { background-color: #fcfdfe; }
.tabla-moderna tbody tr:hover { background-color: #f1f8fe; }
.badge-cat { display: inline-block; background-color: #ffe8ee; color: #d81b60; padding: 2px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-subcat { display: inline-block; background-color: #e0f2fe; color: #0284c7; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.producto-nombre { font-weight: 600; color: #2c3e50; font-size: 13px; display: block; }
.td-right { text-align: right !important; }
.td-center { text-align: center !important; }
.precio-final { font-size: 13px; font-weight: 700; color: #059669; background: #ecfdf5; padding: 5px; border-radius: 7px; display: inline-block; border: 1px solid #d1fae5; }
.precio-sugerido { color: #94a3b8; font-weight: 700; font-size: 13px; }
.codigo-chico { font-size: 12px; color: #64748b; font-family: 'Courier New', Courier, monospace; background: #f1f5f9; padding: 5px 8px; border-radius: 4px; border: 1px dashed #cbd5e1; display: inline-block; }
@media (max-width: 768px) { .header-resultados { flex-direction: column; text-align: center; } .btn-pdf { width: 100%; justify-content: center; } }
.v2-mayorista-o { text-align: center; color: #777; margin-bottom: 15px; font-weight: bold; }
.v2-mayorista-cargando { color: #777; font-weight: bold; margin-top: 10px; }
.v2-tope { font-size: 12px; color: #e74c3c; }
.v2-fin-resultados { text-align: center; color: #cbd5e1; font-style: italic; margin: 30px 0; font-size: 13px; }
.checkbox-grid-scroll { max-height: 250px; overflow-y: auto; padding-right: 10px; }
.v2-acordeon { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; text-align: left; }
.filter-header .arrow-icon.rotated { transform: rotate(180deg); }
.tabla-moderna th small { font-weight: 400; opacity: .8; }

/* ---- Cristal Club ---- */
.v2-club { max-width: 1250px; margin: 30px auto 50px; padding: 0 15px; box-sizing: border-box; }
.v2-club-cabecera { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
                    background: linear-gradient(120deg, #1f1f1f, #3a3a3a); color: #fff; border-radius: 18px; padding: 28px 32px; margin-bottom: 28px; }
.v2-club-cabecera h1 { font-family: 'Xmind', sans-serif; font-size: 32px; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; color: #fff; }
.v2-club-cabecera h1 .material-icons { color: #f1c40f; font-size: 38px; }
.v2-club-cabecera p { margin: 0; color: #ddd; font-size: 15px; max-width: 560px; line-height: 1.5; }
.v2-club-saldo { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
                 border-radius: 14px; padding: 14px 26px; color: #fff !important; text-decoration: none; min-width: 180px; }
.v2-club-saldo b { font-size: 34px; color: #f1c40f; line-height: 1.1; }
.v2-club-saldo span { font-size: 13px; color: #ddd; }
.v2-club-saldo a { color: #fff !important; font-size: 12px; margin-top: 6px; text-decoration: underline; }
.v2-club-ingresar { flex-direction: row; gap: 10px; font-weight: 700; }
.v2-club-ingresar span { font-size: 15px; color: #fff; }
.v2-premios { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.v2-premio-tarjeta { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden;
                     text-decoration: none; color: #333 !important; box-shadow: 0 4px 14px rgba(0,0,0,.06); border: 2px solid transparent;
                     transition: transform .2s, box-shadow .2s; }
.v2-premio-tarjeta:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.v2-premio-tarjeta.v2-alcanza { border-color: #f1c40f; }
.v2-premio-tarjeta-foto { aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #f2f2f2; }
.v2-premio-tarjeta-foto { overflow: hidden; }
.v2-premio-tarjeta-foto img { width: 100%; height: 100%; object-fit: contain; padding: 6%; box-sizing: border-box; }
.v2-premio-tarjeta h3 { font-size: 14px; font-weight: 700; margin: 12px 14px 8px; line-height: 1.35; flex: 1; }
.v2-premio-pts { margin: 0 14px 14px; display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; background: #2c2c2c; color: #fff;
                 border-radius: 50px; padding: 6px 12px; font-weight: 800; font-size: 14px; }
.v2-premio-pts .material-icons { color: #f1c40f; font-size: 18px; }
.v2-premio-promo { background: var(--color1); }
.v2-premio-alcanza { position: absolute; top: 10px; left: 10px; background: #f1c40f; color: #2c2c2c; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 50px; }

.v2-volver { display: inline-flex; align-items: center; gap: 6px; color: #555 !important; text-decoration: none; font-weight: 600; margin-bottom: 18px; }
.v2-premio { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 5px 20px rgba(0,0,0,.05); }
.v2-premio-foto { display: flex; align-items: center; justify-content: center; border: 1px solid #f0f0f0; border-radius: 12px; min-height: 320px; }
.v2-premio-foto img { max-width: 92%; max-height: 420px; object-fit: contain; }
.v2-premio-datos h1 { font-family: 'Xmind', sans-serif; font-size: 26px; margin: 0 0 14px; color: #333; line-height: 1.3; }
.v2-premio-puntos { display: inline-flex; align-items: center; gap: 8px; background: #2c2c2c; color: #fff; border-radius: 50px; padding: 10px 18px;
                    font-size: 22px; font-weight: 800; }
.v2-premio-puntos .material-icons { color: #f1c40f; font-size: 26px; }
.v2-premio-stock { color: #27ae60; font-weight: 700; margin: 14px 0 20px; }
.v2-premio-nota { color: #666; font-size: 14px; margin: 10px 0 0; }
.v2-premio-desc { margin-top: 24px; padding-top: 18px; border-top: 1px solid #eee; color: #555; line-height: 1.6; font-size: 15px; }
.v2-btn-principal { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box; background: var(--color1);
                    color: #fff !important; border: 0; border-radius: 12px; padding: 16px 20px; font: inherit; font-size: 17px; font-weight: 700;
                    cursor: pointer; text-decoration: none; }
.v2-btn-principal:hover { filter: brightness(1.08); }
.v2-btn-principal:disabled { opacity: .6; cursor: wait; }
.v2-btn-apagado { background: #ddd; color: #555 !important; cursor: default; }
.v2-btn-secundario { display: block; width: 100%; margin-top: 10px; background: none; border: 2px solid #ddd; border-radius: 12px; padding: 13px;
                     font: inherit; font-weight: 700; color: #555; cursor: pointer; }
.v2-canje-confirmar { background: #fff8e1; border: 2px solid #f1c40f; border-radius: 14px; padding: 18px; }
.v2-canje-confirmar p { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: #333; }
.v2-club-exito { text-align: center; background: #fff; border: 2px solid #2ecc71; border-radius: 16px; padding: 30px 20px; margin-bottom: 24px; }
.v2-club-exito .material-icons { font-size: 48px; color: #2ecc71; }
.v2-club-exito h1 { font-family: 'Xmind', sans-serif; margin: 8px 0; }
.v2-club-exito p { color: #555; font-size: 16px; }
.v2-club-exito a { color: var(--color1); font-weight: 700; }
.v2-club-codigo { display: inline-block; font-family: 'Courier New', monospace; font-size: 26px; font-weight: 800; letter-spacing: 2px; background: #f4f4f4;
                  border: 2px dashed #bbb; border-radius: 10px; padding: 12px 22px; margin: 6px 0 10px; word-break: break-all; }
.v2-club-error { display: flex; align-items: center; gap: 8px; background: #ffebee; color: #c62828; border-radius: 12px; padding: 14px 18px;
                 font-weight: 700; margin-bottom: 18px; }
@media (max-width: 800px) {
    .v2-club-cabecera { padding: 22px 20px; }
    .v2-club-cabecera h1 { font-size: 26px; }
    .v2-club-saldo { width: 100%; }
    .v2-premios { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .v2-premio { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
    .v2-premio-foto { min-height: 220px; }
}

/* ---- Cuenta: ingresar, registro, recuperar (pensado para quien no se lleva con la tecnologia:
        letra grande, campos altos, un boton principal por formulario) ---- */
.v2-cuenta-caja { max-width: 480px; margin: 30px auto 60px; padding: 28px 26px 30px; background: #fff; border-radius: 18px;
                  box-shadow: 0 6px 24px rgba(0,0,0,.06); box-sizing: border-box; }
.v2-cuenta-caja h1 { font-family: 'Xmind', sans-serif; font-size: 26px; margin: 0 0 18px; color: #2c2c2c; text-align: center; }
.v2-cuenta-caja h2 { font-family: 'Xmind', sans-serif; font-size: 20px; margin: 0 0 10px; color: #2c2c2c; }
.v2-ayuda { color: #555; font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.v2-formulario { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.v2-campo { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: #333; font-size: 15px; }
.v2-campo small { font-weight: 400; color: #777; font-size: 13px; }
.v2-campo input, .v2-campo select, .v2-campo textarea { font: inherit; font-weight: 400; font-size: 17px; padding: 13px 14px; border: 2px solid #ddd;
                  border-radius: 10px; background: #fff; color: #222; width: 100%; box-sizing: border-box; box-shadow: none; }
.v2-campo input:focus, .v2-campo select:focus, .v2-campo textarea:focus { border-color: var(--color1); outline: none; }
.v2-campo input[readonly] { background: #f4f4f4; color: #555; }
.v2-clave { position: relative; display: block; }
.v2-clave input { padding-right: 52px; }
.v2-ver-clave { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; background: none;
                color: #666; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.v2-ver-clave:hover { background: #f2f2f2; }
.v2-tilde { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #444; cursor: pointer; }
.v2-tilde input { width: 22px; height: 22px; accent-color: var(--color1); }
.v2-links-cuenta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 18px 0 0; font-size: 15px; }
.v2-links-cuenta a, .v2-link { color: var(--color1) !important; font-weight: 700; text-decoration: underline; background: none; border: 0;
                               font: inherit; font-weight: 700; cursor: pointer; padding: 4px; }
.v2-separador { display: flex; align-items: center; gap: 12px; color: #888; font-size: 14px; margin: 18px 0; }
.v2-separador::before, .v2-separador::after { content: ''; flex: 1; height: 1px; background: #e2e2e2; }
.v2-google { display: flex; justify-content: center; min-height: 44px; }
/* Las dos solapas de /ingresar: "Soy nuevo" (abierta de entrada) y "Ya tengo cuenta". */
.v2-pestanas { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 20px; border: 2px solid var(--color1); border-radius: 50px; overflow: hidden; }
.v2-pestanas button { border: 0; background: #fff; color: var(--color1); font: inherit; font-weight: 700; font-size: 15px; padding: 12px 10px; cursor: pointer; }
.v2-pestanas button[aria-selected="true"] { background: var(--color1); color: #fff; }
.v2-pestanas button:focus-visible { outline: 3px solid rgba(0,0,0,.25); outline-offset: -3px; }
.v2-primera-vez { margin-top: 26px; padding-top: 22px; border-top: 1px solid #eee; text-align: center; }
.v2-primera-vez p { color: #555; margin: 0 0 14px; }
.v2-primera-vez .v2-btn-secundario { text-decoration: none; text-align: center; box-sizing: border-box; }
.v2-cartel { display: flex; align-items: flex-start; gap: 10px; border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; font-size: 15px;
             line-height: 1.45; font-weight: 600; }
.v2-cartel .material-icons { flex-shrink: 0; }
.v2-cartel-ok { background: #e8f8ef; color: #1e7b45; }
.v2-cartel-error { background: #ffebee; color: #b71c1c; }
.v2-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.v2-legal { font-size: 13px; color: #777; text-align: center; margin: 0; }
.v2-legal a { color: var(--color1); }
.v2-pregunta { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.v2-pregunta legend { font-size: 19px; font-weight: 800; color: #2c2c2c; margin-bottom: 8px; line-height: 1.35; }
.v2-opcion { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; font: inherit;
             font-size: 17px; padding: 16px 18px; border: 2px solid #ddd; border-radius: 12px; background: #fff; color: #222; cursor: pointer; }
.v2-opcion:hover, .v2-opcion:focus-visible { border-color: var(--color1); background: #fff5f8; outline: none; }
.v2-opcion .material-icons { color: var(--color1); }
.v2-cargando-texto { color: #777; text-align: center; padding: 20px 0; }
.v2-texto-legal { max-width: 860px; margin: 30px auto 60px; padding: 30px; background: #fff; border-radius: 16px; box-sizing: border-box;
                  color: #444; line-height: 1.65; font-size: 15px; }
.v2-texto-legal h1 { font-family: 'Xmind', sans-serif; color: #2c2c2c; font-size: 26px; margin-top: 0; }
.v2-texto-legal h3 { color: #2c2c2c; margin: 24px 0 8px; }
.v2-texto-legal a { color: var(--color1); }
@media (max-width: 600px) {
    .v2-cuenta-caja { margin: 0 0 40px; border-radius: 0; box-shadow: none; padding: 22px 16px 28px; }
    .v2-texto-legal { margin: 0 0 40px; border-radius: 0; padding: 22px 16px; }
}

/* ---- Carrito, compra y pedido ---- */
.v2-compra { max-width: 1150px; margin: 26px auto 60px; padding: 0 15px; box-sizing: border-box; }
.v2-compra-titulo { font-family: 'Xmind', sans-serif; font-size: 26px; color: #2c2c2c; display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.v2-compra-titulo .material-icons { color: var(--color1); font-size: 30px; }
.v2-compra-columnas { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.v2-compra-principal { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.v2-compra-resumen { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 5px 20px rgba(0,0,0,.05); position: sticky; top: 16px;
                     display: flex; flex-direction: column; gap: 12px; }
.v2-compra-resumen h2 { font-family: 'Xmind', sans-serif; font-size: 20px; margin: 0; color: #2c2c2c; }
.v2-resumen-fila { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: #444; }
.v2-resumen-descuento { color: #1e7b45; font-weight: 700; }
.v2-resumen-total { display: flex; justify-content: space-between; font-size: 22px; font-weight: 800; color: #2c2c2c; padding-top: 12px; border-top: 2px dashed #e2e2e2; }
.v2-resumen-nota { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #666; margin: 0; line-height: 1.45; }
.v2-resumen-nota .material-icons { font-size: 18px; color: var(--color1); }
.v2-resumen-nota a { color: var(--color1); font-weight: 700; }
.v2-centro { justify-content: center; text-align: center; }
.v2-resumen-lineas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow: auto; }
.v2-resumen-lineas li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: #444; }
.v2-resumen-regalo { color: #6c3483; }
.v2-resumen-entrega { font-size: 14px; color: #444; line-height: 1.45; }
.v2-resumen-entrega b { display: block; color: #2c2c2c; }
.v2-linea { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; background: #fff; border-radius: 14px;
            padding: 12px 14px; box-shadow: 0 3px 12px rgba(0,0,0,.04); }
.v2-linea-regalo { background: #faf5fc; border: 1px dashed #d6c2e0; }
.v2-linea-foto { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; }
.v2-linea-foto img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v2-linea-datos { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v2-linea-nombre { font-weight: 700; color: #2c2c2c !important; text-decoration: none; font-size: 15px; line-height: 1.35; }
.v2-linea-opcion, .v2-linea-precio { font-size: 13px; color: #666; }
.v2-linea-etiqueta { font-size: 12px; font-weight: 800; color: #6c3483; }
.v2-linea-acciones { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.v2-linea-cant { min-width: 40px; text-align: center; font-weight: 800; font-size: 16px; }
.v2-linea-cant-regalo { font-weight: 800; color: #6c3483; }
.v2-linea-subtotal { font-weight: 800; font-size: 16px; color: #2c2c2c; min-width: 100px; text-align: right; }
.v2-quitar { display: inline-flex; align-items: center; gap: 3px; font-size: 13px !important; text-decoration: none !important; color: #888 !important; }
.v2-quitar .material-icons { font-size: 17px; }
.v2-cupon summary { cursor: pointer; color: var(--color1); font-weight: 700; font-size: 14px; }
.v2-cupon-form { display: flex; gap: 8px; margin-top: 10px; }
.v2-cupon-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 12px; border: 2px solid #ddd; border-radius: 10px; }
.v2-cupon-form .v2-btn-secundario { width: auto; margin: 0; padding: 10px 16px; }
.v2-paso { background: #fff; border: 0; border-radius: 16px; padding: 20px; margin: 0; box-shadow: 0 3px 12px rgba(0,0,0,.04); display: flex; flex-direction: column; gap: 10px; }
.v2-paso legend { font-family: 'Xmind', sans-serif; font-size: 19px; font-weight: 800; color: #2c2c2c; padding: 0; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; float: left; width: 100%; }
.v2-paso-numero { width: 30px; height: 30px; border-radius: 50%; background: var(--color1); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.v2-eleccion { display: flex; gap: 12px; align-items: flex-start; border: 2px solid #e5e5e5; border-radius: 12px; padding: 14px; cursor: pointer; }
.v2-eleccion:has(input:checked) { border-color: var(--color1); background: #fff7fa; }
.v2-eleccion input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--color1); flex-shrink: 0; }
.v2-eleccion b { display: block; font-size: 16px; color: #2c2c2c; line-height: 1.35; }
.v2-eleccion b .material-icons { font-size: 20px; color: var(--color1); vertical-align: -4px; margin-right: 4px; }
.v2-eleccion small { display: block; color: #666; font-size: 13px; margin-top: 3px; line-height: 1.4; }
.v2-domicilio { display: flex; flex-direction: column; gap: 12px; padding: 4px 4px 8px 38px; }
.v2-dos-campos { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.v2-pedido-estado { background: #fff; border-radius: 18px; padding: 28px 22px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,.05); margin-bottom: 24px;
                    display: flex; flex-direction: column; align-items: center; gap: 10px; }
.v2-pedido-estado > .material-icons { font-size: 56px; }
.v2-pedido-estado h1 { font-family: 'Xmind', sans-serif; font-size: 26px; margin: 0; color: #2c2c2c; }
.v2-pedido-estado p { color: #555; font-size: 16px; margin: 0; max-width: 560px; line-height: 1.5; }
.v2-estado-pagado > .material-icons { color: #2ecc71; }
.v2-estado-pendiente > .material-icons { color: #f39c12; }
.v2-estado-cancelado > .material-icons { color: #c0392b; }
.v2-pedido-pagar { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; margin-top: 8px; }
.v2-pedido-pagar .v2-btn-secundario { text-decoration: none; text-align: center; }
.v2-btn-whatsapp { display: inline-flex; align-items: center; gap: 8px; color: #128c4a !important; font-weight: 700; text-decoration: none; padding: 8px; }
.v2-pedido-subtitulo { font-family: 'Xmind', sans-serif; font-size: 18px; color: #2c2c2c; margin: 0 0 4px; }
.v2-pedido .v2-linea { grid-template-columns: 64px minmax(0, 1fr) auto; }
.v2-pedido .v2-linea-foto { width: 64px; height: 64px; }
.v2-aviso-pago { text-align: center; }
.v2-aviso-pago-icono { font-size: 56px; color: var(--color1); }
.v2-aviso-pago-monto { font-size: 34px; font-weight: 800; color: #2c2c2c; margin: 0 0 10px; }
.v2-aviso-pago-pasos { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.v2-aviso-pago-pasos li { display: flex; gap: 10px; align-items: flex-start; color: #444; font-size: 15px; background: #f8f8f8; border-radius: 10px; padding: 10px 12px; }
.v2-aviso-pago-pasos .material-icons { color: var(--color1); }
.v2-carrito-vacio a { color: var(--color1); font-weight: 700; }
@media (max-width: 900px) {
    .v2-compra-columnas { grid-template-columns: 1fr; }
    .v2-compra-resumen { position: static; }
}
@media (max-width: 600px) {
    .v2-compra { padding: 0 10px; margin-top: 16px; }
    .v2-linea { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "foto datos datos" "acciones acciones subtotal"; row-gap: 10px; }
    .v2-linea-foto { grid-area: foto; width: 64px; height: 64px; }
    .v2-linea-datos { grid-area: datos; }
    .v2-linea-acciones { grid-area: acciones; flex-direction: row; justify-content: flex-start; }
    .v2-linea-subtotal { grid-area: subtotal; align-self: center; }
    .v2-pedido .v2-linea { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: none; }
    .v2-pedido .v2-linea > * { grid-area: auto; }
    .v2-pedido .v2-linea-foto { width: 56px; height: 56px; }
    .v2-domicilio { padding-left: 0; }
    .v2-dos-campos { grid-template-columns: 1fr; }
}

/* ---- Mi cuenta ---- */
.v2-mi-cuenta { max-width: 900px; }
.v2-solapas { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 18px; padding-bottom: 4px; scrollbar-width: thin; }
.v2-solapas a { flex-shrink: 0; padding: 10px 16px; border-radius: 50px; background: #fff; color: #444 !important; text-decoration: none; font-weight: 700;
                font-size: 14px; border: 2px solid #eee; }
.v2-solapas a.activa { background: var(--color1); border-color: var(--color1); color: #fff !important; }
.v2-tarjeta-cuenta { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 3px 12px rgba(0,0,0,.04); margin-bottom: 16px; }
.v2-tarjeta-cuenta h2 { font-family: 'Xmind', sans-serif; font-size: 18px; margin: 0 0 12px; color: #2c2c2c; }
.v2-tarjeta-cuenta h2 a { color: inherit; }
.v2-tarjeta-cuenta a:not(.v2-btn-principal):not(.v2-fila-pedido) { color: var(--color1); font-weight: 700; }
.v2-angosta { max-width: 520px; }
.v2-fila-pedido { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0;
                  border-top: 1px solid #f0f0f0; text-decoration: none; color: #333 !important; }
.v2-fila-pedido:first-of-type { border-top: 0; }
.v2-fila-pedido b { display: block; font-size: 15px; }
.v2-fila-pedido small { display: block; color: #777; font-size: 13px; margin-top: 2px; }
.v2-fila-total { font-weight: 800; white-space: nowrap; display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.v2-fila-total .material-icons { color: #bbb; }
.v2-positivo { color: #1e7b45; }
.v2-negativo { color: #c0392b; }
.v2-estado-chip { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 50px; white-space: nowrap; }
.v2-chip-ok { background: #e8f8ef; color: #1e7b45; }
.v2-chip-pendiente { background: #fff4e0; color: #b9770e; }
.v2-puntos-venta { font-size: 13px; color: #b9770e; font-weight: 700; display: flex; align-items: center; gap: 3px; text-align: right; }
.v2-puntos-venta .material-icons { font-size: 17px; color: #f1c40f; }
.v2-puntos-venta small { color: #999; font-weight: 400; max-width: 180px; }
.v2-saldo-puntos { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(120deg, #1f1f1f, #3a3a3a); color: #fff; }
.v2-saldo-puntos b { display: block; font-size: 38px; color: #f1c40f; line-height: 1.1; }
.v2-saldo-puntos span { color: #ddd; }
.v2-saldo-puntos .v2-btn-principal { width: auto; padding: 14px 24px; }
.v2-chico { font-size: 13px; }
.v2-consulta { border-top: 1px solid #f0f0f0; padding: 12px 0; }
.v2-consulta-pregunta { font-weight: 700; color: #333; margin: 0 0 6px; }
.v2-consulta-respuesta { color: #555; margin: 0 0 6px; line-height: 1.5; font-size: 14px; }
.v2-consulta form { margin: 0; }
.v2-sin-sombra { box-shadow: none; padding: 0; }
@media (max-width: 600px) {
    .v2-fila-pedido { grid-template-columns: minmax(0, 1fr) auto; }
    .v2-fila-pedido .v2-estado-chip, .v2-fila-pedido .v2-puntos-venta { grid-column: 1; grid-row: 2; justify-self: start; text-align: left; }
    .v2-fila-pedido .v2-fila-total { grid-column: 2; grid-row: 1 / span 2; }
    .v2-saldo-puntos { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Los - y + de la tarjeta, centrados (el navegador les pone relleno y alto de linea propios). */
.v2-card .action-qty-box button { display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; }
.v2-card .action-btn-add { padding: 0 8px; }
/* Cuando la tarjeta apila cantidad y boton (celular, sugeridos), el "flex: 1" de tienda.css le pedia al boton
   que se repartiera el alto que sobra, que es cero: quedaba de la altura del texto y costaba tocarlo. */
.v2-sugeridos .action-btn-add { flex: none; height: 46px; }
@media (max-width: 600px) {
    .v2-card .action-btn-add { flex: none; height: 48px; font-size: 15px; }
    .v2-card .action-btn-add .material-icons { font-size: 22px; }
}

/* ---- El newsletter del pie (plantillas/pie.php) ---- */
.v2-news { max-width: 1250px; margin: 0 auto 34px; padding: 0 20px 30px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between;
           gap: 20px 40px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.1); }
.v2-news h3 { margin: 0 0 4px; font-size: 20px; color: #fff; display: flex; align-items: center; gap: 8px; }
.v2-news h3 .material-icons { color: var(--color1); }
.v2-news p { margin: 0; color: #a9adb5; }
.v2-news-form { display: flex; flex: 1 1 360px; max-width: 480px; background: #fff; border-radius: 40px; padding: 5px; box-sizing: border-box; }
.v2-news-form input[type=email] { flex: 1; min-width: 0; border: 0; outline: 0; box-shadow: none; border-radius: 40px; padding: 10px 16px; font-size: 15px; background: transparent; color: #222; }
.v2-news-form button { border: 0; border-radius: 40px; background: var(--color1); color: #fff; font-weight: 700; padding: 10px 22px; cursor: pointer; font-size: 15px; }
.v2-news-form button:hover { filter: brightness(1.1); }
.v2-news-form button:disabled { opacity: .6; cursor: wait; }
.v2-news-form:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.v2-oculto-visual { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v2-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) { .v2-news { text-align: left; } .v2-news-form { flex-basis: 100%; max-width: none; } }

/* ---- Calificaciones (producto.php, tarjetas) ---- */
.v2-estrellas { display: inline-flex; color: #f5a623; vertical-align: middle; }
.v2-estrellas .material-icons { font-size: 18px; }
.v2-card-calif { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #777; margin-top: 4px; }
.v2-card-calif .v2-estrellas .material-icons { font-size: 15px; }
.v2-calif-resumen { display: inline-flex; align-items: center; gap: 6px; color: #555; text-decoration: none; font-size: 14px; margin: 4px 0 8px; }
.v2-calif-resumen:hover span { text-decoration: underline; }
.v2-calif-cuerpo { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.v2-calif-total { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.v2-calif-total b { font-size: 42px; line-height: 1; color: #22252a; }
.v2-calif-total .v2-estrellas .material-icons { font-size: 22px; }
.v2-calif-total small { color: #777; margin-top: 4px; }
.v2-calif-barras { list-style: none; margin: 0; padding: 0; flex: 1 1 260px; max-width: 420px; display: flex; flex-direction: column; gap: 4px; }
.v2-calif-barras li { display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 8px; font-size: 13px; color: #666; }
.v2-calif-barras li > span:first-child { display: inline-flex; align-items: center; gap: 2px; }
.v2-calif-barras .material-icons { font-size: 14px; color: #f5a623; }
.v2-calif-barra { height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.v2-calif-barra span { display: block; height: 100%; background: #f5a623; border-radius: 4px; }
.v2-calif-mia { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eee; }
.v2-calif-mia p { margin: 0 0 6px; font-weight: 600; color: #333; }
.v2-calif-mia [role=radiogroup] { display: inline-flex; gap: 2px; }
.v2-calif-mia button { background: none; border: 0; padding: 4px; cursor: pointer; color: #f5a623; box-shadow: none; line-height: 1; }
.v2-calif-mia button .material-icons { font-size: 34px; }
.v2-calif-mia button:focus-visible { outline: 2px solid var(--color1); border-radius: 6px; }

/* =====================================================================
   La cabecera (plantillas/cabecera.php): una sola franja con el logo, el
   buscador y, al lado, los puntos y la cuenta. Antes la cuenta y los
   puntos iban en una cinta negra aparte, arriba de todo.
   ===================================================================== */
.v2-head { max-width: 1400px; padding: 14px 24px; gap: 24px; box-shadow: none; border-bottom: 1px solid #f0e6ea; }
.v2-head .head_logo_container { flex: 0 0 auto; justify-content: flex-start; }
.v2-head .head_logo_container img { width: 200px; max-width: 200px; display: block; }
.v2-head .head_search_container { flex: 1 1 380px; max-width: 620px; }
.v2-head .form-buscador-nuevo { border: 1px solid #e6e1e3; background: #faf8f9; transition: border-color .2s, box-shadow .2s, background .2s; overflow: hidden; }
.v2-head .form-buscador-nuevo:focus-within { border-color: var(--color1); background: #fff; box-shadow: 0 0 0 4px rgba(179, 36, 76, .12); }
.v2-head .form-buscador-nuevo input { box-shadow: none; padding: 10px 20px; font-size: 14px; line-height: 18px; }
.v2-head .form-buscador-nuevo .btn-lupa-nuevo { border-radius: 0; padding: 0 18px; }
.v2-head .form-buscador-nuevo .btn-lupa-nuevo .material-icons { font-size: 20px; }
.v2-head .form-buscador-nuevo .btn-lupa-nuevo:hover { background: var(--color4); }
.v2-head-acciones { flex: 0 0 auto; gap: 12px; }
.v2-head .banner-acp-head { width: 150px; }

/* Los puntos: una pastilla dorada al lado del buscador */
.v2-puntos { display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 40px; text-decoration: none; white-space: nowrap;
             background: linear-gradient(135deg, #fff8e6, #fdecc4); border: 1px solid #f7d98a; transition: transform .2s, box-shadow .2s; }
.v2-puntos:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(217, 119, 6, .22); }
.v2-puntos-icono { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
                   background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; box-shadow: 0 2px 6px rgba(217, 119, 6, .35); }
.v2-puntos-icono .material-icons { font-size: 20px; }
.v2-puntos-texto { display: flex; flex-direction: column; line-height: 1.15; color: #92400e; font-family: 'Xmind', sans-serif; }
.v2-puntos-texto b { font-size: 15px; font-weight: 800; }
.v2-puntos-texto small { font-size: 11px; font-weight: 600; color: #b45309; }

/* La cuenta: el avatar con la inicial y el menu */
.v2-cuenta { position: relative; }
.v2-cuenta-boton { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border: 1px solid #ece6e9; border-radius: 40px; background: #fff;
                   cursor: pointer; font: inherit; color: #2b2b2b; box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.v2-cuenta-boton:hover, .v2-cuenta.abierto .v2-cuenta-boton { border-color: var(--colorLight1); box-shadow: 0 4px 14px rgba(179, 36, 76, .12); }
.v2-cuenta-boton:focus-visible { outline: 3px solid rgba(179, 36, 76, .35); outline-offset: 2px; }
.v2-cuenta-hola { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; font-weight: 700; font-size: 14px; max-width: 130px;
                  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-cuenta-hola small { font-weight: 500; font-size: 11px; color: #888; }
.v2-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
             background: linear-gradient(135deg, var(--color1), var(--color4)); color: #fff; font-weight: 800; font-size: 15px; font-family: 'Xmind', sans-serif; }
.v2-avatar-grande { width: 46px; height: 46px; font-size: 19px; }
.v2-flecha { font-size: 20px; color: #999; transition: transform .2s; }
.v2-cuenta.abierto .v2-flecha { transform: rotate(180deg); }

.v2-menu-cuenta { position: absolute; top: calc(100% + 10px); right: 0; z-index: 9999; width: 290px; background: #fff; border-radius: 16px;
                  border: 1px solid #f0e6ea; box-shadow: 0 18px 50px rgba(30, 10, 20, .18); overflow: hidden; transform-origin: top right;
                  animation: v2-menu-entra .16s ease-out; text-align: left; }
@keyframes v2-menu-entra { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.v2-menu-cabeza { display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: linear-gradient(135deg, #fdf2f5, #fff); border-bottom: 1px solid #f3e8ec; }
.v2-menu-cabeza > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.v2-menu-cabeza b { font-size: 15px; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-menu-cabeza small { font-size: 12px; color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-menu-tipo { align-self: flex-start; margin-top: 5px; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
                color: var(--color1); background: #fbe3ea; padding: 2px 8px; border-radius: 20px; }
.v2-menu-cuenta nav { padding: 6px; }
.v2-menu-cuenta nav a, .v2-menu-salir button { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px;
                  color: #333; font: inherit; font-size: 14px; text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; box-shadow: none; }
.v2-menu-cuenta nav a .material-icons, .v2-menu-salir .material-icons { font-size: 20px; color: #a08a92; transition: color .15s; }
.v2-menu-cuenta nav a:hover, .v2-menu-cuenta nav a:focus-visible { background: #fbeef2; color: var(--color1); outline: none; }
.v2-menu-cuenta nav a:hover .material-icons, .v2-menu-cuenta nav a:focus-visible .material-icons { color: var(--color1); }
.v2-menu-dato { margin-left: auto; font-size: 12px; font-weight: 800; color: #b45309; background: #fff4d6; padding: 2px 8px; border-radius: 20px; }
.v2-menu-salir { margin: 0; padding: 6px; border-top: 1px solid #f3e8ec; }
.v2-menu-salir button { color: #b71c1c; }
.v2-menu-salir button .material-icons { color: #d77; }
.v2-menu-salir button:hover, .v2-menu-salir button:focus-visible { background: #fdecec; outline: none; }

/* Sin cuenta: un boton claro, en lugar de la franja negra con el boton azul */
.v2-ingresar { display: flex; align-items: center; gap: 8px; padding: 8px 18px 8px 12px; border-radius: 40px; text-decoration: none; white-space: nowrap;
               background: var(--color1); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.15; transition: background .2s, transform .2s; }
.v2-ingresar:hover { background: var(--color4); transform: translateY(-1px); color: #fff; }
.v2-ingresar .material-icons { font-size: 26px; }
.v2-ingresar span { display: flex; flex-direction: column; }
.v2-ingresar small { font-weight: 500; font-size: 11px; opacity: .85; }

@media (max-width: 1100px) {
    .v2-head .banner-acp-head { display: none; }
}
/* En el celular: logo y cuenta arriba, el buscador entero abajo. */
@media (max-width: 900px) {
    .v2-head { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo acciones" "buscar buscar"; gap: 12px; padding: 12px 14px; }
    .v2-head .head_logo_container { grid-area: logo; width: auto; justify-content: flex-start; }
    .v2-head .head_logo_container img { width: 150px; max-width: 150px; }
    .v2-head .head_search_container { grid-area: buscar; width: 100%; max-width: none; }
    .v2-head .v2-head-acciones { grid-area: acciones; width: auto; justify-content: flex-end; gap: 8px; }
    .v2-head .form-buscador-nuevo input { padding: 10px 16px; font-size: 15px; line-height: 18px; }
    .v2-cuenta-hola, .v2-flecha { display: none; }
    .v2-cuenta-boton { padding: 3px; }
    .v2-puntos { padding: 4px 10px 4px 4px; }
    .v2-puntos-icono { width: 28px; height: 28px; }
    .v2-puntos-texto small { display: none; }
    .v2-ingresar { padding: 7px 12px 7px 9px; font-size: 13px; }
    .v2-ingresar small { display: none; }
    .v2-menu-cuenta { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
}

/* El codigo del canje se muestra en el mostrador: en una sola linea tambien en el celular
   (partido en dos se lee mal). Se achica con el ancho en lugar de cortarse. */
.v2-club-codigo { white-space: nowrap; font-size: clamp(16px, 5.4vw, 26px); letter-spacing: clamp(0px, .4vw, 2px); max-width: 100%; box-sizing: border-box; }

/* =====================================================================
   El menu de categorias en el celular (plantillas/cabecera.php): una
   hamburguesa abre un panel al costado; tocar una categoria despliega sus
   subcategorias, con "Ver todo de ..." primero. En la computadora sigue
   la barra negra de siempre.
   Y el buscador queda pegado arriba al bajar: la fila del logo, los puntos
   y la cuenta se esconde al bajar y vuelve al subir (recursos/js/tienda.js).
   ===================================================================== */
.v2-hamburguesa { display: none; }
.v2-cajon, .v2-cajon-velo { display: none; }

@media (max-width: 900px) {
    /* La cabecera pegada arriba: al esconderse sube lo que mide la fila del logo
       (--alto-fila, lo calcula el JS) y queda visible solo el buscador. */
    .v2-head { position: sticky; top: 0; z-index: 1000; background: #fff; transition: transform .25s ease; }
    .v2-head.v2-head-oculta { transform: translateY(calc(-1 * var(--alto-fila, 64px))); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
    .v2-head { grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo acciones" "buscar buscar buscar"; }
    .v2-hamburguesa { grid-area: menu; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
                      border: 0; border-radius: 12px; background: #f6f1f3; color: #2b2b2b; cursor: pointer; box-shadow: none; padding: 0; }
    .v2-hamburguesa .material-icons { font-size: 26px; }
    .v2-hamburguesa:focus-visible { outline: 3px solid rgba(179, 36, 76, .35); outline-offset: 2px; }

    /* La barra negra no va en el celular: la reemplaza el panel. */
    #menu.menu { display: none !important; }

    .v2-cajon-velo { display: block; position: fixed; inset: 0; background: rgba(20, 10, 15, .45); z-index: 3000; opacity: 0; pointer-events: none; transition: opacity .2s; }
    .v2-cajon { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: #fff; z-index: 3001;
                transform: translateX(-102%); transition: transform .25s ease; box-shadow: 8px 0 30px rgba(0,0,0,.18); }
    body.v2-cajon-abierto { overflow: hidden; }
    body.v2-cajon-abierto .v2-cajon { transform: none; }
    body.v2-cajon-abierto .v2-cajon-velo { opacity: 1; pointer-events: auto; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
    .v2-head, .v2-cajon, .v2-cajon-velo { transition: none; }
}
.v2-cajon-cabeza { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 18px; border-bottom: 1px solid #f0e6ea; }
.v2-cajon-cabeza img { width: 120px; display: block; }
.v2-cajon-cerrar { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #f6f1f3; cursor: pointer; display: inline-flex; align-items: center;
                   justify-content: center; color: #333; box-shadow: none; padding: 0; }
.v2-cajon-cuerpo { flex: 1; overflow-y: auto; padding: 8px 10px 30px; -webkit-overflow-scrolling: touch; }
.v2-cajon-destacados { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 4px 12px; border-bottom: 1px solid #f3e8ec; margin-bottom: 6px; }
.v2-cajon-destacados a { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 14px; }
.v2-cajon-ofertas { background: #fbe3ea; color: var(--color1); }
.v2-cajon-club { background: #fff4d6; color: #92400e; }
.v2-cajon-lista { list-style: none; margin: 0; padding: 0; }
.v2-cajon-lista > li { border-bottom: 1px solid #f6eef1; }
.v2-cajon-cat { display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box; padding: 14px 10px; border: 0;
                background: none; font: inherit; font-size: 15px; font-weight: 700; color: #2b2b2b; text-align: left; text-decoration: none; cursor: pointer;
                box-shadow: none; border-radius: 10px; text-transform: uppercase; letter-spacing: .3px; }
.v2-cajon-cat:hover, .v2-cajon-cat:focus-visible { background: #fbeef2; color: var(--color1); outline: none; }
.v2-cajon-cat .material-icons { color: #b9a5ad; transition: transform .2s; }
.v2-cajon-cat[aria-expanded="true"] { color: var(--color1); }
.v2-cajon-cat[aria-expanded="true"] .material-icons { transform: rotate(180deg); color: var(--color1); }
.v2-cajon-subs { list-style: none; margin: 0 0 8px; padding: 0 0 0 10px; }
.v2-cajon-subs a { display: block; padding: 10px 12px; border-radius: 10px; color: #444; text-decoration: none; font-size: 14px; }
.v2-cajon-subs a:hover, .v2-cajon-subs a:focus-visible { background: #fbeef2; color: var(--color1); outline: none; }
.v2-cajon-subs .v2-ver-todo { font-weight: 700; color: var(--color1); display: flex; align-items: center; gap: 6px; }
.v2-cajon-subs .v2-ver-todo .material-icons { font-size: 18px; }

/* Sin el boton del carrito (el carrito, la compra, el pedido, el pago), WhatsApp baja a su lugar. */
.fabWhat.v2-fab-solo { bottom: 16px; }

/* Los numeros de los pasos de la compra se cuentan solos: si el paso del pago no esta
   (un retiro), "Tus datos" pasa a ser el 2. */
.v2-compra-principal { counter-reset: paso; }
.v2-compra-principal > .v2-paso:not([hidden]) { counter-increment: paso; }
.v2-paso-numero::before { content: counter(paso); }
.v2-nota-retiro { display: flex; gap: 8px; align-items: flex-start; margin: 10px 2px 0; }
.v2-nota-retiro[hidden] { display: none; }
.v2-nota-retiro .material-icons { color: var(--color1); font-size: 20px; }
.v2-pedido-pagar-ya { margin: 6px 0 10px; font-weight: 600; color: #444; }
.v2-pedido-otras { margin: 12px 0 4px; text-align: left; }
.v2-pedido-otras summary { cursor: pointer; font-weight: 700; color: var(--color1); text-align: center; padding: 6px; }
.v2-pedido-otras ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.v2-pedido-otras a { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid #eee; border-radius: 12px; text-decoration: none; color: #333; background: #fff; }
.v2-pedido-otras a:hover { border-color: var(--color1); }
.v2-pedido-otras small { color: #777; }

/* Los botones flotantes por debajo de la cabecera (z-index 1000): el menu de la cuenta cuelga
   de ella y los botones lo tapaban (tienda.css les daba 343000). Siguen arriba del contenido, y
   debajo del panel de categorias (3000), los avisos y el popup. */
.fabWhat, .fabCarrito { z-index: 900 !important; }
.miniFabCarrito { z-index: 901 !important; }

/* =====================================================================
   El velo blanco con desenfoque (recursos/js/tienda.js): detras del menu
   de la cuenta (debajo de la cabecera, que es donde cuelga el menu) y
   detras del cartel del carrito (arriba de todo).
   ===================================================================== */
.v2-velo-blanco { position: fixed; inset: 0; z-index: 999; background: rgba(255, 255, 255, .55);
                  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: v2-velo-entra .18s ease-out; }
.v2-velo-blanco.v2-velo-arriba { z-index: 4000; }
@keyframes v2-velo-entra { from { opacity: 0; } }

/* El cartel del carrito, al agregar desde la ficha */
body.v2-con-cartel { overflow: hidden; }
.v2-cartel-carrito { position: fixed; z-index: 4001; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px));
                     max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: #fff; border-radius: 20px;
                     border: 1px solid #f0e6ea; box-shadow: 0 30px 70px rgba(40, 10, 20, .22); animation: v2-cartel-entra .22s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes v2-cartel-entra { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.v2-cartel-cabeza { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px 20px; }
.v2-cartel-cabeza > .material-icons { color: #1e9e5a; font-size: 28px; }
.v2-cartel-cabeza h2 { margin: 0; flex: 1; font-size: 19px; font-weight: 800; color: #222; }
.v2-cartel-cerrar { width: 38px; height: 38px; border: 0; border-radius: 12px; background: #f6f1f3; color: #444; cursor: pointer; display: inline-flex;
                    align-items: center; justify-content: center; padding: 0; box-shadow: none; }
.v2-cartel-lineas { list-style: none; margin: 0; padding: 4px 12px; overflow-y: auto; flex: 1; min-height: 0; border-top: 1px solid #f3e8ec; border-bottom: 1px solid #f3e8ec; }
.v2-cartel-lineas li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; }
.v2-cartel-lineas li + li { border-top: 1px solid #f7f1f3; }
.v2-cartel-lineas li.v2-recien { background: #fdf2f5; border-top-color: transparent; }
.v2-cartel-lineas img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid #f0eaec; }
.v2-cartel-nombre { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; color: #333; line-height: 1.3; min-width: 0; }
.v2-cartel-nombre small { font-weight: 500; color: #888; }
.v2-cartel-lineas b { font-size: 14px; color: #222; white-space: nowrap; }
.v2-cartel-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 20px 4px; font-size: 16px; font-weight: 700; color: #333; }
.v2-cartel-total small { font-weight: 500; color: #888; font-size: 13px; }
.v2-cartel-total b { font-size: 22px; color: var(--color1); }
.v2-cartel-botones { display: flex; flex-direction: column; gap: 10px; padding: 12px 20px 20px; }
.v2-cartel-botones .v2-btn-principal { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; width: 100%; box-sizing: border-box; }
.v2-cartel-secundarios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v2-cartel-secundarios .v2-btn-secundario { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
                                            padding: 11px 10px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: none; }
@media (max-width: 600px) {
    /* En el celular sube desde abajo, como una hoja. */
    .v2-cartel-carrito { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 85vh; border-radius: 22px 22px 0 0; animation: v2-cartel-sube .25s ease-out; }
    @keyframes v2-cartel-sube { from { transform: translateY(40px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .v2-velo-blanco, .v2-cartel-carrito { animation: none; } }
.v2-cartel-secundarios .v2-btn-secundario { margin-top: 0; width: auto; }

/* ---- Los datos para transferir (pedido.php) y el aviso en la compra ---- */
.v2-aviso-cvu { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--color1); font-weight: 600; }
.v2-aviso-cvu .material-icons { font-size: 18px; }
.v2-cvu { margin: 16px auto 4px; max-width: 460px; text-align: left; background: #fff; border: 1px solid #f0e6ea; border-radius: 16px; padding: 16px; }
.v2-cvu-monto { margin: 0 0 10px; color: #444; }
.v2-cvu-monto b { color: var(--color1); font-size: 18px; }
.v2-cvu-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #faf6f8; border-radius: 12px; margin-bottom: 8px; }
.v2-cvu-fila > span { display: flex; flex-direction: column; min-width: 0; }
.v2-cvu-fila small { color: #888; font-size: 12px; }
.v2-cvu-dato { font-family: 'Courier New', monospace; font-size: 16px; letter-spacing: .5px; overflow-wrap: anywhere; color: #222; }
.v2-cvu-copiar { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; border: 1px solid #e6d6dc; background: #fff; color: var(--color1); border-radius: 10px;
                 padding: 8px 12px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: none; }
.v2-cvu-copiar .material-icons { font-size: 16px; }
.v2-cvu-copiar.v2-copiado { background: #e8f8ef; border-color: #b7e4c7; color: #1e7b45; }
.v2-cvu-titular { margin: 4px 2px 12px; color: #666; font-size: 14px; }
.v2-cvu-comprobante { display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; margin-top: 0; }
.v2-otra-cvu { padding: 12px 14px; border: 1px solid #eee; border-radius: 12px; background: #fff; }
.v2-otra-cvu .v2-cvu { margin: 10px 0 0; border: 0; padding: 0; }

/* =====================================================================
   La campanita en la cabecera (el resto en avisos.css) y el banner para
   instalar la app (recursos/js/avisos.js).
   ===================================================================== */
@media (max-width: 900px) {
    .v2-head .avisos-boton { width: 40px; height: 40px; }
    /* Con los puntos, la campanita y la cuenta juntos no entra todo en 390 px: el logo cede (antes la fila se salia de la pantalla). */
    .v2-head { grid-template-columns: auto minmax(0, 1fr) auto; }
    .v2-head .head_logo_container { min-width: 0; }
    .v2-head .head_logo_container img { width: 100%; min-width: 96px; }
    .v2-head .avisos-menu { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; max-width: none; }
}

/* El banner sube desde abajo la primera vez que entran desde el celular: una tarjeta bordo
   con el icono de la app, como la marca. En iPhone explica como agregarla (no hay boton). */
.v2-instalar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 100001;
               max-width: 480px; margin: 0 auto; padding: 18px 18px 16px; border-radius: 22px; color: #fff; font-family: 'Xmind', sans-serif;
               background: radial-gradient(120% 140% at 100% 0%, #cd5375 0%, rgba(205, 83, 117, 0) 55%), linear-gradient(135deg, #b3244c, #911d3d);
               box-shadow: 0 22px 60px rgba(80, 10, 35, .45); transform: translateY(calc(100% + 40px)); transition: transform .32s cubic-bezier(.2, .9, .3, 1.15); }
.v2-instalar.abierto { transform: none; }
.v2-instalar[hidden] { display: none; }
.v2-instalar-fila { display: flex; gap: 14px; align-items: flex-start; }
.v2-instalar-icono { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 6px 16px rgba(0, 0, 0, .25); }
.v2-instalar-texto { flex: 1; min-width: 0; padding-right: 26px; }
.v2-instalar-texto > b { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; margin: 2px 0 6px; }
.v2-instalar-ios b { font-weight: 800; color: #fff; }
.v2-instalar-texto p { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.v2-instalar-ios { display: none; margin-top: 10px !important; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .14); }
.v2-instalar-ios svg { width: 18px; height: 18px; vertical-align: -3px; margin: 0 2px; }
.v2-instalar[data-modo="ios"] .v2-instalar-ios { display: block; }
.v2-instalar[data-modo="ios"] .v2-instalar-si { display: none; }
.v2-instalar-botones { display: flex; gap: 10px; margin-top: 14px; }
.v2-instalar-si, .v2-instalar-no { flex: 1; min-height: 48px; border-radius: 50px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; border: 0; }
.v2-instalar-si { background: #fff; color: #b3244c; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.v2-instalar-si .material-icons { font-size: 21px; }
.v2-instalar-no { background: rgba(255, 255, 255, .16); color: #fff; }
.v2-instalar-si:active, .v2-instalar-no:active { transform: scale(.98); }
.v2-instalar-cerrar { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16);
                      color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.v2-instalar-cerrar .material-icons { font-size: 20px; }
@media (prefers-reduced-motion: reduce) { .v2-instalar { transition: none; } }
.v2-menu-dato-marca { color: #fff; background: var(--color1); }
