:root {
  --ink: #142b3b;
  --paper: #f7f9f9;
  --surface: #fff;
  --navy: #0c2030;
  --accent: #a4e6df;
  --accent-strong: #167781;
  --line: #d8e3e5;
  --tint: #e8f2f2;
  --muted: #4b6170;
  --link: #126f78;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; }
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }

/* Navegación */
header { position: relative; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar, nav, .brand, footer { display: flex; align-items: center; }
.bar, footer { justify-content: space-between; }
.bar { min-height: 94px; gap: 28px; }
.brand { flex: 0 0 auto; gap: 14px; }
.brand-logo { display: block; width: auto; height: 54px; object-fit: contain; }
.brand span {
  border-left: 1px solid var(--line);
  padding-left: 14px;
  color: #395364;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .015em;
  font-weight: 650;
}
nav { gap: clamp(16px, 2.5vw, 36px); color: #344e5e; font-size: 13px; font-weight: 650; }
nav a:not(.contactnav) { position: relative; padding-block: 8px; }
nav a:not(.contactnav)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--accent-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
nav a:not(.contactnav):hover::after, nav a:not(.contactnav):focus-visible::after { transform: scaleX(1); }
.contactnav {
  padding: 11px 20px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  transition: background .2s ease, border-color .2s ease;
}
.contactnav:hover { border-color: var(--accent-strong); background: var(--accent-strong); }

/* Fondo y cabeceras */
.hero, .detail-hero, .contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f4fafb;
  background: linear-gradient(130deg, #0b1c2b, #163343 70%, #0b2130);
}
.hero::before, .detail-hero::before, .contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(93, 200, 202, .18), transparent 34%),
    radial-gradient(circle at 8% 90%, rgba(78, 125, 167, .13), transparent 38%);
}
.hero::after, .detail-hero::after, .contact::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 40%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(196, 236, 235, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 236, 235, .065) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.hero :focus-visible, .detail-hero :focus-visible, .contact :focus-visible { outline-color: var(--accent); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(44px, 6vw, 94px);
  min-height: 620px;
  padding-block: clamp(78px, 8vw, 118px);
}
.intro { min-width: 0; }
.label, .over, figcaption { font: 12px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.label, .over { letter-spacing: .14em; text-transform: uppercase; }
.label { display: flex; align-items: center; gap: 13px; color: #bedee0; }
.label i {
  flex: 0 0 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(164, 230, 223, .13);
}
h1 {
  margin-block: 28px 26px;
  font-size: clamp(3.6rem, 6.5vw, 6.3rem);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -.075em;
}
h1 em { color: var(--accent); font-style: normal; }
.lead, .split p:not(.over) { font-size: 18px; line-height: 1.7; }
.lead { max-width: 34rem; color: #d0e1e5; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 32px;
  padding: 16px 22px;
  border-radius: 999px;
  color: #103037;
  background: var(--accent);
  box-shadow: 0 12px 32px rgba(2, 14, 21, .16);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.button:hover { background: #c6f3ec; box-shadow: 0 16px 36px rgba(2, 14, 21, .2); transform: translateY(-2px); }
.button span { font-size: 19px; line-height: 1; }
.sensor { position: relative; min-width: 0; }
.sensor::before {
  content: "";
  position: absolute;
  inset: 26px -16px 16px 26px;
  border: 1px solid rgba(164, 230, 223, .38);
  border-radius: 14px;
  pointer-events: none;
}
.frame {
  position: relative;
  padding: 8px;
  border: 1px solid rgba(180, 224, 226, .28);
  border-radius: 14px;
  background: #193344;
  box-shadow: 0 30px 75px rgba(0, 10, 20, .35);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 9px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(8, 25, 37, .32));
}
.frame img {
  display: block;
  width: 100%;
  height: clamp(320px, 36vw, 490px);
  border-radius: 9px;
  object-fit: cover;
  object-position: 48% center;
  filter: contrast(1.12) saturate(.85);
}
.corner { position: absolute; z-index: 1; width: 27px; height: 27px; border: solid var(--accent); }
.tl { top: 18px; left: 18px; border-width: 1px 0 0 1px; }
.br { right: 18px; bottom: 18px; border-width: 0 1px 1px 0; }
figcaption { margin-top: 14px; color: #617989; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.sensor figcaption { color: #b6d0d7; }

/* Portada */
.section, .split { padding-block: clamp(76px, 8vw, 116px); }
.over { margin-bottom: 16px; color: var(--accent-strong); font-size: 11px; font-weight: 700; }
h2 { font-size: clamp(2.4rem, 4.2vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: -.055em; }
h3 { margin-bottom: 15px; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.22; letter-spacing: -.035em; }
article p { color: var(--muted); font-size: 16px; line-height: 1.68; }
.areas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 46px; }
.areas article {
  display: flex;
  grid-column: span 2;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 2.5vw, 34px);
  border: 1px solid #e1e9ea;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(14, 43, 58, .035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.areas article:nth-last-child(-n+2) { grid-column: span 3; }
.areas article::before {
  content: "";
  width: 36px;
  height: 3px;
  margin-bottom: 26px;
  border-radius: 3px;
  background: var(--accent-strong);
}
.areas article:hover { border-color: #bddbdb; box-shadow: 0 20px 42px rgba(14, 43, 58, .08); transform: translateY(-3px); }
.areas article h3 { max-width: 22ch; }
.areas article > p { flex: 1; }
.detail-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: rgba(18, 111, 120, .38);
  text-underline-offset: 5px;
}
.detail-link span { display: inline-block; transition: transform .2s ease; }
.detail-link:hover span { transform: translateX(4px); }
.detail-link:hover, .detail-content a:hover { color: #0b4f59; text-decoration-color: currentColor; }
.transfer { border-block: 1px solid #e0ebed; background: linear-gradient(180deg, #eaf2f3, #f2f6f5); }
.cases {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 90px);
  margin-top: 48px;
}
.cases img {
  display: block;
  width: 100%;
  height: clamp(440px, 48vw, 670px);
  border-radius: 12px;
  object-fit: cover;
  object-position: center 56%;
  box-shadow: 0 20px 45px rgba(18, 49, 58, .13);
}
.cases article { padding-block: 28px 32px; border-top: 1px solid #cddde1; }
.cases article:first-child { padding-top: 26px; }
.cases article + article { margin-top: 0; }
.cases article .over { margin-bottom: 11px; }
.cases article h3 { max-width: 23ch; }
.company { position: relative; overflow: hidden; background: var(--tint); }
.company::after {
  content: "";
  position: absolute;
  top: -280px;
  right: -230px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(22, 119, 129, .16);
  border-radius: 50%;
  pointer-events: none;
}
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10%; }
.company .split { position: relative; }
.company h2 { max-width: 15ch; }
.split p + p { margin-top: 17px; }
.contact .split { align-items: center; }
.contact .over, .detail-hero .over { color: var(--accent); }
.contact h2 { max-width: 13ch; }
.contact p:not(.over) { max-width: 35rem; color: #d0e1e5; }
.contact .split { align-items: start; }
.contact-form { display: grid; gap: 16px; margin-top: 28px; }
.contact-form .field { display: grid; gap: 7px; }
.contact-form label { color: #d7e9eb; font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.contact-form input:not([type="checkbox"]), .contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(184, 226, 227, .32);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #f4fafb;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input:not([type="checkbox"]):focus, .contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, .1);
  outline: none;
}
.contact-form textarea { min-height: 138px; resize: vertical; }
.contact-form .consent { display: flex; align-items: flex-start; gap: 10px; color: #d0e1e5; font-size: 13px; line-height: 1.5; }
.contact-form .consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-strong); }
.contact-form .consent a, .contact-form .form-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact-form .button { justify-self: start; margin-top: 4px; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; }
.contact-form .form-note { color: #b9cfd5; font-size: 13px; line-height: 1.6; }
.contact-form .hp { display: none; }
.form-page { min-height: 100vh; display: grid; place-items: center; padding: 48px 20px; background: var(--paper); color: var(--ink); }
.form-page .wrap { width: min(620px, 100%); padding: clamp(28px, 5vw, 44px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 18px 50px rgba(14, 43, 58, .08); }
.form-page .brand { display: inline-flex; }
.form-page .brand-logo { height: 48px; }
.form-page h1 { margin-block: 26px 14px; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.08; letter-spacing: -.045em; }
.form-page p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.form-page .button { margin-top: 26px; }

/* Páginas interiores */
.detail-hero { padding-block: clamp(80px, 8vw, 122px); }
.detail-hero h1 { max-width: 980px; margin-block: 20px 24px; font-size: clamp(3.3rem, 6.2vw, 5.85rem); overflow-wrap: anywhere; }
.detail-hero p:not(.over) { max-width: 44rem; color: #d0e1e5; font-size: 20px; line-height: 1.65; }
.detail-hero a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(164, 230, 223, .55); text-underline-offset: 5px; }
.detail-content { max-width: 1040px; padding-block: 82px 110px; font-size: 17px; line-height: 1.78; }
.detail-content section + section { margin-top: 64px; padding-top: 55px; border-top: 1px solid var(--line); }
.detail-content h2 { margin-bottom: 22px; font-size: clamp(2rem, 3.5vw, 2.7rem); }
.detail-content h3 { margin-top: 30px; margin-bottom: 12px; color: #1b4050; }
.detail-content section > p { max-width: 75ch; }
.detail-content p + p { margin-top: 18px; }
.detail-content a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.detail-content ul, .detail-content ol { margin-block: 20px 0; padding-left: 1.5rem; }
.detail-content li::marker { color: var(--accent-strong); }
.detail-content li + li { margin-top: 14px; }
.detail-content img { display: block; max-width: 100%; height: auto; }
.detail-photo { max-width: 34rem; margin-top: 28px; }
.detail-photo img { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; object-position: center 56%; box-shadow: 0 16px 38px rgba(14, 43, 58, .1); }
.detail-photo.portrait-photo img { aspect-ratio: 3 / 4; }
.detail-content.wide-content { max-width: 1240px; }
.project-logo { float: right; width: 100px; margin: 0 0 16px 24px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.detail-content a.github-link::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: .36em;
  vertical-align: -.12em;
  background: currentColor;
  mask: url("github-mark.svg") center / contain no-repeat;
}
.table-scroll { overflow-x: auto; margin-top: 26px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 32px rgba(14, 43, 58, .035); }
table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.55; }
caption { padding: 16px 18px; text-align: left; font-weight: 700; }
th, td { padding: 16px 18px; border-bottom: 1px solid #e5ecee; text-align: left; vertical-align: top; }
thead th { color: #1b4654; background: #eaf3f4; font-size: 13px; letter-spacing: .025em; }
tbody th { color: #1b4050; }
tbody tr:nth-child(even) { background: #f8fafb; }
tbody tr:last-child > * { border-bottom: 0; }
td { overflow-wrap: anywhere; }
.references li + li { margin-top: 20px; }
.detail-content .back-link {
  display: inline-block;
  margin-top: 54px;
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.detail-content .back-link:hover { background: #d5eaea; }

/* Pie y ajustes responsivos */
footer { gap: 24px; padding-block: 34px; border-top: 1px solid var(--line); }
footer .brand-logo { height: 43px; }
footer > span { color: var(--muted); font-size: 13px; }
footer > span a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
footer > span a:hover { color: var(--link); }
footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 6px;
  vertical-align: middle;
}
footer .social-link::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
}
footer .social-link--github::before { mask: url("github-mark.svg") center / contain no-repeat; }
@media (forced-colors: active) {
  footer .social-link::before { forced-color-adjust: none; background: LinkText; }
}
.skip { position: absolute; left: -9999px; }
.skip:focus { z-index: 10; top: 10px; left: 12px; padding: 10px; background: #fff; }

@media (max-width: 960px) {
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas article, .areas article:nth-last-child(-n+2) { grid-column: auto; }
  .areas article:last-child { grid-column: 1 / -1; }
  .cases { gap: 5%; }
}
@media (max-width: 780px) {
  .bar { flex-wrap: wrap; gap: 14px; padding-block: 16px; }
  nav { width: 100%; justify-content: space-between; }
  .hero-inner, .split, .cases { grid-template-columns: 1fr; }
  .hero-inner { gap: 54px; min-height: 0; padding-block: 80px; }
  .hero h1 { font-size: clamp(3.5rem, 9vw, 5.5rem); }
  .sensor { max-width: 600px; }
  .frame img { height: clamp(300px, 52vw, 400px); }
  .cases { gap: 38px; }
  .cases img { height: clamp(400px, 80vw, 570px); }
  .section, .split { padding-block: 78px; }
  .detail-hero { padding-block: 76px; }
  .detail-content { padding-block: 64px 90px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .bar { min-height: 0; }
  .brand-logo { height: 44px; }
  .brand span { font-size: 10px; }
  nav { flex-wrap: wrap; gap: 8px 12px; font-size: 12px; }
  .contactnav { padding: 8px 12px; }
  .hero-inner { gap: 46px; padding-block: 68px 64px; }
  .hero h1 { font-size: clamp(2.7rem, 11vw, 4.25rem); }
  .lead, .split p:not(.over) { font-size: 17px; }
  .frame img { height: 260px; }
  .sensor::before { inset: 14px -8px 0 14px; }
  .section, .split { padding-block: 68px; }
  .areas { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .areas article, .areas article:nth-last-child(-n+2), .areas article:last-child { grid-column: auto; }
  .areas article { padding: 26px; }
  .cases { gap: 34px; margin-top: 34px; }
  .cases img { height: 400px; }
  .contact .split { gap: 18px; }
  .detail-hero h1 { font-size: clamp(2.65rem, 10vw, 3.75rem); }
  .detail-hero p:not(.over) { font-size: 18px; }
  .detail-content { padding-block: 48px 74px; font-size: 16px; }
  .detail-content section + section { margin-top: 44px; padding-top: 40px; }
  .detail-content h2 { font-size: clamp(1.85rem, 7.5vw, 2.25rem); }
  .detail-content h3 { font-size: 1.35rem; }
  .project-logo { width: 78px; }
  th, td { padding: 12px 13px; }
  tbody th { min-width: 150px; }
  footer { flex-wrap: wrap; gap: 16px; padding-block: 26px; }
}
@media (max-width: 380px) {
  nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
  nav a:nth-child(2), nav .contactnav { justify-self: end; }
  footer .brand span { font-size: 9px; }
  footer > span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Contenido ampliado: portada, transferencia, logotipos y tablas */
.hero h1 { font-size: clamp(3.6rem, 6.5vw, 6.3rem); }
.hero-context {
  max-width: 34rem;
  margin-top: 18px;
  color: #b9cfd5;
  font-size: 15px;
  line-height: 1.68;
}
.quick-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.quick-links a {
  padding: 8px 13px;
  border: 1px solid rgba(164, 230, 223, .4);
  border-radius: 999px;
  color: #d9eeee;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  transition: border-color .2s ease, background .2s ease;
}
.quick-links a:hover { border-color: var(--accent); background: rgba(164, 230, 223, .1); }
.section-note { max-width: 78ch; margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.section-note a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.transfer-feature { margin-top: 42px; }
.transfer-feature article { border-top: 0; padding-top: 0; }
.transfer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.transfer-grid article {
  padding: 26px;
  border: 1px solid #dce7e9;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(14, 43, 58, .035);
}
.transfer-grid article .over { margin-bottom: 8px; }
.transfer-grid article p:not(.over) { color: var(--muted); font-size: 15px; line-height: 1.65; }
.transfer-grid article h3 { max-width: 24ch; }
.transfer-grid article .detail-link { margin-top: 16px; }

.collaborations { border-block: 1px solid var(--line); background: #fff; }
.logo-group { margin-top: 34px; }
.logo-group:first-of-type { margin-top: 40px; }
.logo-group h3 { margin-bottom: 18px; font-size: 1.2rem; }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.logo-grid figure {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.logo-grid img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}
.logo-grid figure[data-logo="dgam"] img { max-height: 64px; }
.logo-grid figure[data-logo="sevilla-control"] img { max-height: 72px; }
.logo-grid figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}
.logo-note { margin-top: 26px; color: var(--muted); font-size: 11px; line-height: 1.55; }

.publications {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(14, 43, 58, .035);
}
.publications summary {
  padding: 16px 18px;
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.publications summary::marker { color: var(--accent-strong); }
.publications[open] summary { border-bottom: 1px solid var(--line); }
.publications .table-scroll { margin: 0; border: 0; border-radius: 0 0 12px 12px; box-shadow: none; }
.pub-table { min-width: 1100px; font-size: 14px; }
.pub-table th:nth-child(1), .pub-table td:nth-child(1) { width: 76px; min-width: 76px; white-space: nowrap; }
.pub-table th:nth-child(2), .pub-table td:nth-child(2) { min-width: 210px; }
.pub-table th:nth-child(3), .pub-table td:nth-child(3) { min-width: 250px; }
.pub-table th:nth-child(4), .pub-table td:nth-child(4) { min-width: 210px; }
.pub-table th:nth-child(5), .pub-table td:nth-child(5) { min-width: 290px; }
.pub-table th:nth-child(6), .pub-table td:nth-child(6) { min-width: 150px; }
.project-table { min-width: 1000px; }
.services-table { min-width: 860px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 24px;
}
.photo-grid figure { margin: 0; }
.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #0b1c2b;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(14, 43, 58, .1);
}
.photo-grid figure.portrait img { aspect-ratio: 3 / 4; }
.photo-grid figure.landscape img { aspect-ratio: 4 / 3; }
.photo-grid figure.tall img { aspect-ratio: 7 / 10; }
.photo-grid figure.cad img { aspect-ratio: 1 / 1; padding: 14px; background: #f3f7f7; object-fit: contain; }
.photo-grid figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}
.photo-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-grid.two img { aspect-ratio: 4 / 3; object-fit: contain; padding: 8px; }

@media (max-width: 960px) {
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .hero h1 { font-size: clamp(3.5rem, 9vw, 5.5rem); }
  .transfer-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.7rem, 11vw, 4.25rem); }
  .hero-context { font-size: 14px; }
  .quick-links { gap: 7px; }
  .quick-links a { font-size: 11px; }
  .logo-grid { grid-template-columns: 1fr; }
  .logo-grid figure { min-height: 108px; }
  .transfer-grid article { padding: 22px; }
  .photo-grid.two { grid-template-columns: 1fr; }
}
.detail-photo.product img { object-fit: contain; padding: 10px; }
.family-emblem {
  width: min(180px, 40%);
  margin: 20px 0 24px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.family-emblem img { width: 100%; height: auto; border-radius: 7px; }
.family-emblem figcaption { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.4; letter-spacing: 0; text-transform: none; }


/* Textura compartida por las imágenes con fondo transparente */
.hero-robot .frame,
.detail-photo.product,
.photo-grid img,
.robot-media.textured,
.capacity-media.textured {
  background-color: #0b1c2b;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(93, 200, 202, .18), transparent 34%),
    radial-gradient(circle at 8% 90%, rgba(78, 125, 167, .13), transparent 38%),
    linear-gradient(rgba(196, 236, 235, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 236, 235, .065) 1px, transparent 1px),
    linear-gradient(130deg, #0b1c2b, #163343 70%, #0b2130);
  background-size: auto, auto, 76px 76px, 76px 76px, auto;
}
.hero-robot .frame img {
  width: 100%;
  height: auto;
  max-height: 490px;
  object-fit: contain;
  padding: 18px;
}
.hero-robot .frame::after { display: none; }

/* Tarjetas de capacidad con imagen y botón */
.capacity-media {
  display: block;
  width: 100%;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f7f7;
}
.capacity-media img { display: block; width: 100%; height: 180px; object-fit: contain; padding: 10px; }
.capacity-media.cover img { object-fit: cover; padding: 0; }
.capacity-media.textured img { padding: 14px; }
.capacity-media figcaption {
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
.capacity-media.textured figcaption { color: #b9cfd5; }
.areas .card-button {
  gap: 14px;
  margin-top: 18px;
  padding: 12px 18px;
  font-size: 13px;
  box-shadow: none;
}
.areas .card-button:hover { transform: none; }

/* Galería de robots */
.robot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.robot-card {
  padding: 10px;
  border: 1px solid #e1e9ea;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(14, 43, 58, .03);
}
.robot-media {
  display: flex;
  height: 190px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f7f7;
}
.robot-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.robot-media.cover img { object-fit: cover; padding: 0; }
.robot-media.textured img { padding: 10px; }
.robot-card h3 { margin: 10px 0 2px; font-size: 1.1rem; }
.robot-maker {
  color: var(--muted);
  font: 10px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.robot-card h3 + .robot-maker { margin-top: 0; }

.publications + .publications { margin-top: 14px; }

@media (max-width: 780px) {
  .robot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .robot-grid { grid-template-columns: 1fr; }
  .capacity-media img { height: 160px; }
  .robot-media { height: 190px; }
  .areas .card-button { width: 100%; justify-content: space-between; }
}

/* Flechas más gruesas en botones y enlaces de acción */
.button span[aria-hidden="true"],
.detail-link span[aria-hidden="true"] {
  font-weight: 900;
  text-shadow: 0 0 0.7px currentColor;
  line-height: 1;
}

/* Enlaces narrativos de las páginas de detalle como botones blancos */
body:not([data-page="privacidad"]) .detail-content section > p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 3px 4px 3px 0;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--link);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  vertical-align: baseline;
  box-shadow: 0 2px 8px rgba(14, 43, 58, .04);
}
body:not([data-page="privacidad"]) .detail-content section > p a:hover {
  border-color: var(--link);
  background: var(--tint);
  color: var(--link);
  text-decoration: none;
}
