/* ===== Laymon Transformadores — static site styles ===== */
:root {
  --navy: #1f2c83;
  --navy-dark: #161f5e;
  --red: #e2231a;
  --red-dark: #b81b14;
  --ink: #1a1d26;
  --slate: #5a6072;
  --line: #e3e6ef;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-navy-grad: linear-gradient(135deg, #1f2c83 0%, #2a3aa8 60%, #161f5e 100%);
  --shadow-sm: 0 2px 8px rgba(31,44,131,.08);
  --shadow-md: 0 12px 32px rgba(31,44,131,.14);
  --maxw: 1180px;
  --r: 14px;
  --ff-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ff-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }

h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.05; letter-spacing: .01em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .18em;
  color: var(--red); font-weight: 600; font-size: .92rem; margin-bottom: .4rem;
}

/* ===== Header / nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 12px 24px; max-width: var(--maxw); margin: 0 auto;
}
.nav-logo img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  display: block; padding: 10px 14px; font-family: var(--ff-display);
  font-size: 1.08rem; text-transform: uppercase; letter-spacing: .04em;
  font-weight: 600; color: var(--ink);
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a.active { border-bottom: 3px solid var(--red); }
.has-sub > a::after { content: " ▾"; font-size: .7em; color: var(--slate); }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-md); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s;
}
.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { padding: 9px 12px; border-radius: 7px; text-transform: none; font-size: 1rem; letter-spacing: 0; }
.submenu a:hover { background: var(--bg-soft); }
.nav-cta {
  background: var(--red); color: #fff !important; padding: 11px 20px !important;
  border-radius: 8px; letter-spacing: .04em;
}
.nav-cta:hover { background: var(--red-dark); color:#fff !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative; background: var(--bg-navy-grad); color: #fff;
  overflow: hidden; padding: 96px 0 104px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0);
  background-size: 28px 28px; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -8%; bottom: -40%; width: 60%; height: 160%;
  background: radial-gradient(closest-side, rgba(226,35,26,.35), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); text-transform: uppercase; }
.hero h1 .accent { color: #ff5b52; display: block; }
.hero p.lead { font-size: 1.2rem; max-width: 46ch; margin: 18px 0 28px; color: #d6dcf5; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.badge {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 7px 16px; font-size: .92rem; font-weight: 600;
}
.hero-img { position: relative; }
.hero-img img { filter: drop-shadow(0 24px 48px rgba(0,0,0,.4)); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .05em;
  font-weight: 600; font-size: 1.08rem; padding: 13px 28px; border-radius: 9px;
  cursor: pointer; border: 2px solid transparent; transition: all .2s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color:#fff; transform: translateY(-2px); }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Sections ===== */
section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); text-transform: uppercase; color: var(--navy); }
.section-head p { color: var(--slate); margin-top: 10px; font-size: 1.1rem; }

