/* Capa visual compartida. Conserva los estados y la lógica del catálogo. */
:root {
    --color-primary: #064b9b;
    --color-primary-dark: #102b4e;
    --color-primary-light: #edf3fb;
    --color-accent: #df1830;
    --color-accent-dark: #b91126;
    --color-accent-light: #fff0f2;
    --color-background: #f5f6f8;
    --color-text: #192d45;
    --color-text-secondary: #5d6c7e;
    --color-text-light: #66768a;
    --color-border: #dce3ec;
    --radius-medium: 16px;
    --shadow-small: 0 4px 20px #142c4c06;
    --shadow-medium: 0 16px 40px #142c4c12;
    --container-width: 1240px;
}
html { font-family: 'Segoe UI', Arial, sans-serif; }
body { font-family: 'Segoe UI', Arial, sans-serif; }
:focus-visible { outline: 3px solid #568fe1; outline-offset: 5px; }
.container { width: min(calc(100% - 80px), var(--container-width)); }
.header { border-top: 3px solid var(--color-accent); background: #ffffffed; }
.header-container { min-height: 80px; }
.logo { gap: 12px; }
.logo-icon { border-radius: 3px; background: linear-gradient(#0752a0 50%, #df1830 50%); width: 42px; height: 42px; letter-spacing: -2px; font-size: 19px; border: 2px solid #fff; box-shadow: 0 0 0 1px #dce3ec; }
.logo-text { font-size: 18px; letter-spacing: -.6px; }
.nav-link { padding: 10px 19px; font-size: 13px; }
.nav-link.active { background: var(--color-primary-light); }
.button { min-height: 50px; border-radius: 7px; padding: 14px 24px; font-size: 14px; }
.button-primary { box-shadow: 0 6px 18px #df183024; }
.button-primary:hover { box-shadow: 0 8px 24px #df183030; }
.hero { padding: 64px 0; background: #102b4e; }
.hero::before { width: 900px; height: 900px; top: -620px; right: -220px; border-color: #ffffff0b; }
.hero::after { width: 550px; height: 550px; right: -220px; bottom: -380px; border-color: #ffffff0c; }
.hero-container { grid-template-columns: 1.05fr 1fr; gap: 70px; }
.hero-label { color: #fff; display: inline-flex; align-items: center; gap: 10px; letter-spacing: .16em; font-size: 11px; }
.hero-label::before { content: ''; width: 24px; height: 3px; background: #f33146; }
.hero h1 { font-size: clamp(40px, 4.7vw, 66px); font-weight: 750; letter-spacing: -.055em; line-height: 1.07; margin: 12px 0 24px; }
.hero h1 em { font-style: normal; color: #9cbfe9; }
.hero-content > p { max-width: 480px; color: #c3cfdd; font-size: 15px; line-height: 1.85; margin-bottom: 30px; }
.hero .button::after { content: '↗'; margin-left: 24px; font-size: 20px; }
.hero-visual { display: flex; flex-direction: column; position: relative; gap: 0; padding: 26px 30px 20px; border-radius: 18px; background: #f0f3f7; color: #102b4e; overflow: hidden; margin: 0; }
.showcase-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 10px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.showcase-heading span:last-child { color: #617187; font-weight: 500; letter-spacing: .06em; }
.showcase-image { position: relative; display: grid; place-items: center; height: 325px; }
.showcase-image::before { content: ''; position: absolute; width: 275px; height: 275px; border: 1px solid #ccd6e3; border-radius: 50%; box-shadow: 0 0 0 30px #e7ecf2; }
.showcase-image img { position: relative; width: 305px; height: 305px; object-fit: contain; mix-blend-mode: multiply; transform: rotate(-7deg); }
.showcase-caption { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding-top: 18px; border-top: 1px solid #d7dfe8; }
.showcase-caption strong { font-size: 16px; letter-spacing: -.4px; }
.showcase-caption span { font-size: 11px; color: #5d6c7e; text-align: right; }
.section-label { font-size: 10px; letter-spacing: .16em; margin-bottom: 12px; }
.section-heading { gap: 50px; margin-bottom: 32px; }
.section-heading h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; }
.section-heading > p { font-size: 13px; max-width: 340px; line-height: 1.8; }
.segments-section { padding: 72px 0 80px; }
.segments-grid { gap: 18px; }
.segment-card { position: relative; justify-content: flex-start; padding: 26px; min-height: 340px; background: #fff; overflow: hidden; border-color: #dce3ec; box-shadow: 0 3px 12px #142c4c03; }
.segment-card::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.segment-card:hover::after { transform: scaleX(1); }
.segment-card:hover { border-color: #9db7d5; }
.segment-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 30px; }
.segment-number { margin: 0; font-size: 11px; color: #66768a; font-variant-numeric: tabular-nums; }
.segment-type { color: #53657b; font-size: 10px; font-weight: 600; border: 1px solid #e1e7ef; padding: 3px 9px; border-radius: 99px; }
.segment-symbol { width: 42px; height: 32px; color: var(--color-primary); margin-bottom: 20px; }
.segment-card h3 { color: #102b4e; font-size: 20px; line-height: 1.25; letter-spacing: -.6px; margin-bottom: 12px; }
.segment-card > p { color: #5d6c7e; font-size: 12px; line-height: 1.8; margin-bottom: 20px; }
.segment-product-count { color: #66768a; font-size: 11px; margin-top: auto; margin-bottom: 15px; }
.segment-card-link { color: var(--color-primary); border-top: 1px solid #e6eaf0; padding-top: 15px; font-size: 12px; font-weight: 700; }
.home-info-section { padding: 70px 0; background: #eef2f7; border-top: 1px solid #e1e7ee; }
.home-info-container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 100px; align-items: center; }
.home-info-content h2 { font-size: clamp(28px, 3vw, 38px); max-width: 540px; }
.home-info-content p { font-size: 14px; max-width: 470px; line-height: 1.8; }
.home-info-card { border-left: 1px solid #cbd5e2; padding-left: 48px; }
.home-info-number { color: var(--color-primary); font-size: 64px; font-weight: 700; letter-spacing: -4px; line-height: 1; }
.home-info-card h3 { margin: 14px 0 8px; font-size: 18px; }
.home-info-card p { font-size: 13px; color: #5d6c7e; }
.text-link { color: var(--color-primary); font-size: 12px; font-weight: 700; }
.segment-hero { background: #102b4e; padding: 44px 0 52px; }
.segment-hero h1 { font-size: clamp(36px, 4.6vw, 60px); }
.segment-hero-content > p { font-size: 14px; max-width: 480px; }
.segment-hero-summary { gap: 12px; }
.segment-hero-summary > div { min-height: 108px; border-radius: 10px; background: #ffffff06; border-color: #ffffff1f; padding: 18px 22px; }
.segment-hero-summary span { color: #93b9e7; font-size: 10px; letter-spacing: .1em; }
.segment-hero-summary strong { font-size: 14px; }
.segment-hero .back-navigation { color: #c3cfdd; }
.segment-catalog { padding: 58px 0 85px; }
.catalog-tools { padding: 26px; box-shadow: none; margin-bottom: 46px; border-radius: 14px; }
.search-box input { background: #f5f7fa; height: 54px; padding-left: 44px; font-size: 14px; border-color: #dce3ec; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-box::before { content: ''; position: absolute; z-index: 1; left: 18px; top: 18px; width: 14px; height: 14px; border: 1.7px solid #657991; border-radius: 50%; pointer-events: none; }
.search-box::after { content: ''; position: absolute; left: 30px; top: 31px; width: 7px; height: 1.7px; background: #657991; transform: rotate(45deg); pointer-events: none; }
.search-label, .filter-label { font-size: 11px; margin-bottom: 10px; }
.filter-button { border-radius: 7px; background: white; font-size: 12px; padding-inline: 18px; }
.catalog-status p, .reset-filter-button { font-size: 12px; }
.category-heading { padding-bottom: 20px; }
.category-heading h2 { font-size: 28px; }
.category-heading > p { font-size: 12px; line-height: 1.8; }
.products-grid { gap: 20px; }
.product-card { border-radius: 12px; box-shadow: none; }
.product-image-wrapper { height: 255px; background: #fff; padding: 28px; }
.product-content { padding: 23px; }
.product-category { color: var(--color-primary); font-size: 10px; letter-spacing: .1em; }
.product-name { font-size: 15px; line-height: 1.45; font-weight: 700; }
.product-type, .product-reference { font-size: 11px; font-weight: 500; }
.product-description { font-size: 12px; }
.product-discount-price { font-size: 22px; letter-spacing: -.7px; }
.product-discount-label { font-size: 9px; border: none; padding: 5px 8px; border-radius: 4px; }
.product-link { justify-content: space-between; align-self: stretch; margin-top: 20px; border-top: 1px solid #e9edf2; padding-top: 15px; font-size: 12px; }
body.product-page-view .single-product-card { border-radius: 16px; box-shadow: 0 10px 35px #102b4e07; }
body.product-page-view .single-product-left { background: #f5f7fa; padding: 35px; }
body.product-page-view .single-product-price-box { background: #edf3fb; border-color: #dae5f3; border-left: 3px solid var(--color-primary); }
body.product-page-view .single-product-segment { color: var(--color-primary); }
body.product-page-view .single-product-small-label { color: #586d85; }
body.product-page-view .single-product-spec { border-radius: 6px; }
.footer { background: #0d223d; }
.footer-container { padding-top: 54px; padding-bottom: 48px; }
.footer-brand p { color: #a9b6c8; font-size: 12px; line-height: 1.85; }
.footer-column h3 { font-size: 12px; }
.footer-column a { color: #b1bfd1; font-size: 12px; }
.footer-bottom p { color: #9aabc1; font-size: 11px; }
@media (max-width: 1100px) {
    .hero-container { gap: 38px; }
    .segment-card { min-height: 330px; }
    .home-info-container { gap: 50px; }
}
@media (max-width: 900px) {
    .container { width: calc(100% - 48px); }
    .header-container { min-height: 70px; }
    .hero-container { grid-template-columns: 1fr 1fr; gap: 28px; }
    .hero h1 { font-size: 44px; }
    .hero-visual { padding: 22px; }
    .showcase-image { height: 270px; }
    .showcase-image img { width: 250px; height: 250px; }
    .showcase-image::before { width: 205px; height: 205px; box-shadow: 0 0 0 20px #e7ecf2; }
    .showcase-heading { font-size: 9px; }
    .showcase-heading span:last-child { display: none; }
    .showcase-caption { flex-direction: column; gap: 4px; align-items: flex-start; }
    .showcase-caption span { text-align: left; }
    .section-heading { gap: 18px; }
    .section-heading > p { max-width: 520px; }
    .segment-hero-container { grid-template-columns: 1fr; gap: 32px; }
    .segment-hero-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
}
@media (max-width: 650px) {
    .container { width: calc(100% - 36px); }
    .hero { padding: 40px 0; }
    .hero-container { grid-template-columns: 1fr; gap: 36px; }
    .hero h1 { font-size: clamp(39px, 10.5vw, 56px); max-width: 480px; }
    .hero-content > p { font-size: 14px; }
    .hero-visual { padding: 22px; border-radius: 12px; }
    .showcase-heading span:last-child { display: inline; }
    .showcase-image { height: 260px; }
    .showcase-caption { flex-direction: row; align-items: center; gap: 16px; }
    .showcase-caption span { text-align: right; }
    .showcase-caption strong { font-size: 14px; }
    .segments-section, .home-info-section { padding: 48px 0; }
    .segments-grid { grid-template-columns: 1fr; gap: 14px; }
    .segment-card { min-height: 0; padding: 24px; }
    .segment-card-top { margin-bottom: 20px; }
    .segment-symbol { margin-bottom: 16px; }
    .segment-card h3 { font-size: 23px; }
    .segment-card > p { font-size: 13px; }
    .home-info-container { grid-template-columns: 1fr; gap: 30px; }
    .home-info-card { padding: 26px 0 0; border-left: 0; border-top: 1px solid #cbd5e2; }
    .segment-hero { padding: 32px 0 40px; }
    .segment-hero-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .segment-hero-summary > div { min-height: 90px; padding: 16px; }
    .segment-catalog { padding: 40px 0 60px; }
    .catalog-tools { padding: 18px; margin-bottom: 36px; }
    .filter-button { min-height: 44px; }
    .reset-filter-button { min-height: 36px; }
    .category-heading h2 { font-size: 26px; }
    .products-grid { gap: 18px; }
    .product-image-wrapper { height: 285px; }
    .product-content { padding: 24px; }
    .product-name { font-size: 17px; }
    .product-original-price-row, .product-discount-price-row { flex-direction: row; align-items: center; }
    body.product-page-view .single-product-left { padding: 18px; }
    .footer-container { gap: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
