/* NTDENERGY · visual identity for the mobility prototype. */
:root {
  --bg: #080e19;
  --surface: #0e1828;
  --card: #121f33;
  --line: #293a52;
  --text: #fff;
  --muted: #f3f7ff;
  --accent: #73e5ff;
  --blue: #426cff;
  --max: 1320px;
  --radius: 20px;
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

.header {
  background: #080e19ef;
  border-bottom-color: #91b5ff24;
  backdrop-filter: blur(20px);
}
.nav-inner { min-height: 84px; }
.brand { width: 158px; }
.brand span { color: var(--text); letter-spacing: .24em; }
#main-nav { gap: clamp(14px, 2vw, 29px); font-size: .9rem; }
#main-nav > a { color: var(--text); }
#main-nav > a:hover,
#main-nav > a[aria-current="page"] { color: var(--accent); }
#main-nav > a:not(.nav-contact)[aria-current="page"]::after {
  position: absolute;
  inset: auto 0 6px;
  height: 1px;
  background: currentColor;
  content: "";
}
#main-nav .nav-contact {
  background: transparent;
  border: 1px solid #6c93da85;
  border-radius: 9px;
  padding: 10px 20px;
}
#main-nav .nav-contact:hover,
#main-nav .nav-contact[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
  background: #73e5ff10;
}
.menu-toggle { border-color: #789bd758; background: #101a2b; }

h1, h2, h3 { letter-spacing: -.042em; }
/* The WordPress theme gives headings their own low-contrast color. */
#contenido :is(h1, h2, h3, h4, h5, h6),
.footer-grid h3 {
  color: var(--text);
}
#contenido :is(.lead, .muted, .article-text > p, .card-copy > p:not(.meta, .eyebrow),
  .feature > p:not(.meta, .eyebrow), .section-heading > p:not(.meta, .eyebrow)),
