:root {
    --navy: #101d32;
    --navy-2: #172a46;
    --red: #e94545;
    --ink: #172033;
    --muted: #667085;
    --line: #e4e8ef;
    --soft: #f5f7fa;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 12px 32px rgba(16, 29, 50, .08);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.header-main { min-height: 92px; display: grid; grid-template-columns: 210px minmax(260px, 1fr) auto; gap: 28px; align-items: center; }
.brand { display: flex; align-items: baseline; gap: 7px; font-weight: 900; letter-spacing: -.04em; font-size: 26px; }
.brand-store { color: var(--red); font-size: 15px; letter-spacing: .16em; }
.search { display: flex; min-width: 0; }
.search input { width: 100%; height: 48px; border: 0; border-radius: 10px 0 0 10px; padding: 0 17px; font-size: 15px; outline: none; }
.search button { border: 0; background: var(--red); color: var(--white); padding: 0 22px; border-radius: 0 10px 10px 0; font-weight: 800; cursor: pointer; }
.admin-link { font-size: 14px; opacity: .82; }
.category-nav { border-top: 1px solid rgba(255,255,255,.12); overflow-x: auto; }
.category-nav .container { display: flex; gap: 28px; align-items: center; height: 50px; white-space: nowrap; font-size: 14px; font-weight: 700; }
.category-nav a:hover { color: #ff7b7b; }
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 58%, #213e67 100%); color: var(--white); }
.hero-content { min-height: 350px; display: grid; grid-template-columns: 1fr 280px; gap: 50px; align-items: center; }
.hero h1 { max-width: 720px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.05em; margin: 10px 0 18px; }
.hero p { max-width: 630px; color: #d4dcea; font-size: 18px; margin-bottom: 30px; }
.eyebrow { color: var(--red); text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 900; }
.hero-badge { width: 240px; height: 240px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(255,255,255,.06); }
.hero-badge strong { font-size: 60px; }
.hero-badge span { color: #d4dcea; }
.section { padding-block: 64px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { font-size: 32px; letter-spacing: -.035em; margin: 6px 0 0; }
.section-heading > a { color: var(--red); font-weight: 800; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { min-height: 112px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; transition: .2s; }
.category-card:hover { transform: translateY(-3px); border-color: #b9c4d4; box-shadow: var(--shadow); }
.category-card strong { font-size: 18px; }
.category-card span { color: var(--muted); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 1 / 1; padding: 18px; display: flex; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid var(--line); }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.image-placeholder { color: #98a2b3; font-weight: 700; }
.product-card-body { padding: 18px; }
.product-brand { display: block; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.product-card h2 { font-size: 15px; line-height: 1.42; margin: 0; min-height: 64px; }
.product-card h2 a:hover { color: var(--red); }
.product-price { font-size: 20px; font-weight: 900; margin: 18px 0; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 22px; background: var(--red); color: var(--white); border-radius: 9px; font-weight: 850; border: 0; }
.button.secondary { width: 100%; color: var(--navy); background: var(--soft); font-size: 13px; }
.button.muted { background: #98a2b3; }
.button.whatsapp { background: #128c5e; margin-top: 22px; }
.page-header { background: var(--soft); border-bottom: 1px solid var(--line); padding: 44px 0; }
.page-header h1 { font-size: 40px; margin: 8px 0; }
.page-header p { color: var(--muted); margin: 0; }
.catalog-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 34px; }
.filters { align-self: start; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.filters h2 { margin: 0; padding: 18px; font-size: 17px; background: var(--soft); }
.filters a { display: flex; justify-content: space-between; padding: 13px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.filters a.active { color: var(--red); font-weight: 800; }
.filters small { color: var(--muted); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.pagination a { color: var(--red); font-weight: 800; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(350px, .9fr); gap: 64px; }
.gallery-main { aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbnails { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; }
.thumbnails button { width: 82px; height: 82px; flex: 0 0 auto; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.product-summary { align-self: center; }
.breadcrumbs { display: flex; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.product-summary h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; line-height: 1.08; margin: 8px 0 14px; }
.sku { color: var(--muted); }
.detail-price { font-size: 36px; font-weight: 950; margin: 28px 0 12px; }
.stock { color: #067647; font-weight: 750; }
.details-section { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; padding-bottom: 80px; }
.specifications dl { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specifications dl > div { display: grid; grid-template-columns: minmax(150px, .7fr) 1.3fr; border-top: 1px solid var(--line); }
.specifications dl > div:first-child { border-top: 0; }
.specifications dt, .specifications dd { margin: 0; padding: 14px 16px; }
.specifications dt { font-weight: 800; background: var(--soft); }
.rich-text { line-height: 1.72; color: #344054; }
.rich-text table { width: 100%; border-collapse: collapse; }
.rich-text th, .rich-text td { padding: 10px; border: 1px solid var(--line); text-align: left; }
.empty-state { padding: 50px; text-align: center; background: var(--soft); border-radius: var(--radius); }
.site-footer { margin-top: 50px; padding: 32px 0; color: #dbe2ec; background: var(--navy); }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; }
@media (max-width: 920px) {
    .header-main { grid-template-columns: 1fr auto; gap: 16px; padding-block: 15px; }
    .search { grid-column: 1 / -1; grid-row: 2; }
    .hero-content { grid-template-columns: 1fr; padding-block: 58px; }
    .hero-badge { display: none; }
    .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-layout { grid-template-columns: 1fr; }
    .filters { display: none; }
    .product-detail, .details-section { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
    .container { width: min(100% - 22px, 1180px); }
    .admin-link { display: none; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 32px; }
    .product-card h2 { min-height: auto; }
    .site-footer .container { flex-direction: column; }
}


/* Presentación fiel del contenido manual de WordPress */
.wordpress-content { grid-template-columns: 1fr; }
.wordpress-rich-text, .short-description { white-space: pre-line; }
.short-description { margin: 18px 0; }
.wordpress-rich-text p:first-child { margin-top: 0; }

/* Presentación uniforme de especificaciones, sin alterar el contenido editable */
.uniform-details { grid-template-columns: 1fr; }
.uniform-specifications { max-width: 980px; width: 100%; }
.uniform-specifications dl { border-radius: 12px; }
.uniform-specifications dl > div { grid-template-columns: minmax(180px, 32%) 1fr; }
.uniform-specifications dt { color: var(--ink); }
.uniform-specifications dd { background: #fff; color: #344054; }
@media (max-width: 640px) {
    .uniform-specifications dl > div { grid-template-columns: 1fr; }
    .uniform-specifications dt { border-bottom: 1px solid var(--line); }
}

/* Ficha técnica única para todas las laptops */
.uniform-details { display: block; }
.uniform-specifications { max-width: 1040px; margin: 0 auto; }
.uniform-specifications dl { width: 100%; }
.uniform-specifications dl > div { min-height: 48px; align-items: stretch; }
.uniform-specifications dt { display: flex; align-items: center; }
.uniform-specifications dd { display: flex; align-items: center; line-height: 1.45; word-break: break-word; }
.uniform-specifications dd:empty::after { content: '—'; }
