:root {
  --navy: #0b192c;
  --navy-raised: #15253f;
  --slate: #64748b;
  --slate-light: #94a3b8;
  --blue: #0284c7;
  --blue-hover: #0369a1;
  --cyan-brand: #12bbdd;
  --orange-brand: #ff6500;
  --white: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --error: #b42318;
  --shadow: 0 20px 60px rgb(11 25 44 / 8%);
  font-family: "Google Sans Flex", "Google Sans", Roboto, ui-sans-serif, system-ui, sans-serif;
  color: var(--navy);
  background: var(--white);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  background: var(--white);
  border-radius: 999px;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 5vw, 5rem);
  background: rgb(255 255 255 / 88%);
  border-bottom: 1px solid rgb(226 232 240 / 70%);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.brand img { display: block; width: 148px; height: 42px; object-fit: contain; }
nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 2rem); }
nav a { text-decoration: none; font-size: 0.92rem; font-weight: 650; }
.admin-link { color: var(--slate); }
.admin-link:hover { color: var(--navy); }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  color: var(--white);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 24px rgb(2 132 199 / 18%);
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(0.97); }
.button-primary { background: var(--blue); }
.button-primary:hover { background: var(--blue-hover); }
.button-secondary { background: var(--navy); border-radius: 0.8rem; }
.button-secondary:hover { background: var(--navy-raised); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  min-height: 76vh;
  padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 5vw, 5rem);
  overflow: hidden;
  background: linear-gradient(135deg, var(--white) 40%, #eefbfe);
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 6.2vw, 6.5rem); line-height: 0.94; letter-spacing: -0.075em; }
.hero-copy { max-width: 600px; margin: 1.7rem 0 2rem; color: var(--slate); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.hero-visual { margin: 0 -8vw 0 0; }
.hero-visual img { display: block; width: 100%; height: clamp(460px, 52vw, 650px); min-height: 460px; object-fit: cover; object-position: center; border-radius: 2rem 0 0 2rem; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 1rem; color: var(--blue); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }

.section { max-width: 1240px; margin: 0 auto; padding: 7rem clamp(1.25rem, 5vw, 3rem); }
.section-heading { max-width: 680px; margin-bottom: 3rem; }
.section h2, .closing-cta h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.055em; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.service-card { padding: clamp(1.5rem, 4vw, 2.6rem); background: var(--surface); border: 1px solid var(--border); border-radius: 1.5rem; }
.service-card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.service-icon { display: grid; width: 3.25rem; height: 3.25rem; flex: 0 0 auto; color: var(--blue); background: #e6f7fc; border-radius: 1rem; place-items: center; }
.service-icon svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-icon-design { width: 6.8rem; background: transparent; }
.cad-software-icons { display: flex; align-items: center; gap: .35rem; }
.service-icon .cad-software-icons svg { width: 3rem; height: 3rem; overflow: visible; stroke: none; }
.sw-top { fill: #ff3131; }
.sw-side { fill: #920000; }
.sw-front { fill: #c40000; }
.solidworks-logo text { fill: var(--white); font-size: 12px; font-weight: 900; letter-spacing: -.8px; text-anchor: middle; dominant-baseline: middle; }
.acad-back { fill: #780027; }
.acad-fold { fill: #ef4e82; }
.acad-front { fill: #e90046; }
.autocad-logo text { fill: var(--white); font-size: 27px; font-weight: 700; text-anchor: middle; }
.service-icon-gear { color: #737b87; background: #eceff2; }
.service-icon .flat-gear { width: 2.55rem; height: 2.55rem; fill: currentColor; stroke: none; }
.service-icon .flat-gear .gear-hole { fill: #eceff2; }
.service-card h3 { margin: 0.4rem 0; font-size: 1.65rem; letter-spacing: -0.035em; }
.service-card p { color: var(--slate); }
.service-number { margin: 0; color: var(--blue) !important; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; }
.service-summary { color: var(--navy) !important; font-weight: 700; }
.text-link { color: var(--blue); font-weight: 750; text-decoration: none; }

.process-section, .trust-section { max-width: 1240px; margin: 0 auto; padding: 7rem clamp(1.25rem, 5vw, 3rem); }
.process-section { border-top: 1px solid var(--border); }
.process-section h2, .trust-section h2 { margin: 0; font-size: clamp(2rem, 3.7vw, 3.2rem); line-height: 1.04; letter-spacing: -.045em; }
.process-section .section-heading > p:last-child, .trust-section .section-heading > p:last-child { color: var(--slate); }
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; overflow: hidden; background: var(--border); border: 1px solid var(--border); border-radius: 1.5rem; list-style: none; }
.process-steps li { min-height: 250px; padding: 1.75rem; background: var(--white); }
.process-steps span { color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.process-steps h3 { margin: 2.5rem 0 .65rem; font-size: 1.2rem; letter-spacing: -.025em; }
.process-steps p { margin: 0; color: var(--slate); font-size: .9rem; }

.trust-section { padding-top: 5rem; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.trust-grid article { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 1.2rem; }
.trust-grid article > span { display: grid; width: 2.5rem; height: 2.5rem; margin-bottom: 1.4rem; place-items: center; color: var(--blue); background: #e6f7fc; border-radius: .75rem; font-weight: 800; }
.trust-grid article > span svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-grid h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.trust-grid p { margin: 0; color: var(--slate); font-size: .88rem; }
.trust-note { margin: 1.5rem 0 0; color: var(--slate); font-size: .85rem; }
.trust-note a { color: var(--blue); font-weight: 700; }

.industries-section { padding: 6rem clamp(1.25rem, 5vw, 3rem) 7rem; background: var(--surface); }
.industries-header { display: flex; justify-content: center; margin-bottom: 3.5rem; }
.industries-badge { display: inline-block; max-width: 720px; margin: 0; padding: 0.85rem 2.1rem; color: var(--white); background: var(--navy); border-radius: 999px; font-size: clamp(1.15rem, 2.4vw, 1.7rem); line-height: 1.25; letter-spacing: -0.01em; text-align: center; }
.industries-content { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); max-width: 1240px; margin: 0 auto; }
.floating-words { position: relative; min-height: 340px; }
.floating-word { position: absolute; left: var(--x); top: var(--y); color: var(--slate); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; animation: float-word var(--duration, 7s) ease-in-out var(--delay, 0s) infinite; }
.floating-word--sm { font-size: 1.05rem; opacity: 0.55; }
.floating-word--md { font-size: 1.55rem; opacity: 0.72; }
.floating-word--lg { font-size: 2.1rem; opacity: 0.88; }
.floating-word--xl { font-size: 2.75rem; opacity: 1; }
.industries-copy { max-width: 480px; }
.industries-copy > p:not(.eyebrow) { margin: 1.5rem 0 0; color: var(--slate); font-size: 1.08rem; }
.industry-categories { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.industry-categories li { display: grid; gap: .15rem; padding: .9rem 1rem; border-bottom: 1px solid var(--border); }
.industry-categories strong { font-size: 1.18rem; letter-spacing: -.02em; }
.industry-categories small { color: var(--slate); font-size: .78rem; }

@keyframes float-word {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1.5deg); }
}

.material-showcase { padding: 6rem 0 7rem; overflow: hidden; background: var(--navy); color: var(--white); }
.carousel-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; max-width: 1380px; margin: 0 auto 2.5rem; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.carousel-heading > div:first-child { max-width: 700px; }
.carousel-heading h2 { margin: 0; font-size: clamp(2rem, 3.7vw, 3.2rem); line-height: 1.04; letter-spacing: -.045em; }
.carousel-heading p:not(.eyebrow) { max-width: 610px; margin: 1rem 0 0; color: var(--slate-light); }
.carousel-controls { display: flex; flex: 0 0 auto; gap: .65rem; }
.carousel-position { min-width: 3rem; align-self: center; color: var(--slate-light); font-size: .75rem; font-weight: 700; text-align: center; }
.project-heading .carousel-position { color: var(--slate); }
.carousel-controls button { display: grid; width: 48px; min-height: 48px; padding: 0; place-items: center; color: var(--white); background: var(--navy-raised); border: 1px solid rgb(255 255 255 / 18%); border-radius: 50%; cursor: pointer; }
.carousel-controls button:hover { background: var(--blue); }
.material-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(310px, 390px); gap: 1.25rem; padding: 0 max(clamp(1.25rem, 5vw, 3rem), calc((100vw - 1380px) / 2 + 3rem)) 1.2rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--blue) var(--navy-raised); }
.featured-material-card { overflow: hidden; color: var(--navy); background: var(--white); border-radius: 1.35rem; scroll-snap-align: start; box-shadow: 0 20px 50px rgb(0 0 0 / 18%); }
.featured-material-card > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }
.featured-material-content { padding: 1.4rem; }
.material-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.material-card-heading h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.material-card-heading span { flex: 0 0 auto; padding: .25rem .55rem; color: var(--blue-hover); background: #e6f7fc; border-radius: 999px; font-size: .72rem; font-weight: 750; }
.featured-material-content > p { min-height: 5.2em; margin: .65rem 0 1rem; color: var(--slate); font-size: .92rem; }
.featured-material-content ul { min-height: 5.2rem; margin: 0 0 1.15rem; padding-left: 1.2rem; color: var(--navy); font-size: .88rem; }
.featured-material-content li::marker { color: var(--orange-brand); }
.carousel-hint { max-width: 1380px; margin: .4rem auto 0; padding: 0 clamp(1.25rem, 5vw, 3rem); color: var(--slate-light); font-size: .8rem; }

.project-showcase { padding: 6rem 0; overflow: hidden; background: var(--surface); }
.project-heading { margin-bottom: 2rem; }
.project-heading h2, .faq-section h2, .home-contact h2 { margin: 0; font-size: clamp(2rem, 3.7vw, 3.2rem); line-height: 1.04; letter-spacing: -.045em; }
.project-heading p:not(.eyebrow) { color: var(--slate); }
.project-heading .carousel-controls button { color: var(--navy); background: var(--white); border-color: var(--border); }
.project-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 290px; gap: 1rem; padding: 0 max(clamp(1.25rem, 5vw, 3rem), calc((100vw - 1380px) / 2 + 3rem)) 1rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--blue) var(--border); }
.project-card { overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: 1.1rem; scroll-snap-align: start; }
.project-card figure { position: relative; margin: 0; }
.project-card img { display: block; width: 100%; height: 165px; object-fit: cover; }
.project-card figcaption { position: absolute; right: .65rem; bottom: .65rem; padding: .25rem .5rem; color: var(--white); background: rgb(11 25 44 / 82%); border-radius: 999px; font-size: .66rem; font-weight: 750; }
.project-card-content { padding: 1rem 1.05rem 1.2rem; }
.project-card-content h3 { margin: .2rem 0 .45rem; font-size: 1.08rem; line-height: 1.2; letter-spacing: -.02em; }
.project-card-content > p:last-child { margin: 0; color: var(--slate); font-size: .86rem; line-height: 1.55; }
.project-material { margin: 0; color: var(--blue); font-size: .72rem; font-weight: 800; }

.faq-section { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 7vw, 7rem); max-width: 1240px; margin: 0 auto; padding: 7rem clamp(1.25rem, 5vw, 3rem); }
.faq-section header > p:last-child { color: var(--slate); }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { position: relative; padding: 1.35rem 2.5rem 1.35rem 0; font-size: 1.02rem; font-weight: 750; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 1.15rem; right: .25rem; content: "+"; color: var(--blue); font-size: 1.45rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 680px; margin: -.25rem 0 1.35rem; color: var(--slate); }

.home-contact { display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 1240px; margin: 0 auto; padding: 3rem clamp(1.25rem, 5vw, 3rem) 7rem; }
.home-contact > div:first-child { max-width: 710px; }
.home-contact > div:first-child > p:last-child { color: var(--slate); }
.home-contact-actions { display: flex; align-items: center; flex: 0 0 auto; flex-direction: column; gap: .8rem; }

.contact-hero { max-width: 1240px; margin: 0 auto; padding: 7rem clamp(1.25rem, 5vw, 3rem) 4rem; }
.contact-hero h1 { max-width: 780px; margin: 0; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .96; letter-spacing: -.06em; }
.contact-hero > p:last-child { max-width: 680px; color: var(--slate); font-size: 1.15rem; }
.contact-layout { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); gap: 1.25rem; max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem) 6rem; }
.contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-details article { padding: 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: 1.2rem; }
.contact-details article > span { color: var(--blue); font-size: .72rem; font-weight: 800; }
.contact-details h2 { margin: .35rem 0; font-size: 1.15rem; line-height: 1.3; }
.contact-details h2 a { text-decoration: none; }
.contact-details p { margin: .45rem 0; color: var(--slate); font-size: .9rem; }
.contact-map { min-height: 480px; overflow: hidden; background: var(--surface); border-radius: 1.5rem; }
.contact-map iframe { width: 100%; height: 100%; min-height: 480px; border: 0; }
.contact-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 0 2rem 2rem; padding: clamp(2.5rem, 6vw, 5rem); color: var(--white); background: var(--navy); border-radius: 2rem; }
.contact-cta h2 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.05em; }
.contact-cta p:not(.eyebrow) { color: var(--slate-light); }
.contact-cta .button { flex: 0 0 auto; }
.site-footer a { text-decoration: none; }

.engineering-story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); max-width: 1380px; margin: 0 auto; padding: 2rem clamp(1.25rem, 5vw, 3rem) 8rem; }
.engineering-story > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2rem; }
.engineering-copy { max-width: 520px; }
.engineering-copy h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 0.95; letter-spacing: -0.06em; }
.engineering-copy > p:not(.eyebrow) { margin: 1.5rem 0; color: var(--slate); font-size: 1.08rem; }

