@charset "UTF-8";

/* ======================================================================
   CHINCOL v5.3 · HOJA DE ESTILOS UNIFICADA
   Tienda, cuenta, carrito, checkout y administración.
   Las reglas base se conservan para respetar las plantillas existentes;
   los ajustes modernos y el panel administrativo quedan al final.
   ====================================================================== */

/* 1. Estilos generales y componentes base */
/* ==========================================
   1. RESET Y CONFIGURACIÓN GLOBAL
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --naranja: #E8A23A;
    --gris: #6b6b6b;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #FBF7EF;
    color: #3a3a3a;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================
   2. CABECERA, MENÚ Y LOGOTIPO
   ========================================== */
.top {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.menu {
    display: flex;
    gap: 18px;
    font-size: 14px;
}

.menu a:hover {
    color: var(--naranja);
}

.logo {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 4px;
    text-align: center;
}

.logo img {
    max-height: 40px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.iconos {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    font-size: 18px;
}

.iconos input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 150px;
}

.cuenta {
    background: var(--naranja);
    color: #fff;
    border-radius: 50%;
    padding: 0 6px;
    font-size: 12px;
}

/* ==========================================
   3. COMPONENTES Y UTILIDADES
   ========================================== */
.aviso {
    margin: 14px auto;
    max-width: 1100px;
    padding: 12px 16px;
    border-radius: 6px;
    background: #e6f4ea;
    color: #1e5b2e;
}

.aviso.err {
    background: #fde8e8;
    color: #8a1c1c;
}

.contenedor {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.titulo-sec {
    font-size: 28px;
    margin-bottom: 20px;
}

.btn, .btn-sec {
    display: inline-block;
    background: var(--naranja);
    color: #fff;
    border: 0;
    padding: 12px 26px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}

.btn-sec {
    background: #444;
}

/* ==========================================
   4. SECCIONES (HERO, BANNER, TIENDA)
   ========================================== */
.hero {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('img/slider-1-1024x512.jpg') no-repeat center center;
    background-size: cover;
}

.hero-txt .etiqueta {
    display: inline-block;
    background: var(--naranja);
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 3px;
}

.hero h1 {
    font-size: 48px;
    margin: 18px 0 24px;
}

.banner {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)), #d8c8a8;
    color: #fff;
}

.banner h1 {
    font-size: 40px;
}

.subcat {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.subcat a {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--gris);
}

.subcat a.activo, .subcat a:hover {
    background: var(--naranja);
    color: #fff;
}

/* ==========================================
   5. PRODUCTOS Y TARJETAS
   ========================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.card {
    position: relative;
    background: #fff;
    padding: 14px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    display: block;
    transition: transform .2s;
}

.card:hover {
    transform: translateY(-3px);
}

.card-img {
    position: relative;
    aspect-ratio: 1/1;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

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

.card h3 {
    font-size: 16px;
    margin: 12px 0 4px;
}

.precio {
    font-weight: bold;
    color: var(--naranja);
}

.badge-sin {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #444;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 3px;
}

.producto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.galeria .principal img {
    width: 100%;
    border-radius: 6px;
}

.miniaturas {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.miniaturas img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
}

.precio-grande {
    font-size: 26px;
    font-weight: bold;
    color: var(--naranja);
    margin: 10px 0;
}

.compra {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.compra input {
    width: 80px;
    padding: 10px;
}

/* ==========================================
   6. FORMULARIOS, TEXTOS Y TABLAS
   ========================================== */
.texto {
    max-width: 760px;
}

.texto h2 {
    margin: 24px 0 8px;
}

