
:root {
  --paper: #efebe4;
  --paper-2: #f6f2ed;
  --ink: #171717;
  --muted: #69645b;
  --line: rgba(23,23,23,.10);
  --gold: #b79661;
  --white: #ffffff;
  --dark: #10100f;
  --radius: 28px;
  --shadow: 0 18px 70px rgba(0,0,0,.10);
  --max: 1380px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #e7e0d6;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.page-shell { background: var(--paper); min-height: 100vh; }
.section-pad { padding: 110px max(5vw, calc((100vw - var(--max))/2)); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.eyebrow, .section-tag, .brand-label, .quote-form span {
  text-transform: uppercase; letter-spacing: .16em; font-size: 11px; color: var(--muted);
}
.eyebrow.light { color: rgba(255,255,255,.74); }
h1, h2, h3 {
  margin: 0; font-weight: 500; line-height: .96; letter-spacing: -.03em;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
h1 em, h2 em { font-style: italic; font-weight: 400; }
h1 { font-size: clamp(54px, 7vw, 104px); color: var(--white); }
h2 { font-size: clamp(36px, 4.5vw, 66px); }
h3 { font-size: 30px; }
p { margin: 0; line-height: 1.72; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent; transition: transform .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--ink); }
.text-link { display: inline-flex; gap: 12px; align-items: center; font-size: 14px; }
.text-link.light { color: rgba(255,255,255,.85); }
.text-link.dark { color: var(--ink); }
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 30; display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 32px; height: 86px; padding: 0 max(4vw, calc((100vw - var(--max))/2));
  color: var(--white); transition: background .35s ease, color .35s ease, box-shadow .35s ease;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgba(247,242,237,.96); color: var(--ink); box-shadow: 0 10px 40px rgba(0,0,0,.05); backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center;
  font-family: "Iowan Old Style", Georgia, serif; font-size: 22px;
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text small { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; opacity: .72; }
.brand-text strong { font-size: 13px; letter-spacing: .18em; font-weight: 700; }
.desktop-nav { display: inline-flex; gap: 26px; align-items: center; font-size: 14px; }
.desktop-nav a { opacity: .82; }
.header-cta { border: 1px solid currentColor; padding: 12px 18px; border-radius: 999px; font-size: 13px; }
.menu-toggle { display: none; background: transparent; border: 0; width: 46px; height: 46px; padding: 0; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 99px; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { bottom: 17px; }

.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-slider, .hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease, transform 7s ease; transform: scale(1.06);
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.52) 52%, rgba(0,0,0,.70)); }
.hero-content {
  position: relative; z-index: 2; padding: 0 max(5vw, calc((100vw - var(--max))/2)) 110px; width: min(980px, 94vw);
}
.hero-copy { margin-top: 26px; max-width: 760px; color: rgba(255,255,255,.83); font-size: 18px; }
.hero-actions { display: flex; gap: 18px; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.hero-panel {
  position: absolute; right: max(5vw, calc((100vw - var(--max))/2)); bottom: 58px; z-index: 2; width: min(370px, 92vw);
  display: grid; gap: 1px; background: rgba(255,255,255,.18); backdrop-filter: blur(12px); border-radius: 24px; overflow: hidden;
}
.hero-panel > div { background: rgba(11,11,11,.32); padding: 20px 22px; }
.hero-panel span { display: block; color: var(--white); font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.hero-panel p { color: rgba(255,255,255,.75); font-size: 13px; }

.intro-grid, .projects-head, .gallery-head, .services-head, .brands-head {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end;
}
.intro-copy { border-left: 1px solid var(--line); padding-left: 36px; max-width: 540px; }
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px;
}
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.service-image { aspect-ratio: 1 / 1.05; background-size: cover; background-position: center; }
.service-body { padding: 28px; }
.service-body .eyebrow { margin-bottom: 12px; }
.service-body h3 { margin-bottom: 14px; }
.service-body p:last-child { color: var(--muted); }

.projects { background: var(--white); }
.project-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 28px; margin-top: 46px; }
.project-tall, .project-card { margin: 0; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.project-tall img { height: 780px; object-fit: cover; }
.project-stack { display: grid; gap: 28px; }
.project-card img { height: 376px; object-fit: cover; }
.project-tall figcaption, .project-card figcaption, .gallery-item figcaption {
  padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted);
}
.project-tall figcaption strong, .project-card figcaption strong { color: var(--ink); font-size: 18px; }

