/* ==========================================================================
   Tienda — estilos base neutros.
   Para aplicar la identidad de un cliente, cambia las variables de :root
   (colores, tipografías, radios) y ajusta lo necesario.
   ========================================================================== */
:root {
    --color-primary: #c2410c;
    --color-primary-dark: #9a3412;
    --color-text: #1c1917;
    --color-muted: #78716c;
    --color-bg: #ffffff;
    --color-alt: #f5f5f4;
    --color-border: #e7e5e4;
    --color-dark: #1c1917;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-heading: Georgia, "Times New Roman", serif;
    --radius: 10px;
    --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 820px; }
.text-center { text-align: center; }
.muted { color: var(--color-muted); }
.lead { font-size: 1.2rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1.3rem; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: .15s; line-height: 1.2; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-light { background: #fff; color: var(--color-text); }
.btn-outline { border-color: currentColor; color: var(--color-primary); background: transparent; }
.btn-outline:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.btn-sm { padding: .4rem .85rem; font-size: .9rem; }
.btn-lg { padding: .9rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.site-logo { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--color-text); text-decoration: none; }
.site-logo img { max-height: 52px; width: auto; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--color-text); }

/* Hero / page header */
.hero, .page-header { position: relative; background: var(--color-dark) center / cover no-repeat; color: #fff; }
.hero { min-height: 72vh; display: flex; align-items: center; text-align: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.hero-inner, .page-header .container { position: relative; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.page-header { padding: 4rem 0 3rem; }
.page-header h1 { margin: 0; }
.page-header .lead { margin: .5rem 0 0; opacity: .9; }
.back-link { color: #fff; opacity: .85; text-decoration: none; display: inline-block; margin-bottom: .75rem; }

/* Secciones */
.section { padding: 4rem 0; }
.section-sm { padding: 2rem 0; }
.section-alt { background: var(--color-alt); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; }
.sidebar-box { position: sticky; top: 96px; }
.sidebar-box h3 { margin-top: 1.25rem; }
.sidebar-box .card h3:first-child { margin-top: 0; }

/* Cards */
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.card-body { padding: 1.25rem; }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--color-alt); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.5rem; color: var(--color-muted); }
.card h3 a { color: inherit; text-decoration: none; }
.meta { color: var(--color-muted); font-size: .95rem; }
.price { font-weight: 700; font-size: 1.2rem; color: var(--color-primary); }
.price small { font-weight: 400; font-size: .85rem; color: var(--color-muted); }
.price.big { font-size: 2rem; margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { padding: .2rem 0; }
.check-list i { color: var(--color-primary); margin-right: .35rem; }
.cta-box { background: #fff; border-radius: var(--radius); padding: 2.5rem; text-align: center; }
.map-embed { width: 100%; min-height: 380px; border: 0; border-radius: var(--radius); }

/* Menú */

/* Contenido */
.prose { font-size: 1.05rem; }
.prose img { border-radius: var(--radius); }
.cover { border-radius: var(--radius); margin-bottom: 1.5rem; width: 100%; }
.gallery-section { margin: 2rem 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }
.gallery-thumb { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-thumb:hover img { transform: scale(1.05); }
.info-list, .other-list, .footer-links, .contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.info-list li { padding: .35rem 0; }
.info-list i { width: 1.2em; color: var(--color-primary); }
.other-list li { padding: .5rem 0; border-bottom: 1px solid var(--color-border); }
.other-list a { color: inherit; text-decoration: none; }
.hours-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dashed var(--color-border); }
.contact-list li { padding: .25rem 0; }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list i { width: 1.2em; color: var(--color-primary); }
.contact-list small { color: var(--color-muted); }
.location-buttons, .calendar-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1rem; align-items: center; }

/* Compartir */
.share { display: flex; align-items: center; gap: .5rem; margin: 2rem 0; }
.share-label { font-weight: 600; font-size: .95rem; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; text-decoration: none; }
.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-native { background: var(--color-dark); }

/* Formularios */
.form .field { margin-bottom: 1rem; border: 0; padding: 0; }
.form label, .form legend { display: block; font-weight: 600; margin-bottom: .3rem; }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea {
    width: 100%; padding: .75rem .9rem; border: 1px solid #d6d3d1; border-radius: 8px; font: inherit; background: #fff; color: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid color-mix(in srgb, var(--color-primary) 30%, transparent); border-color: var(--color-primary); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.radio-group { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.radio-group legend { width: 100%; }
.radio { display: inline-flex !important; align-items: center; gap: .4rem; font-weight: 500 !important; padding: .55rem .9rem; border: 1px solid var(--color-border); border-radius: 999px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 8%, #fff); }
.error { display: block; color: #b91c1c; font-size: .875rem; margin-top: .25rem; }
.has-error input, .has-error select, .has-error textarea { border-color: #b91c1c !important; }
.form-note { display: block; color: var(--color-muted); margin: .75rem 0; }
.alert { padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1.25rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* Footer */
.site-footer { background: var(--color-dark); color: #d6d3d1; padding-top: 3.5rem; }
.site-footer a { color: #fff; }
.site-footer h4 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.footer-logo { max-height: 64px; width: auto; margin-bottom: 1rem; }
.footer-name { font-family: var(--font-heading); font-size: 1.4rem; color: #fff; display: block; margin-bottom: .5rem; }
.footer-links li { padding: .2rem 0; }
.footer-links a { text-decoration: none; }
.site-footer .hours-list li { border-color: rgba(255,255,255,.15); }
.site-footer .contact-list i { color: inherit; }
.site-footer .btn-outline { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding: 1.25rem; text-align: center; }
.socials { display: flex; gap: .5rem; margin: 1rem 0; flex-wrap: wrap; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(127,127,127,.18); color: inherit; text-decoration: none; }
.text-center .delivery-links { justify-content: center; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); text-decoration: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; opacity: .8; }

/* Paginación */
.pagination { display: flex; list-style: none; padding: 0; margin: 2rem 0 0; gap: .35rem; justify-content: center; }
.pagination li > * { display: block; padding: .4rem .8rem; border: 1px solid var(--color-border); border-radius: 6px; text-decoration: none; }
.pagination .active > * { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Responsive */
@media (max-width: 960px) {
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-aside { grid-template-columns: 1fr; }
    .sidebar-box { position: static; }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .form-grid, .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
}


/* ==========================================================================
   Tienda
   ========================================================================== */
.small { font-size: .875rem; }
.text-right { text-align: right; }
.hide-sm { }
.btn-link { background: none; color: var(--color-muted); }
.btn.is-disabled { opacity: .6; cursor: not-allowed; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Header */
.header-inner { min-height: 68px; }
.header-search { flex: 1; max-width: 520px; display: flex; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; background: #fff; }
.header-search input { flex: 1; border: 0; padding: .6rem 1rem; font: inherit; min-width: 0; outline: none; }
.header-search button { border: 0; background: none; padding: 0 1rem; cursor: pointer; color: var(--color-muted); font-size: 1rem; }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.header-icon { position: relative; display: inline-flex; align-items: center; gap: .4rem; color: var(--color-text); text-decoration: none; font-weight: 500; }
.header-icon i { font-size: 1.2rem; }
.header-icon:hover { color: var(--color-primary); }
.cart-count { position: absolute; top: -8px; left: 12px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--color-primary); color: #fff; font: 700 .7rem/19px var(--font-body); text-align: center; font-style: normal; }
.cart-count[hidden] { display: none; }
.site-nav { border-top: 1px solid var(--color-border); background: #fff; }
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.4rem; min-height: 46px; }
.site-nav a { color: var(--color-text); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .7rem 0; display: inline-block; }
.site-nav a.active, .site-nav a:hover { color: var(--color-primary); }
.nav-item { position: relative; }
.nav-dropdown { display: none; position: absolute; top: 100%; left: -1rem; min-width: 200px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: .4rem 0; z-index: 50; }
.nav-dropdown a { display: block; padding: .45rem 1rem; }
.nav-item.has-children:hover .nav-dropdown, .nav-item.has-children:focus-within .nav-dropdown { display: block; }

/* Encabezado de páginas internas */
.page-header-sm { padding: 2.5rem 0 2rem; }
.breadcrumbs { font-size: .875rem; margin-bottom: .5rem; color: var(--color-muted); }
.page-header .breadcrumbs, .page-header .breadcrumbs a { color: rgba(255,255,255,.8); }
.breadcrumbs a { color: var(--color-muted); }

/* Grids de productos y categorías */
.grid-products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.product-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.product-media { position: relative; display: block; aspect-ratio: 1; background: var(--color-alt); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 80px; color: var(--color-border); font-size: 2.2rem; background: var(--color-alt); }
.product-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; flex: 1; }
.product-body h3 { font-size: 1rem; font-family: var(--font-body); margin: 0; }
.product-body h3 a { color: var(--color-text); text-decoration: none; }
.product-body form, .product-body > .btn { margin-top: auto; }
.product-body .price { font-size: 1.05rem; }
.product-cat { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--color-muted); }
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price del { color: var(--color-muted); font-weight: 400; font-size: .85em; }
.tag { position: absolute; top: .6rem; left: .6rem; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #fff; }
.tag-sale { background: #dc2626; }
.tag-out { background: #57534e; left: auto; right: .6rem; }
.category-tile { position: relative; display: block; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--color-alt); text-decoration: none; }
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.category-tile:hover img { transform: scale(1.05); }
.category-tile-name { position: absolute; inset: auto 0 0 0; padding: 1.5rem 1rem .9rem; color: #fff; font-weight: 700; font-size: 1.1rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.category-tile-name small { display: block; font-weight: 400; font-size: .8rem; opacity: .85; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.step { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.step i { color: var(--color-primary); margin-bottom: .3rem; }
.step span { color: var(--color-muted); font-size: .95rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--color-muted); }
.empty-state i { color: var(--color-border); margin-bottom: 1rem; }

/* Listado / filtros */
.layout-shop { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.shop-sidebar { position: sticky; top: 130px; }
.filter-box summary { font-weight: 700; cursor: pointer; margin-bottom: .6rem; }
.filter-list, .filter-list ul { list-style: none; margin: 0; padding: 0; }
.filter-list ul { padding-left: 1rem; }
.filter-list a { display: block; padding: .3rem 0; color: var(--color-text); text-decoration: none; }
.filter-list a.active { color: var(--color-primary); font-weight: 700; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.shop-toolbar select { padding: .45rem .7rem; border: 1px solid var(--color-border); border-radius: 8px; font: inherit; margin-left: .4rem; }

/* Detalle de producto */
.product-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; margin-top: 1rem; }
.product-main-image { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--color-alt); }
.product-main-image img, .product-main-image picture { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.product-thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.product-thumbs button.active { border-color: var(--color-primary); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .3rem; }
.product-info .lead { font-size: 1.05rem; color: var(--color-muted); }
.stock { font-weight: 600; }
.stock.in { color: #15803d; }
.stock.out { color: #b91c1c; }
.option-group { border: 0; padding: 0; margin: 0 0 1rem; }
.chip { display: inline-block; margin: 0 .4rem .4rem 0; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--color-border); border-radius: 999px; font-weight: 500; }
.chip input:checked + span { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.add-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
.qty { display: inline-flex; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; border: 0; background: var(--color-alt); font-size: 1.1rem; cursor: pointer; }
.form .qty input, .qty input { width: 58px; border: 0 !important; text-align: center; font: inherit; padding: .6rem 0 !important; border-radius: 0 !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 32px; }
.qty-sm input { width: 46px; padding: .35rem 0 !important; }
.specs { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--color-border); }
.specs th { width: 40%; color: var(--color-muted); font-weight: 500; }

/* Carrito y checkout */
.layout-cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-muted); padding: .6rem .5rem; border-bottom: 2px solid var(--color-border); }
.cart-table td { padding: .9rem .5rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.cart-table tfoot td { text-align: right; border: 0; padding: .4rem .5rem; }
.cart-table tfoot td:first-child { color: var(--color-muted); }
.cart-table tfoot .total td { font-size: 1.2rem; font-weight: 700; color: var(--color-text); border-top: 2px solid var(--color-border); padding-top: .8rem; }
.cart-thumb { width: 84px; }
.cart-thumb img, .cart-thumb .media-placeholder { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; font-size: 1.2rem; min-height: 0; }
.cart-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.btn-icon { background: none; border: 0; cursor: pointer; color: var(--color-muted); font-size: 1rem; padding: .4rem; }
.btn-icon:hover { color: #dc2626; }
.summary-box { position: sticky; top: 130px; background: var(--color-alt); border-radius: var(--radius); padding: 1.5rem; }
.summary-box h3 { margin-bottom: 1rem; }
.summary { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0 0 1.25rem; }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { font-size: 1.25rem; font-weight: 800; border-top: 1px solid var(--color-border); padding-top: .6rem; }
.summary-items { list-style: none; margin: 0 0 1rem; padding: 0; font-size: .92rem; }
.summary-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--color-border); }
.summary-items small { display: block; color: var(--color-muted); }
.summary-box .btn-block + .btn-block { margin-top: .5rem; }
.summary-box .check { margin-bottom: 1rem; display: block; }
.checkout-block { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.checkout-block h3 { font-family: var(--font-body); font-size: 1.1rem; }
.checkout-block h3 i { color: var(--color-primary); margin-right: .3rem; }
.checkout-block .section-head { margin-bottom: 1rem; }
.radio-cards { display: grid; gap: .6rem; }
.radio-card { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius); cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.radio-card:has(input:checked) { border-color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 6%, #fff); }
.radio-card span { flex: 1; }
.radio-card small { display: block; color: var(--color-muted); }
.check { display: inline-flex; gap: .45rem; align-items: center; font-weight: 400 !important; cursor: pointer; }

/* Pedido / presupuesto */
.thanks { text-align: center; padding: 1rem 0 2rem; }
.thanks i { color: #16a34a; margin-bottom: 1rem; }
.order-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: var(--color-alt); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.order-meta small { display: block; color: var(--color-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.callout { border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.25rem 0; background: #fff; }
.callout h3 { font-family: var(--font-body); font-size: 1.05rem; }
.badge-status { display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--color-alt); }
.status-pagado, .status-entregado, .status-aceptado, .status-enviado { background: #dcfce7; color: #166534; }
.status-pendiente, .status-nuevo, .status-en_revision, .status-preparando { background: #fef9c3; color: #854d0e; }
.status-cancelado, .status-rechazado, .status-fallido { background: #fee2e2; color: #991b1b; }
.quote-doc { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem; background: #fff; margin: 1rem 0 1.5rem; }
.quote-head { display: flex; justify-content: space-between; gap: 2rem; border-bottom: 2px solid var(--color-border); padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
.quote-logo { max-height: 60px; width: auto; margin-bottom: .5rem; }

/* Cuenta */
.auth-card { max-width: 460px; margin: 1rem auto; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem; }
.auth-card h1 { font-size: 1.6rem; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: .92rem; flex-wrap: wrap; }
.auth-switch { text-align: center; margin: 1.25rem 0 0; }
.layout-account { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: .2rem; }
.account-nav a, .account-nav button { display: flex; gap: .6rem; align-items: center; padding: .65rem .9rem; border-radius: 8px; color: var(--color-text); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; width: 100%; }
.account-nav a.active, .account-nav a:hover, .account-nav button:hover { background: var(--color-alt); color: var(--color-primary); }

/* Toast */
.toast { position: fixed; z-index: 90; right: 1.25rem; bottom: 1.25rem; display: flex; align-items: center; gap: .7rem; max-width: 420px; padding: .8rem 1rem; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: 0 15px 40px rgba(0,0,0,.15); transition: opacity .3s, transform .3s; }
.toast > i { color: #16a34a; font-size: 1.3rem; }
.toast.hide { opacity: 0; transform: translateY(10px); pointer-events: none; }
.wa-float { bottom: 5.5rem; }

@media (max-width: 960px) {
    .layout-shop, .layout-cart, .layout-account, .product-detail { grid-template-columns: 1fr; }
    .shop-sidebar, .summary-box { position: static; }
    .shop-sidebar .filter-box:not([open]) { margin-bottom: 0; }
    .nav-toggle { display: block; }
    .site-nav { display: none; }
    .site-nav.open { display: block; }
    .nav-inner { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1rem; }
    .site-nav a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--color-border); }
    .nav-dropdown { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
    .order-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .header-inner { flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem; }
    .header-search { order: 3; max-width: none; flex-basis: 100%; }
    .hide-sm { display: none; }
    .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
    .product-body { padding: .7rem; }
    .steps { grid-template-columns: 1fr; }
    .cart-table thead { display: none; }
    .cart-table tr { display: grid; grid-template-columns: 84px 1fr auto; padding: .6rem 0; border-bottom: 1px solid var(--color-border); }
    .cart-table td { border: 0; padding: .25rem .5rem; }
    .cart-table td[data-label] { grid-column: 2 / 4; }
    .cart-table td[data-label]::before { content: attr(data-label) ": "; color: var(--color-muted); font-size: .85rem; }
    .order-items tr { grid-template-columns: 1fr; }
    .order-items td[data-label] { grid-column: 1; }
    .cart-table tfoot tr { display: flex; justify-content: space-between; }
    .quote-head { flex-direction: column; }
    .quote-doc { padding: 1.2rem; }
}
@media print {
    .site-header, .site-footer, .wa-float, .no-print, .toast { display: none !important; }
    .quote-doc { border: 0; padding: 0; }
}
/* .form label es block: re-aplica el layout de estos componentes dentro de formularios */
.form .radio-card { display: flex; }
.form .check { display: inline-flex; }
.form .chip { display: inline-block; font-weight: 400; margin-bottom: .4rem; }
