/* ============================================================
   M&R Lab Solutions — landing page
   Paleta: navy #1B2C42 · ámbar #E5A455 · gris claro #F4F4F4
   Tipografía: Poppins (títulos / antetítulos) + Inter (cuerpo)
   Maquetación de referencia: biofarma.com.ar (hero grande, barra de
   tarjetas foto+hover, ecosistema de soluciones, marquee de marcas,
   ciclo de trabajo, contacto simple, footer robusto).
   ============================================================ */

:root{
  --navy: #1B2C42;
  --navy-soft: #24374f;
  --amber: #E5A455;
  --amber-hover: #D6893A;
  --amber-light: #F0B876;
  --bg-light: #F4F4F4;
  --catalog-bg: #F9F8F6;
  --white: #FFFFFF;
  --text-body: #3E4A59;
  --text-muted: #55606E;
  --border-soft: rgba(27,44,66,0.1);

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-w: 1280px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --section-pad: clamp(72px, 9vw, 132px);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

a{ color: var(--amber); text-decoration: none; transition: color .2s ease; }
a:hover{ color: var(--amber-hover); }

h1, h2, h3{ font-family: var(--font-head); color: var(--navy); margin: 0; }

.hl{ color: var(--amber); }

.container{ max-width: var(--container-w); margin: 0 auto; padding: 0 32px; }

.skip-link{
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: var(--white); padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* -------------------- buttons / links -------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 8px 8px 8px 28px;
  border-radius: var(--radius-pill);
  letter-spacing: .01em;
  transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
  border: none;
  cursor: pointer;
}
.btn:hover{ transform: translateY(-1px); }
.btn .btn-icon{
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.btn-gold{ background: var(--amber); color: var(--navy); }
.btn-gold:hover{ background: var(--amber-hover); color: var(--navy); }
.btn-gold .btn-icon{ background: var(--navy); color: var(--white); }

.btn-dark{ background: var(--navy); color: var(--white); box-shadow: 0 10px 26px rgba(27,44,66,.18); }
.btn-dark:hover{ background: #0F1A2B; color: var(--white); }
.btn-dark .btn-icon{ background: var(--amber); color: var(--navy); }

.btn-sm{
  height: 44px;
  padding: 12px 28px;
  font-size: 14px;
  line-height: 1;
}
.btn-sm .btn-icon{ display: none; }

.link-underline{
  font-weight: 500; font-size: 15px;
  border-bottom: 1px solid rgba(62,74,89,.4);
  padding-bottom: 4px;
}
.link-underline:hover{ border-color: var(--amber-hover); }
.link-light{ color: var(--white); border-bottom-color: rgba(255,255,255,.4); }
.link-light:hover{ color: var(--amber); border-bottom-color: var(--amber); }

/* -------------------- eyebrow / labels -------------------- */
.eyebrow{
  text-transform: uppercase;
  color: var(--amber);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .22em;
  margin-bottom: 18px;
}
.eyebrow-light{ color: var(--amber); }
.eyebrow-center{ text-align: center; margin-bottom: 36px; }

.quote-tag{
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--navy);
  letter-spacing: .02em;
}

.sub-label{
  font-size: 13px; font-weight: 600; color: var(--amber);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px;
}

/* -------------------- section scaffolding -------------------- */
.section{ padding: var(--section-pad) 0; background: var(--white); }
.section-alt{ background: var(--bg-light); }
.section-dark{ background: var(--navy); }

.section-head{ max-width: 820px; margin: 0 auto 80px; text-align: center; }
.section-head.narrow{ max-width: 700px; margin-bottom: 64px; }
.section-head h2{
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.15; margin: 0 0 22px;
  letter-spacing: -.01em;
}
.section-head .lead{ font-size: 18px; line-height: 1.7; color: var(--text-muted); margin: 0 0 16px; }
.section-head .btn{ margin-top: 10px; }
.light-title{ color: var(--white); }
.lead-light{ color: rgba(255,255,255,.75) !important; }

.center-title{
  text-align: center; font-size: clamp(28px, 3.6vw, 44px); margin: 0 0 64px;
  line-height: 1.2;
}

.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* reveal-on-scroll (assigned via JS/IntersectionObserver) */
[data-reveal]{ opacity: 0; transform: translateY(22px); }
[data-reveal].is-visible{
  opacity: 1; transform: translateY(0);
  transition: opacity .65s ease, transform .65s ease;
}

/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float{
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover, .whatsapp-float:focus-visible{
  color: #fff; transform: scale(1.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.34);
}
.whatsapp-float svg{ width: 30px; height: 30px; }

/* ================= HEADER ================= */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
  padding: 18px 0;
  transition: padding .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled{
  padding: 10px 0;
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 18px rgba(27,44,66,.08);
}

.header-inner{
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.logo-link{ display: flex; align-items: center; }
.logo-img{
  height: 54px; width: auto; object-fit: contain; display: block;
  transition: height .25s ease;
}
.is-scrolled .logo-img{ height: 42px; }

.main-nav{ display: flex; align-items: center; gap: 30px; }
.main-nav > a{
  font-size: 14px; font-weight: 500; color: var(--navy);
  letter-spacing: .02em; white-space: nowrap;
}
.main-nav > a:not(.btn):hover{ color: var(--amber-hover); }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block; width: 24px; height: 2px; background: var(--navy);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ================= HERO ================= */
.hero{
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg.photo-slot{ position: absolute; inset: 0; }
.hero-bg img{ width: 100%; height: 100%; object-fit: cover; }
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(27,44,66,.94) 0%, rgba(27,44,66,.86) 42%, rgba(27,44,66,.55) 100%);
  pointer-events: none;
}
/* Hero placeholder: a designed navy/amber gradient panel with a
   frosted-glass caption chip — not a dashed "missing asset" box. */
.hero .photo-slot.is-empty{
  background: linear-gradient(135deg, #24374f 0%, #1B2C42 55%, #15213a 100%);
}
.hero .photo-slot.is-empty::before{
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(640px circle at 82% 18%, rgba(229,164,85,.14), transparent 60%);
}
.hero .photo-slot.is-empty::after{
  content: attr(data-caption);
  position: absolute; inset: 28px 32px auto auto;
  display: block; width: 300px; max-width: 42%;
  text-align: left; padding: 16px 18px;
  font: 12.5px/1.6 var(--font-body); color: rgba(255,255,255,.68);
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm);
}
.hero-watermark{
  position: absolute; right: -60px; bottom: -80px;
  width: 480px; opacity: .06; pointer-events: none;
  filter: brightness(0) invert(1);
}
.hero-content{ position: relative; padding: 130px 32px 110px; width: 100%; }
.hero-text{ max-width: 700px; }
.hero-text h1{
  font-size: clamp(36px, 5.4vw, 58px); line-height: 1.14; font-weight: 600;
  color: var(--white); margin: 0 0 24px; letter-spacing: -.01em;
}
.hero-sub{ font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.82); margin: 0 0 36px; max-width: 560px; }
.hero-actions{ display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* ================= PILARES (photo hover-reveal cards) ================= */
.pillar-card{
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4; box-shadow: 0 24px 50px rgba(20,32,48,.22);
  transition: transform .35s ease, box-shadow .35s ease;
  outline: none;
}
.pillar-card:hover, .pillar-card:focus-visible{
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(20,32,48,.3);
}
.pillar-photo.photo-slot{ position: absolute; inset: 0; }
.pillar-photo img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pillar-card:hover .pillar-photo img, .pillar-card:focus-visible .pillar-photo img{ transform: scale(1.06); }

.pillar-card .photo-slot.is-empty{ background: linear-gradient(150deg, #24374f 0%, #1B2C42 60%, #17233b 100%); }
.pillar-card .photo-slot.is-empty::before{
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(320px circle at 30% 20%, rgba(229,164,85,.16), transparent 65%);
}
.pillar-card .photo-slot.is-empty::after{
  content: attr(data-caption);
  position: absolute; left: 16px; right: 16px; top: 16px;
  padding: 10px 12px; font: 11px/1.5 var(--font-body); color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
}

.pillar-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,44,66,0) 30%, rgba(27,44,66,.6) 66%, rgba(20,30,45,.95) 100%);
  transition: background .35s ease;
}
.pillar-card:hover .pillar-overlay, .pillar-card:focus-visible .pillar-overlay{
  background: linear-gradient(180deg, rgba(27,44,66,.1) 0%, rgba(27,44,66,.78) 48%, rgba(15,23,36,.97) 100%);
}
.pillar-badge{
  position: absolute; top: 20px; left: 20px; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.pillar-badge svg{ width: 19px; height: 19px; }
.pillar-body{
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 24px;
}
.pillar-body h3{
  color: var(--white); font-size: 21px; margin: 0; transition: margin .35s ease;
}
.pillar-card:hover .pillar-body h3, .pillar-card:focus-visible .pillar-body h3{ margin-bottom: 4px; }
.pillar-body p{
  color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.6; margin-top: 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease, margin-top .35s ease;
}
.pillar-card:hover .pillar-body p, .pillar-card:focus-visible .pillar-body p{
  max-height: 140px; opacity: 1; margin-top: 8px;
}

/* ================= NUESTRO ADN / ORIGEN ================= */
.origin-card{
  background: var(--bg-light); border-radius: var(--radius-lg);
  padding: 64px 48px 56px; max-width: 820px; margin: 0 auto;
}
.origin-diagram{ display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; }
.origin-row{
  display: flex; align-items: center; justify-content: space-between; gap: 0;
  width: min(660px, 100%);
}
.origin-logo-box{
  background: var(--white); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(27,44,66,.08);
  padding: 16px 18px; display: flex; align-items: center; justify-content: center;
  width: 46%; height: 106px;
}
.origin-logo-box img{ max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.origin-bracket{ width: min(660px, 100%); height: auto; aspect-ratio: 100/34; display: block; }
.origin-result{ margin-top: -2px; }
.origin-result-logo{ height: 68px; width: auto; object-fit: contain; }
.history-text{
  max-width: 640px; margin: 0 auto; text-align: center;
  font-size: 17px; line-height: 1.75; color: var(--text-body);
}

/* ================= ECOSYSTEM (pillar grid) + PROCESS ================= */
.division-grid{ margin-bottom: 104px; }

.process-wrap{ padding-top: 16px; }
.steps-grid .step{
  position: relative; padding: 40px 32px 34px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: 0 4px 24px rgba(27,44,66,.06);
  transition: box-shadow .25s ease, transform .25s ease;
}
.steps-grid .step:hover{ box-shadow: 0 20px 44px rgba(27,44,66,.12); transform: translateY(-4px); }
.step-number{
  font-family: var(--font-head); font-weight: 700; font-size: 52px;
  color: transparent; -webkit-text-stroke: 1.5px rgba(229,164,85,.55);
  line-height: 1; margin-bottom: 18px;
}
.step h3{ font-size: 19px; margin: 0 0 12px; }
.step p{ font-size: 14.5px; line-height: 1.7; color: var(--text-muted); margin: 0; }

/* ================= ALIANZAS / BRANDS MARQUEE ================= */
.marquee-viewport{
  width: 100%; overflow: hidden; margin-top: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.marquee-track{
  display: flex; gap: 20px; width: max-content;
  animation: myr-marquee 24s linear infinite;
}
.marquee-viewport:hover .marquee-track{ animation-play-state: paused; }

@keyframes myr-marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.catalog-marquee-wrap{
  background: var(--bg-light); padding: 32px 0; margin-top: 8px;
}
.catalog-logo-chip{
  flex-shrink: 0; width: 180px; height: 88px;
  background: var(--catalog-bg); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  box-shadow: 0 10px 26px rgba(27,44,66,.1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.catalog-logo-chip:hover{ transform: translateY(-4px); box-shadow: 0 16px 34px rgba(27,44,66,.16); }
.catalog-logo-chip img{ max-height: 58px; width: auto; max-width: 100%; object-fit: contain; }

/* ================= SUMINISTROS / CATÁLOGO DE MARCAS ================= */
.catalog-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 56px; }
.catalog-card{
  position: relative; display: flex;
  background: var(--catalog-bg); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 4px 24px rgba(27,44,66,.06);
  transition: box-shadow .25s ease, transform .25s ease;
  scroll-margin-top: 110px;
}
.catalog-card:hover{ box-shadow: 0 20px 44px rgba(27,44,66,.12); transform: translateY(-4px); }
.catalog-flag{
  position: absolute; top: 18px; right: 18px; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 600; color: var(--navy);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.catalog-card{ flex-direction: row-reverse; }
.catalog-media{
  flex: 0 0 48%; min-height: 300px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.catalog-media img{ width: 100%; height: 100%; object-fit: contain; }
.catalog-body{ flex: 1; min-width: 0; padding: 32px 34px; display: flex; flex-direction: column; }
.catalog-logo{
  height: auto; max-height: 82px; width: auto; max-width: 78%; align-self: flex-start;
  margin: 0 0 20px;
  background: transparent;
  display: flex; align-items: center; justify-content: flex-start;
}
.catalog-logo img{ max-height: 82px; width: auto; max-width: 100%; object-fit: contain; }
.catalog-body h3{ font-size: 20px; margin: 0 0 6px; }
.catalog-rubro{ font-size: 14.5px; color: var(--text-muted); line-height: 1.5; margin: 0 0 18px; }
.catalog-products{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.catalog-products li{
  position: relative; padding-left: 20px;
  font-size: 14px; line-height: 1.5; color: var(--text-body);
}
.catalog-products li::before{
  content: ''; position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
}

/* ================= QUOTE BANNER ================= */
.quote-banner{
  background: var(--bg-light); padding: 100px 32px; text-align: center;
}
.quote-rule{ width: 48px; height: 3px; border-radius: 2px; background: var(--amber); margin: 0 auto 30px; }
.quote-banner h2{ font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 14px; }
.quote-banner p{ font-size: 17px; color: var(--text-muted); margin: 0; }

/* ================= CONTACTO ================= */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-info h2{ font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; margin: 0 0 22px; }

.field-label{
  font-size: 12px; font-weight: 600; color: var(--amber);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px;
}
.field-value{ font-size: 16px; color: var(--navy); }
.placeholder-value{ font-style: italic; color: var(--text-muted); }
.field-value .field-link{
  color: var(--navy); text-decoration: none;
  border-bottom: 1px solid rgba(27,44,66,.25);
  transition: color .2s ease, border-color .2s ease;
}
.field-value .field-link:hover{ color: var(--amber-hover); border-color: var(--amber-hover); }
.field-value button.field-link{
  background: none; border: none; border-bottom: 1px solid rgba(27,44,66,.25);
  padding: 0; font: inherit; cursor: pointer;
}

/* -------- email chooser dropdown -------- */
.email-chooser{ position: relative; }
button.contact-icon{
  background: none; border: none; padding: 0; font: inherit;
  cursor: pointer; transition: color .2s ease;
}
button.contact-icon:hover, button.contact-icon:focus-visible{ color: var(--amber-hover); }
.email-menu{
  position: absolute; top: calc(100% + 10px); left: 40px; z-index: 20;
  min-width: 210px; background: var(--white); border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(27,44,66,.16); border: 1px solid var(--border-soft);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.email-menu:not([hidden]){ opacity: 1; transform: translateY(0); pointer-events: auto; }
.email-menu-item{
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: none; text-align: left; text-decoration: none;
  font-family: var(--font-body); font-size: 14px; color: var(--navy);
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.email-menu-item:hover, .email-menu-item:focus-visible{ background: var(--catalog-bg); color: var(--amber-hover); }

/* -------- contact form -------- */
.contact-form{ margin-top: 36px; }
.form-field{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.form-field label{
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--navy); letter-spacing: .02em;
}
.form-field .req{ color: var(--amber); }
.form-field input, .form-field textarea{
  border: none; border-bottom: 1.5px solid rgba(27,44,66,.18);
  background: transparent; padding: 8px 2px; border-radius: 0;
  font: 15px/1.5 var(--font-body); color: var(--navy);
  transition: border-color .2s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder{ color: #9aa4af; }
.form-field input:focus, .form-field textarea:focus{ outline: none; border-color: var(--amber); }
.form-field textarea{ resize: vertical; min-height: 68px; }

.form-checkbox{
  display: flex; align-items: flex-start; gap: 10px;
  margin: 4px 0 30px; font-size: 14px; line-height: 1.5;
  color: var(--text-muted); cursor: pointer;
}
.form-checkbox input{
  width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0;
  accent-color: var(--amber); cursor: pointer;
}

.btn-block{ width: 100%; justify-content: center; padding: 17px 28px; }

.form-status{
  min-height: 20px; margin: 14px 0 0; font-size: 13.5px; color: var(--text-muted);
}
.form-status.is-error{ color: #B3452E; }
.form-status.is-success{ color: #2E7D4F; }

.contact-form.was-validated input:invalid,
.contact-form.was-validated textarea:invalid{ border-bottom-color: #B3452E; }

/* -------- contact details (icons) -------- */
.contact-details{ display: flex; flex-direction: column; gap: 30px; margin-top: 36px; }
.contact-detail{ display: flex; align-items: flex-start; gap: 16px; }
.contact-icon{ flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px; color: var(--amber); }
.contact-icon svg{ width: 100%; height: 100%; }
a.contact-icon{ transition: color .2s ease; }
a.contact-icon:hover, a.contact-icon:focus-visible{ color: var(--amber-hover); }

/* ================= FOOTER ================= */
.site-footer{ background: var(--navy); padding: 88px 0 32px; }
.footer-top{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand p{ font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,.68); max-width: 320px; margin: 0; }
.footer-logo-box{
  background: var(--white); display: inline-block; padding: 10px 16px;
  border-radius: var(--radius-sm); margin-bottom: 20px;
}
.footer-logo-box img{ height: 32px; width: auto; object-fit: contain; }
.footer-title{
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  color: var(--amber); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px;
}
.footer-col{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span{ color: rgba(255,255,255,.75); font-size: 14.5px; }
.footer-col a:hover{ color: var(--amber); }
.footer-bottom{
  padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.45);
}

/* ================= PHOTO SLOT (placeholder-aware image wrapper) ================= */
.photo-slot{
  position: relative; overflow: hidden; background: #E7E9EC;
}
.photo-slot img{ width: 100%; height: 100%; object-fit: cover; }
.photo-slot.is-empty::before{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #e9ebee 0%, #eef0f2 50%, #e3e6ea 100%);
}
.photo-slot.is-empty::after{
  content: attr(data-caption);
  position: absolute; inset: 16px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font: 12.5px/1.5 var(--font-body); color: var(--text-muted);
  padding: 16px; background: rgba(255,255,255,.9);
  border: 1px solid rgba(27,44,66,.12);
  border-radius: var(--radius-sm);
}
.photo-slot.is-empty img{ display: none; }

/* logo-slot (brand marquee cards): plain white card already reads as an
   empty state, so keep it minimal — just tuck the label under the check. */
.logo-slot.is-empty::before{ display: none; }
.logo-slot.is-empty::after{
  content: attr(data-caption);
  position: static; inset: auto;
  font: 11px/1.3 var(--font-body); color: var(--text-muted);
  background: none; border: none; padding: 0;
}
.logo-slot.is-empty{ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.logo-slot.is-empty img{ display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .catalog-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; gap: 40px; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
}

@media (max-width: 760px){
  .whatsapp-float{ width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .whatsapp-float svg{ width: 27px; height: 27px; }

  .container{ padding: 0 20px; }
  .main-nav{
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 84vw);
    background: var(--navy); flex-direction: column; align-items: flex-start;
    padding: 100px 32px 32px; gap: 22px;
    transform: translateX(100%); transition: transform .3s ease;
    box-shadow: -12px 0 32px rgba(0,0,0,.2);
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav > a{ color: var(--white); font-size: 16px; }
  .main-nav > a:not(.btn):hover{ color: var(--amber); }
  .nav-cta{ margin-top: 10px; }
  .nav-toggle{ display: flex; }

  .hero{ min-height: 100vh; padding-bottom: 64px; }
  .hero-content{ padding: 110px 20px 20px; }

  .grid-4{ grid-template-columns: 1fr; gap: 20px; }
  .pillar-card{ aspect-ratio: 4/3; }
  .pillar-body p{ max-height: none; opacity: 1; margin-top: 8px; overflow: visible; }

  .grid-3{ grid-template-columns: 1fr; }
  .section{ padding: 56px 0; }
  .section-head{ margin-bottom: 44px; }
  .origin-card{ padding: 40px 24px; }
  .origin-row{ gap: 16px; }
  .origin-logo-box{ height: 92px; padding: 10px 12px; }
  .origin-logo-box img{ max-height: 48px; }
  .origin-result-logo{ height: 52px; }
  .footer-top{ grid-template-columns: 1fr; gap: 40px; }
  .catalog-logo-chip{ width: 140px; height: 90px; padding: 18px 16px; }
  .catalog-card{ flex-direction: column; }
  .catalog-media{ flex: 0 0 auto; min-height: 0; aspect-ratio: 4/3; width: 100%; padding: 16px; }
  .catalog-body{ padding: 26px 24px 30px; }
  .catalog-flag{ top: 14px; right: 14px; font-size: 11.5px; padding: 5px 10px; }
}