.post {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.fecha {
    color: var(--gris);
    font-size: 13px;
}

.form-central {
    max-width: 460px;
}

form label {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
}

form input, form textarea, form select {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font: inherit;
    background: #fff;
}

.tabla {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

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

.tabla input {
    width: 80px;
}

.ayuda {
    font-size: 13px;
    color: var(--gris);
    margin: 8px 0;
}

.resumen {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    max-width: 360px;
}

.cols {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

.pasos {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.paso {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #e8e2d6;
    font-size: 13px;
    border-radius: 4px;
}

.paso.hecho {
    background: var(--naranja);
    color: #fff;
}

.historial {
    list-style: none;
    font-size: 14px;
}

.historial li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.inline {
    display: flex;
    gap: 6px;
    align-items: center;
}

.inline select, .inline input {
    width: auto;
    margin: 0;
    padding: 6px;
}

/* ==========================================
   7. PIE DE PÁGINA Y ELEMENTOS FLOTANTES
   ========================================== */
.pie {
    text-align: center;
    padding: 30px;
    color: var(--gris);
    font-size: 14px;
    border-top: 1px solid #eee;
    margin-top: 40px;
    background: #fff;
}

.flotantes {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
}

.flotantes a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--naranja);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* ==========================================
   8. DISEÑO RESPONSIVE (MÓVILES Y TABLETS)
   ========================================== */
@media (max-width: 800px) {
    .top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .iconos {
        justify-content: center;
    }

    .producto, .cols {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .logo img {
        max-height: 32px;
    }
}
.hero {
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)),
              url('img/slider-1-1024x512.jpg') center/cover no-repeat;
}


/* v4 responsive polish */
img { max-width:100%; height:auto; }
input,select,textarea,button { max-width:100%; }
button,.btn,input[type=submit] { min-height:42px; }
.table-wrap { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
table { width:100%; border-collapse:collapse; }
td,th { overflow-wrap:anywhere; }
.card,.card-form,.resumen,form { min-width:0; }
@media(max-width:640px){
 .wrap,.contenedor { width:min(100% - 28px,1120px); }
 .top-inner,.bar { gap:12px; }
 .menu { gap:10px; }
 .menu a,.nav a,.nav button { padding:10px 8px; }
 .grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); }
 .hero h1 { font-size:clamp(1.8rem,8vw,2.6rem); }
 .card-body { padding:14px; }
 .buy,.actions,.row { flex-wrap:wrap; }
 .buy label,.buy select,.buy .btn,.row>label { width:100%; }
 .table-wrap table { min-width:620px; }
 .site-footer,.pie { padding:22px 14px; }
}


/* ==========================================
   Chincol v5 · ajustes responsive y acceso
   ========================================== */
html { scroll-behavior: smooth; }
body { min-width: 320px; }
img { max-width: 100%; }
button, input, textarea, select { max-width: 100%; }
.btn { border-radius: 8px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(120,76,24,.16); }
.contenedor { width: min(1160px, 100%); }
.hero { min-height: clamp(300px, 42vw, 470px); padding: 48px 22px; background-position: center; }
.hero h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }
.hero-txt .etiqueta { border-radius: 5px; }
.titulo-sec { font-size: clamp(23px, 3vw, 30px); }
.grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.card { border-radius: 12px; box-shadow: 0 5px 22px rgba(50,38,22,.07); }
.card-img { border-radius: 9px; }
.card-form { width: min(100%, 470px); margin: 42px auto; padding: clamp(22px, 4vw, 38px); border: 1px solid #eee5d9; border-radius: 18px; background: #fff; box-shadow: 0 18px 55px rgba(70,48,24,.09); }
.card-form h1 { font-size: clamp(25px, 3vw, 32px); line-height: 1.2; margin-bottom: 10px; }
.card-form .hint { color: #777168; line-height: 1.6; }
.card-form form { margin-top: 24px; }
.card-form label { color: #49443d; font-weight: 600; font-size: 14px; }
.card-form input:not([type=hidden]) { min-height: 48px; padding: 12px 14px; border: 1px solid #ded8ce; border-radius: 9px; background: #fffdf9; outline: none; }
.card-form input:focus { border-color: #d99a36; box-shadow: 0 0 0 3px rgba(232,162,58,.18); }
.btn-bloque { width: 100%; min-height: 48px; border-radius: 9px; font-size: 15px; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid #eee7dd; }
.site-footer { margin-top: 55px; background: #fff; border-top: 1px solid #eee7dd; color: #756e64; }
.auth-layout { width: min(960px, calc(100% - 36px)); margin: 42px auto 56px; display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid #eee5d9; box-shadow: 0 22px 70px rgba(68,45,21,.11); }
.auth-visual { padding: clamp(28px, 5vw, 54px); color: #fff; background: linear-gradient(145deg, rgba(62,48,31,.92), rgba(112,76,35,.78)), url('img/slider-1-1024x512.jpg') center/cover; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 490px; }
.auth-brand { display: inline-flex; align-items: center; margin-bottom: auto; }
.auth-brand img { width: 100px; max-height: 76px; object-fit: contain; padding: 8px; background: rgba(255,255,255,.94); border-radius: 12px; }
.auth-kicker, .auth-overline { letter-spacing: .16em; font-size: 11px; font-weight: 800; }
.auth-kicker { color: #f7c16c; margin-bottom: 12px; }
.auth-visual h1 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; max-width: 360px; margin-bottom: 14px; }
.auth-visual p { color: #f7f1e8; max-width: 310px; }
.auth-layout .card-form { width: auto; max-width: none; margin: 0; padding: clamp(26px, 4.5vw, 52px); border: 0; border-radius: 0; box-shadow: none; align-self: center; }
.auth-heading { margin-bottom: 25px; }
.auth-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #fff3df; color: #b87518; font-size: 22px; margin-bottom: 20px; }
.auth-overline { color: #b17a2b; margin-bottom: 8px; }
.auth-heading h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.2; margin-bottom: 10px; }
.auth-options { display: flex; justify-content: flex-end; margin: -2px 0 20px; font-size: 13px; }
.auth-options a, .auth-back { color: #a96c16; font-weight: 700; }
.auth-options a:hover, .auth-back:hover { text-decoration: underline; }
.auth-note { font-size: 12px; color: #81796f; text-align: center; margin: 22px 0 12px; }
.auth-back { display: block; text-align: center; font-size: 13px; }
.alert { padding: 12px 14px; border-radius: 9px; margin: 14px 0; }
@media (max-width: 720px) {
  .top { grid-template-columns: 1fr; padding: 12px 16px; }
  .menu { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .logo { grid-row: 1; }
  .iconos { justify-content: center; flex-wrap: wrap; }
  .iconos input { width: min(52vw, 220px); }
  .contenedor { margin-top: 28px; padding-inline: 16px; }
  .hero { min-height: 310px; }
  .producto, .cols { grid-template-columns: 1fr; gap: 22px; }
  .resumen { max-width: none; }
  .tabla { display: block; overflow-x: auto; white-space: nowrap; }
  .auth-layout { grid-template-columns: 1fr; margin: 22px auto 38px; width: min(100% - 24px, 520px); border-radius: 16px; }
  .auth-visual { min-height: 210px; padding: 24px; }
  .auth-brand { margin-bottom: 22px; }
  .auth-brand img { width: 76px; max-height: 58px; }
  .auth-visual h1 { font-size: 28px; }
  .auth-visual p { font-size: 14px; }
  .auth-layout .card-form { padding: 26px 22px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 9px; }
  .card h3 { font-size: 14px; }
  .hero h1 { font-size: 30px; }
  .pasos { flex-direction: column; }
}
/* ==================================================
   HEADER PRINCIPAL CORREGIDO
   ================================================== */

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e8e1d7;
    box-shadow: 0 3px 14px rgba(50, 38, 22, .10);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #33302b;
    text-decoration: none;
    white-space: nowrap;
}

.brand img {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand span {
    color: #3e372f;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .04em;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 8px;
    color: #4b463f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.nav a:hover,
.nav a:focus-visible {
    background: #fff1d9;
    color: #a96c16;
}

.nav a:first-child {
    color: #a96c16;
}

.nav-login {
    margin-left: 8px;
    border: 1px solid #d99a36;
    color: #a96c16 !important;
}

.nav-login:hover,
.nav-login:focus-visible {
    background: #e8a23a !important;
    color: #ffffff !important;
}

.menu-check,
.menu-btn {
    display: none;
}

/* El contenido ya no queda pegado al header */
.contenedor {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: 42px;
    padding-bottom: 55px;
}

/* Tarjetas del inicio */
.card-body {
    padding: 4px 3px 2px;
}

.placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #eeeeee;
    color: #777777;
    font-size: 42px;
    font-weight: 700;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 5px;
    background: #494949;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.stock,
.subtitulo,
.empty {
    color: #756e64;
    font-size: 14px;
}

.buy {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.buy label {
    margin: 0;
}

.buy select {
    width: 70px;
    margin-top: 5px;
}

.buy .btn {
    flex: 1;
    min-width: 150px;
    padding: 11px 12px;
}

/* Versión móvil */
@media (max-width: 720px) {
    .wrap {
        width: min(100% - 28px, 1120px);
    }

    .header-inner {
        min-height: 70px;
        gap: 12px;
    }

    .brand img {
        width: 43px;
        height: 43px;
    }

    .brand span {
        font-size: 17px;
    }

    .menu-btn {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 48px;
        min-height: 42px;
        padding: 6px;
        border: 1px solid #e4dcd0;
        border-radius: 8px;
        background: #ffffff;
        color: #a96c16;
        cursor: pointer;
        font-size: 10px;
        line-height: 1;
    }

    .menu-btn span {
        display: block;
        width: 21px;
        height: 2px;
        border-radius: 2px;
        background: #a96c16;
    }

    .menu-btn b {
        font-weight: 700;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        padding: 12px 14px 16px;
        border-top: 1px solid #eee7dd;
        border-bottom: 1px solid #e6ded2;
        background: #ffffff;
        box-shadow: 0 8px 18px rgba(50, 38, 22, .12);
    }

    .nav a {
        width: 100%;
        justify-content: flex-start;
        padding: 12px;
    }

    .nav-login {
        margin-left: 0;
        margin-top: 4px;
    }

    .menu-check:checked ~ .nav {
        display: flex;
    }

    .contenedor {
        width: min(100% - 28px, 1120px);
        padding-top: 28px;
    }
}

/* Corrección del login */
.login-form {
    width: min(100% - 32px, 460px);
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #eee5d9;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(70, 48, 24, 0.08);
}

.login-form .titulo-sec {
    margin-bottom: 24px;
    line-height: 1.2;
}

.login-form label {
    display: block;
    margin-bottom: 18px;
    font-weight: 600;
}

.login-form input:not([type="hidden"]) {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #ded8ce;
    border-radius: 9px;
    background: #fffdf9;
}

.login-form input:focus {
    outline: 2px solid rgba(232, 162, 58, 0.35);
    border-color: var(--naranja);
}

.login-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 9px;
}

.login-ayuda {
    margin-top: 18px;
    text-align: center;
}

.login-ayuda a {
    color: #b87518;
    font-weight: 700;
}

/* Enlace accesible: oculto hasta recibir el foco */
.skip {
    position: absolute;
    top: 8px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-160%);
    padding: 10px 14px;
    background: #fff;
    color: #3a3a3a;
    border: 2px solid var(--naranja);
    border-radius: 8px;
    font-weight: 700;
}

.skip:focus {
    transform: translateY(0);
}

/* Evita que el ancla deje el contenido pegado al borde */
html {
    scroll-padding-top: 16px;
}

#contenido {
    scroll-margin-top: 16px;
}

/* Panel de administración */
.main > h1 {
    margin-bottom: 22px;
    line-height: 1.2;
}

.stats {
    margin-top: 24px;
    margin-bottom: 28px;
}

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrap table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
    padding: 14px 16px;
    vertical-align: middle;
}

.inline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
}

.inline select {
    min-width: 120px;
    width: auto;
    margin: 0;
}

@media (max-width: 720px) {
    .login-form {
        margin: 24px auto;
        padding: 24px 20px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .table-wrap table {
        min-width: 760px;
    }
}

.lista-carrito { list-style:none; padding:0; margin:0 0 1rem; }
.item-carrito {
  display:grid; grid-template-columns:84px 1fr auto auto; gap:1rem;
  align-items:center; padding:.75rem 0; border-bottom:1px solid #e5e7eb;
}
.item-carrito img { width:84px; height:84px; object-fit:cover; border-radius:8px; }
.item-info { min-width:0; }
.item-cant input { width:4.5rem; }
.item-sub { font-weight:700; min-width:6rem; text-align:right; }
@media (max-width:600px) {
  .item-carrito { grid-template-columns:64px 1fr; }
  .item-carrito img { width:64px; height:64px; }
  .item-cant, .item-sub { grid-column: 2; }
}


/* 2. Mejoras de catálogo, carrito, checkout y accesibilidad */
/* mejoras.css v4: zoom y vista rápida sin JavaScript (la CSP bloquea scripts inline) */

.card-img { display:block; overflow:hidden; }
.card-img img { transition: transform .3s ease; width:100%; }
.card-img:hover img { transform: scale(1.04); }

/* Zoom: se activa con :target */
.zoom { display:none; position:fixed; inset:0; z-index:200; align-items:center; justify-content:center; background:rgba(0,0,0,.78); }
.zoom:target { display:flex; animation: zFade .25s ease; }
.zoom img { max-width:90vw; max-height:90vh; border-radius:10px; box-shadow:0 10px 40px rgba(0,0,0,.5); animation: zIn .35s cubic-bezier(.2,.8,.2,1); }
.zoom-fondo { position:absolute; inset:0; }
@keyframes zFade { from{opacity:0} to{opacity:1} }
@keyframes zIn   { from{transform:scale(.6);opacity:0} to{transform:scale(1);opacity:1} }
@media (prefers-reduced-motion: reduce) { .zoom, .zoom img { animation:none; } }

/* Vista rápida (details) */
.qv { margin-top:.5rem; border-top:1px solid #e5e7eb; padding-top:.5rem; }
.qv summary { cursor:pointer; font-weight:600; }
.qv[open] summary { margin-bottom:.5rem; }
.qv .compra { display:flex; gap:.5rem; flex-wrap:wrap; }
.qv .compra input[type=number] { width:4.5rem; }

/* Galería de ficha: radios sin JS */
.galeria { position:relative; }
.galeria input.g-radio { position:absolute; opacity:0; pointer-events:none; }
.galeria .principal label { display:block; cursor:zoom-in; }
.galeria .principal img { width:100%; transition: opacity .25s; }
.galeria .thumbs { display:flex; gap:.5rem; margin-top:.5rem; flex-wrap:wrap; }
.galeria .thumbs label { cursor:pointer; opacity:.6; }
.galeria .thumbs img { width:72px; height:72px; object-fit:cover; border-radius:6px; }
.galeria input.g-radio:checked + .thumbs label { opacity:1; }

/* Carrito con vista previa */
.lista-carrito { list-style:none; padding:0; margin:0 0 1rem; }
.item-carrito { display:grid; grid-template-columns:84px 1fr auto auto; gap:1rem; align-items:center; padding:.75rem 0; border-bottom:1px solid #e5e7eb; }
.item-carrito img { border-radius:8px; object-fit:cover; width:84px; height:84px; }
.item-cant input { width:4.5rem; }
.item-sub { font-weight:700; min-width:6rem; text-align:right; }
@media (max-width:600px) { .item-carrito { grid-template-columns:64px 1fr; } .item-carrito img { width:64px; height:64px; } }

/* Estado de pago en el panel */
.badge.sin_pago { background:#fde68a; }
.badge.comprobante_recibido { background:#bfdbfe; }
.badge.confirmado { background:#bbf7d0; }


/* =========================================================
   CHINCOL · PROTOTIPO E-COMMERCE RESPONSIVE
   Conserva la paleta cálida original y unifica alineaciones.
   ========================================================= */
:root { --naranja:#E8A23A; --ink:#3e372f; --muted:#756e64; --cream:#FBF7EF; --line:#eee5d9; }
* { min-width:0; }
body { overflow-x:hidden; background:var(--cream); color:var(--ink); }
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid rgba(232,162,58,.55); outline-offset:2px; }
.bar { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:22px; }
.brand { flex:0 0 auto; }
.brand img { width:48px; height:48px; }
.nav { flex:1 1 auto; }
.nav a.nav-cart { background:#fff5e5; color:#8b5b16; border:1px solid #f0d7ad; }
.nav-cart .cuenta { display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 6px; border-radius:99px; background:var(--naranja); color:#fff; font-size:12px; }
.nav-form { margin:0; }
.nav-form button.link { width:auto; min-height:42px; margin:0; padding:9px 14px; border:0; background:transparent; color:#4b463f; font:600 14px Arial,sans-serif; cursor:pointer; }
.main { padding-top:24px; }
.contenedor { width:min(1160px,calc(100% - 40px)); margin:0 auto; padding:42px 0 56px; }
.hero { min-height:clamp(340px,44vw,510px); padding:48px 24px; background-image:linear-gradient(90deg,rgba(35,28,20,.60),rgba(35,28,20,.20)),url('img/slider-1-1024x512.jpg'); }
.hero-txt { width:min(720px,100%); }
.hero-txt p { max-width:560px; margin:0 auto 24px; font-size:clamp(15px,2vw,18px); }
.hero h1 { font-size:clamp(34px,5vw,58px); letter-spacing:-.035em; }
.eyebrow { display:inline-block; margin-bottom:7px; color:#a96c16; font-size:11px; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:18px; margin-bottom:24px; }
.section-heading .titulo-sec { margin:0; }
.text-link { color:#986016; font-weight:700; font-size:14px; }
.titulo-sec { line-height:1.2; }
.seccion-destacados { padding-top:54px; }
.grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; align-items:stretch; }
.product-card { display:flex; flex-direction:column; padding:12px; border:1px solid #f0e8dd; border-radius:15px; box-shadow:0 7px 24px rgba(55,40,22,.055); }
.product-card:hover { transform:translateY(-3px); box-shadow:0 14px 30px rgba(55,40,22,.10); }
.product-card .card-img { display:block; aspect-ratio:1/1; border-radius:10px; background:#f1ece4; }
.product-card .card-img img { width:100%; height:100%; object-fit:cover; }
.product-card .card-body { display:flex; flex:1; flex-direction:column; gap:9px; padding:15px 5px 5px; }
.product-card h3 { margin:0; font-size:16px; line-height:1.35; }
.product-card h3 a:hover { color:#a96c16; }
.product-excerpt { min-height:38px; color:var(--muted); font-size:13px; line-height:1.45; }
.product-card .precio { margin-top:auto; font-size:19px; }
.product-add { margin:0; }
.product-add .btn { width:100%; }
.btn,.btn-sec { min-height:46px; border-radius:8px; }
.btn.ghost { background:#fff; color:#805313; border:1px solid #e6c58f; }
.btn.disabled { opacity:.6; cursor:not-allowed; }
.placeholder { border-radius:10px; color:#a96c16; background:#f3eadb; }
.banner { min-height:190px; height:auto; padding:36px 20px; text-align:center; background:linear-gradient(135deg,#d7c5a8,#b99d75); }
.banner h1 { font-size:clamp(30px,4vw,42px); }
.banner p { margin-top:6px; }
.tienda-section { padding-top:30px; }
.search-store { display:flex; gap:10px; max-width:560px; margin:0 auto 22px; }
.search-store input { flex:1; min-width:0; margin:0; min-height:46px; border:1px solid #e5dbcc; border-radius:9px; padding:10px 14px; }
.search-store .btn { flex:0 0 auto; }
.subcat { justify-content:flex-start; border:0; border-radius:12px; padding:10px; background:#fff; }
.results-meta { display:flex; justify-content:space-between; gap:12px; margin:20px 0 14px; color:var(--muted); font-size:13px; }
.empty-state { max-width:640px; margin:30px auto; padding:clamp(28px,5vw,48px); text-align:center; background:#fff; border:1px solid var(--line); border-radius:18px; }
.empty-state h2 { margin:8px 0; }
.empty-state p { margin:0 0 20px; color:var(--muted); }
.empty-icon { font-size:36px; }
.cart-page,.checkout-page { padding-top:32px; }
.cart-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; align-items:start; gap:28px; }
.cart-items { margin:0; padding:0; background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.cart-item { display:grid; grid-template-columns:92px minmax(0,1fr) 110px 110px; align-items:center; gap:16px; padding:18px; border-bottom:1px solid #f0ece6; }
.cart-item:last-of-type { border-bottom:0; }
.cart-thumb { display:grid; place-items:center; width:92px; aspect-ratio:1; border-radius:10px; overflow:hidden; background:#f4eee5; }
.cart-thumb img { width:100%; height:100%; object-fit:cover; }
.cart-info h2 { margin:0 0 5px; font-size:16px; }
.cart-info p,.cart-info small { color:var(--muted); font-size:13px; }
.qty-control { margin:0; color:var(--muted); font-size:12px; }
.qty-control input { width:100%; margin-top:5px; }
.cart-subtotal { text-align:right; white-space:nowrap; }
.cart-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:16px 18px; background:#fff; border:1px solid var(--line); border-top:0; border-radius:0 0 16px 16px; }
.help-text { color:var(--muted); font-size:13px; line-height:1.55; }
.order-summary,.checkout-form-card { padding:24px; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 8px 25px rgba(55,40,22,.045); }
.order-summary { position:sticky; top:100px; }
.order-summary h2,.checkout-form-card h2 { margin:0 0 18px; font-size:20px; }
.summary-line,.summary-product { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid #f0ece6; font-size:14px; }
.summary-line.total { margin:8px 0 14px; padding:16px 0; border-bottom:0; font-size:16px; }
.summary-line.total strong { color:#986016; font-size:21px; }
.summary-product { align-items:start; font-size:13px; }
.summary-product small { color:var(--muted); }
.order-summary .btn { margin-top:10px; }
.secure-note { margin-top:14px; color:var(--muted); text-align:center; font-size:12px; }
.checkout-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr); gap:26px; align-items:start; }
.checkout-form-card > .help-text { margin:-10px 0 20px; }
.checkout-form { margin:0; }
.checkout-form label { display:block; margin-bottom:16px; color:#514a41; font-size:14px; font-weight:700; }
.checkout-form input:not([type=hidden]),.checkout-form textarea { min-height:48px; padding:12px 14px; border:1px solid #ded8ce; border-radius:9px; background:#fffdf9; }
.checkout-form textarea { min-height:96px; resize:vertical; }
.checkout-form .privacy-consent { display:flex; align-items:flex-start; gap:10px; font-weight:400; line-height:1.5; }
.checkout-form .privacy-consent input { width:18px; min-height:18px; margin:2px 0 0; flex:0 0 auto; }
.checkout-form .privacy-consent a { color:#986016; text-decoration:underline; }
.payment-explainer { margin-top:18px; padding:16px; border-radius:12px; background:#fbf7ef; font-size:13px; }
.payment-explainer ol { margin:10px 0 0 20px; padding:0; color:#5e574e; }
.payment-explainer li { margin:7px 0; padding-left:3px; }
.checkout-summary > .help-text { margin-top:14px; }
.producto { align-items:start; }
.producto .info { padding:10px 0; }
.producto .info h1 { font-size:clamp(26px,3vw,36px); line-height:1.2; }
.producto .galeria { min-width:0; }
.producto .galeria .principal { display:block; margin-bottom:10px; }
.producto .galeria .principal img { width:100%; max-height:620px; object-fit:contain; background:#f2ece2; }
.site-footer { margin-top:24px; }
.foot { padding-top:28px; padding-bottom:28px; text-align:center; line-height:1.8; }
.skip { position:absolute; left:-9999px; top:8px; z-index:2000; padding:10px; background:#fff; }
.skip:focus { left:10px; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

@media (max-width:1000px) {
 .grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .cart-layout { grid-template-columns:minmax(0,1fr) 300px; gap:18px; }
 .cart-item { grid-template-columns:78px minmax(0,1fr) 90px; }
 .cart-subtotal { grid-column:2 / -1; text-align:left; }
 .checkout-grid { grid-template-columns:minmax(0,1fr) 330px; gap:18px; }
}
@media (max-width:760px) {
 .bar { position:relative; min-height:68px; flex-wrap:wrap; gap:10px; }
 .menu-btn { display:inline-flex; }
 .nav { top:100%; }
 .nav a { min-height:44px; }
 .nav-form { width:100%; }
 .nav-form button.link { width:100%; text-align:left; }
 .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
 .product-card { padding:9px; }
 .product-card .card-body { padding:10px 3px 3px; }
 .product-card h3 { font-size:14px; }
 .product-card .precio { font-size:17px; }
 .contenedor { width:calc(100% - 30px); padding-top:28px; padding-bottom:38px; }
 .hero { min-height:340px; background-position:center; }
 .section-heading { align-items:flex-start; flex-direction:column; }
 .cart-layout,.checkout-grid { grid-template-columns:1fr; }
 .order-summary { position:static; }
 .checkout-form-card,.order-summary { padding:20px; }
 .cart-item { grid-template-columns:68px minmax(0,1fr) 88px; gap:11px; padding:14px; }
 .cart-thumb { width:68px; }
 .cart-subtotal { grid-column:2 / -1; }
}
@media (max-width:460px) {
 .brand span { font-size:17px; }
 .brand img { width:40px; height:40px; }
 .menu-btn { width:46px; }
 .hero { min-height:310px; padding:38px 18px; }
 .hero h1 { font-size:clamp(30px,9vw,40px); }
 .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .product-card .card-img { aspect-ratio:4/5; }
 .product-card .btn { min-height:42px; padding:9px 7px; font-size:12px; }
 .product-excerpt { display:none; }
 .search-store { flex-direction:column; }
 .search-store .btn { width:100%; }
 .results-meta { flex-direction:column; gap:3px; }
 .cart-item { grid-template-columns:58px minmax(0,1fr); }
 .cart-thumb { width:58px; }
 .qty-control { grid-column:2; max-width:110px; }
 .cart-subtotal { grid-column:2; }
 .cart-actions { align-items:stretch; flex-direction:column; }
 .cart-actions .btn { width:100%; }
 .checkout-form-card,.order-summary { padding:16px; }
 .summary-line.total strong { font-size:19px; }
}
@media (prefers-reduced-motion:reduce) {
 *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}

.main:has(> .hero),.main:has(> .banner) { width:100%; max-width:none; padding:0; }

@media (max-width:760px) {
 .menu-check { display:block; position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; opacity:0; }
 .menu-check:focus-visible + .menu-btn { outline:3px solid rgba(232,162,58,.55); outline-offset:3px; }
}

/* =========================================================
   CHINCOL v5.2 · catálogo, carga de productos y accesibilidad
   ========================================================= */
:root {
  --catalog-ink: #332d26;
  --catalog-muted: #71695f;
  --catalog-line: #e9e0d4;
  --catalog-paper: #fffdf9;
  --catalog-accent: #a96c16;
}

/* Catálogo público */
.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--catalog-line);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover,
.product-card:focus-within {
  border-color: #dec49c;
  box-shadow: 0 14px 32px rgba(55,40,22,.11);
  transform: translateY(-2px);
}
.product-card .card-img {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f5f0e8;
}
.product-card .card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .card-img:focus-visible,
.product-card h3 a:focus-visible {
  outline: 3px solid #a96c16;
  outline-offset: 3px;
}
.product-card .card-body { gap: 10px; }
.product-card h3 { min-height: 2.6em; }
.product-card h3 a { color: var(--catalog-ink); text-decoration: none; }
.product-card h3 a:hover { color: var(--catalog-accent); text-decoration: underline; }
.product-excerpt { margin: 0; color: var(--catalog-muted); line-height: 1.55; }
.product-excerpt-empty { opacity: .85; }
.product-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.product-card .precio { margin: 0; color: #6e4714; font-size: clamp(17px, 2vw, 21px); font-weight: 800; }
.product-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.product-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.product-stock.in-stock { color: #287347; }
.product-stock.out-stock { color: #8b5148; }
.badge-sin { z-index: 2; }
.product-add { margin: 2px 0 0; }
.product-add .btn { min-height: 46px; }
.search-store { align-items: stretch; }
.search-store input:focus-visible,
.search-store button:focus-visible { outline: 3px solid rgba(169,108,22,.35); outline-offset: 2px; }
.subcat { flex-wrap: wrap; gap: 8px; }
.subcat a { border: 1px solid #e8ddce; border-radius: 999px; padding: 9px 14px; color: #554a3d; text-decoration: none; }
.subcat a.activo { border-color: #b77a27; background: #fff3df; color: #805313; font-weight: 800; }
.results-meta { flex-wrap: wrap; }

/* Administración de productos */
.admin-products-page { width: min(1160px, 100%); margin: 0 auto; padding: 20px 0 44px; }
.admin-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 10px 0 22px; }
.admin-page-heading h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 38px); color: var(--catalog-ink); }
.admin-page-heading p { margin: 0; max-width: 650px; color: var(--catalog-muted); line-height: 1.55; }
.admin-product-form { width: 100%; max-width: none; margin: 24px 0 42px; padding: clamp(20px, 3.5vw, 34px); }
.form-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--catalog-line); }
.form-section-heading h2 { margin: 2px 0 7px; font-size: clamp(21px, 3vw, 27px); }
.form-section-heading .hint { margin: 0; }
.product-editor-form { display: grid; gap: 20px; margin: 0 !important; }
.product-editor-form label { display: grid; gap: 8px; color: #49443d; font-size: 14px; font-weight: 700; }
.product-editor-form label > span { color: #9a5b17; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-editor-form input:not([type=hidden]):not([type=checkbox]),
.product-editor-form select,
.product-editor-form textarea {
  width: 100%; min-height: 48px; margin: 0; padding: 12px 14px;
  border: 1px solid #dcd3c7; border-radius: 9px; background: var(--catalog-paper);
  color: var(--catalog-ink); font: inherit; font-weight: 400;
}
.product-editor-form textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.product-editor-form input[type=file] { padding: 10px; background: #fff; }
.product-editor-form input:focus-visible,
.product-editor-form select:focus-visible,
.product-editor-form textarea:focus-visible,
.product-editor-form button:focus-visible,
.product-editor-form a:focus-visible { outline: 3px solid rgba(169,108,22,.35); outline-offset: 2px; border-color: #b77a27; }
.field-help { display: block; margin: 0; color: var(--catalog-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.upload-panel { display: grid; grid-template-columns: minmax(0,1fr) 160px; align-items: center; gap: 20px; padding: 18px; border: 1px dashed #d9c8ad; border-radius: 13px; background: #fdfaf5; }
.upload-copy > label { margin-bottom: 5px; }
.upload-copy > p { margin: 0 0 12px; }
.upload-copy input[type=file] { width: 100%; }
.current-product-image { margin: 0; text-align: center; }
.current-product-image img { display: block; width: 140px; height: 140px; margin: 0 auto 7px; border: 1px solid var(--catalog-line); border-radius: 10px; background: #fff; object-fit: cover; }
.current-product-image figcaption { color: var(--catalog-muted); font-size: 12px; }
.upload-placeholder { display: grid; place-items: center; align-content: center; gap: 6px; width: 140px; height: 140px; margin: auto; border-radius: 10px; background: #f2eadd; color: #88612d; }
.upload-placeholder span { font-size: 34px; line-height: 1; }
.upload-placeholder small { font-size: 11px; }
.visibility-control { display: flex !important; grid-template-columns: auto 1fr; align-items: start; gap: 12px !important; width: fit-content; max-width: 100%; padding: 13px 15px; border: 1px solid var(--catalog-line); border-radius: 10px; background: #fff; cursor: pointer; }
.visibility-control input { width: 19px; height: 19px; min-height: 19px !important; margin: 2px 0 0; accent-color: #9b671e; }
.visibility-control span { display: grid; gap: 3px; }
.visibility-control small { color: var(--catalog-muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 5px; }
.editor-actions .btn { min-width: 170px; }
.product-inventory { margin-top: 34px; }
.product-inventory .section-heading { align-items: center; }
.product-inventory .section-heading h2 { margin: 0; font-size: clamp(21px, 3vw, 27px); }
.inventory-count { padding: 7px 12px; border-radius: 999px; background: #f4eadb; color: #805313; font-size: 12px; font-weight: 800; }
.inventory-table-wrap { border: 1px solid var(--catalog-line); border-radius: 13px; background: #fff; }
.inventory-table { min-width: 760px !important; }
.inventory-table th { background: #faf6ef; color: #5e5142; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.inventory-table td { border-bottom: 1px solid #f0ebe4; }
.inventory-product { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.inventory-product img,.inventory-no-image { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; background: #f2ece3; object-fit: cover; }
.inventory-no-image { color: #8d7b64; font-size: 20px; }
.inventory-product strong { color: var(--catalog-ink); font-size: 13px; }
.inventory-price { white-space: nowrap; font-weight: 800; }
.inventory-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.inventory-status.is-visible { background: #e8f4eb; color: #27663e; }
.inventory-status.is-hidden { background: #f3ece8; color: #795448; }
.inventory-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.inventory-actions .btn.small { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.inventory-actions .inline { min-width: 0; margin: 0; }
.inventory-actions .link { min-height: 36px; padding: 7px 4px; }

/* Lectura y movimiento accesibles */
:focus-visible { scroll-margin-top: 100px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 760px) {
  .admin-products-page { padding-top: 8px; }
  .admin-page-heading { align-items: start; flex-direction: column; }
  .admin-page-heading > .btn { width: 100%; }
  .form-section-heading { flex-direction: column; }
  .editor-grid { grid-template-columns: 1fr; gap: 16px; }
  .upload-panel { grid-template-columns: 1fr; }
  .current-product-image img,.upload-placeholder { width: 120px; height: 120px; }
  .editor-actions { flex-direction: column; }
  .editor-actions .btn { width: 100%; }
  .inventory-table-wrap { border-radius: 10px; }
}
@media (max-width: 480px) {
  .product-card { padding: 8px; border-radius: 12px; }
  .product-card .card-body { padding: 10px 3px 3px; gap: 8px; }
  .product-card h3 { min-height: 0; font-size: 14px; }
  .product-excerpt { font-size: 12px; }
  .product-meta { align-items: start; flex-direction: column; gap: 4px; }
  .product-card .precio { font-size: 17px; }
  .product-add .btn { min-height: 42px; padding: 9px 7px; font-size: 12px; }
  .search-store { flex-direction: column; }
  .search-store .btn { width: 100%; }
  .results-meta { flex-direction: column; gap: 4px; }
}


/* 3. Alineación de formularios y acciones */
/* Chincol v5.1: alineación consistente de acciones y formularios */
.actions,.acciones,.admin-actions,.button-row {
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
}
.actions > *, .acciones > *, .admin-actions > *, .button-row > * { margin:0; }
.btn,.btn-sec,a.btn,button.btn,input[type="submit"] {
  display:inline-flex; align-items:center; justify-content:center; vertical-align:middle;
  min-height:42px; line-height:1.2; text-decoration:none; margin:4px 6px 4px 0;
  white-space:normal;
}
.btn-bloque { width:100%; margin:8px 0 0; }
.inline { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:9px; margin:6px 0; }
.inline > * { margin:0; }
.inline select,.inline input:not([type="hidden"]) { min-height:42px; margin:0; }
.table-wrap td .btn,.table-wrap td a.btn,.table-wrap td button { margin:4px 6px 4px 0; }
.table-wrap td form.inline { min-width:0; width:100%; }
.table-wrap td form.inline button { flex:0 0 auto; }
.acciones { gap:8px; }
.acciones form { display:inline-flex; margin:0; }
.admin-help { color:#756e64; line-height:1.6; margin:12px 0 20px; }
.ua-cell { min-width:220px; max-width:360px; font-size:12px; overflow-wrap:anywhere; }
.account-logout { margin:14px 0 22px; }
.order-confirmation { max-width:850px; }
.order-confirmation h2 { margin-top:28px; }
.auth-layout form label { display:block; margin-bottom:16px; }
.auth-layout form input:not([type="hidden"]) { width:100%; box-sizing:border-box; }
.auth-options { display:flex; justify-content:flex-end; margin:8px 0 14px; }
@media(max-width:720px) {
 .actions,.acciones,.admin-actions,.button-row { gap:8px; }
 .actions > *,.acciones > *,.admin-actions > *,.button-row > * { flex:1 1 100%; }
 .inline { align-items:stretch; min-width:0; }
 .inline select,.inline input:not([type="hidden"]),.inline button { width:100%; }
 .table-wrap td form.inline { min-width:0; }
 .table-wrap td .btn,.table-wrap td a.btn { width:100%; margin:4px 0; }
}

/* ======================================================================
   4. SISTEMA VISUAL GENERAL · AJUSTES DE CONSISTENCIA
   ====================================================================== */
:root {
  --admin-bg: #FBF7EF;
  --admin-surface: #FFFFFF;
  --admin-text: #3A3028;
  --admin-muted: #887D70;
  --admin-border: #E9DFD1;

  --admin-accent: #B87932;
  --admin-accent-soft: #F8EBD9;

  --admin-warning: #A85D08;
  --admin-warning-bg: #FFF5DF;

  --admin-success: #16734B;
  --admin-success-bg: #E9F7EF;

  --admin-danger: #B42318;
  --admin-danger-bg: #FFF0EE;

  --admin-radius: 15px;
  --admin-shadow: 0 8px 28px rgba(80, 55, 30, .06);
}
html { scroll-behavior: smooth; }
body { color: var(--chincol-ink); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(232,162,58,.42); outline-offset: 3px; }
.wrap, .contenedor { width: min(100% - 40px, 1180px); }
.main { min-height: 52vh; padding-top: 28px; padding-bottom: 54px; }
.site-header { position: relative; z-index: 20; box-shadow: 0 3px 18px rgba(40,32,20,.045); }
.site-header .bar { min-height: 78px; gap: 22px; }
.brand { gap: 11px; font-weight: 800; letter-spacing: -.025em; }
.brand img { border-radius: 50%; object-fit: contain; }
.nav { gap: 8px; align-items: center; }
.nav > a, .nav .link { border-radius: 999px; padding: 9px 13px; transition: background .18s ease, color .18s ease; }
.nav > a:hover, .nav .link:hover { background: #f8edda; color: #8b5617; }
.nav .nav-cart { background: #fff4e1; }
.btn, .btn-sec, .admin-btn { border-radius: 10px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover, .btn-sec:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(90,61,23,.12); }
.card, .product-card, .card-form, .checkout-form-card, .cart-summary { border-radius: var(--chincol-radius); box-shadow: var(--chincol-shadow); }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { border-radius: 10px; }
.site-footer { margin-top: 30px; }
.site-footer .foot { gap: 12px; }
@media (max-width: 760px) {
  .wrap, .contenedor { width: min(100% - 28px, 1180px); }
  .main { padding-top: 18px; padding-bottom: 36px; }
  .site-header .bar { min-height: 66px; }
  .nav { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ======================================================================
   5. PANEL ADMINISTRATIVO · DISEÑO INDEPENDIENTE
   ====================================================================== */
:root {
  --admin-bg: #FBF7EF;
  --admin-surface: #FFFFFF;
  --admin-text: #3A3028;
  --admin-muted: #887D70;
  --admin-border: #E9DFD1;
  --admin-accent: #B87932;
  --admin-accent-soft: #F8EBD9;
  --admin-warning: #a85d08;
  --admin-warning-bg: #fff5df;
  --admin-success: #16734b;
  --admin-success-bg: #e9f7ef;
  --admin-danger: #b42318;
  --admin-danger-bg: #fff0ee;
  --admin-radius: 15px;
  --admin-shadow: 0 8px 28px rgba(80,55,30,.06);
}
body.admin-home { margin: 0; min-height: 100vh; background: var(--admin-bg) !important; color: var(--admin-text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
body.admin-home .skip, body.admin-home .site-header, body.admin-home .site-footer { display: none !important; }
body.admin-home main.wrap.main { width: min(100% - 36px, 1500px) !important; max-width: 1500px !important; margin: 0 auto !important; padding: 30px 0 56px !important; }
body.admin-home .alert { margin: 0 0 18px; }
.admin-shell, .admin-shell * { box-sizing: border-box; }
.admin-shell { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 28px; align-items: start; width: 100%; color: var(--admin-text); }
.admin-sidebar { position: sticky; top: 22px; display: flex; flex-direction: column; min-height: 520px; padding: 18px 12px 12px; background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: var(--admin-radius); box-shadow: var(--admin-shadow); }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 5px 9px 19px; border-bottom: 1px solid var(--admin-border); text-decoration: none; color: inherit; }
.admin-brand-mark { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: var(--admin-accent); font-size: 16px; font-weight: 850; }
.admin-brand strong, .admin-brand small, .admin-sidebar-foot strong, .admin-sidebar-foot small { display: block; }
.admin-brand strong { font-size: 14px; letter-spacing: -.02em; }
.admin-brand small, .admin-sidebar-foot small { margin-top: 3px; color: var(--admin-muted); font-size: 11px; }
.admin-nav { display: grid; gap: 5px; padding-top: 15px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 0 11px; border-radius: 10px; color: #6B5A49; text-decoration: none; font-size: 13px; font-weight: 650; transition: background .18s ease,color .18s ease; }
.admin-nav a:hover { background: #F8F1E7; color: var(--admin-text); }
.admin-nav a.active { color: var(--admin-accent); background: var(--admin-accent-soft); }
.admin-nav .nav-icon { display: inline-grid; place-items: center; width: 19px; font-size: 17px; }
.admin-sidebar-foot { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 15px 8px 4px; border-top: 1px solid var(--admin-border); }
.admin-sidebar-foot strong { max-width: 165px; overflow: hidden; color: #665748; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px #e8f7ef; }
.admin-main { min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 2px 0 25px; }
.admin-eyebrow { margin: 0 0 7px; color: var(--admin-muted); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.admin-title { margin: 0; color: var(--admin-text); font-size: clamp(25px,3vw,33px); line-height: 1.15; letter-spacing: -.045em; font-weight: 780; }
.admin-subtitle { max-width: 650px; margin: 8px 0 0; color: var(--admin-muted); font-size: 13px; line-height: 1.6; }
.admin-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin: 0 0 25px; }
.admin-stat { min-width: 0; padding: 17px 18px 16px; background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: 13px; box-shadow: var(--admin-shadow); }
.admin-stat.is-action { background: var(--admin-warning-bg); border-color: #f1d49a; }
.admin-stat-label { display: block; color: #75695C; font-size: 11px; font-weight: 680; line-height: 1.4; }
.admin-stat-value { display: block; margin-top: 9px; color: var(--admin-text); font-size: 27px; line-height: 1; font-weight: 780; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.admin-stat.is-action .admin-stat-value { color: var(--admin-warning); }
.admin-stat-note { display: block; margin-top: 7px; color: var(--admin-muted); font-size: 10px; }
.admin-panel { overflow: visible; background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: var(--admin-radius); box-shadow: var(--admin-shadow); }
.admin-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 21px 22px; border-bottom: 1px solid var(--admin-border); }
.admin-panel-title { margin: 0; color: var(--admin-text); font-size: 16px; font-weight: 780; letter-spacing: -.02em; }
.admin-panel-caption { margin: 5px 0 0; color: var(--admin-muted); font-size: 11px; }
.admin-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.admin-search-wrap { position: relative; display: block; }
.admin-search-wrap:before { content: "⌕"; position: absolute; left: 12px; top: 50%; transform: translateY(-52%); color: #8993a1; font-size: 19px; pointer-events: none; }
.admin-search, .admin-filter, .admin-select { min-height: 39px; border: 1px solid var(--admin-border); border-radius: 9px; background: #fff; color: var(--admin-text); font: inherit; font-size: 12px; outline: none; }
.admin-search { width: 235px; padding: 0 12px 0 34px; }
.admin-filter { min-width: 150px; padding: 0 30px 0 11px; }
.admin-search:focus, .admin-filter:focus, .admin-select:focus { border-color: var(--admin-accent); box-shadow: 0 0 0 3px rgba(184,121,50,.12); }
.admin-table-scroll { width: 100%; overflow-x: auto; border-radius: 0 0 var(--admin-radius) var(--admin-radius); -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; min-width: 850px; border-collapse: collapse; text-align: left; }
.admin-table th { padding: 12px 15px; background: #fafbfc; color: #897D70; font-size: 10px; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 15px; border-top: 1px solid #F0E8DD; color: #5B5147; font-size: 12px; vertical-align: middle; }
.admin-table tbody tr { transition: background .15s ease; }
.admin-table tbody tr:hover { background: #fbfcfe; }
.admin-table tbody tr[hidden] { display: none !important; }
.code-cell { display: block; color: var(--admin-text); font-weight: 780; white-space: nowrap; }
.table-secondary { display: block; margin-top: 4px; color: #9aa3ae; font-size: 10px; }
.date-cell { display: block; color: #74695D; white-space: nowrap; font-variant-numeric: tabular-nums; }
.client-cell { min-width: 205px; max-width: 330px; }
.client-name { display: block; color: var(--admin-text); font-size: 12px; font-weight: 730; }
.client-meta { display: block; margin-top: 4px; color: #897D70; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.client-items { display: block; margin-top: 7px; color: #74695D; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.total-cell { color: var(--admin-text); font-weight: 780; white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 760; line-height: 1.2; white-space: nowrap; }
.badge-pending { color: #94600a; background: #fff3d6; }
.badge-review { color: #8055a5; background: #f4edfa; }
.badge-paid { color: var(--admin-success); background: var(--admin-success-bg); }
.badge-error, .badge-cancelled { color: var(--admin-danger); background: var(--admin-danger-bg); }
.badge-progress { color: #925A20; background: #F8EBD9; }
.badge-neutral { color: #687486; background: #f0f2f5; }
.payment-expiry { display: block; margin-top: 5px; color: #918578; font-size: 10px; white-space: nowrap; }
.admin-row-action { text-align: right; white-space: nowrap; }
.admin-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 33px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; background: var(--admin-accent); color: #fff; text-decoration: none; font: inherit; font-size: 11px; font-weight: 720; cursor: pointer; }
.admin-btn:hover { filter: brightness(.96); }
.admin-btn.secondary { color: #485568; background: #fff; border-color: var(--admin-border); }
.admin-btn.danger { color: var(--admin-danger); background: var(--admin-danger-bg); border-color: #f5d2ce; }
.admin-detail { position: relative; display: inline-block; }
.admin-detail summary { list-style: none; }
.admin-detail summary::-webkit-details-marker { display: none; }
.admin-detail[open] summary { color: #fff; background: #925A20; }
.admin-detail-popover { position: absolute; z-index: 30; top: 39px; right: 0; width: min(340px,80vw); padding: 15px; border: 1px solid var(--admin-border); border-radius: 11px; background: #fff; box-shadow: 0 14px 38px rgba(20,32,48,.15); white-space: normal; text-align: left; }
.detail-heading { margin: 0 0 9px; color: var(--admin-text); font-size: 12px; font-weight: 780; }
.detail-copy { margin: 0 0 12px; color: #887D70; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.detail-actions form { margin: 0; }
.detail-form { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--admin-border); }
.detail-form label { color: #697586; font-size: 10px; font-weight: 720; }
.detail-form-row { display: flex; gap: 7px; }
.admin-select { flex: 1; min-width: 0; padding: 0 9px; }
.admin-empty { padding: 38px 18px; color: var(--admin-muted); text-align: center; font-size: 13px; }
.admin-footnote { padding: 12px 22px; border-top: 1px solid var(--admin-border); color: #887D70; font-size: 10px; line-height: 1.5; }
.admin-nav a:focus-visible, .admin-btn:focus-visible, .admin-search:focus-visible, .admin-filter:focus-visible, .admin-select:focus-visible { outline: 3px solid rgba(184,121,50,.25); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 1100px) {
  .admin-shell { grid-template-columns: 195px minmax(0,1fr); gap: 18px; }
  .admin-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-panel-head { align-items: flex-start; flex-direction: column; }
  .admin-tools { width: 100%; }
  .admin-search-wrap { flex: 1; }
  .admin-search { width: 100%; }
}
@media (max-width: 700px) {
  body.admin-home main.wrap.main { width: calc(100% - 22px) !important; padding: 14px 0 35px !important; }
  .admin-shell { display: block; }
  .admin-sidebar { position: static; min-height: 0; margin-bottom: 18px; padding: 10px; }
  .admin-brand { padding: 3px 7px 10px; }
  .admin-nav { display: flex; gap: 5px; overflow-x: auto; padding-top: 9px; }
  .admin-nav a { flex: 0 0 auto; min-height: 38px; padding: 0 11px; font-size: 11px; }
  .admin-nav .nav-icon { display: none; }
  .admin-sidebar-foot { display: none; }
  .admin-topbar { align-items: flex-start; margin: 0 0 18px; }
  .admin-title { font-size: 25px; }
  .admin-topbar > .admin-btn { flex: 0 0 auto; }
  .admin-stats { gap: 9px; margin-bottom: 17px; }
  .admin-stat { padding: 13px; }
  .admin-stat-value { font-size: 23px; }
  .admin-panel-head { padding: 16px; }
  .admin-tools { flex-direction: column; align-items: stretch; }
  .admin-search, .admin-filter { width: 100%; }
  .admin-table { min-width: 820px; }
  .admin-footnote { padding: 12px 16px; }
}
@media (max-width: 430px) {
  .admin-topbar { flex-direction: column; }
  .admin-topbar > .admin-btn { width: 100%; }
  .admin-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-stat-label { min-height: 30px; }
  .admin-stat-value { font-size: 21px; }
  .admin-detail-popover { position: fixed; top: 50%; left: 50%; right: auto; width: calc(100vw - 28px); max-height: 80vh; overflow: auto; transform: translate(-50%,-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .admin-shell *, .admin-shell *::before, .admin-shell *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* El panel de detalle se despliega dentro de la fila para no quedar cortado
   por el contenedor horizontal de la tabla. */
.admin-detail-popover { position: static; width: min(340px, 62vw); margin-top: 8px; }
/* ==========================================
   PALETA CÁLIDA DEL PANEL ADMINISTRATIVO
   ========================================== */

.admin-brand-mark {
    background: var(--admin-accent);
}

.admin-nav a.active {
    color: #925A20;
    background: var(--admin-accent-soft);
}

.admin-nav a:hover {
    background: #F8F1E7;
}

.admin-search:focus,
.admin-filter:focus,
.admin-select:focus {
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(184, 121, 50, .12);
}

.admin-btn {
    background: var(--admin-accent);
}

.admin-detail[open] summary {
    background: #925A20;
}

.badge-progress {
    color: #925A20;
    background: #F8EBD9;
}

.admin-nav a:focus-visible,
.admin-btn:focus-visible,
.admin-search:focus-visible,
.admin-filter:focus-visible,
.admin-select:focus-visible {
    outline-color: rgba(184, 121, 50, .25);
}

/* Ajustes solicitados: logo principal y enlaces del footer */
.bar .brand img {
  width: 60px;
  height: 60px;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-legal-links a {
  color: inherit;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: #a96c16;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .bar .brand img {
    width: 48px;
    height: 48px;
  }
}
/* ==========================================================
   CHINCOL · POLÍTICA DE PRIVACIDAD
   Diseño legal cálido, elegante y responsive
   ========================================================== */

.legal-page {
    --legal-ink: #493d30;
    --legal-muted: #817566;
    --legal-brown: #98632f;
    --legal-border: #e9dfd1;
    --legal-paper: #fffdf9;
    --legal-soft: #f4eee4;

    max-width: 1120px;
    margin: 34px auto 70px;
    color: var(--legal-ink);
}

/* Encabezado */

.legal-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(35px, 6vw, 68px);
    margin-bottom: 34px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 15%, rgba(255,255,255,.55), transparent 32%),
        linear-gradient(125deg, #eee2d0, #f8f1e7 60%, #e9ddca);
    border: 1px solid #e7dac8;
}

.legal-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    bottom: -130px;
    border: 1px solid rgba(152,99,47,.15);
    border-radius: 50%;
    box-shadow:
        0 0 0 22px rgba(152,99,47,.035),
        0 0 0 44px rgba(152,99,47,.025);
    pointer-events: none;
}

.legal-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.legal-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: #91612f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.legal-hero h1 {
    margin: 0 0 17px;
    color: #403328;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -.7px;
}

.legal-hero > .legal-hero-inner > p {
    max-width: 690px;
    margin: 0;
    color: #6f6254;
    font-size: 16px;
    line-height: 1.8;
}

.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
    padding: 9px 13px;
    border: 1px solid rgba(152,99,47,.18);
    border-radius: 30px;
    background: rgba(255,255,255,.55);
    color: #755b40;
    font-size: 12px;
    font-weight: 600;
}

.legal-updated-icon {
    font-size: 15px;
}

/* Distribución general */

.legal-layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    align-items: start;
    gap: 30px;
}

/* Índice lateral */

.legal-aside {
    position: sticky;
    top: 22px;
    padding: 21px 17px;
    border: 1px solid var(--legal-border);
    border-radius: 14px;
    background: var(--legal-paper);
    box-shadow: 0 5px 20px rgba(65,45,25,.045);
}

.legal-aside-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 5px 15px;
    border-bottom: 1px solid var(--legal-border);
    color: #4d3d2d;
    font-size: 14px;
}

.legal-aside-icon {
    color: var(--legal-brown);
    font-size: 17px;
}

.legal-toc {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 12px;
}

.legal-toc a {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 7px;
    border-radius: 7px;
    color: #716557;
    font-size: 12px;
    line-height: 1.45;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.legal-toc a span {
    flex: 0 0 20px;
    color: #a47b4e;
    font-size: 10px;
    font-weight: 800;
    padding-top: 2px;
}

.legal-toc a:hover {
    background: #f5eee4;
    color: #68451f;
}

.legal-aside-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 19px;
    padding: 13px 11px;
    border-radius: 9px;
    background: #f5efe5;
    color: #77634c;
}

.legal-aside-note > span {
    flex: 0 0 auto;
    font-size: 17px;
}

.legal-aside-note p {
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
}

/* Contenido principal */

.legal-content {
    min-width: 0;
    padding: 29px 34px;
    border: 1px solid var(--legal-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(65,45,25,.035);
}

.legal-intro {
    margin-bottom: 12px;
    padding: 18px 20px;
    border-left: 3px solid #b78955;
    border-radius: 0 9px 9px 0;
    background: #faf6ef;
}

.legal-intro-label {
    display: block;
    margin-bottom: 7px;
    color: #956b3d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.legal-intro p {
    margin: 0;
    color: #6f6254;
    font-size: 13px;
    line-height: 1.75;
}

/* Secciones */

.legal-section {
    padding: 28px 0;
    border-bottom: 1px solid #eee7de;
    scroll-margin-top: 25px;
}

.legal-section:last-of-type {
    border-bottom: 0;
}

.legal-section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 17px;
}

.legal-number {
    display: flex;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ead9c2;
    border-radius: 11px;
    background: #f7f0e5;
    color: #95652f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.legal-section-label {
    display: block;
    margin-bottom: 4px;
    color: #a17a4d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.legal-section h2 {
    margin: 0;
    color: #493b2e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(19px, 2.4vw, 23px);
    font-weight: 600;
    line-height: 1.3;
}

.legal-section > p {
    margin: 0 0 13px;
    color: #71685d;
    font-size: 13px;
    line-height: 1.85;
}

.legal-section > p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.legal-section li {
    position: relative;
    padding-left: 23px;
    color: #71685d;
    font-size: 13px;
    line-height: 1.8;
}

.legal-section li::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b58a59;
}

.legal-section li strong,
.legal-section p strong {
    color: #514332;
}

/* Datos de contacto */

.legal-callout {
    margin: 17px 0;
    padding: 17px 19px;
    border: 1px solid #eadfce;
    border-radius: 10px;
    background: #faf7f1;
}

.legal-contact-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.legal-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 11px 0;
    border-bottom: 1px solid #eee5d8;
    font-size: 12px;
}

.legal-contact-row:first-child {
    padding-top: 0;
}

.legal-contact-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-contact-row span {
    color: #837667;
}

.legal-contact-row strong {
    color: #57432e;
    text-align: right;
    overflow-wrap: anywhere;
}

.legal-small-note {
    color: #8a7b69 !important;
    font-size: 11px !important;
    font-style: italic;
}

/* Aviso destacado */

.legal-highlight {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #e2e8d8;
    border-radius: 9px;
    background: #f6f8f1;
    color: #526442;
    font-size: 13px;
}

.legal-highlight-icon {
    display: flex;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e4ecd9;
    font-size: 13px;
}

/* Tarjeta final de contacto */

.legal-final-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 28px;
    padding: 22px;
    border: 1px solid #e8dac6;
    border-radius: 12px;
    background: linear-gradient(120deg, #f8f1e7, #fcfaf5);
}

.legal-final-icon {
    display: flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eadbc6;
    color: #81582f;
    font-size: 21px;
}

.legal-final-copy h2 {
    margin: 0 0 6px;
    color: #493b2e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
}

.legal-final-copy p {
    margin: 0;
    color: #776b5d;
    font-size: 12px;
    line-height: 1.7;
}

/* Botón inferior */

.legal-bottom-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 25px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 7px;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.legal-back:hover {
    transform: translateY(-1px);
}

/* Responsive */

@media (max-width: 850px) {

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .legal-aside {
        position: static;
    }

    .legal-toc {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 8px;
    }

    .legal-aside-note {
        margin-top: 12px;
    }

}

@media (max-width: 600px) {

    .legal-page {
        width: calc(100% - 28px);
        margin: 20px auto 45px;
    }

    .legal-hero {
        padding: 29px 22px;
        margin-bottom: 18px;
        border-radius: 13px;
    }

    .legal-hero h1 {
        font-size: 33px;
    }

    .legal-hero > .legal-hero-inner > p {
        font-size: 14px;
        line-height: 1.7;
    }

    .legal-aside {
        padding: 16px 13px;
    }

    .legal-toc {
        grid-template-columns: 1fr;
    }

    .legal-toc a {
        padding: 8px 6px;
    }

    .legal-content {
        padding: 20px 17px;
        border-radius: 11px;
    }

    .legal-intro {
        padding: 15px;
    }

    .legal-section {
        padding: 23px 0;
    }

    .legal-section-heading {
        gap: 11px;
    }

    .legal-number {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .legal-section h2 {
        font-size: 19px;
    }

    .legal-contact-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .legal-contact-row strong {
        text-align: left;
    }

    .legal-final-card {
        padding: 17px;
        gap: 11px;
    }

    .legal-final-copy h2 {
        font-size: 17px;
    }

    .legal-bottom-actions .legal-back {
        width: 100%;
    }

}

/* =========================================
   CHINCOL — TÉRMINOS Y CONDICIONES
   Ajustes visuales independientes
========================================= */

.legal-page {
    width: min(1160px, calc(100% - 40px));
    margin: 36px auto 70px;
    color: #40352c;
}

.legal-page .legal-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 5vw, 58px);
    margin-bottom: 30px;
    border: 1px solid #e7dacb;
    border-radius: 24px;
    background: linear-gradient(135deg, #f5ede3 0%, #eee1d1 100%);
}

.legal-page .legal-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #98704e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.legal-page .legal-hero h1 {
    max-width: 760px;
    margin: 0 0 16px;
    color: #49382b;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.legal-page .legal-hero p {
    max-width: 720px;
    margin: 0;
    color: #766657;
    font-size: 16px;
    line-height: 1.8;
}

.legal-page .legal-updated {
    display: inline-block;
    margin-top: 24px;
    padding: 8px 13px;
    border: 1px solid #dfcfbd;
    border-radius: 30px;
    background: rgba(255,255,255,.55);
    color: #806b58;
    font-size: 12px;
    font-weight: 600;
}

.legal-page .legal-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    align-items: start;
    gap: 26px;
}

.legal-page .legal-aside {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 16px;
    border: 1px solid #e9dfd4;
    border-radius: 18px;
    background: #fbf8f4;
}

.legal-page .legal-aside strong {
    margin: 0 8px 12px;
    color: #49382b;
    font-size: 14px;
}

.legal-page .legal-aside a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: #756556;
    font-size: 12px;
    line-height: 1.45;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.legal-page .legal-aside a:hover {
    background: #eee2d5;
    color: #60432e;
}

.legal-page .legal-content {
    min-width: 0;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid #e9e1d8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(75, 54, 34, .045);
}

.legal-page .legal-section {
    position: relative;
    padding: 0 0 30px;
    margin: 0 0 30px;
    border-bottom: 1px solid #eee8e1;
    scroll-margin-top: 25px;
}

.legal-page .legal-section:last-of-type {
    margin-bottom: 26px;
}

.legal-page .legal-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 13px;
    border-radius: 10px;
    background: #f1e7dc;
    color: #98704e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
}

.legal-page .legal-section h2 {
    margin: 0 0 16px;
    color: #49382b;
    font-size: clamp(19px, 2.5vw, 23px);
    line-height: 1.35;
}

.legal-page .legal-section p {
    margin: 0 0 13px;
    color: #6d6258;
    font-size: 14px;
    line-height: 1.85;
}

.legal-page .legal-section p:last-child {
    margin-bottom: 0;
}

.legal-page .legal-section strong {
    color: #514132;
    font-weight: 700;
}

.legal-page .legal-callout {
    padding: 22px 24px;
    margin: 8px 0 24px;
    border: 1px solid #e5d4c1;
    border-left: 4px solid #a77c55;
    border-radius: 12px;
    background: #f8f2eb;
}

.legal-page .legal-callout strong {
    display: block;
    margin-bottom: 8px;
    color: #604630;
    font-size: 15px;
}

.legal-page .legal-callout p {
    margin: 0;
    color: #756657;
    font-size: 13px;
    line-height: 1.75;
}

.legal-page .legal-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid #806044;
    border-radius: 30px;
    background: #806044;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.legal-page .legal-back:hover {
    transform: translateY(-2px);
    background: #62472f;
    color: #fff;
}

/* TABLET */
@media (max-width: 850px) {
    .legal-page .legal-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .legal-page .legal-aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .legal-page .legal-aside strong {
        grid-column: 1 / -1;
    }
}

/* MÓVIL */
@media (max-width: 600px) {
    .legal-page {
        width: calc(100% - 24px);
        margin: 20px auto 45px;
    }

    .legal-page .legal-hero {
        padding: 27px 21px;
        border-radius: 18px;
    }

    .legal-page .legal-hero h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .legal-page .legal-hero p {
        font-size: 14px;
    }

    .legal-page .legal-aside {
        grid-template-columns: 1fr;
        padding: 17px 13px;
    }

    .legal-page .legal-content {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .legal-page .legal-section {
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .legal-page .legal-section h2 {
        font-size: 20px;
    }

    .legal-page .legal-section p {
        font-size: 13px;
        line-height: 1.8;
    }

    .legal-page .legal-callout {
        padding: 18px;
    }

    .legal-page .legal-back {
        width: 100%;
    }
}

/* =========================================
   CHINCOL — FICHA DE PRODUCTO
========================================= */

.pd-page {
    width: min(1160px, calc(100% - 40px));
    margin: 28px auto 70px;
    color: #49382b;
}

/* MIGAS DE PAN */

.pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #9a8877;
    font-size: 12px;
}

.pd-breadcrumb a {
    color: #8a7058;
    text-decoration: none;
    transition: color .2s ease;
}

.pd-breadcrumb a:hover {
    color: #59402d;
}

.pd-breadcrumb span[aria-current="page"] {
    overflow: hidden;
    max-width: 280px;
    color: #594536;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* CONTENEDOR PRINCIPAL */

.pd-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: start;
    gap: clamp(28px, 5vw, 65px);
    padding: clamp(22px, 4vw, 48px);
    border: 1px solid #e9dfd4;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(75, 54, 34, .055);
}


/* =========================================
   CHINCOL — GALERÍA DE UNA SOLA IMAGEN
========================================= */

.pd-carousel {
    width: 100%;
    min-width: 0;
}

.pd-carousel-main {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #e9dfd4;
    border-radius: 20px;
    background: #f8f5f1;
    touch-action: pan-y;
}

.pd-carousel-slide {
    position: absolute;
    inset: 0;
    display: none;
}

.pd-carousel-slide.is-active {
    display: block;
    animation: pd-image-appear .3s ease;
}

@keyframes pd-image-appear {
    from { opacity: .55; }
    to { opacity: 1; }
}

.pd-carousel-zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 22px;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.pd-carousel-zoom img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* FLECHAS LATERALES */

.pd-carousel-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0 0 4px;
    border: 1px solid #e8ded2;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #74563c;
    box-shadow: 0 3px 14px rgba(54,39,25,.12);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.pd-carousel-arrow span {
    font-family: Arial, sans-serif;
    font-size: 31px;
    line-height: 1;
}

.pd-carousel-arrow:hover {
    background: #806044;
    color: #fff;
    transform: translateY(-50%) scale(1.06);
}

.pd-carousel-prev {
    left: 15px;
}

.pd-carousel-next {
    right: 15px;
}

/* CONTADOR SUPERIOR */

.pd-carousel-counter {
    position: absolute;
    z-index: 2;
    top: 15px;
    right: 15px;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 30px;
    background: rgba(65,48,34,.72);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* INDICADORES INFERIORES */

.pd-carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 10px 3px 0;
}

.pd-carousel-position {
    color: #8b7968;
    font-size: 11px;
    white-space: nowrap;
}

.pd-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.pd-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #d9cbbb;
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.pd-carousel-dot.is-active {
    width: 22px;
    background: #896849;
}

.pd-carousel-hint {
    color: #a08d7a;
    font-size: 10px;
    white-space: nowrap;
}

/* VISOR AMPLIADO */

.pd-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: rgba(28,22,17,.96);
}

.pd-lightbox.is-open {
    display: flex;
}

.pd-lightbox img {
    display: block;
    max-width: min(100%, 1100px);
    max-height: 85vh;
    object-fit: contain;
}

.pd-lightbox-close,
.pd-lightbox-arrow {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: white;
    cursor: pointer;
}

.pd-lightbox-close {
    top: 20px;
    right: 22px;
    font-size: 28px;
}

.pd-lightbox-arrow {
    top: 50%;
    font-size: 32px;
    transform: translateY(-50%);
}

.pd-lightbox-prev {
    left: 22px;
}

.pd-lightbox-next {
    right: 22px;
}

/* PIE DE GALERÍA */

.pd-gallery-caption {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #998675;
    font-size: 11px;
}

.pd-gallery-caption span {
    color: #b18a63;
}

/* TABLET */

@media (max-width: 900px) {
    .pd-carousel-main {
        max-width: 620px;
        margin: 0 auto;
    }
}

/* MÓVIL */

@media (max-width: 600px) {
    .pd-carousel-main {
        aspect-ratio: 1 / 1;
        border-radius: 15px;
    }

    .pd-carousel-zoom {
        padding: 12px;
    }

    .pd-carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .pd-carousel-arrow span {
        font-size: 26px;
    }

    .pd-carousel-prev {
        left: 9px;
    }

    .pd-carousel-next {
        right: 9px;
    }

    .pd-carousel-counter {
        top: 10px;
        right: 10px;
        font-size: 10px;
    }

    .pd-carousel-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 9px 14px;
        padding-top: 12px;
    }

    .pd-carousel-position,
    .pd-carousel-hint {
        font-size: 10px;
    }

    .pd-lightbox {
        padding: 20px;
    }

    .pd-lightbox img {
        max-width: 100%;
        max-height: 78vh;
    }

    .pd-lightbox-close {
        top: 12px;
        right: 12px;
    }

    .pd-lightbox-prev {
        left: 8px;
    }

    .pd-lightbox-next {
        right: 8px;
    }
}


/* IMAGEN NO DISPONIBLE */

.pd-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 430px;
    padding: 30px;
    border: 1px solid #e9dfd4;
    border-radius: 18px;
    background: linear-gradient(145deg, #f8f3ed, #eee3d7);
    text-align: center;
}

.pd-no-image-brand {
    color: #967653;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
}

.pd-no-image-icon {
    margin: 18px 0 8px;
    color: #b89a7b;
    font-size: 55px;
}

.pd-no-image p {
    margin: 0;
    color: #8b7968;
    font-size: 13px;
}

/* LIGHTBOX */

.pd-lightbox {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: rgba(28, 22, 17, .94);
}

.pd-lightbox:target {
    display: flex;
}

.pd-lightbox-backdrop {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

.pd-lightbox img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: min(100%, 1100px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0,0,0,.25);
}

.pd-lightbox-close {
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
    transition: background .2s ease;
}

.pd-lightbox-close:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

/* INFORMACIÓN DEL PRODUCTO */

.pd-info {
    min-width: 0;
    padding-top: 8px;
}

.pd-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: #a17d59;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.pd-info h1 {
    margin: 0 0 22px;
    color: #49382b;
    font-size: clamp(28px, 3.4vw, 39px);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
}

/* PRECIO */

.pd-price-block {
    padding: 20px 0;
    border-top: 1px solid #eee7df;
    border-bottom: 1px solid #eee7df;
}

.pd-price-label {
    display: block;
    margin-bottom: 5px;
    color: #998675;
    font-size: 11px;
    font-weight: 600;
}

.pd-price {
    margin: 0;
    color: #765438;
    font-size: clamp(27px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.7px;
}

/* DISPONIBILIDAD */

.pd-stock {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 19px 0 25px;
    color: #58724f;
    font-size: 12px;
    font-weight: 700;
}

.pd-stock-dot,
.pd-stock-unavailable-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #71966a;
    box-shadow: 0 0 0 4px #edf4e9;
}

.pd-stock-unavailable-dot {
    background: #b77a68;
    box-shadow: 0 0 0 4px #f7eeea;
}

.pd-stock:has(.pd-stock-unavailable-dot) {
    color: #98604e;
}

/* DESCRIPCIÓN */

.pd-description {
    padding: 0 0 24px;
}

.pd-description h2 {
    margin: 0 0 10px;
    color: #514132;
    font-size: 16px;
    font-weight: 750;
}

.pd-description p {
    margin: 0;
    color: #76695e;
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

/* COMPRA */

.pd-purchase-area {
    padding: 23px;
    border: 1px solid #e9dfd4;
    border-radius: 17px;
    background: #faf7f3;
}

.pd-purchase-form {
    display: flex;
    align-items: end;
    gap: 12px;
}

.pd-quantity {
    display: flex;
    flex: 0 0 105px;
    flex-direction: column;
    gap: 8px;
}

.pd-quantity span {
    color: #695748;
    font-size: 11px;
    font-weight: 700;
}

.pd-quantity input {
    width: 100%;
    min-height: 49px;
    padding: 0 10px;
    border: 1px solid #ded1c3;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #49382b;
    font-size: 15px;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.pd-quantity input:focus {
    border-color: #a17d59;
    box-shadow: 0 0 0 3px rgba(161,125,89,.13);
}

.pd-add-button {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 49px;
    padding: 12px 18px;
    border: 1px solid #806044;
    border-radius: 10px;
    background: #806044;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.pd-add-button:hover {
    transform: translateY(-2px);
    border-color: #62472f;
    background: #62472f;
    color: #fff;
}

.pd-add-button span {
    font-size: 18px;
    line-height: 1;
}

.pd-purchase-note {
    margin: 13px 0 0;
    color: #938273;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

/* SIN STOCK */

.pd-out-of-stock {
    margin-bottom: 17px;
}

.pd-out-of-stock strong {
    display: block;
    margin-bottom: 5px;
    color: #8e5948;
    font-size: 13px;
}

.pd-out-of-stock p {
    margin: 0;
    color: #837365;
    font-size: 12px;
    line-height: 1.6;
}

.pd-continue-button {
    width: 100%;
}

/* MENSAJE INFERIOR */

.pd-trust-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee7df;
}

.pd-trust-icon {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3e9de;
    color: #98704e;
    font-size: 18px;
}

.pd-trust-note p {
    margin: 0;
    color: #89796a;
    font-size: 11px;
    line-height: 1.6;
}

/* PRODUCTO NO ENCONTRADO */

.pd-not-found {
    max-width: 650px;
    margin: 55px auto;
    padding: clamp(30px, 6vw, 55px);
    border: 1px solid #e9dfd4;
    border-radius: 22px;
    background: #fbf8f4;
    text-align: center;
}

.pd-not-found .pd-eyebrow {
    margin-bottom: 12px;
}

.pd-not-found h1 {
    margin: 0 0 12px;
    color: #49382b;
    font-size: clamp(26px, 4vw, 36px);
}

.pd-not-found p {
    margin: 0 auto 25px;
    max-width: 470px;
    color: #78695b;
    font-size: 14px;
    line-height: 1.8;
}

.pd-not-found .pd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 22px;
    border-radius: 30px;
    background: #806044;
    color: #fff;
    text-decoration: none;
}

/* TABLET */

@media (max-width: 900px) {
    .pd-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .pd-gallery-grid {
        grid-auto-rows: minmax(150px, 210px);
    }

    .pd-gallery-image-main {
        min-height: 420px;
    }

    .pd-info {
        padding-top: 0;
    }
}

/* MÓVIL */

@media (max-width: 600px) {
    .pd-page {
        width: calc(100% - 24px);
        margin: 18px auto 45px;
    }

    .pd-breadcrumb {
        gap: 7px;
        margin-bottom: 15px;
        font-size: 11px;
    }

    .pd-card {
        gap: 27px;
        padding: 15px;
        border-radius: 18px;
    }

    .pd-gallery-grid {
        grid-auto-rows: 125px;
        gap: 8px;
    }

    .pd-gallery-image {
        border-radius: 11px;
    }

    .pd-gallery-image-main {
        min-height: 280px;
    }

    .pd-image-zoom {
        right: 8px;
        bottom: 8px;
        padding: 6px 9px;
        font-size: 10px;
        opacity: 1;
        transform: none;
    }

    .pd-no-image {
        min-height: 280px;
    }

    .pd-info h1 {
        margin-bottom: 17px;
        font-size: 29px;
    }

    .pd-price {
        font-size: 29px;
    }

    .pd-purchase-area {
        padding: 16px;
    }

    .pd-purchase-form {
        flex-direction: column;
        align-items: stretch;
    }

    .pd-quantity {
        flex: auto;
        width: 100%;
    }

    .pd-quantity input {
        min-height: 46px;
    }

    .pd-add-button {
        width: 100%;
        min-height: 49px;
    }

    .pd-lightbox {
        padding: 15px;
    }

    .pd-lightbox img {
        max-width: 100%;
        max-height: 82vh;
    }

    .pd-lightbox-close {
        top: 12px;
        right: 12px;
    }
}

/* =========================================================
   CHINCOL · CONFIRMACIÓN DE PEDIDO
   Estilos aislados para no alterar otras páginas.
   ========================================================= */
.pc-confirm {
  width: min(820px, 100%);
  margin: 22px auto 56px;
  padding: clamp(20px, 4vw, 42px);
  color: #40372d;
  background: #fff;
  border: 1px solid #eee5d9;
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(76, 54, 29, .08);
}
.pc-success-head { max-width: 620px; margin: 0 auto 28px; text-align: center; }
.pc-icon {
  display: grid; place-items: center;
  width: 62px; height: 62px; margin: 0 auto 16px;
  border-radius: 50%; background: #edf4e9; color: #527344;
  font-size: 30px; font-weight: 800;
}
.pc-eyebrow { margin: 0 0 7px; color: #98703d; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.pc-success-head h1, .pc-not-found h1 { margin: 0 0 10px; color: #3e342a; font-size: clamp(27px, 4vw, 36px); line-height: 1.15; }
.pc-success-head > p:last-child, .pc-not-found > p:not(.pc-eyebrow) { margin: 0; color: #766d62; font-size: 15px; }
.pc-order-card {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 22px; border: 1px solid #eee2d1; border-radius: 15px;
  background: #fcf8f1;
}
.pc-label { display: block; margin-bottom: 5px; color: #827668; font-size: 12px; }
.pc-order-code { color: #59432a; font-size: 21px; letter-spacing: .04em; overflow-wrap: anywhere; }
.pc-total-block { text-align: right; }
.pc-total { color: #8a5a20; font-size: clamp(22px, 3vw, 29px); }
.pc-status { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0; padding: 15px 17px; border: 1px solid #f0dfbd; border-radius: 13px; background: #fffaf0; }
.pc-status-dot { flex: 0 0 10px; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #d99a32; box-shadow: 0 0 0 4px rgba(217,154,50,.13); }
.pc-status strong { color: #77501c; }
.pc-status p, .pc-notice p { margin: 3px 0 0; color: #74695c; font-size: 13px; }
.pc-notice { margin: 0 0 24px; padding: 15px 18px; border-left: 3px solid #d99a32; border-radius: 8px; background: #faf5eb; }
.pc-notice strong { color: #69491f; font-size: 14px; }
.pc-panel { margin-top: 20px; padding: 22px; border: 1px solid #eee8df; border-radius: 15px; background: #fff; }
.pc-panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pc-step { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f5ead8; color: #86571f; font-weight: 800; }
.pc-panel-heading h2 { margin: 0; color: #453a2e; font-size: 18px; }
.pc-panel-heading p { margin: 2px 0 0; color: #887e72; font-size: 12px; }
.pc-bank-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 0; }
.pc-bank-data > div { min-width: 0; padding: 11px 0; border-bottom: 1px solid #f0ece6; }
.pc-bank-data dt { margin-bottom: 3px; color: #897f73; font-size: 12px; }
.pc-bank-data dd { margin: 0; color: #40372d; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.pc-help { margin: 14px 0 0; color: #857b70; font-size: 12px; line-height: 1.55; }
.pc-items { margin: 0; padding: 0; list-style: none; }
.pc-items li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #f0ece6; font-size: 14px; }
.pc-item-name { overflow-wrap: anywhere; }
.pc-item-name small { color: #8a8074; white-space: nowrap; }
.pc-items li > strong { flex: 0 0 auto; }
.pc-items-total { display: flex; justify-content: space-between; gap: 15px; padding-top: 16px; color: #5b5044; font-size: 14px; }
.pc-items-total strong { color: #8a5a20; font-size: 19px; }
.pc-actions { margin-top: 26px; text-align: center; }
.pc-primary { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 10px; background: #8a5a20; color: #fff !important; font-weight: 700; text-align: center; }
.pc-primary:hover { background: #704716; }
.pc-actions p { margin: 12px 0 0; color: #8a8074; font-size: 12px; }
.pc-not-found { max-width: 620px; text-align: center; }
.pc-not-found .pc-primary { margin-top: 22px; }

@media (max-width: 600px) {
  .pc-confirm { margin: 10px auto 30px; padding: 20px 15px; border-radius: 16px; }
  .pc-order-card { align-items: flex-start; flex-direction: column; gap: 14px; padding: 17px; }
  .pc-total-block { text-align: left; }
  .pc-panel { padding: 17px 14px; }
  .pc-bank-data { grid-template-columns: 1fr; }
  .pc-items li { font-size: 13px; }
  .pc-actions .pc-primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-confirm * { scroll-behavior: auto; }
}
