/* automatizacion.tv — site styles */
:root {
  --ink: #0E1418; --ink-2: #4A545B; --paper: #F5F6F3; --paper-2: #E9EBE6; --white: #FFFFFF;
  --line: #D9DCD6; --line-2: #E6E8E3; --line-3: #C3C8C1; --field: #B9BFB7;
  --accent: #C8321A; --accent-ink: #A12816; --accent-hi: #FF6A4D;
  --dark-text: #F5F6F3; --dark-muted: #B7C1C6; --dark-line: #26323A; --dark-panel: #1A252C;
  --display: Archivo, 'Arial Narrow', sans-serif; --body: 'IBM Plex Sans', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1280px; --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.06; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 2px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--accent-ink); margin: 0; text-transform: uppercase; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); }
.badge { font-family: var(--mono); font-size: 10px; font-weight: 500; color: #fff; background: var(--accent); padding: 2px 5px; border-radius: 3px; margin-left: 4px; vertical-align: 2px; }
.btn { display: inline-block; font: 600 15px/1.2 var(--body); padding: 14px 20px; border-radius: 6px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-dark { border-color: #4A5760; color: var(--dark-text); }
.btn-ghost-dark:hover { color: #fff; border-color: #fff; }
.dim { color: var(--ink-2); font-weight: 400; }
.dim-dark { color: var(--dark-muted); font-weight: 500; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav > a, .nav summary { text-decoration: none; cursor: pointer; list-style: none; padding: 10px 0; }
.nav summary::-webkit-details-marker { display: none; }
.nav details { position: relative; }
.nav details[open] summary, .nav a[aria-current] { color: var(--accent-ink); }
.mega { position: absolute; top: 100%; left: -24px; width: min(920px, 92vw); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(14,20,24,.12); padding: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; }
.mega h3 { font-size: 16px; margin-bottom: 8px; }
.mega h3 a { text-decoration: none; }
.mega ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.mega li a { display: block; padding: 4px 0; text-decoration: none; color: var(--ink-2); }
.mega li a:hover { color: var(--accent); }
.mega.sol { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(640px, 92vw); }
.mega.sol a { text-decoration: none; display: block; }
.mega.sol strong { display: block; font-size: 15px; }
.mega.sol span { font-size: 13px; color: var(--ink-2); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border: 1px solid var(--line-3); border-radius: 6px; overflow: hidden; font-family: var(--mono); font-size: 13px; }
.lang-switch a, .lang-switch span { padding: 10px 12px; text-decoration: none; }
.lang-switch [aria-current] { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-3); border-radius: 6px; background: transparent; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; order: 3; border-top: 1px solid var(--line); padding-top: 8px; }
  .nav.open { display: flex; }
  .nav > a, .nav summary { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .mega { position: static; width: auto; box-shadow: none; border: 0; padding: 8px 0 16px; grid-template-columns: 1fr; }
  .mega.sol { grid-template-columns: 1fr; width: auto; }
  .header-tools .btn { display: none; }
}

/* Hero */
.hero { background: var(--ink); color: var(--dark-text); }
.hero .wrap { padding-top: 96px; padding-bottom: 104px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; }
.hero .kicker { color: var(--accent-hi); }
.hero p.lead { font-size: 19px; color: var(--dark-muted); max-width: 560px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.monitor { background: #070B0D; border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-family: var(--mono); font-size: 11px; color: #D4DCE0; }
.monitor .tile { background: var(--dark-panel); border-radius: 4px; position: relative; aspect-ratio: 16/9; border-top: 4px solid var(--dark-line); }
.monitor .tile span { position: absolute; left: 10px; bottom: 8px; }
.monitor .pgm { grid-column: span 2; aspect-ratio: 16/7; border-top-color: var(--accent-hi); }
.monitor .pgm span { background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 3px; font-size: 12px; left: 12px; bottom: 10px; }
.monitor .tc { left: auto !important; right: 12px; background: none !important; font-size: 13px !important; }
.monitor .pvw { border-top-color: #3FAF6A; }
.monitor .status { grid-column: span 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #8FA0A9; padding: 6px 4px 0; }

/* Logo strip */
.logos { background: var(--white); border-bottom: 1px solid var(--line); }
.logos .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; }
.logos .kicker { color: var(--ink-2); white-space: pre-line; line-height: 1.5; }
.marquee { flex: 1 1 600px; min-width: 0; overflow: hidden; }
.marquee-track { display: flex; gap: 48px; padding-right: 48px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 52px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.marquee-track a:hover img, .marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; } }

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; max-width: 720px; margin-top: 12px; }
.section-head p { max-width: 400px; font-size: 17px; color: var(--ink-2); }
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-gray { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--ink); color: var(--dark-text); }
.grid { display: grid; gap: 16px; }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 21px; font-weight: 700; font-stretch: 108%; }
.card h3 a { text-decoration: none; }
.card .num { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); font-size: 15px; }
.plist li { border-bottom: 1px solid var(--line-2); }
.plist a { display: block; padding: 11px 0; text-decoration: none; font-weight: 600; }
.sol-card { background: var(--ink); color: var(--dark-text); border-radius: var(--radius); padding: 26px; text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.sol-card:hover { color: var(--dark-text); background: #16212A; }
.sol-card strong { font-family: var(--display); font-stretch: 108%; font-size: 21px; }
.sol-card .desc { color: var(--dark-muted); font-size: 15px; }
.sol-card .members { margin-top: auto; font-family: var(--mono); font-size: 12px; color: #D4DCE0; line-height: 1.7; }
.sol-card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent-hi); }

/* Stories */
.story-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.story-controls { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 6px; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn.solid { background: var(--ink); }
.story { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.story[hidden] { display: none; }
.story .photo { aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: #D2D6D0; }
.story .photo img { width: 100%; height: 100%; object-fit: cover; }
.story .slogo { height: 52px; width: auto; max-width: 180px; object-fit: contain; }
.story h3 { font-size: 30px; font-weight: 800; font-stretch: 110%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-3); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; text-decoration: none; }

/* Forms */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 13px 14px; border: 1px solid var(--field); border-radius: 6px; background: var(--white); color: var(--ink); width: 100%; }
.form textarea { resize: vertical; min-height: 140px; }
.form .err { color: var(--accent-ink); font-weight: 500; font-size: 13px; }
.form [aria-invalid="true"] { border-color: var(--accent); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 8px; font-weight: 500; }
.notice.ok { background: #E5F4E4; color: #1E5A2A; border: 1px solid #B8DDB6; }
.notice.bad { background: #FBEBEB; color: #8A1F12; border: 1px solid #F0C3BC; }
.notice.info { background: #E7F1FB; color: #1C4A78; border: 1px solid #BFD7EF; }

/* Breadcrumb & page heads */
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--ink-2); padding: 32px 0 0; }
.crumbs a { color: var(--ink-2); }
.page-head { padding: 40px 0 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 40px; align-items: end; }
.page-head h1 { font-size: clamp(34px, 4.5vw, 60px); font-weight: 800; margin-top: 16px; }
.page-head .lead { font-size: 18px; color: var(--ink-2); }

/* Product page */
.prod-hero { padding: 24px 0 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 56px; align-items: center; }
.prod-hero h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 800; margin-top: 12px; }
.prod-hero .tagline { font-family: var(--display); font-stretch: 105%; font-weight: 600; font-size: 24px; line-height: 1.3; }
.prod-hero .summary { font-size: 17px; color: var(--ink-2); }
.prod-visual { border-radius: var(--radius); overflow: hidden; background: var(--ink); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
.prod-visual img { width: 100%; height: 100%; object-fit: cover; }
.prod-visual .ph { font-family: var(--mono); color: #8FA0A9; letter-spacing: .1em; font-size: 14px; }
.subnav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.subnav .wrap { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 600; }
.subnav a { padding: 14px 0; text-decoration: none; }
.subnav .end { margin-left: auto; }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px 48px; }
.highlights div { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.highlights h3 { font-size: 20px; font-stretch: 108%; }
.highlights p { color: var(--ink-2); }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 0 48px; border-top: 1px solid var(--line); }
.features li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.features svg { flex: 0 0 auto; margin-top: 4px; }
.prose { max-width: 760px; font-size: 17px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose h2 { font-size: 28px; margin: 32px 0 12px; }
.prose h3 { font-size: 21px; margin: 24px 0 8px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.spec-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px 6px; }
.spec-group h3 { font-family: var(--mono); font-stretch: 100%; letter-spacing: .1em; font-size: 12px; color: var(--accent-ink); margin: 14px 0 6px; text-transform: uppercase; }
.spec-group dl { margin: 0; }
.spec-group dl div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 15px; }
.spec-group dt { font-weight: 600; }
.spec-group dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.req { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.req.rec { border: 2px solid var(--ink); }
.req h3 { font-size: 20px; font-stretch: 108%; margin-bottom: 12px; }
.req dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 15px; }
.req dd { margin: 0; color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.cta-band .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.cta-band h2 { font-size: 36px; font-weight: 800; }
.cta-band p { color: var(--dark-muted); font-size: 17px; margin-top: 12px; max-width: 640px; }

/* Category: suite block, comparison */
.suite { background: var(--ink); color: var(--dark-text); border-radius: 12px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.suite ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dark-line); }
.suite li { border-bottom: 1px solid var(--dark-line); }
.suite li a, .suite li > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; color: var(--dark-text); text-decoration: none; }
.suite li span { font-size: 14px; color: var(--dark-muted); }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.pcard .name { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 26px; line-height: 1.1; }
.pcard .more { font-weight: 600; font-size: 15px; margin-top: auto; }
.mini { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--dark-muted); font-size: 14px; line-height: 1.7; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer a { color: var(--dark-muted); }
.site-footer a:hover { color: #fff; }
.site-footer strong { color: var(--dark-text); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: flex-start; }
.footer-logo { height: 60px; width: auto; margin-bottom: 16px; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .story { padding: 22px; gap: 24px; }
  .wrap { padding: 0 16px; }
  .logo img { height: 44px; }
  .spec-group dl div, .req dl div { grid-template-columns: 1fr; gap: 2px; }
}
