/* Iteración 3 — capa incremental sobre la estructura de Iteración 2. */
:root { --ink: #222624; --muted: #555d59; --mist: #f7f8f7; }
.display { font-weight: 700; letter-spacing: -.045em; line-height: 1.08; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .045em; font-weight: 400; }
.site-header { border-bottom-color: #ededeb; }
.header-inner { min-height: 96px; }
.brand-symbol { display: inline-flex; padding: 20px; margin-left: -20px; flex: 0 0 auto; }
.brand-symbol img { width: 52px; height: auto; display: block; object-fit: contain; }
.site-nav a { font-size: 14px; font-weight: 500; }
.nav-cta { color: var(--red-deep); border-left: 0; }
.button { background: var(--red-deep); border-color: var(--red-deep); font-size: 15px; border-radius: 3px; padding: 0 24px; min-height: 52px; }
.button:hover { background: #8e0000; border-color: #8e0000; }
.text-link { font-size: 15px; }
.home-hero__grid { grid-template-columns: 1.05fr .95fr; gap: 48px; padding: 76px 0 84px; border-bottom: 0; min-height: 620px; }
.home-hero .display { font-size: clamp(42px, 4.8vw, 68px); max-width: 650px; }
.home-hero__lead { max-width: 480px; font-size: 18px; line-height: 1.65; margin-top: 28px; }
.hero-environment { margin: 0 -48px 0 -24px; min-width: 0; }
.hero-environment img { width: 100%; height: auto; object-fit: contain; display: block; }
.home-hero__actions { margin-top: 32px; }
#proyectos { padding-top: 72px; }
.work-intro { grid-template-columns: 1fr 1fr; margin-bottom: 52px; align-items: end; }
.work-intro .display { font-size: clamp(40px, 4vw, 56px); }
.work-intro__note { max-width: 430px; border: 0; padding: 0; justify-self: end; font-size: 17px; line-height: 1.65; }
.project-grid { gap: 28px; }
.project-card { grid-column: span 4; position: relative; min-height: 590px; overflow: hidden; border-radius: 6px; isolation: isolate; background: var(--project-bg); }
.project-card:nth-child(1), .project-card:nth-child(4), .project-card:nth-child(5) { grid-column: span 8; }
.project-card:nth-child(6) { grid-column: span 4; }
.project-card--autotraders, .project-hero--autotraders { --project-bg: linear-gradient(145deg,#f0f5f8 0%,#d9e6ef 62%,#bbd0df 100%); --project-glass: rgba(217,230,239,.72); }
.project-card--medimap, .project-hero--medimap { --project-bg: linear-gradient(145deg,#f1f8f6,#d6ece7 65%,#b4dcd2); --project-glass: rgba(214,236,231,.72); }
.project-card--bhive, .project-hero--bhive { --project-bg: linear-gradient(140deg,#f1f2fb,#dadef0 60%,#b8c6e7); --project-glass: rgba(218,222,240,.72); }
.project-card--salfa, .project-hero--salfa { --project-bg: linear-gradient(145deg,#faf6ef,#eddfc6 68%,#dbc4a1); --project-glass: rgba(237,223,198,.72); }
.project-card--cefm, .project-hero--cefm { --project-bg: linear-gradient(145deg,#f5f8ef,#e0e8d4 65%,#c4d4b4); --project-glass: rgba(224,232,212,.72); }
.project-card--aws, .project-hero--aws { --project-bg: linear-gradient(145deg,#f8f5f1,#e9dfd1 65%,#d4c5b2); --project-glass: rgba(233,223,209,.72); }
.project-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .5s ease; }
.project-card:hover .project-card__image { transform: scale(1.025); }
.project-number { position: absolute; z-index: 1; top: 26px; left: 28px; font: 400 19px/1 var(--mono); color: #344740; }
.glass-panel { background: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.76); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 6px 24px rgba(30,50,40,.035); border-radius: 4px; }
.project-card__content { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 24px; }
.project-card:nth-child(1) .project-card__content, .project-card:nth-child(4) .project-card__content, .project-card:nth-child(5) .project-card__content { right: auto; width: min(440px, calc(100% - 48px)); }
.project-card h3 { font-size: clamp(25px,2.5vw,34px); letter-spacing: -.035em; }
.project-card p { font-size: 16px; line-height: 1.5; margin-top: 12px; color: #414b46; }
.project-card .project-card__meta { font: 400 11px/1.5 var(--mono); letter-spacing: .035em; color: #53645b; margin: 0 0 12px; }
.project-card__detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; font: 400 12px/1.5 var(--mono); color: #2c3932; }
.project-card__detail span:last-child { font-family: var(--sans); font-size: 24px; }
.project-card a { border-radius: 6px; }
.project-card:focus-within { outline: 2px solid var(--red-deep); outline-offset: 5px; }
.project-card a:focus-visible { outline-offset: -3px; }
.method-list__number { font: 400 22px/1.4 var(--mono); }
.method-list li { grid-template-columns: 44px 1fr; padding: 32px 0; }
.method-list h3 { font-weight: 700; font-size: 21px; }
.method-list p { font-size: 16px; }
.experience-data { display: flex; align-items: center; gap: 28px; margin-bottom: 40px; font-size: 15px; line-height: 1.5; }
.experience-data__value { font: 400 clamp(64px,7vw,96px)/1 var(--mono); letter-spacing: -.09em; color: var(--ink); }
.experience-data__value span { color: var(--red-deep); font-size: .56em; vertical-align: top; line-height: 1.1; }
.about-copy .about-statement { font-size: 21px; }
.contact { background: #fafbf9; }
.contact .display { font-size: clamp(40px,4vw,56px); }
.field label { font-size: 14px; font-weight: 400; }
.field input, .field textarea { border: 0; border-bottom: 1px solid #afb8b0; border-radius: 0; background: transparent; padding: 10px 0; }
.field input:focus, .field textarea:focus { outline-offset: 4px; }
.footer-inner { flex-wrap: wrap; }
.corporate-signature { display: inline-flex; padding: 26px; margin-left: -26px; }
.corporate-signature img { display: block; width: 132px; height: auto; object-fit: contain; }
.footer-inner p { font-family: var(--mono); font-size: 12px; }
.footer-link { font-size: 14px; }

/* Project opening: art foreground and editorial text, technical sheet stays secondary. */
.project-hero { display: grid; grid-template-columns: .95fr 1.05fr; position: relative; isolation: isolate; overflow: hidden; gap: 0; width: var(--shell); margin: 36px auto 0; min-height: 640px; padding: 0; border: 0; border-radius: 6px; background: var(--project-bg,#f5f7f6); }
.project-hero__image { grid-column: 1 / -1; grid-row: 1 / -1; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; z-index: -1; }
.project-hero__inner { position: relative; min-width: 0; grid-column: 1; grid-row: 1; padding: 56px 48px; }
.project-hero__inner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--project-glass, rgba(255,255,255,.76)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.project-hero .display { font-size: clamp(36px,3.6vw,54px); line-height: 1.08; max-width: 560px; }
.project-hero__sector { font: 400 12px/1.7 var(--mono); letter-spacing: .015em; color: #43554b; }
.project-hero__summary { font-size: 18px; line-height: 1.6; color: #3f4d45; margin-top: 24px; max-width: 440px; }
.project-hero__data { margin-top: 32px; padding: 20px 24px; width: fit-content; max-width: 100%; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.project-hero__data span { font: 400 11px/1.5 var(--mono); color: #4d5d52; }
.project-hero__data strong { font: 400 22px/1.4 var(--mono); color: #21382c; }
.back-link { margin-bottom: 48px; font-size: 14px; }
.project-content h2, .project-facts h2, .project-cta h2 { font-weight: 700; }
.project-facts { border-top: 1px solid var(--line); background: transparent; padding: 28px 0; }
.project-facts dt { font-family: var(--mono); font-size: 12px; font-weight: 400; }
.project-facts dd { font-size: 15px; }
.project-cta { background: #f6f8f5; }
.project-cta h2 { font-size: 29px; }
@media (max-width: 1100px) and (min-width: 721px) {
  .project-card { min-height: 620px; }
  .project-card__content { left: 16px; right: 16px; bottom: 16px; padding: 20px; }
  .project-card:nth-child(1) .project-card__content, .project-card:nth-child(4) .project-card__content, .project-card:nth-child(5) .project-card__content { width: calc(100% - 32px); }
}
@media (max-width: 980px) {
  .project-card, .project-card:nth-child(n) { grid-column: span 6; }
  .project-card:nth-child(n) .project-card__content { width: calc(100% - 32px); }
  .project-hero { grid-template-columns: 1fr 1fr; min-height: 590px; }
  .project-hero .display { font-size: 38px; }
  .home-hero .display { font-size: 48px; }
  .hero-environment { margin: 0 -16px; }
}
@media (max-width: 720px) {
  .header-inner { min-height: 84px; }
  .site-nav { top: 84px; }
  .brand-symbol { padding: 18px; margin-left: -18px; }
  .brand-symbol img { width: 46px; }
  .home-hero__grid { grid-template-columns: 1fr; padding: 56px 0 44px; gap: 36px; min-height: auto; }
  .home-hero .display { font-size: clamp(40px,10vw,52px); }
  .home-hero__lead { font-size: 17px; }
  .home-hero__actions { gap: 22px; }
  .hero-environment { margin: 0 -12px; }
  .work-intro { grid-template-columns: 1fr; gap: 24px; }
  .work-intro__note { justify-self: start; }
  #proyectos { padding-top: 44px; }
  .project-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .project-card, .project-card:nth-child(n) { grid-column: 1; min-height: 540px; }
  .project-card:nth-child(n) .project-card__content { width: auto; left: 16px; right: 16px; bottom: 16px; padding: 22px; }
  .project-number { top: 22px; left: 22px; font-size: 17px; }
  .project-card h3 { font-size: 28px; }
  .project-card__detail { padding-top: 14px; }
  .method-list li { grid-template-columns: 34px 1fr; gap: 14px; }
  .experience-data { gap: 24px; }
  .project-hero { grid-template-columns: 1fr; padding: 0; gap: 0; margin-top: 24px; min-height: 78vh; align-items: end; }
  .project-hero__inner { grid-column: 1; grid-row: 1; padding: 40px 24px 32px; }
  .project-hero .display { font-size: clamp(32px,8vw,40px); }
  .project-hero__summary { font-size: 17px; }
  .back-link { margin-bottom: 30px; font-size: 13px; }
  .project-hero__data { margin-top: 24px; padding: 16px 20px; }
  .project-hero__data strong { font-size: 20px; }
  .project-facts { order: 0; }
  .project-main { padding-top: 64px; }
  .project-cta h2 { font-size: 26px; }
  .footer-inner { gap: 0 24px; }
  .corporate-signature { flex-basis: 100%; padding: 26px; margin-left: -26px; }
  .corporate-signature img { width: 120px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-panel { background: rgba(255,255,255,.96); }
}
@media (prefers-reduced-transparency: reduce) { .glass-panel { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .project-card:nth-child(n):hover .project-card__image { transform: none; } }
