:root {
  --blue: #173f91;
  --blue2: #315fe1;
  --blue3: #0c2a67;
  --ink: #101a2b;
  --muted: #5e6b7d;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: rgba(23, 63, 145, .16);
  --shadow: 0 24px 60px rgba(11, 36, 86, .14);
  --radius: 26px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: var(--container); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 14px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: #0c2a67;
  text-decoration: none;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(23,63,145,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 12px 36px rgba(11,35,80,.11); background: rgba(255,255,255,.98); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-symbol {
  width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecf1f8 5%, #68778d 30%, #fff 48%, #566479 65%, #cbd4df 88%);
  box-shadow: inset 0 0 0 1px rgba(13,37,80,.15), 0 9px 24px rgba(14,38,83,.14);
}
.brand-symbol span { font-weight: 1000; font-size: 1.6rem; color: #17449d; text-shadow: 0 1px 0 #fff; }
.brand-text { display: grid; line-height: 1.18; max-width: 410px; }
.brand-text strong { color: var(--blue); font-size: .77rem; letter-spacing: .04em; text-transform: uppercase; }
.brand-text small { margin-top: 2px; color: #44536a; font-size: .69rem; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { position: relative; text-decoration: none; font-size: .82rem; font-weight: 850; color: #263651; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 100%; height: 2px; background: var(--blue2); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .22s ease, opacity .22s ease; }

.hero {
  position: relative;
  min-height: 790px;
  display: grid;
  align-items: center;
  padding: 150px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 81% 28%, rgba(69,111,238,.18), transparent 24%),
    linear-gradient(135deg, #f9fbff 0%, #eef3ff 48%, #fff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  width: 680px; height: 680px;
  right: -230px; top: 70px;
  background: linear-gradient(135deg, #143a88, #3769ed);
  transform: rotate(38deg);
  border-radius: 86px;
  box-shadow: 0 40px 80px rgba(24,63,145,.20);
}
.hero-lines::before, .hero-lines::after { content: ""; position: absolute; border: 5px solid rgba(49,95,225,.76); transform: rotate(38deg); }
.hero-lines::before { width: 330px; height: 330px; right: 90px; top: 200px; }
.hero-lines::after { width: 210px; height: 210px; right: 420px; bottom: -70px; opacity: .38; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 68px; align-items: center; }
.kicker, .small-label, .section-title > p { margin: 0 0 14px; color: var(--blue2); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 950; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 24px; font-size: clamp(3.3rem, 6.5vw, 6.5rem); line-height: .93; letter-spacing: -.055em; }
h1 span { display: block; color: var(--blue2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 21px; border-radius: 14px; text-decoration: none; font-weight: 900; font-size: .88rem; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue2)); box-shadow: 0 14px 26px rgba(31,77,182,.22); }
.btn-secondary { color: var(--blue); background: #fff; border: 1px solid rgba(23,63,145,.20); }
.hero-contact { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 34px; font-size: .78rem; color: #44536a; }
.hero-contact a { color: var(--blue); text-decoration: none; font-weight: 900; }
.hero-machine { min-height: 430px; display: grid; place-items: center; }
.machine-frame { position: relative; width: min(490px, 100%); aspect-ratio: 1.1; border-radius: 44px; background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(232,239,251,.88)); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 35px 90px rgba(4,24,70,.24); overflow: hidden; }
.machine-frame::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(23,63,145,.13); border-radius: 32px; }
.machine-disc { position: absolute; border-radius: 50%; background: conic-gradient(from 20deg, #59687c, #f8fbff, #8d9aac, #e6ecf3, #344256, #e5ebf2, #59687c); box-shadow: 0 18px 36px rgba(11,31,70,.25); }
.disc-1 { width: 220px; height: 220px; left: 44px; top: 66px; }
.disc-2 { width: 105px; height: 105px; right: 52px; top: 58px; }
.machine-disc::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: #173f91; box-shadow: inset 0 0 0 14px #eaf0f8; }
.machine-piston { position: absolute; width: 235px; height: 76px; right: 34px; bottom: 94px; border-radius: 18px; background: linear-gradient(180deg, #f8fbff, #617187 28%, #dfe6ef 50%, #69788c 72%, #f7f9fc); transform: rotate(-8deg); box-shadow: 0 18px 32px rgba(8,30,72,.22); }
.machine-rod { position: absolute; width: 165px; height: 26px; right: 6px; bottom: 118px; border-radius: 999px; background: linear-gradient(180deg, #f7f9fc, #8290a2 48%, #dce3ec); transform: rotate(-8deg); }
.machine-label { position: absolute; left: 45px; bottom: 35px; color: var(--blue); font-size: .78rem; letter-spacing: .2em; font-weight: 1000; }

.section { padding: 110px 0; }
.light { background: #fff; }
.section-title h2, .presentation-main h2, .hydraulic-copy h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 5rem); line-height: .95; letter-spacing: -.045em; }
.section-title.wide { margin-bottom: 42px; }
.about-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.content-card { padding: 42px; border-radius: var(--radius); background: #f5f8ff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.content-card p { margin: 0; font-size: clamp(1.08rem, 1.8vw, 1.38rem); line-height: 1.8; color: #263651; }

.blue-section { color: #fff; background: linear-gradient(135deg, #0b285f, #194498 55%, #2f62db); position: relative; overflow: hidden; }
.blue-section::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -250px; border: 36px solid rgba(255,255,255,.08); transform: rotate(45deg); }
.mission-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mission-card { position: relative; min-height: 430px; padding: 44px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mission-card .num { display: inline-block; color: #8db0ff; font-size: .74rem; font-weight: 950; letter-spacing: .15em; margin-bottom: 75px; }
.mission-card h2 { font-size: clamp(2.8rem, 5vw, 5rem); line-height: .9; letter-spacing: -.04em; margin-bottom: 28px; }
.mission-card p { margin: 0; color: rgba(255,255,255,.83); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { min-height: 205px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-radius: 22px; background: linear-gradient(145deg, #f7f9fe, #edf3ff); border: 1px solid rgba(23,63,145,.10); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 22px 45px rgba(10,40,95,.12); border-color: rgba(49,95,225,.3); }
.service-card span { color: var(--blue2); font-size: .72rem; font-weight: 1000; letter-spacing: .15em; }
.service-card p { margin: 0; font-weight: 800; color: #263651; }

.dark-section { color: #fff; background: #0e1c31; position: relative; overflow: hidden; }
.dark-section::before { content: ""; position: absolute; width: 680px; height: 680px; left: -330px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(47,98,219,.35), transparent 70%); }
.presentation-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.presentation-main .small-label { color: #7ea7ff; }
.presentation-main h2 { max-width: 760px; }
.component-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.component-tags span { padding: 10px 13px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.88); font-size: .84rem; font-weight: 800; }
.highlight-line { margin: 28px 0 0; padding-left: 18px; border-left: 3px solid #5b88ff; color: #fff; font-weight: 850; }
.presentation-side { padding: 36px; border-radius: var(--radius); background: linear-gradient(145deg, #1e4aa5, #315fe1); box-shadow: 0 28px 65px rgba(0,0,0,.25); }
.presentation-side ul { margin: 0; padding-left: 20px; display: grid; gap: 14px; color: rgba(255,255,255,.9); }

.hydraulic-section { background: linear-gradient(135deg, #f8faff, #eef4ff); }
.hydraulic-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.hydraulic-visual { min-height: 420px; display: grid; place-items: center; overflow: hidden; }
.hydraulic-cylinder { position: relative; width: min(520px, 100%); height: 260px; transform: rotate(-8deg); }
.cylinder-body { position: absolute; width: 60%; height: 114px; left: 4%; top: 74px; border-radius: 22px; background: linear-gradient(180deg, #f9fbff, #68778c 27%, #eef3f8 49%, #7b899c 72%, #dce4ed); box-shadow: 0 30px 55px rgba(12,38,84,.20); }
.cylinder-head { position: absolute; width: 84px; height: 155px; left: 1%; top: 53px; border-radius: 22px; background: linear-gradient(180deg, #12377e, #3769ed); box-shadow: 0 18px 34px rgba(23,63,145,.27); }
.cylinder-rod { position: absolute; width: 48%; height: 42px; left: 51%; top: 109px; border-radius: 999px; background: linear-gradient(180deg, #fff, #7d8a9d 47%, #edf2f7 70%, #617085); }
.hose { position: absolute; width: 180px; height: 180px; right: 10%; top: 6px; border: 16px solid #315fe1; border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; }
.hydraulic-list { display: grid; gap: 4px; margin-top: 30px; }
.hydraulic-list div { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.hydraulic-list span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue2); font-size: .72rem; font-weight: 950; }
.hydraulic-list p { margin: 0; font-weight: 800; }

.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.value { min-height: 150px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 20px; background: #f4f7fd; border: 1px solid var(--line); }
.value span { color: var(--blue2); font-size: .72rem; font-weight: 1000; letter-spacing: .14em; }
.value strong { text-transform: uppercase; font-size: .92rem; }

.quote-section { padding: 95px 0; color: #fff; background: linear-gradient(135deg, #173f91, #315fe1); position: relative; overflow: hidden; }
.quote-section::after { content: "“"; position: absolute; right: 4%; top: -40px; color: rgba(255,255,255,.09); font-size: 20rem; font-weight: 1000; line-height: 1; }
.quote-section blockquote { position: relative; z-index: 1; max-width: 980px; margin: 0 0 18px; font-size: clamp(2.4rem, 6vw, 6rem); line-height: .94; letter-spacing: -.045em; font-weight: 900; }
.quote-section p { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.72); font-size: .76rem; letter-spacing: .18em; font-weight: 850; }

.brands-section { color: #fff; background: #0b1525; }
.light-title > p { color: #7ea7ff; }
.brand-list { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 38px; }
.brand-list span { padding: 13px 16px; border-radius: 13px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.88); font-weight: 800; }

.catalog-section { background: #f4f7fb; }
.pdf-card { overflow: hidden; border-radius: 28px; border: 1px solid rgba(23,63,145,.20); background: #fff; box-shadow: 0 30px 80px rgba(12,39,88,.16); }
.pdf-bar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 22px; color: #fff; background: linear-gradient(90deg, #0c2a67, #315fe1); }
.pdf-bar strong { font-size: .78rem; letter-spacing: .18em; }
.pdf-bar a { color: #fff; font-size: .84rem; font-weight: 900; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.55); }
.pdf-frame-wrap { position: relative; padding: 12px; background: #eef2f8; }
.pdf-frame-wrap::before { content: ""; position: absolute; inset: 3px; border-radius: 18px; box-shadow: inset 0 0 22px rgba(16,44,97,.10); pointer-events: none; z-index: 2; }
.pdf-frame { display: block; width: 100%; height: 780px; border: 1px solid rgba(23,63,145,.16); border-radius: 18px; background: #e8edf5; }
.pdf-mobile-fallback { display: none; padding: 34px 22px; text-align: center; }
.pdf-mobile-fallback p { margin-bottom: 16px; color: var(--blue); font-weight: 1000; letter-spacing: .15em; }

.contact-section { background: linear-gradient(135deg, #fff, #edf3ff); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.contact-card { overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card > a, .contact-card > div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 23px 25px; border-bottom: 1px solid rgba(23,63,145,.09); text-decoration: none; }
.contact-card > :last-child { border-bottom: 0; }
.contact-card span { color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.contact-card strong { overflow-wrap: anywhere; }
.contact-card > a:hover { background: #f6f9ff; }

.footer { padding: 32px 0; color: rgba(255,255,255,.84); background: #070e19; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; }
.footer-grid strong { max-width: 680px; font-size: .85rem; }
.footer-grid > div { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 18px; }
.footer a { color: #fff; text-decoration: none; font-size: .84rem; font-weight: 850; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 48px; height: 48px; border: 0; border-radius: 15px; color: #fff; background: #315fe1; box-shadow: 0 14px 32px rgba(16,56,143,.27); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* El contenido es visible por defecto. Solo se oculta para animación cuando JS cargó correctamente. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .68s cubic-bezier(.2,.7,.2,1), transform .68s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .delay-1 { transition-delay: .10s; }
.noscript-note { padding: 12px 16px; text-align: center; background: #fff3cd; color: #503e00; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .header-inner { min-height: 74px; }
  .menu-toggle { display: block; position: relative; z-index: 103; }
  .main-nav { position: fixed; inset: 0; z-index: 102; flex-direction: column; justify-content: center; gap: 28px; background: rgba(255,255,255,.98); transform: translateX(100%); transition: transform .25s ease; }
  .main-nav a { font-size: 1.35rem; }
  body.menu-open .main-nav { transform: translateX(0); }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: auto; padding-top: 128px; }
  .hero::before { width: 520px; height: 520px; right: -330px; top: 260px; opacity: .62; }
  .hero-grid, .about-grid, .presentation-grid, .hydraulic-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .hero-machine { min-height: 390px; }
  .about-grid, .presentation-grid, .hydraulic-grid, .contact-grid { gap: 38px; }
  .mission-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div { justify-content: flex-start; }
}

@media (max-width: 700px) {
  :root { --container: min(100% - 28px, 1180px); --radius: 22px; }
  .section { padding: 78px 0; }
  .brand-symbol { width: 44px; height: 44px; border-radius: 13px; }
  .brand-text { max-width: 235px; }
  .brand-text strong { font-size: .62rem; }
  .brand-text small { display: none; }
  h1 { font-size: clamp(2.8rem, 14vw, 4.7rem); }
  .hero { padding-top: 112px; padding-bottom: 78px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-contact { flex-direction: column; gap: 6px; }
  .hero-machine { min-height: 310px; }
  .machine-frame { width: 100%; border-radius: 28px; }
  .disc-1 { width: 160px; height: 160px; left: 26px; top: 45px; }
  .disc-2 { width: 76px; height: 76px; right: 30px; top: 38px; }
  .machine-piston { width: 185px; height: 58px; right: 22px; bottom: 70px; }
  .machine-rod { width: 115px; height: 20px; bottom: 87px; }
  .machine-label { left: 28px; bottom: 22px; }
  .content-card, .mission-card, .presentation-side { padding: 28px; }
  .mission-card { min-height: auto; }
  .mission-card .num { margin-bottom: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 170px; }
  .hydraulic-visual { min-height: 300px; }
  .hydraulic-cylinder { transform: scale(.78) rotate(-8deg); }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .quote-section { padding: 76px 0; }
  .pdf-bar { align-items: flex-start; flex-direction: column; padding: 16px 18px; }
  .pdf-frame { height: 540px; }
  .contact-card > a, .contact-card > div { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 520px) {
  .pdf-frame-wrap { display: none; }
  .pdf-mobile-fallback { display: block; }
  .values-grid { grid-template-columns: 1fr; }
}
