/* ==========================================================================
   Targetcity Outlet — basado en template-tienda.
   Colores y tipografías se pueden ajustar desde Admin › Configuración › Apariencia;
   el tema de la marca está al final de este archivo («Tema Targetcity»).
   ========================================================================== */
:root {
    --color-primary: #f7931e;
    --color-primary-dark: #e07b06;
    --color-text: #111111;
    --color-muted: #6b6b6b;
    --color-bg: #ffffff;
    --color-alt: #f6f6f6;
    --color-border: #e3e3e3;
    --color-dark: #000000;
    --color-footer: #8e8e8e;
    --font-body: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-heading: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 2px;
    --container: 1040px;
}
* { 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; }


/* ==========================================================================
   Tema Targetcity
   ========================================================================== */
body { font-size: 15px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn { border-radius: var(--radius); text-transform: none; }
.btn-primary { color: #fff; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #333; }
.btn-outline { border-radius: var(--radius); }
.section { padding: 3.5rem 0; }
.section-title { font-size: 1.35rem; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.section-head { margin-bottom: 1.4rem; align-items: baseline; }
.link-more { color: var(--color-text); text-decoration: none; font-size: .85rem; font-weight: 600; text-transform: uppercase; }
.link-more:hover { color: var(--color-primary); }

/* Header: buscador · logo · cuenta/carrito */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 0; box-shadow: none; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; min-height: 96px; transition: min-height .2s; }
.site-header.is-scrolled .header-inner { min-height: 64px; }
.site-header.is-scrolled .site-logo img { max-height: 40px; }
.site-logo { justify-self: center; text-decoration: none; color: var(--color-text); font: 700 1.6rem var(--font-heading); }
.site-logo img { max-height: 64px; width: auto; transition: max-height .2s; }
.header-search { justify-self: start; width: 100%; max-width: 300px; border-radius: 0; border: 1px solid #cfcfcf; }
.header-search input { padding: .55rem .75rem; font-size: .85rem; }
.header-search button { background: var(--color-primary); color: #fff; padding: 0 .85rem; border-radius: 0; }
.header-search button:hover { background: var(--color-primary-dark); }
.header-actions { justify-self: end; gap: 1.4rem; }
.header-action { display: flex; align-items: center; gap: .55rem; color: var(--color-text); text-decoration: none; font-size: .75rem; line-height: 1.2; }
.header-action strong { font-weight: 700; }
.header-action:hover { color: var(--color-primary); }
.header-circle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #efefef; font-size: .85rem; }
.cart-count { top: -6px; left: auto; right: -8px; }

/* Barra negra de navegación */
.site-nav { background: #000; border-top: 0; }
.nav-inner { min-height: 52px; gap: .2rem 2.1rem; }
.site-nav a { color: #fff; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding: 1.1rem 0; }
.site-nav a:hover, .site-nav a.active { color: var(--color-primary); }
.nav-cat-link { text-decoration: underline !important; text-underline-offset: 3px; }
.nav-dropdown { background: #fff; border-radius: 0; border: 0; box-shadow: 0 12px 30px rgba(0,0,0,.15); left: 0; }
.nav-dropdown a { color: var(--color-text); text-transform: none; font-size: .9rem; font-weight: 400; padding: .3rem 0; }
.nav-mega { display: none; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem 2rem; min-width: 560px; padding: 1.4rem 1.6rem; }
.nav-item.has-children:hover .nav-mega, .nav-item.has-children:focus-within .nav-mega { display: grid; }
.nav-mega-col { display: flex; flex-direction: column; }
.nav-mega .nav-mega-title { font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; margin-bottom: .2rem; }

/* Slider principal */
.hero-slider { position: relative; overflow: hidden; background: #111; }
.hero-slider .slides { display: grid; }
.hero-slider .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; display: block; }
.hero-slider .slide.active { opacity: 1; visibility: visible; }
.hero-slider img { width: 100%; height: auto; max-height: 640px; object-fit: cover; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); cursor: pointer; font-size: 1rem; z-index: 2; }
.slider-arrow.prev { left: 1rem; }
.slider-arrow.next { right: 1rem; }
.slider-dots { position: absolute; bottom: 1rem; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; z-index: 2; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.slider-dots button.active { background: var(--color-primary); }
.hero { min-height: 52vh; }

/* Tarjetas de producto (estilo limpio) */
.grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.25rem; }
.product-card { border: 0; border-radius: 0; background: transparent; }
.product-card:hover { box-shadow: none; transform: none; }
.product-media { background: #fafafa; border-radius: 0; }
.product-media img { object-fit: contain; padding: 6%; transition: transform .3s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-body { padding: .8rem 0 0; gap: .15rem; }
.product-body h3 { font-weight: 400; font-size: .82rem; line-height: 1.35; }
.product-body .price { font-size: 1rem; }
.product-body .price strong { font-weight: 700; }
.installments { font-size: .68rem; color: var(--color-muted); }
.product-cta { margin-top: .5rem; }
@media (hover: hover) and (min-width: 961px) {
    .product-cta { opacity: 0; transform: translateY(4px); transition: .2s; }
    .product-card:hover .product-cta, .product-card:focus-within .product-cta { opacity: 1; transform: none; }
}
.tag { border-radius: 0; font-size: .68rem; }
.tag-sale { background: var(--color-primary); }

/* Banners de categorías (Dama / Caballero / Niños) */
.category-banners { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.category-banner { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-alt); }
.category-banner img, .category-banner picture { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.category-banner:hover img { transform: scale(1.04); }

/* Barra de beneficios */
.benefits { background: #000; color: #fff; padding: 3.5rem 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 2rem; text-align: center; }
.benefit { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.benefit i { font-size: 1.5rem; margin-bottom: .6rem; }
.benefit strong { font-size: .95rem; }
.benefit span { font-size: .72rem; opacity: .85; }

/* Banners promocionales */
.promo-banners { display: grid; gap: 1rem; }
.promo-banner { display: block; overflow: hidden; }
.promo-banner img { width: 100%; height: auto; }

/* Testimonios */
.testimonials .section-title { text-transform: none; margin-bottom: 2rem; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.testimonial { margin: 0; text-align: center; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: .6rem; text-align: left; font-size: .85rem; }
.testimonial figcaption img, .avatar-initial { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.avatar-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary); color: #fff; font-weight: 700; }
.testimonial strong { display: block; font-weight: 400; }
.stars { color: #111; font-size: .6rem; letter-spacing: 2px; }
.testimonial blockquote { margin: .7rem 0 0; font-weight: 700; font-size: .95rem; }

/* Suscríbete */
.newsletter { background: #000; color: #fff; padding: 3rem 1.5rem; display: flex; justify-content: center; }
.newsletter > div { width: 100%; max-width: 430px; }
.newsletter h3 { font-family: var(--font-heading); font-size: 1.35rem; margin-bottom: .3rem; }
.newsletter p { font-size: .82rem; margin: 0 0 1rem; }
.newsletter-form { display: flex; border: 1px solid #fff; }
.newsletter-form input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: .7rem .8rem; font: inherit; font-size: .82rem; outline: none; }
.newsletter-form input::placeholder { color: #bbb; }
.newsletter-form button { background: #fff; color: #000; border: 0; padding: 0 1.1rem; font: inherit; font-size: .82rem; cursor: pointer; }
.newsletter-form button:hover { background: var(--color-primary); color: #fff; }
.newsletter-ok { color: var(--color-primary); font-weight: 700; }
.newsletter .error { color: #ffb4a8; }

/* Footer gris */
.site-footer { background: var(--color-footer); color: #fff; padding: 2.5rem 0 1rem; margin-top: 2rem; font-size: .8rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
.footer-col h4 { font-family: var(--font-body); font-size: .8rem; color: #fff; margin-bottom: .6rem; }
.footer-logo { max-height: 56px; width: auto; margin-bottom: 1rem; }
.footer-contact, .footer-links { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .45rem; }
.footer-links { margin-top: 0; }
.site-footer .socials a { background: transparent; color: #fff; width: auto; height: auto; margin-right: .8rem; }
.site-footer .hours-list { font-size: .8rem; }
.site-footer .btn-outline { color: #fff; border-color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 0; margin-top: 2rem; padding-top: 1rem; font-size: .7rem; }
.pay-icons { display: flex; align-items: center; gap: .45rem; font-size: .75rem; }
.pay-icons i { font-size: 1.6rem; color: #fff; }

/* Aviso de cookies y WhatsApp */
.cookie-notice { position: fixed; z-index: 80; left: 1rem; bottom: 1rem; max-width: 340px; background: #fff; color: var(--color-text); box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: .7rem .9rem; font-size: .72rem; line-height: 1.4; }
.cookie-notice[hidden] { display: none; }
.cookie-notice button { background: none; border: 0; padding: 0; margin-left: .3rem; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.wa-float { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; font-size: 1.6rem; }

/* Páginas internas */
.page-header { background: #000; }
.page-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); text-transform: uppercase; }
.summary-box, .checkout-block, .auth-card, .quote-doc, .callout { border-radius: var(--radius); }
.chip span, .qty, .header-search { border-radius: 0; }
.chip span { border-radius: 0; }
.radio-card { border-radius: 0; }

@media (max-width: 960px) {
    .header-inner { grid-template-columns: auto 1fr auto; min-height: 70px; gap: .8rem; }
    .site-logo { grid-column: 1; grid-row: 1; justify-self: start; }
    .site-logo img { max-height: 46px; }
    .header-actions { grid-column: 3; grid-row: 1; gap: .8rem; }
    .header-search { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-bottom: .7rem; }
    .site-nav a { padding: .75rem 0; border-bottom-color: #222; }
    .nav-mega { display: grid; position: static; min-width: 0; box-shadow: none; background: transparent; padding: 0 0 .5rem 1rem; }
    .nav-mega a, .nav-mega .nav-mega-title { color: #ddd; }
    .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .8rem; }
    .category-banners { grid-template-columns: 1fr; }
    .category-banner { aspect-ratio: 16 / 9; }
    .benefits { padding: 2.2rem 0; }
    .benefits-grid { gap: 1.5rem 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .slider-arrow { display: none; }
    .cookie-notice { right: 1rem; max-width: none; }
}
.price strong { color: var(--color-text); }
.price.big strong { color: var(--color-text); }
