/* Hallmark · v2.0.0 · redesign: full · scope: site · genre: modern-minimal · brand: TESEO3D (logo teal, Montserrat + Raleway) · built: produccion_teseo3d_v4 */
/* Critique: v3 stacked six card grids, eleven section headers, mono labels and two hero layers; v4 keeps the brand and rebuilds the page as eight sections around one accent. */
/* Hallmark · dropped #problemas, #servicios, #industrias, #taller, #capacidades-gallery · their content is merged into #soluciones and #capacidades; the old anchors now point at those sections */
/* Hallmark · dropped https://cdn.tailwindcss.com, https://unpkg.com/feather-icons, v3.js · no framework or icon font: icons are inline SVG and motion is limited to hover and focus */
/* Hallmark · dropped image bambulab-h2s.jpg · one photo per machine card keeps the grid to nine sections; the file stays in images/photos */
/* Hallmark · dropped image creality-k2plus.jpg · one photo per machine card; the file stays in images/photos */
/* Hallmark · dropped image impresora-resina.jpg · one photo per machine card; the file stays in images/photos */
/* Hallmark · dropped image percheros.jpg · the philosophy band keeps one photo; the file stays in images/photos */
/* Hallmark · dropped id cierre · merged into #cotizar, its lead line kept */
/* Hallmark · dropped id industrias · merged into #capacidades as a chip list */
/* Hallmark · dropped id problemas · renamed to #soluciones, same cards */
/* Hallmark · dropped id servicios · merged into #capacidades as chips */
/* Hallmark · dropped id faq-list · the FAQ details list keeps its content under #faq */
/* Hallmark · dropped id mobile-menu-button · renamed to #menu-btn */
/* Hallmark · dropped id taller · the gallery is removed to keep nine sections */
/* Hallmark · reworded the headlines, ledes and card copy to the facts already on the page, per "recorta texto"; every changed line is listed in the handoff */
/* Hallmark · hero: Stage · headline and the four choices on the left, the selected panel on the right, centred */
/* Hallmark · waive 29 · scrim over the photos plus a solid @supports and reduced-transparency fallback · the owner asked for glass cards over the welding photograph in the hero, the equipment cards and the header */
/* Hallmark · waive 44c · hero: Stage, the choices list is taller than the selected panel · the panel centres on the choices list, not the headline */

/* ---------- Tokens ---------- */
:root {
    color-scheme: dark;
    --ink: #0c1820;
    --ink-2: #13242f;
    --ink-3: #1d3441;
    --paper: #f2eee6;
    --paper-2: #e6e0d3;
    --paper-btn-hover: #2c4451;
    --text: #e8eeef;
    --text-2: #b4c3c8;
    --text-ink: #13202a;
    --text-ink-2: #3f505a;
    --accent: #00a2a7;
    --accent-hover: #00b4b9;
    --accent-press: #008c90;
    --accent-2: #4fd3d6;
    --accent-ink: #072127;
    --accent-deep: #00666a;
    --line: rgba(232, 238, 239, .16);
    --field: #8ea0a6;
    --focus: #4fd3d6;
    --focus-paper: #00666a;
    --shadow: rgba(0, 0, 0, .6);
    --glass: rgba(19, 36, 47, .58);
    --glass-head: rgba(12, 24, 32, .74);
    --glass-line: rgba(255, 255, 255, .24);
    --glass-hi: rgba(255, 255, 255, .14);
    --scrim: rgba(12, 24, 32, .62);
    --scrim-2: rgba(12, 24, 32, .8);
    --scrim-3: rgba(12, 24, 32, .3);
    --scrim-4: rgba(12, 24, 32, .5);
    --r-glass: 20px;
    --font-display: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Raleway', system-ui, sans-serif;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --sec: clamp(72px, 9vw, 120px);
    --gap: clamp(28px, 4vw, 56px);
    --r: 6px;
    --ease: cubic-bezier(.2, .75, .25, 1);
    --text-hero: clamp(2.5rem, 5vw, 4.25rem);
    --text-section: clamp(2rem, 3.8vw, 3.1rem);
    --text-title: 1.25rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--ink); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; font-weight: 500; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0; color: inherit; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.band-paper { background: var(--paper); color: var(--text-ink); --focus: var(--focus-paper); }