.marquee-strip { overflow: hidden; background: var(--dark); padding: 18px 0; }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 42s linear infinite; }
.marquee-item { width: 320px; height: 210px; border-radius: 22px; overflow: hidden; flex: 0 0 auto; }
.marquee-item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.process {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; background: var(--paper-2);
}
.process-image img { border-radius: var(--radius); box-shadow: var(--shadow); min-height: 620px; object-fit: cover; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--gold); font-size: 12px; font-weight: 700; }
.steps strong { display: block; margin-bottom: 6px; font-size: 17px; }
.steps p { color: var(--muted); font-size: 14px; }

.gallery { background: var(--white); }
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.filter-btn {
  border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 11px 16px; border-radius: 999px; cursor: pointer;
}
.filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.gallery-grid { margin-top: 42px; columns: 4 250px; column-gap: 18px; }
.gallery-item {
  break-inside: avoid; margin: 0 0 18px; background: var(--paper-2); border-radius: 22px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.05);
}
.gallery-item img { width: 100%; height: auto; }
.gallery-item.hidden { display: none; }

.before-after {
  display: grid; grid-template-columns: .78fr 1.22fr; gap: 38px; align-items: center;
}
.before-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

.brand-block { border-top: 1px solid var(--line); padding: 26px 0 34px; }
.brand-logos { display: flex; flex-wrap: wrap; gap: 18px 30px; }
.brand-logos span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 20px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line); font-weight: 700; letter-spacing: .06em; box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.brand-logos.primary span { font-size: 20px; }

.quote {
  background: var(--dark); color: var(--white); display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px;
  padding: 110px max(5vw, calc((100vw - var(--max))/2));
}
.quote-copy p:last-child { color: rgba(255,255,255,.72); margin-top: 20px; max-width: 550px; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-content: start; }
.quote-form label { display: flex; flex-direction: column; gap: 10px; }
.quote-form input, .quote-form textarea, .quote-form select {
  width: 100%; background: transparent; color: var(--white); border: 0; border-bottom: 1px solid rgba(255,255,255,.22); padding: 12px 0; outline: none;
}
.quote-form select option { color: var(--ink); }
.quote-form .full { grid-column: 1 / -1; }

