:root {
    color-scheme: light;
    --navy: #031a3f;
    --blue: #1565c0;
    --teal: #007669;
    --ink: #142036;
    --muted: #495b71;
    --line: #dce5ef;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
a:focus-visible { outline: 3px solid #a65f00; outline-offset: 4px; }
h1, h2, p, figure, dl, dd { margin: 0; }
h1, h2 { color: var(--navy); line-height: 1.08; letter-spacing: -.045em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.35rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: 12px; transform: translateY(-200%); background: white; padding: 8px; }
.skip:focus { transform: none; z-index: 2; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font-size: 1.55rem; font-weight: 750; letter-spacing: -.05em; text-decoration: none; }
.blue { color: var(--blue); }
.teal { color: var(--teal); }
nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
nav a { display: inline-flex; align-items: center; min-height: 52px; color: var(--navy); font-weight: 650; text-decoration: none; border-bottom: 3px solid transparent; }
nav a:hover, nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.intro { background: #f5f7fa; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1.65fr 1fr; align-items: center; gap: clamp(24px, 6vw, 78px); padding-block: clamp(48px, 9vw, 112px); }
.label { color: var(--teal); font-size: .8rem; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; margin-bottom: 14px; }
.lead { max-width: 58ch; margin-top: 22px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.23rem); }
.text-link { display: inline-block; margin-top: 20px; font-weight: 700; text-underline-offset: .22em; }
.signature { display: grid; justify-items: center; gap: 18px; border-left: 1px solid #c8d7e7; padding-left: 20px; }
.signature img { width: min(76%, 260px); }
.signature figcaption { color: var(--navy); text-align: center; font-weight: 650; font-size: .78rem; text-transform: uppercase; letter-spacing: .10em; }
.signature span { color: var(--teal); }
.editorial { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.65fr); gap: 24px 56px; padding-block: clamp(34px, 6vw, 74px); }
.editorial p + p, address { margin-top: 14px; }
.editorial p, dd { color: var(--muted); }
.editorial dt { font-weight: 750; color: var(--navy); }
.editorial dd + dt { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.service-band { background: #f0f7f8; border-block: 1px solid var(--line); }
address { font-style: normal; }
.product-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(14px, 4vw, 45px); padding-block: clamp(36px, 7vw, 86px); }
.product-heading h1 { font-size: clamp(2.2rem, 5vw, 4.35rem); }
footer { background: var(--navy); color: #e3effb; padding-block: 20px; font-size: .9rem; }
footer a { color: white; }
@media (max-width: 760px) {
    .site-header .wrap, .footer-inner { flex-wrap: wrap; gap: 5px 14px; }
    .site-header .wrap { padding-top: 7px; }
    nav { flex-basis: 100%; gap: 0 14px; }
    nav a { min-height: 42px; font-size: .9rem; }
    .intro-grid, .editorial { grid-template-columns: 1fr; }
    .signature { grid-template-columns: 66px 1fr; align-items: center; justify-items: start; gap: 10px; border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
    .signature img { width: 66px; }
}
@media (max-width: 470px) {
    .wrap { width: calc(100% - 32px); }
    .product-heading { grid-template-columns: 1fr; }
    .product-heading img { width: 70px; }
}

/* Identidad corporativa e interacción del inicio */
.intro:has(.intro-grid) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: radial-gradient(ellipse at 82% 38%, #10558a 0%, transparent 46%), linear-gradient(120deg, #031a3f 26%, #073c61 74%, #075c62);
}
.intro:has(.intro-grid)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(#bbf1fb12 1px, transparent 1px), linear-gradient(90deg, #bbf1fb12 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(100deg, transparent 10%, #000 78%);
}
.intro-grid h1 { color: #fff; }
.intro-grid .label { color: #84e8d5; }
.intro-grid .lead { color: #e0eef9; }
.intro-grid .text-link {
    color: #052343;
    background: #82ead5;
    border-radius: 6px;
    padding: 11px 16px;
    text-decoration: none;
}
.intro-grid .text-link:hover { background: #b0f5e7; }
.signature {
    position: relative;
    isolation: isolate;
    border: 0;
    padding: 34px 0 0;
}
.signature img { border-radius: 24%; box-shadow: 0 18px 60px #010c2680; width: min(57%, 210px); }
.signature figcaption { color: #e0eef9; }
.signature span { color: #84e8d5; }
.signal { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.signal i {
    position: absolute;
    inset: 45% auto auto 50%;
    width: min(95%, 350px);
    aspect-ratio: 1;
    border: 1px solid #7df1dc50;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.signal i:nth-child(2) { width: min(80%, 295px); border-color: #64aef980; }
.signal i:nth-child(3) { width: min(67%, 250px); border-style: dashed; }
.signal i:first-child::after {
    content: "";
    position: absolute;
    left: 12%;
    top: 14%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #84e8d5;
    box-shadow: 0 0 18px #84e8d5;
}
.service-band { background: linear-gradient(120deg, #e8f2fc, #edf9f6); }
.service-list { display: grid; gap: 9px; }
.service-list details { background: #fff; border: 1px solid #bfd4e7; border-radius: 8px; }
.service-list details[open] { border-left: 4px solid #008775; }
.service-list summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    list-style: none;
    cursor: pointer;
    color: var(--navy);
    font-weight: 700;
}
.service-list summary::-webkit-details-marker { display: none; }
.service-list summary::after { content: "+"; color: var(--blue); font-size: 1.25rem; line-height: 1; }
.service-list details[open] summary::after { content: "−"; }
.service-list summary:hover { background: #eef6ff; }
.service-list summary:focus-visible { outline: 3px solid #a65f00; outline-offset: 2px; }
.service-list details p { padding: 0 14px 14px; }
.service-number { color: var(--teal); font-size: .78rem; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
    .signal i:first-child { animation: orbit 24s linear infinite; }
    @keyframes orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
}
@media (max-width: 760px) {
    .signature { grid-template-columns: 1fr; justify-items: center; padding-top: 15px; }
    .signature img { width: min(36%, 140px); }
    .signal i { width: 190px; }
    .signal i:nth-child(2) { width: 164px; }
    .signal i:nth-child(3) { width: 146px; }
}

/* Demostración del módulo de producción */
.production { background: linear-gradient(125deg, #031a3f, #0b4e62); color: #e0eef9; }
.production-inner { padding-block: clamp(42px, 7vw, 82px); }
.production h2 { color: #fff; }
.production .label { color: #83ead5; }
.production-intro { margin-top: 15px; max-width: 65ch; }
.production-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; margin-block: 22px; }
.production-controls, .production-ticket { border: 1px solid #78c9e45c; border-radius: 12px; background: #081f3e80; padding: clamp(14px, 3vw, 24px); }
.production-controls label { display: block; font-weight: 650; }
.production-controls select, .production-controls input {
    display: block;
    width: 100%;
    margin-top: 5px;
    min-height: 42px;
    border: 1px solid #83afcd;
    border-radius: 6px;
    padding: 6px 8px;
    color: var(--navy);
    background: #f5faff;
    font: inherit;
}
.production-controls :is(select, input):focus-visible { outline: 3px solid #83ead5; outline-offset: 3px; }
.production-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.production-hint, .production-note { font-size: .85rem; margin-top: 12px; color: #c7e2f3; }
.production-ticket { display: grid; grid-template-columns: minmax(90px, .8fr) 1fr; align-items: center; gap: 16px; }
.production-drawing { display: grid; place-items: center; border-radius: 8px; background: #0a3456; }
.production-drawing svg { display: block; width: 100%; fill: none; stroke: #83ead5; stroke-width: 3; }
.production-drawing .drawing-grid { stroke: #4881a3; stroke-width: 1; }
.drawing-hidden { display: none; }
.production-summary .label { margin-bottom: 4px; }
.production-summary output { display: block; font-weight: 700; color: white; }
.production-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.production-flow li { display: grid; gap: 4px; padding: 9px 12px; border-left: 2px solid #83ead5; }
.production-flow strong { color: #fff; }
.production-flow span { font-size: .9rem; }
@media (max-width: 720px) {
    .production-grid, .production-flow { grid-template-columns: 1fr; }
    .production-drawing svg { max-width: 150px; }
}

.demo-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.demo-table { width: 100%; min-width: 530px; border-collapse: collapse; text-align: left; }
.demo-table caption { text-align: left; color: #83ead5; font-weight: 750; padding-bottom: 8px; }
.demo-table :is(th, td) { padding: 8px 12px; border-bottom: 1px solid #78c9e45c; }
.demo-table thead { background: #081f3e80; color: #fff; }
.demo-table tbody th { font-weight: 650; }
.glass-demo { padding-block: clamp(42px, 7vw, 82px); }
.glass-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; margin-block: 20px; }
.glass-controls, .glass-plan { min-width: 0; background: #eef6fb; border: 1px solid #bfd4e7; border-radius: 12px; padding: 16px; }
.glass-controls legend, .glass-plan figcaption { color: var(--navy); font-weight: 750; }
.glass-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.glass-fields label, .glass-rotate { font-size: .9rem; font-weight: 650; }
.glass-fields input { display: block; width: 100%; min-height: 38px; margin-top: 4px; padding: 4px 8px; border: 1px solid #83afcd; border-radius: 6px; font: inherit; }
.glass-plan svg { display: block; width: 100%; height: 270px; margin: 10px 0; background: repeating-linear-gradient(135deg, #e4edf6 0 4px, #f8fbff 4px 8px); border: 1px solid #a3bed7; }
.glass-plan rect { stroke: #173d5d; stroke-width: .65; vector-effect: non-scaling-stroke; }
.glass-plan text { text-anchor: middle; dominant-baseline: middle; fill: #031a3f; font-weight: 750; }
.glass-plan output, .glass-status { display: block; font-size: .9rem; font-weight: 700; }
.glass-status { margin-top: 8px; }
.glass-note { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) {
    .glass-grid { grid-template-columns: 1fr; }
    .glass-plan svg { height: 220px; }
}

.contact-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.contact-social a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 12px; border: 1px solid #bfd4e7; border-radius: 8px; background: #f0f7ff; color: var(--blue); font-weight: 650; text-decoration: none; }
.contact-social a:hover { background: #e0efff; text-decoration: underline; }
.contact-social svg { width: 19px; height: 19px; fill: currentColor; }