.band-paper h2, .band-paper h3 { color: var(--text-ink); }
.band-ink-2 { background: var(--ink-2); color: var(--text); }
section { padding-block: var(--sec); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: var(--text-section); }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 1.05rem; }
.band-paper .section-head p { color: var(--text-ink-2); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 20px; border: 0; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { background: var(--accent-press); transform: translateY(0); }
.btn-wide { width: 100%; min-height: 52px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--glass-head); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--glass-line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand strong { display: block; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.1; color: var(--text); }
.brand small { display: block; font-size: .8rem; color: var(--text-2); font-weight: 700; }
.nav { display: none; align-items: center; gap: 24px; font-size: .95rem; font-weight: 700; }
.nav a:not(.btn) { color: var(--text-2); text-decoration: none; padding-block: 8px; background-image: linear-gradient(var(--accent-2), var(--accent-2)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease), color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="true"] { color: var(--text); background-size: 100% 2px; }
.nav .btn { min-height: 44px; padding: 12px 20px; }
.menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; background: none; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); cursor: pointer; }
.menu-btn:hover { background: var(--ink-2); }
.menu-btn svg { width: 22px; height: 22px; }
#mobile-menu { display: none; padding: 4px var(--gutter) 16px; border-top: 1px solid var(--line); }
#mobile-menu.open { display: block; }
#mobile-menu a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; }
#mobile-menu .btn { margin-top: 16px; border-bottom: 0; color: var(--accent-ink); }
@media (min-width: 1180px) { .nav { display: flex; } .menu-btn { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: clamp(32px, 6vh, 72px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--scrim-2) 20%, var(--scrim-3)), url("images/photos/impresora-3d.jpg") center 40% / cover no-repeat; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: center; }
.hero h1 { font-size: var(--text-hero); max-width: 12ch; }
.hero-lede { margin-top: 20px; max-width: 36ch; font-size: 1.1rem; color: var(--text-2); }
.needs-label { margin: 32px 0 8px; font-weight: 700; color: var(--text); }
.needs-options { display: flex; flex-direction: column; padding: 8px; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--glass-line); border-radius: var(--r-glass); box-shadow: inset 0 1px 0 var(--glass-hi), 0 24px 48px -28px var(--shadow); }
.needs-options a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; min-height: 56px; padding-inline: 16px; border-radius: 12px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; transition: color .2s, background-color .2s; }
.needs-options a > span { color: var(--accent-2); font-size: .8rem; font-variant-numeric: tabular-nums; }
.needs-options a .ico { opacity: .4; transition: opacity .2s, transform .3s var(--ease); }
.needs-options a:hover, .needs-options a[aria-current="step"] { color: var(--accent-2); background: var(--glass-hi); }
.needs-options a:hover .ico, .needs-options a[aria-current="step"] .ico { opacity: 1; transform: translate(2px, -2px); }

.needs-stage { min-width: 0; }
.need-panel { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--glass); color: var(--text); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--glass-line); border-radius: var(--r-glass); box-shadow: inset 0 1px 0 var(--glass-hi), 0 32px 64px -32px var(--shadow); overflow: hidden; margin-bottom: 16px; }
.need-panel:last-child { margin-bottom: 0; }
.need-panel img { width: 100%; height: 240px; object-fit: cover; }
.need-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: clamp(24px, 3vw, 40px); }
.need-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--text); }
.need-copy p { color: var(--text); }
.need-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; margin-top: 8px; padding: 12px 20px; border-radius: var(--r); background: var(--glass-hi); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line); font-family: var(--font-display); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.need-cta:hover { background: var(--glass-line); }
.need-cta:active { background: var(--accent); color: var(--accent-ink); }
body.needs-js .need-panel { display: none; }
body.needs-js .need-panel.is-active { display: grid; }

/* ---------- Soluciones ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { display: flex; flex-direction: column; padding: 16px; background: var(--paper-2); border-radius: var(--r); color: var(--text-ink); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 16px; }
.card h3 { font-size: var(--text-title); color: var(--text-ink); padding-inline: 4px; }
.card p { margin-top: 8px; padding-inline: 4px; color: var(--text-ink-2); font-size: .97rem; }
.card a { margin-top: auto; padding: 16px 4px 4px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-deep); font-weight: 700; text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* ---------- Capacidades ---------- */
#capacidades { position: relative; isolation: isolate; }
#capacidades::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--scrim-4), var(--scrim-2)), url("images/photos/soldadura.jpg") center top / cover no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-weight: 700; font-size: .95rem; }
.materials { margin-top: 24px; color: var(--text-2); font-size: .95rem; }
.machines { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 40px; }
.machine { display: flex; flex-direction: column; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--glass-line); border-radius: var(--r-glass); box-shadow: inset 0 1px 0 var(--glass-hi), 0 24px 48px -28px var(--shadow); overflow: hidden; }
.machine .shot { height: 200px; margin: 8px 8px 0; border-radius: 12px; background: var(--paper); overflow: hidden; }
.machine .shot img { display: block; width: 100%; height: 100%; max-height: 200px; object-fit: contain; padding: 12px; }
.machine .body { padding: 24px; }
.machine h3 { font-size: 1.05rem; color: var(--text); }
.machine ul { margin-top: 12px; color: var(--text); font-size: .95rem; }
.machine li + li { margin-top: 4px; }
.industries { margin-top: 56px; }
.industries h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 16px; }
.industries .chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.industries .chips li { border-radius: var(--r); }