#contenido .legacy-technical-content :is(p, li, dd),
#contenido :is(.hero-figure, .image-panel, .render-panel) figcaption {
  color: var(--text);
}
.footer-grid > div p,
.footer-grid > div:not(:first-child) > a,
.footer-bottom { color: var(--text); }
.footer-grid > div:not(:first-child) > a:hover,
.footer-bottom a:hover { color: var(--accent); }
.eyebrow {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: .84rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow::before { width: 22px; background: #73e5ff; }
.button { border-radius: 9px; font-size: .93rem; }
.primary { background: #8fe6fb; color: #08172b; }
.primary:hover { background: #bff3ff; }
.secondary { background: #0c1932a8; border-color: #6a8cbd85; }
.secondary:hover { background: #1b2b47; }

.home-hero {
  min-height: clamp(545px, 47vw, 720px);
  background: #080e19;
  isolation: isolate;
}
.hero-art {
  inset: 0;
  opacity: 1;
}
.hero-art img {
  position: relative;
  z-index: -2;
  width: 100%;
  height: 100%;
  filter: none;
  object-fit: cover;
  object-position: center 57%;
}
.home-hero::after {
  z-index: -1;
  background: linear-gradient(90deg, #080e19 0%, #080e19f5 15%, #080e19a8 36%, transparent 62%),
              linear-gradient(0deg, #080e19e8 0%, transparent 24%);
}
.hero-content { padding-block: 72px 92px; }
.hero-content h1 {
  max-width: 710px;
  margin-bottom: 25px;
  font-size: clamp(3.2rem, 5.65vw, 6.1rem);
  line-height: .99;
  letter-spacing: -.06em;
}
.hero-content h1 em {
  color: #86e5ff;
  background-image: linear-gradient(90deg, #84eefb, #94b5ff);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content > p:not(.eyebrow) { max-width: 430px; color: #d3e2f5; }
.hero-credit {
  position: absolute;
  z-index: 2;
  right: max(30px, calc((100% - var(--max)) / 2));
  bottom: 15px;
  padding: 8px 11px;
  border: 1px solid #91b5ff32;
  border-radius: 7px;
  background: #080e19d6;
  color: #d2e0f6;
  font-size: .77rem;
}

.quick-strip { background: #0c1424; border-color: var(--line); }
.quick-grid { gap: 12px; padding-block: 14px; }
.quick-grid > a,
.quick-grid > a:first-child,
.quick-grid > a:last-child {
  padding: 17px 19px;
  border: 1px solid #a1bcfa26;
  border-radius: 13px;
  background: linear-gradient(130deg, #162541, #0d1729);
}
.quick-grid > a:hover { border-color: #73e5ff89; }
.quick-grid small { font-size: .86rem; }

.page-hero {
  background: radial-gradient(ellipse at 82% 18%, #1b315c, #0c172a 58%, #080e19);
  padding-block: clamp(52px, 7vw, 102px);
}
.page-hero h1 {
  font-size: clamp(2.6rem, 5.1vw, 5rem);
  line-height: 1.03;
}
.page-hero .breadcrumb { color: #b9c9e2; }
.page-hero .hero-figure {
  padding: 0;
  overflow: hidden;
  border-color: #7394c14d;
  background: #0d1728;
  box-shadow: 0 24px 70px #0308176e;
}
.page-hero .hero-figure > img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 0;
  background: #0a1321;
}
.page-hero .hero-figure figcaption { padding: 12px 16px; }
.page-hero .hero-figure:has(img[src$="aucon.jpg"]) img {
  object-fit: contain;
}
.page-hero .hero-figure:has(img[src$="taxibus-visit-2026.jpg"]) img { object-fit: cover; }

.section.surface {
  background: radial-gradient(ellipse at 4% 2%, #17273f, transparent 53%), #101b2c;
}
.visual-story {
  background: radial-gradient(ellipse at 85% 0%, #172b4b, transparent 58%), #0b1424;
  border-block-color: #849ed142;
}
.workshop-gallery { gap: clamp(12px, 1.8vw, 24px); }
.workshop-gallery figure { border-color: #879fce3d; }
.project-banner {
  background: linear-gradient(120deg, #101c33 0%, #172f57 100%);
  border-block: 1px solid #5b7dab65;
}
.project-banner .text-link { color: var(--accent); }
.feature, .product-card, .news-card, .video-card, .contact-card {
  border-color: #7898ce40;
  background: linear-gradient(150deg, #172641, #101b2c 80%);
}
.icon-box { color: var(--accent); background: #193950; border-color: #77dcf35b; }
.application-editorial .app-card { background: linear-gradient(155deg, #1a2c4d, #0f1b30); }
.application-editorial .app-illustration {
  background: linear-gradient(125deg, #3e65a832, transparent 65%),
              repeating-linear-gradient(90deg, #a5cdff0c 0 1px, transparent 1px 32px);
}
.tech-tabs {
  background: #0a1221;
  border: 1px solid #7d9eca49;
  padding: 5px;
  border-radius: 12px;
}
.tech-tabs button { border-radius: 8px; }
.tech-tabs button[aria-selected="true"] { background: #91e8fb; color: #08172b; }
.news-briefs .news-card { border-top: 2px solid #7fbdff81; }
.news-briefs .news-copy { padding: 26px; }
.video-card img { object-fit: cover; }
.video-card img[src$="invenexpo.png"],
.news-image img[src$="invenexpo.png"] {
  object-fit: contain;
  background: #080e19;
}
.image-panel > img.assembly-concepts,
.technical-photo > img.assembly-concepts {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #0a1321;
}
.logistics-criteria dl { margin: 0; color: var(--text); }
.logistics-criteria dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.logistics-criteria dt { font-weight: 700; }
.logistics-criteria dd { margin: 5px 0 0; color: var(--muted); line-height: 1.5; }

.contact-band {
  background: linear-gradient(110deg, #233e82 0%, #304e9a 62%, #245a89 100%);
  color: #fff;
}
.contact-band .eyebrow { color: #e2faff; }
.contact-band .button { background: #a6edff; color: #101f3c; }
.newsletter-section {
  background: radial-gradient(ellipse at 10% 12%, #21355d, transparent 68%), #0e192c;
}
.newsletter-panel { background: #0a1426; border-color: #789cd44f; }
.newsletter-email-row > input { background: #0a1221; }
.footer-bottom, footer { background-color: #070d18; }
.floating-contact { background: #426cff; }

/* Deep blue presentation for the technical studies and their expanded view. */
.render-panel:has(.render-zoom),
.hero-figure:has(.render-zoom),
.technical-photo {
  background: #0c1628;
  border-color: #3a5275;
  box-shadow: none;
}
.render-panel:has(.render-zoom) figcaption,
.hero-figure:has(.render-zoom) figcaption,
.technical-photo > figcaption { color: #b6c4d8; }
.render-zoom,
.render-zoom > img { background: #091226; color: var(--text); }
.render-zoom > img { height: auto; aspect-ratio: 16 / 10; }
.zoom-label,
.zoom-close {
  background: #172945;
  border-color: #6b94c5;
  color: #e2f5ff;
}
.render-zoom:hover .zoom-label,
.zoom-close:hover { background: #28436a; border-color: var(--accent); }
.zoom-dialog {
  background: #0c1628;
  color: var(--text);
  border-color: #5a7ba6;
}
.zoom-header { border-bottom-color: var(--line); }
.zoom-dialog .zoom-picture { background: #091226; }
.zoom-note { color: #b6c4d8; }
/* Original transparent renders keep their geometry and sit on a navy panel. */
.render-zoom:has(> img.original-technical),
.original-plate {
  isolation: isolate;
  background: radial-gradient(ellipse at 42% 42%, #213958, #0d182d 85%);
}
.render-zoom > img.original-technical {
  background: transparent;
}
.product-card .render-panel:has(.studio-technical) {
  padding: 0;
}
.product-card .render-zoom:has(> img.studio-technical) {
  border-radius: 0;
}
.render-zoom > img.studio-technical,
.product-card .render-panel img.studio-technical {
  height: auto;
  aspect-ratio: 768 / 500;
  object-fit: contain;
}
.render-zoom .zoom-label { z-index: 1; }

.legacy-archive {
  border-top: 1px solid var(--line);
}
.legacy-year {
  margin-block: 36px;
}
.legacy-year-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legacy-year-list > li {
  display: grid;
  grid-template-columns: minmax(100px, 120px) minmax(0, 1fr);
  gap: 12px 20px;
  align-items: baseline;
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
}
.legacy-year-list time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.legacy-year-list a {
  font-weight: 650;
  overflow-wrap: anywhere;
}
.legacy-year-list a:hover,
.legacy-article a:hover,
.legacy-technical a:hover {
  color: var(--accent);
}
.legacy-technical-nav,
.legacy-technical-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 22px;
  row-gap: 12px;
}
.legacy-article,
.legacy-technical-content {
  min-width: 0;
  overflow-wrap: anywhere;
}
.legacy-technical-content > :where(h3, h4, h5) {
  margin-block: 32px 12px;
}
.legacy-technical-content :where(ol, ul),
.legacy-gallery {
  padding-inline-start: 1.4em;
}
.lakota-parking-visual > img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.lakota-parking-grid { margin-block: 24px; }
.lakota-parking-grid dd {
  margin: 8px 0 0;
  font-variant-numeric: tabular-nums;
}
.lakota-section-links { margin-bottom: 20px; }
.legacy-article :where(table, pre),
.legacy-technical-content :where(table, pre) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
@media (max-width: 560px) {
  .legacy-year-list > li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.technical-photo.original-plate { background: #a7bdd5; }
.technical-photo.original-plate > img.original-technical { background: transparent; mix-blend-mode: multiply; }
.technical-photo.original-plate > figcaption { color: #132743; }
.zoom-image-frame {
  isolation: isolate;
  background: #0c1628;
  border-radius: 12px;
  overflow: hidden;
  margin-block: 12px;
}
.zoom-image-frame.original-plate { background: radial-gradient(ellipse at 42% 42%, #213958, #0d182d 85%); }
.zoom-dialog .zoom-image-frame .zoom-picture { margin: 0; }
.zoom-dialog .zoom-image-frame.original-plate .zoom-picture {
  background: transparent;
}
.workshop-gallery.gallery-v7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tech-panel.tech-panel-text { grid-template-columns: minmax(0, 760px); }
.evidence-panel { margin: 0; }
.page-hero .hero-figure > img.lakota-studio { aspect-ratio: auto; }

.editorial-cover {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  min-height: 160px;
  padding: clamp(20px, 3vw, 36px);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #162e58, #0c1527);
  border-bottom: 1px solid #6f9ad33b;
  color: var(--text);
  overflow: hidden;
}
.editorial-cover strong { font-size: clamp(1.3rem, 3vw, 2.45rem); line-height: 1.12; }
.editorial-cover-kicker { color: #93e8ff; font-size: .85rem; font-weight: 700; }
.editorial-cover-aucon { background: linear-gradient(135deg, #35617c, #091323 83%); aspect-ratio: 16 / 10; }
.editorial-cover-aragon { background: linear-gradient(135deg, #293d68, #0e162a 85%); }
.editorial-cover-navarra { background: radial-gradient(ellipse at 82% 10%, #355987, transparent 79%), #0c192c; }

@media (max-width: 1120px) and (min-width: 851px) {
  #main-nav { gap: 14px; font-size: .8rem; }
  .brand { width: 142px; }
  .hero-content h1 { font-size: clamp(3.1rem, 6vw, 4.65rem); }
  .hero-content > p:not(.eyebrow) { max-width: min(390px, 42vw); }
}
@media (max-width: 850px) {
  .nav-inner { min-height: 72px; }
  .brand { width: 138px; }
  .home-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-bottom: 0;
    background: radial-gradient(ellipse at 85% 20%, #16274a, transparent 75%), #080e19;
  }
  .hero-content { order: 0; padding-block: 44px 19px; }
  .hero-content h1 { font-size: clamp(2.85rem, 8.5vw, 4.6rem); margin-bottom: 20px; }
  .hero-content > p:not(.eyebrow) { margin-top: 0; }
  .home-hero::after { display: none; }
  .hero-art {
    order: 1;
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(255px, 55vw, 415px);
    z-index: 0;
  }
  .hero-art img { z-index: auto; height: 100%; max-width: none; object-position: 77% 55%; }
  .hero-credit { right: 16px; bottom: 12px; }
  .quick-grid { gap: 8px; }
  .quick-grid > a,
  .quick-grid > a:first-child,
  .quick-grid > a:last-child { padding: 12px; gap: 11px; }
}
@media (max-width: 700px) {
  .workshop-gallery.gallery-v7 { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  #main-nav { background: #0c1728; }
  #main-nav > a:not(.nav-contact)[aria-current="page"]::after { display: none; }
  .hero-content .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content h1 { line-height: 1.03; }
  .page-hero { padding-block: 42px 48px; }
}
@media (max-width: 380px) {
  .hero-content h1 { font-size: 2.7rem; }
  .hero-credit { font-size: .67rem; }
}