/* ===== Feature cards ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-navy-grad); color: #fff; margin-bottom: 16px;
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.45rem; color: var(--navy); margin-bottom: 8px; }
.feature p { color: var(--slate); font-size: .98rem; }

/* ===== Product grid ===== */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .pimg {
  background: var(--bg-soft); border-radius: 10px; padding: 12px; aspect-ratio: 1; display: grid; place-items: center;
}
.product-card h3 { font-size: 1.55rem; color: var(--navy); }
.product-card p { color: var(--slate); font-size: .96rem; margin: 6px 0 12px; }
.product-card .arrow { font-family: var(--ff-display); color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* ===== Spec / detail pages ===== */
.page-head {
  background: var(--bg-navy-grad); color: #fff; padding: 64px 0; position: relative; overflow: hidden;
}
.page-head::before {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 26px 26px;
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; }
.page-head p { color: #d6dcf5; margin-top: 8px; font-size: 1.12rem; }
.crumbs { font-size: .9rem; color: #aab2e0; margin-bottom: 14px; }
.crumbs a { color: #d6dcf5; }

.detail-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.detail-img { background: var(--bg-soft); border-radius: var(--r); padding: 24px; border: 1px solid var(--line); }
.spec-list { list-style: none; }
.spec-list > li {
  padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink);
}
.spec-list > li::before {
  content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 12px;
  background: var(--red); border-radius: 3px; transform: rotate(45deg);
}
.spec-list ul { list-style: none; margin: 8px 0 0 6px; }
.spec-list ul li { padding: 4px 0 4px 18px; color: var(--slate); position: relative; }
.spec-list ul li::before { content:"–"; position:absolute; left:0; color: var(--navy); }
.note { background: var(--bg-soft); border-left: 4px solid var(--navy); padding: 16px 20px; border-radius: 8px; margin-top: 20px; color: var(--slate); }

/* Detail content blocks (Aplicaciones / Características) */
.detail-block { margin-top: 40px; }
.detail-block h2 { color: var(--navy); font-size: 1.8rem; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.detail-block h4 { color: var(--red); font-size: 1.15rem; margin: 16px 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 600; color: var(--navy); font-size: .98rem; }
.feature-list { list-style: none; }
.feature-list > li { padding: 8px 0 8px 26px; position: relative; }
.feature-list > li::before { content:""; position:absolute; left:0; top:16px; width:9px;height:9px;background:var(--navy);border-radius:2px;transform:rotate(45deg); }
.feature-list ul { list-style: none; margin: 4px 0 4px 8px; }
.feature-list ul li { padding: 3px 0 3px 18px; color: var(--slate); position: relative; }
.feature-list ul li::before { content:"–"; position:absolute; left:0; color:var(--red); }
.ficha-btn {
  display: inline-flex; align-items: center; gap: 10px; background: #fff;
  border: 2px solid var(--navy); color: var(--navy); font-family: var(--ff-display);
  text-transform: uppercase; letter-spacing: .04em; font-weight: 600; font-size: 1.02rem;
  padding: 11px 22px; border-radius: 9px; transition: all .2s; margin-top: 16px;
}
.ficha-btn:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.ficha-btn svg { width: 20px; height: 20px; }

/* Dimension tables */
.dim-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
table.dim {
  width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; background: #fff;
}
table.dim caption { caption-side: top; text-align: left; font-family: var(--ff-display); font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; padding: 14px 16px 6px; font-size: 1.05rem; }
table.dim thead th {
  background: var(--navy); color: #fff; font-family: var(--ff-display); font-weight: 600;
  letter-spacing: .03em; padding: 10px 12px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); white-space: nowrap;
}
table.dim thead tr.grp th { background: var(--navy-dark); text-transform: uppercase; font-size: .9rem; }
table.dim tbody td { padding: 8px 12px; text-align: center; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
table.dim tbody td:first-child { text-align: left; font-weight: 600; color: var(--navy); }
table.dim tbody tr:nth-child(even) { background: var(--bg-soft); }
table.dim tbody tr:hover { background: #eef1fb; }
.dim-note { font-size: .85rem; color: var(--slate); margin-top: 10px; font-style: italic; }
.subtable-title { font-family: var(--ff-display); color: var(--red); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin: 28px 0 10px; font-size: 1.1rem; }

/* ===== About ===== */
.mvv { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.mvv .card { background:#fff; border:1px solid var(--line); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow-sm); }
.mvv .card h3 { color: var(--red); font-size: 1.6rem; margin-bottom: 10px; }
.mvv .card p, .mvv .card li { color: var(--slate); }
.mvv .card ul { list-style: none; margin-top: 6px; }
.mvv .card ul li { padding: 5px 0; }
.mvv .card ul strong { color: var(--navy); }
.founder { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.founder img { border-radius: var(--r); box-shadow: var(--shadow-md); }
.founder h2 { color: var(--navy); font-size: 2.2rem; text-transform: uppercase; margin-bottom: 12px; }
.founder p { margin-bottom: 14px; color: var(--ink); }

/* ===== CTA strip ===== */
.cta-strip { background: var(--red); color: #fff; text-align: center; padding: 64px 0; }
.cta-strip h2 { font-size: clamp(1.9rem,4vw,2.8rem); text-transform: uppercase; }
.cta-strip p { font-size: 1.15rem; margin: 10px 0 26px; opacity: .95; }
.cta-strip .btn-ghost { border-color:#fff; }
.cta-strip .btn-ghost:hover { background:#fff; color: var(--red); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.contact-card {
  background:#fff; border:1px solid var(--line); border-radius: var(--r); padding: 30px;
  box-shadow: var(--shadow-sm); display:flex; gap:18px; align-items:flex-start; transition: transform .2s, box-shadow .2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card .ic { flex:0 0 auto; width:50px;height:50px;border-radius:12px;background:var(--bg-navy-grad);display:grid;place-items:center;color:#fff;}
.contact-card .ic svg{width:24px;height:24px;}
.contact-card h3 { color: var(--navy); font-size: 1.4rem; }
.contact-card a, .contact-card p { color: var(--slate); font-size: 1.02rem; }
.contact-card a:hover { color: var(--red); }
.map-embed { margin-top: 36px; border-radius: var(--r); overflow: hidden; border:1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display:block; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #c9d0f0; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; }
.site-footer img { height: 70px; margin-bottom: 16px; background:#fff; padding:8px 12px; border-radius: 8px; }
.site-footer h4 { color:#fff; text-transform: uppercase; letter-spacing:.08em; font-size:1.15rem; margin-bottom: 14px; }
.site-footer a { color:#c9d0f0; }
.site-footer a:hover { color:#fff; }
.site-footer ul { list-style:none; }
.site-footer ul li { padding: 4px 0; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size:.88rem; color:#9aa3d4; text-align:center; line-height:1.8; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Calculator ===== */
.calc-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.calc-tabs {
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.calc-tab {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
  text-align: left;
  font-family: var(--ff-body);
  font-size: .98rem;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1.3;
}
.calc-tab:hover { background: #eaecf7; color: var(--navy); }
.calc-tab.active {
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  border-left: 3px solid var(--red);
  padding-left: 19px;
}
.calc-panel { background: #fff; min-height: 420px; }
.calc-pane { display: none; padding: 36px 40px; }
.calc-pane.active { display: block; }
.calc-title {
  font-size: 1.8rem;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.calc-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.calc-inputs input {
  flex: 1 1 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--ff-body);
  font-size: .98rem;
  color: var(--ink);
  background: var(--bg-soft);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.calc-inputs input::placeholder { color: var(--slate); }
.calc-inputs input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31,44,131,.1);
  background: #fff;
}
.calc-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}
.calc-results p { color: var(--slate); font-size: 1.05rem; }
.calc-results strong { color: var(--navy); font-size: 1.18rem; font-weight: 700; }
.calc-instructions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: instr;
}
.calc-instructions li {
  counter-increment: instr;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-radius: 10px;
  color: var(--ink);
  line-height: 1.55;
}
.calc-instructions li::before {
  content: counter(instr) ".";
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--red);
  margin-right: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background:#fff; padding: 12px; gap: 0; border-bottom:1px solid var(--line);
    box-shadow: var(--shadow-md); display: none;
  }
  .nav-links.open { display: flex; }
  .submenu { position: static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:0; padding-left: 16px; }
  .has-sub:hover .submenu { transform:none; }
  .hero-grid, .detail-grid, .founder, .contact-grid { grid-template-columns: 1fr; }
  .features, .products, .mvv { grid-template-columns: 1fr; }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-tabs { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line); }
  .calc-tab { flex: 1 1 auto; border-right: 1px solid var(--line); }
  .calc-tab.active { border-left: none; border-bottom: 3px solid var(--red); padding-left: 22px; padding-bottom: 15px; }
  .calc-pane { padding: 28px 20px; }
  .hero-img { order: -1; max-width: 380px; margin: 0 auto; }
  .product-card { grid-template-columns: 120px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