/* Escala editorial contenida para la portada. */
.home-page .hero h1 { max-width: 650px; font-size: clamp(2.75rem, 4.8vw, 5rem); line-height: .98; letter-spacing: -.06em; }
.home-page .section h2, .home-page .closing-cta h2 { font-size: clamp(2rem, 3.7vw, 3.2rem); line-height: 1.04; letter-spacing: -.045em; }
.home-page .service-card h3 { font-size: 1.4rem; letter-spacing: -.025em; }
.home-page .engineering-copy h2 { font-size: clamp(2.2rem, 4vw, 3.75rem); line-height: 1; letter-spacing: -.05em; }

.closing-cta { margin: 2rem; padding: clamp(3rem, 8vw, 7rem); color: var(--white); text-align: center; background: var(--navy); border-radius: 2rem; }
.closing-cta p { margin: 1.3rem auto 2rem; color: var(--slate-light); }
.site-footer { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: 3rem 1.25rem; color: var(--slate); text-align: center; }
.site-footer p { margin: .2rem 0; }
.footer-links { display: flex; justify-content: center; gap: 1rem; font-size: .78rem; }
.footer-links a { text-decoration: underline; text-underline-offset: .2em; }
.footer-mark { width: 28px; height: 28px; object-fit: contain; }

.legal-page { max-width: 820px; margin: 0 auto; padding: 7rem clamp(1.25rem, 5vw, 3rem); }
.legal-page h1 { margin: 0 0 1.5rem; font-size: clamp(2.6rem, 6vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.legal-page h2 { margin: 2.25rem 0 .5rem; font-size: 1.25rem; }
.legal-page p { color: var(--slate); }
.legal-page a { color: var(--blue); }
.legal-intro { font-size: 1.12rem; }
.legal-updated { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .82rem; }
.whatsapp-fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 4; display: inline-flex; min-height: 48px; align-items: center; gap: .55rem; padding: .7rem 1rem; color: var(--white); background: #168c55; border-radius: 999px; box-shadow: 0 14px 36px rgb(11 25 44 / 24%); font-size: .82rem; font-weight: 750; text-decoration: none; }
.whatsapp-fab:hover { background: #107544; transform: translateY(-1px); }
.whatsapp-fab svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (max-width: 720px) {
  .site-header { align-items: flex-start; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { margin: 1rem -1.5rem -5rem 0; }
  .hero-visual img { min-height: 320px; border-radius: 1.5rem 0 0; }
  .service-grid { grid-template-columns: 1fr; }
  .engineering-story { grid-template-columns: 1fr; padding-bottom: 5rem; }
  .industries-content { grid-template-columns: 1fr; }
  .floating-words { min-height: 220px; }
  .industries-copy { max-width: none; margin-top: 2.5rem; }
  .closing-cta { margin: 0.75rem; }
  .material-showcase { padding-block: 4.5rem; }
  .carousel-heading { align-items: start; flex-direction: column; }
  .material-carousel { grid-auto-columns: minmax(280px, 84vw); }
  .featured-material-content > p, .featured-material-content ul { min-height: auto; }
  .faq-section, .contact-layout { grid-template-columns: 1fr; }
  .home-contact, .contact-cta { align-items: flex-start; flex-direction: column; }
  .home-contact-actions { align-items: flex-start; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-map, .contact-map iframe { min-height: 360px; }
  .contact-cta { margin: .75rem; }
  .process-steps, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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