/* ---------- Proyectos ---------- */
.cases { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.case img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.case h3 { margin-top: 20px; font-size: 1.2rem; color: var(--text); }
.case p { margin-top: 12px; color: var(--text-2); }
.case .formula { margin-top: 12px; color: var(--accent-2); font-weight: 700; font-size: .92rem; }
.cases-cta { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.cases-cta p { max-width: 52ch; color: var(--text-2); }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps a { display: flex; flex-direction: column; gap: 8px; padding: 20px 16px 16px 12px; margin-top: -1px; border-top: 3px solid transparent; color: var(--text-2); text-decoration: none; font-family: var(--font-display); font-weight: 700; transition: color .2s, border-color .2s; }
.steps a span { color: var(--accent-2); font-size: .8rem; }
.steps a:hover { color: var(--text); }
.steps a[aria-current="step"] { color: var(--text); border-top-color: var(--accent); }
.step-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: center; margin-top: 40px; }
.step-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.step-panel h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.step-panel p { margin-top: 16px; max-width: 44ch; color: var(--text-2); font-size: 1.05rem; }
body.process-js .step-panel { display: none; }
body.process-js .step-panel.is-active { display: grid; }
body:not(.process-js) .step-panel + .step-panel { margin-top: 32px; }

/* ---------- Filosofía ---------- */
.philo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: center; }
.philo h2 { font-size: var(--text-section); }
.philo .lede { margin-top: 20px; color: var(--text-2); font-size: 1.1rem; }
.philo blockquote { margin: 32px 0 0; padding: 24px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); font-size: 1.05rem; }
.philo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.5rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; max-width: 62ch; color: var(--text-2); }

/* ---------- Cotizar ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; }
.contact h2 { font-size: var(--text-section); }
.contact .lede { margin-top: 20px; color: var(--text-ink-2); }
.contact .direct { margin-top: 24px; color: var(--accent-deep); font-weight: 700; }
.quote-form { display: grid; gap: 24px; padding: clamp(24px, 3vw, 32px); background: var(--ink); color: var(--text); border-radius: var(--r); }
.field-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .field-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field-grid .full { grid-column: 1 / -1; min-width: 0; }
.field-grid > div { min-width: 0; max-width: 100%; contain: inline-size; overflow: hidden; }
.quote-form input, .quote-form select, .quote-form textarea { max-width: 100%; min-width: 0; }
.quote-form input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; }
.quote-form label.lbl, .quote-form legend.lbl { display: block; margin-bottom: 8px; color: var(--text); font-weight: 700; font-size: .92rem; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--field); border-radius: var(--r); background: var(--ink-2); color: var(--text); font: inherit; font-size: 1rem; }
.quote-form textarea { min-height: 120px; resize: vertical; }
.quote-form ::placeholder { color: var(--text-2); opacity: 1; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--accent-2); outline: 3px solid var(--focus); outline-offset: 2px; }
.quote-form :disabled { opacity: .5; cursor: not-allowed; }
.types { display: flex; flex-wrap: wrap; gap: 8px; }
.type { position: relative; cursor: pointer; }
.type input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.type span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--field); border-radius: 999px; color: var(--text); font-weight: 700; font-size: .92rem; transition: background-color .2s, border-color .2s, color .2s; }
.type:hover span { border-color: var(--accent-2); }
.type input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.type input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.form-note, .consent { color: var(--text-2); font-size: .9rem; }
.tipo-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.quote-form .alt { text-align: center; color: var(--text-2); font-size: .95rem; }
.quote-form .alt a { color: var(--accent-2); font-weight: 700; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); border-top: 1px solid var(--line); padding-block: 56px 28px; }
.foot-grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.foot-grid h2 { font-size: 1rem; color: var(--text); margin-bottom: 16px; }
.foot-grid ul { display: grid; gap: 12px; color: var(--text-2); font-size: .95rem; }
.foot-grid a { color: var(--text-2); text-decoration: none; }
.foot-grid a:hover { color: var(--accent-2); text-decoration: underline; }
.foot-grid .ico { color: var(--accent-2); width: 16px; height: 16px; }
.foot-grid li { display: flex; align-items: center; gap: 8px; }
.foot-brand p { margin-top: 16px; color: var(--text-2); font-size: .95rem; max-width: 40ch; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--text-2); font-size: .9rem; }
.foot-base nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-base a { color: var(--text-2); white-space: nowrap; }

/* ---------- WhatsApp ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 32px -12px var(--shadow); transition: transform .2s var(--ease), background-color .2s; }
.wa-float:hover { background: var(--accent-hover); transform: translateY(-2px); }
.wa-float .ico { width: 24px; height: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid, .contact, .philo, .step-panel { grid-template-columns: minmax(0, 1fr); }
    .step-panel img { order: -1; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .foot-grid { grid-template-columns: minmax(0, 1fr); }
    .need-copy .btn { align-self: stretch; }
    .cases-cta .btn { width: 100%; }
    .wa-float { right: 12px; bottom: 12px; }
}

/* ---------- Glass fallbacks ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-head, .needs-options, .need-panel, .machine { background: var(--ink-2); }
}
@media (prefers-reduced-transparency: reduce) {
    .site-head, .needs-options, .need-panel, .machine { background: var(--ink-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