.site-footer { background: #121210; color: rgba(255,255,255,.78); padding: 70px max(5vw, calc((100vw - var(--max))/2)) 26px; }
.footer-top { display: grid; grid-template-columns: 1fr .9fr; gap: 40px; align-items: end; }
.footer-top p { max-width: 540px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin: 54px 0; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols span { text-transform: uppercase; font-size: 10px; letter-spacing: .16em; color: rgba(255,255,255,.42); margin-bottom: 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; font-size: 11px; color: rgba(255,255,255,.45); }

@media (max-width: 1100px) {
  .intro-grid, .projects-head, .gallery-head, .services-head, .brands-head, .process, .before-after, .quote, .footer-top { grid-template-columns: 1fr; }
  .service-grid, .project-layout { grid-template-columns: 1fr; }
  .project-tall img, .project-card img, .process-image img { height: auto; }
  .gallery-filters { justify-content: flex-start; }
  .hero-panel { position: relative; right: auto; bottom: auto; margin: 0 5vw 42px; }
}
@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; gap: 12px; height: 76px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .site-header.menu-open { height: auto; align-items: start; padding-top: 14px; padding-bottom: 18px; }
  .site-header.menu-open .desktop-nav { display: flex; grid-column: 1 / -1; flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 0 8px; }
  .site-header.menu-open .header-cta { display: inline-flex; grid-column: 1 / -1; justify-self: start; }
  .quote-form { grid-template-columns: 1fr; }
  .quote-form .full { grid-column: auto; }
  .gallery-grid { columns: 2 220px; }
}
@media (max-width: 640px) {
  .section-pad, .quote { padding-top: 82px; padding-bottom: 82px; }
  .hero-content { padding-bottom: 72px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .gallery-grid { columns: 1 280px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .brand-logos.primary span { font-size: 17px; }
}

/* Brand logos: clickable manufacturer cards */
.brand-logo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.brand-logo-grid.premium-logos { grid-template-columns:repeat(5,minmax(0,1fr)); }
.brand-logo-card {
  min-height:190px; background:#fff; border:1px solid var(--line); border-radius:22px; padding:24px;
  display:flex; flex-direction:column; justify-content:space-between; align-items:center; gap:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.035); transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.brand-logo-card:hover { transform:translateY(-4px); box-shadow:0 18px 45px rgba(0,0,0,.09); border-color:rgba(23,23,23,.22); }
.brand-logo-card img { width:100%; height:95px; object-fit:contain; }
.brand-logo-card > span { width:100%; padding-top:14px; border-top:1px solid var(--line); font-size:11px; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); }
.brand-logo-card.compact { min-height:155px; padding:18px; }
.brand-logo-card.compact img { height:72px; max-width:165px; }
.brand-logo-card.compact > span { text-align:center; }
.brand-disclaimer { margin-top:24px; color:var(--muted); font-size:11px; line-height:1.6; }
@media(max-width:1100px){ .brand-logo-grid.premium-logos{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media(max-width:760px){ .brand-logo-grid,.brand-logo-grid.premium-logos{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:480px){ .brand-logo-grid,.brand-logo-grid.premium-logos{grid-template-columns:1fr;} }


/* Navigation and hero refinements */
section[id] { scroll-margin-top: 92px; }
.hero h1 {
  font-size: clamp(42px, 5.15vw, 76px);
  line-height: .98;
  max-width: 860px;
}
.hero-content {
  width: min(900px, 92vw);
  padding-top: 150px;
  padding-bottom: 78px;
}
.hero-copy { max-width: 690px; font-size: 16px; margin-top: 22px; }
.hero-actions { margin-top: 28px; }
.site-header { gap: 18px; padding-left: max(2.8vw, calc((100vw - var(--max))/2)); padding-right: max(2.8vw, calc((100vw - var(--max))/2)); }
.desktop-nav { gap: clamp(10px, 1.05vw, 18px); font-size: 12.5px; white-space: nowrap; }
.desktop-nav a { opacity: .88; transition: opacity .2s ease; }
.desktop-nav a:hover { opacity: 1; }
.header-cta { padding: 11px 15px; font-size: 12px; white-space: nowrap; }
.section-tag { margin-bottom: 18px; font-weight: 700; color: #80786c; }

@media (max-width: 1220px) {
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header.menu-open { height: auto; align-items: start; padding-top: 14px; padding-bottom: 18px; }
  .site-header.menu-open .desktop-nav { display: flex; grid-column: 1 / -1; flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 0 8px; font-size: 15px; white-space: normal; }
  .site-header.menu-open .header-cta { display: inline-flex; grid-column: 1 / -1; justify-self: start; }
}

@media (max-height: 780px) and (min-width: 900px) {
  .hero h1 { font-size: clamp(38px, 4.45vw, 64px); }
  .hero-content { padding-top: 132px; padding-bottom: 46px; }
  .hero-copy { font-size: 14px; line-height: 1.55; margin-top: 16px; }
  .hero-actions { margin-top: 20px; }
  .hero-panel { bottom: 28px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-content { padding-top: 120px; padding-bottom: 58px; }
}

/* Section labels removed */
.services-head, .projects-head, .gallery-head, .brands-head { align-items:end; }
.brand-block { padding-top:32px; }
.brand-logo-card img[src$="logo-mk.svg"] { height:95px; max-width:95px; }

/* WhatsApp contact CTA */
.whatsapp-contact{margin-top:28px;display:flex;align-items:center;gap:16px;width:min(100%,520px);min-width:0;padding:16px 18px;border:1px solid rgba(255,255,255,.20);border-radius:18px;background:rgba(255,255,255,.06);transition:transform .25s ease,background .25s ease,border-color .25s ease}.whatsapp-contact-list .whatsapp-contact{margin-top:0}.whatsapp-contact:hover{transform:translateY(-2px);background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.34)}.whatsapp-icon{flex:0 0 48px;width:48px;height:48px;border-radius:50%;display:block;object-fit:cover;background:#292929}.whatsapp-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.whatsapp-copy strong{color:#fff;font-size:15px;font-weight:600;line-height:1.2}.whatsapp-number{color:#fff;font-size:15px;font-weight:600;line-height:1.2;white-space:nowrap}.whatsapp-copy small{color:rgba(255,255,255,.65);font-size:12px;line-height:1.5}.footer-whatsapp-note{color:rgba(255,255,255,.44);font-size:10px;line-height:1.5;max-width:260px}
@media(max-width:480px){.whatsapp-contact{gap:12px;padding:14px 15px}.whatsapp-icon{flex-basis:42px;width:42px;height:42px}.whatsapp-copy strong,.whatsapp-number{font-size:13px}.whatsapp-copy small{font-size:11px;line-height:1.4}}

/* El panel estadístico se oculta en teléfonos para mantener el hero limpio. */
@media (max-width: 640px) {
  .hero-panel { display: none !important; }
}


/* About + history */
.about { background:#f6f2ed; }
.about-grid {
  display:grid; grid-template-columns:.82fr 1.18fr; gap:clamp(44px,7vw,110px);
  align-items:center; max-width:var(--max); margin:0 auto;
}
.founder-portrait { max-width:520px; }
.portrait-placeholder {
  min-height:620px; border-radius:var(--radius); overflow:hidden;
  background:linear-gradient(145deg,#ded7cc,#c9c0b2);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  color:#6d665d; box-shadow:var(--shadow);
}
.portrait-placeholder svg { width:42%; max-width:220px; fill:none; stroke:currentColor; stroke-width:3; opacity:.55; }
.portrait-placeholder span { margin-top:24px; font-size:11px; text-transform:uppercase; letter-spacing:.18em; }
.portrait-caption { display:flex; flex-direction:column; gap:5px; padding-top:18px; }
.portrait-caption strong { font-size:16px; font-weight:600; }
.portrait-caption span { color:var(--muted); font-size:12px; }
.about-copy h2, .history-heading h2 { margin-bottom:28px; }
.about-copy p { max-width:680px; color:var(--muted); }
.about-copy .about-lead { color:var(--ink); font-size:clamp(20px,2vw,27px); line-height:1.45; margin-bottom:22px; }
.about-copy .text-link { margin-top:28px; }

.history { background:#fff; }
.history-grid {
  display:grid; grid-template-columns:.72fr 1.28fr; gap:clamp(48px,8vw,130px);
  max-width:var(--max); margin:0 auto; align-items:start;
}
.history-copy { max-width:820px; }
.history-copy > p { color:var(--muted); }
.history-copy .history-lead { color:var(--ink); font-size:clamp(20px,2vw,27px); line-height:1.45; margin-bottom:18px; }
.history-timeline { margin-top:42px; border-top:1px solid var(--line); }
.history-timeline > div {
  display:grid; grid-template-columns:90px 1fr 1.4fr; gap:24px; padding:22px 0;
  border-bottom:1px solid var(--line); align-items:start;
}
.history-timeline span { text-transform:uppercase; letter-spacing:.13em; font-size:10px; color:var(--gold); }
.history-timeline strong { font-size:18px; }
.history-timeline p { color:var(--muted); font-size:13px; }

.primary-logos { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }

@media (max-width:980px){
  .about-grid,.history-grid { grid-template-columns:1fr; }
  .founder-portrait { max-width:640px; }
  .portrait-placeholder { min-height:520px; }
  .history-timeline > div { grid-template-columns:80px 1fr; }
  .history-timeline p { grid-column:2; }
  .primary-logos { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:560px){
  .portrait-placeholder { min-height:420px; }
  .history-timeline > div { grid-template-columns:1fr; gap:8px; }
  .history-timeline p { grid-column:auto; }
  .primary-logos { grid-template-columns:1fr !important; }
}

/* About section refinements */
.about-values { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:28px 0 24px; }
.about-values > div { border-top:1px solid var(--line); padding-top:16px; }
.about-values strong { display:block; font-size:15px; margin-bottom:7px; }
.about-values span { display:block; color:var(--muted); font-size:12px; line-height:1.55; }
.about-area { margin:0 0 22px; color:var(--muted); font-size:13px; }
@media(max-width:760px){ .about-values{grid-template-columns:1fr;} }



/* Combined about + story section */
.about-story { background:#f6f2ed; }
.about-story-layout { display:grid; gap:32px; max-width:var(--max); margin:0 auto; }
.story-card {
  display:grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px,4vw,56px);
  align-items:center; background:rgba(255,255,255,.55); border:1px solid var(--line);
  border-radius:34px; padding: clamp(22px,3vw,34px); box-shadow:0 14px 50px rgba(0,0,0,.05);
}
.story-card--history { grid-template-columns: 1.08fr .92fr; }
.story-media img {
  width:100%; height:100%; display:block; object-fit:cover; border-radius:24px;
  box-shadow:0 18px 50px rgba(0,0,0,.10); filter:saturate(.97) contrast(1.02);
}
.story-media--portrait img { aspect-ratio: 4 / 5; }
.story-media--wide img { aspect-ratio: 16 / 11; }
.story-copy h2 { margin-bottom:24px; }
.story-copy p { color:var(--muted); }
.story-copy .story-lead { color:var(--ink); font-size:clamp(20px,2vw,27px); line-height:1.45; margin-bottom:18px; }
.portrait-caption { display:flex; flex-direction:column; gap:6px; padding-top:16px; }
.portrait-caption strong { font-size:16px; font-weight:600; }
.portrait-caption span { color:var(--muted); font-size:12px; }
.history-timeline.compact { margin-top:32px; }
.history-timeline.compact > div { grid-template-columns:80px 1fr 1.2fr; }

/* Richer process media */
.process { grid-template-columns: .82fr 1.18fr; }
.process-visual-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:18px; align-content:start;
}
.process-visual { margin:0; background:#fff; border-radius:24px; overflow:hidden; box-shadow:var(--shadow); }
.process-visual img { width:100%; height:100%; object-fit:cover; display:block; }
.process-visual figcaption { padding:14px 16px 16px; font-size:12px; color:var(--muted); }
.process-visual--hero { grid-column:1 / -1; }
.process-visual--hero img { aspect-ratio: 16 / 10; min-height: 360px; }
.process-visual:not(.process-visual--hero):not(.process-visual--wide) img { aspect-ratio: 5 / 4; }
.process-visual--wide { grid-column:1 / -1; }
.process-visual--wide img { aspect-ratio: 16 / 9; }

@media (max-width: 1100px) {
  .about-story-layout, .story-card, .story-card--history, .process { grid-template-columns:1fr; }
  .process-visual--hero img { min-height: 0; }
}
@media (max-width: 760px) {
  .story-card { padding:22px; border-radius:28px; }
  .history-timeline.compact > div { grid-template-columns:1fr; gap:8px; }
  .process-visual-grid { grid-template-columns:1fr; }
  .process-visual--hero, .process-visual--wide { grid-column:auto; }
}


/* Header brand photo */
.brand-mark-photo { overflow:hidden; padding:0; background:#ddd; }
.brand-mark-photo img { width:100%; height:100%; object-fit:cover; display:block; }

/* Single about section after removing history */
.about-story-layout { gap:0; }
.story-card--intro { grid-template-columns: .92fr 1.08fr; }
@media (max-width: 1100px) { .story-card--intro { grid-template-columns:1fr; } }

/* Logo de navegación: variantes explícitas y contenidas */
.brand-logo {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
  text-decoration:none;
  flex-shrink:0;
  overflow:hidden;
}
.brand-logo img {
  display:block;
  object-fit:contain;
  object-position:center;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
}
header .brand-logo {
  width:120px;
  height:58px;
  max-width:120px;
}
.site-header .brand-logo .logo-light,
.site-header .brand-logo .logo-dark {
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
}
/* Vista invertida solicitada: logo oscuro arriba y logo claro al desplazarse. */
header .brand-logo .logo-light { display:none; }
header .brand-logo .logo-dark { display:block; }
.site-header.scrolled .brand-logo .logo-dark,
.site-header.menu-open .brand-logo .logo-dark { display:none; }
.site-header.scrolled .brand-logo .logo-light,
.site-header.menu-open .brand-logo .logo-light { display:block; }
.footer-logo-img {
  width:65px;
  height:auto;
  max-width:65px;
  object-fit:contain;
}
.footer-top { align-items:center; }
@media (max-width: 1100px) {
  header .brand-logo { width:100px; height:50px; max-width:100px; }
}
@media (max-width: 640px) {
  header .brand-logo { width:80px; height:40px; max-width:80px; }
  .footer-logo-img { width:65px; max-width:65px; }
}

/* Protección final contra logos que alteren la altura de la navegación. */
.site-header { height:74px; }
.site-header { grid-template-columns:120px minmax(0,1fr) auto; }
.site-header .brand-logo { min-width:0; min-height:0; }
.site-header .brand-logo img { flex:0 0 auto; }
.site-header .brand-logo .site-logo { display:block !important; width:100% !important; height:100% !important; max-width:100% !important; max-height:100% !important; object-fit:contain !important; }
@media (max-width:960px) { .site-header { height:64px; } }
@media (max-width:1220px) { .site-header { grid-template-columns:120px auto; } }
