/* ============================================================
   NIESER — Estilos de páginas (secciones)  ·  v2 editorial
   ============================================================ */

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--surface); border-bottom: 1.5px solid var(--ink); padding-block: clamp(56px, 7vw, 104px); }
.page-hero__inner { max-width: 880px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin-top: 22px; font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.page-hero .lead { margin-top: 26px; max-width: 60ch; }

/* ============================================================
   HOME — Hero full-bleed con imagen de fondo
   ============================================================ */
.hero { position: relative; min-height: clamp(560px, 84vh, 880px); display: flex; align-items: flex-end; background: var(--carbon); overflow: hidden; border-bottom: 1.5px solid var(--ink); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 8s var(--ease); }
.hero__bg img.loaded { opacity: 1; transform: scale(1); }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(15,18,17,.62) 0%, rgba(15,18,17,.34) 32%, rgba(15,18,17,.86) 100%),
  linear-gradient(90deg, rgba(15,18,17,.74) 0%, rgba(15,18,17,.30) 52%, rgba(15,18,17,.08) 100%); }
.hero__content { position: relative; z-index: 2; width: 100%; padding-block: clamp(56px, 11vh, 120px); color: #fff; }
.hero__meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.16); }
.hero__est { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.hero__title { color: #fff; font-size: clamp(2.9rem, 7.6vw, 7rem); font-weight: 800; letter-spacing: -.045em; line-height: .9; margin: clamp(22px, 3vw, 38px) 0 0; }
.hero__title .g { color: var(--green-bright); }
.hero__lead { color: rgba(255,255,255,.88); max-width: 46ch; margin-top: 24px; }
.hero__cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero__trust span { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; color: rgba(255,255,255,.82); font-weight: 500; }
.hero__trust span::before { content: ""; width: 6px; height: 6px; background: var(--green-bright); flex: none; }
.hero__scroll { position: absolute; right: var(--pad); bottom: 26px; z-index: 2; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 10px; }
.hero__scroll::after { content: ""; width: 40px; height: 1px; background: rgba(255,255,255,.4); }

/* ---------- Credibility — data strip ---------- */
.cred { background: var(--paper); border-bottom: 1.5px solid var(--ink); }
.cred__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred__item { padding: clamp(30px, 3.4vw, 52px) clamp(20px, 2.2vw, 40px); border-right: 1px solid var(--border); }
.cred__item:last-child { border-right: none; }
.cred__num { font-family: var(--sans); font-weight: 800; font-size: clamp(2.4rem, 4.2vw, 3.8rem); letter-spacing: -.04em; color: var(--ink); line-height: .9; }
.cred__num .u { color: var(--green); }
.cred__label { color: var(--ink-2); font-family: var(--mono); font-size: .78rem; letter-spacing: .01em; margin-top: 16px; max-width: 24ch; line-height: 1.45; }

/* ---------- Search band ---------- */
.search-band { background: var(--surface); border-bottom: 1.5px solid var(--ink); }
.search-band__inner { padding-block: clamp(48px, 6vw, 88px); }
.search-band__head { margin-bottom: 30px; }
.search-band__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-top: 14px; font-weight: 800; letter-spacing: -.03em; }
.search-band__head p { color: var(--ink-2); margin-top: 12px; max-width: 50ch; }

/* ============================================================
   LÍNEAS — fichas planas numeradas
   ============================================================ */
.lines-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1.5px solid var(--ink); }
.line-card { position: relative; display: flex; flex-direction: column; background: var(--surface); padding: 30px 26px 26px; overflow: hidden; transition: background .2s var(--ease); border-right: 1px solid var(--border); }
.line-card:last-child { border-right: none; }
.line-card:hover { background: var(--paper); }
.line-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.line-card__mark { width: 48px; height: 48px; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--lc); }
.line-card__mark svg { width: 26px; height: 26px; color: #fff; }
.line-card--vet { --lc: var(--vet); } .line-card--pet { --lc: var(--pet); }
.line-card--food { --lc: var(--food); } .line-card--green { --lc: var(--green-line); }
.line-card__idx { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--ink-4); }
.line-card__name { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; }
.line-card__tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--lc); margin-top: 6px; }
.line-card__desc { color: var(--ink-2); font-size: .93rem; margin-top: 14px; flex: 1; line-height: 1.5; }
.line-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.line-card__count { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); }
.line-card__count b { color: var(--ink); font-weight: 600; }
.line-card__arrow { color: var(--ink); display: inline-flex; transition: transform .2s var(--ease); }
.line-card__arrow svg { width: 22px; height: 22px; }
.line-card:hover .line-card__arrow { transform: translateX(5px); color: var(--lc); }

/* ============================================================
   HISTORIA
   ============================================================ */
.history__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.history__media { position: relative; }
.history__media .ph { aspect-ratio: 5 / 4; border: 1.5px solid var(--ink); }
.history h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 18px; font-weight: 800; letter-spacing: -.03em; }
.history p { color: var(--ink-2); margin-top: 22px; font-size: 1.05rem; }
.history__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 30px 0; border: 1px solid var(--border); }
.history__stat { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .82rem; letter-spacing: .02em; color: var(--ink); padding: 16px 18px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.history__stat:nth-child(2n) { border-right: none; }
.history__stat:nth-child(n+3) { border-bottom: none; }
.history__stat::before { content: ""; width: 8px; height: 8px; background: var(--green); flex: none; }

/* ============================================================
   BENEFICIOS — sobre carbón, numerado
   ============================================================ */
.benefits { background: var(--carbon); color: #fff; }
.benefits .section-head { border-top-color: var(--green-bright); }
.benefits .eyebrow { color: var(--green-bright); } .benefits .eyebrow::before { background: var(--green-bright); }
.benefits h2 { color: #fff; }
.benefits .section-head p { color: #97A099; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--carbon-line); }
.benefit { background: var(--carbon); padding: 36px 32px 40px; border-right: 1px solid var(--carbon-line); transition: background .2s var(--ease); }
.benefit:last-child { border-right: none; }
.benefit:hover { background: var(--carbon-2); }
.benefit__num { font-family: var(--mono); font-size: 2.4rem; font-weight: 600; color: var(--carbon-line); line-height: 1; letter-spacing: -.02em; }
.benefit h3 { color: #fff; font-size: 1.5rem; margin: 24px 0 14px; font-weight: 700; letter-spacing: -.025em; }
.benefit p { color: #97A099; line-height: 1.55; }
.benefit__bar { width: 44px; height: 2px; background: var(--green-bright); margin-top: 26px; }

/* ============================================================
   TESTIMONIOS — editorial
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.testi { display: flex; flex-direction: column; background: var(--surface); padding: 32px 30px 30px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.testi__quote-mark { display: none; }
.testi__quote { color: var(--ink); font-size: 1.06rem; line-height: 1.5; flex: 1; margin: 0 0 26px; font-weight: 400; letter-spacing: -.01em; }
.testi__quote::before { content: "“"; }
.testi__quote::after { content: "”"; }
.testi__person { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--border); }
.testi__avatar { width: 44px; height: 44px; border-radius: 0; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 500; font-size: .92rem; flex: none; }
.testi__name { font-family: var(--sans); font-weight: 600; color: var(--ink); line-height: 1.2; letter-spacing: -.01em; }
.testi__role { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); margin-top: 4px; }
.testi__role b { color: var(--green); font-weight: 500; }

/* ============================================================
   MARCAS (strip)
   ============================================================ */
.brands { background: var(--surface); border-top: 1.5px solid var(--ink); }
.brands__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; padding-top: 26px; border-top: 1.5px solid var(--ink); }
.brands__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 12px; max-width: 20ch; font-weight: 800; letter-spacing: -.03em; }
.brands-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1.5px solid var(--ink); }
.brand-logo { position: relative; aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center; padding: 26px 30px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background .2s; overflow: hidden; }
.brand-logo:nth-child(4n) { border-right: none; }
.brand-logo:nth-last-child(-n+4):not(:nth-child(n+5)) { } /* keep simple */
.brand-logo:hover { background: var(--paper); }
.brand-logo__name { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; color: var(--ink-2); text-align: center; }
.brand-logo img { position: absolute; inset: 0; margin: auto; max-height: 54px; max-width: 74%; width: auto; object-fit: contain; background: var(--surface); padding: 0 10px; filter: grayscale(1); opacity: 0; transition: filter .25s var(--ease), opacity .25s var(--ease); }
.brand-logo img.loaded { opacity: .72; }
.brand-logo:hover img.loaded { filter: grayscale(0); opacity: 1; }

/* ============================================================
   NOSOTROS / VALORES
   ============================================================ */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1.5px solid var(--ink); }
.value { background: var(--surface); padding: 30px 26px; border-right: 1px solid var(--border); transition: background .2s; }
.value:last-child { border-right: none; }
.value:hover { background: var(--paper); }
.value__num { font-family: var(--mono); font-size: 2rem; font-weight: 600; color: var(--border-2); line-height: 1; }
.value h3 { font-size: 1.3rem; margin: 22px 0 12px; font-weight: 700; letter-spacing: -.025em; }
.value p { color: var(--ink-2); font-size: .94rem; line-height: 1.55; }

.mission { background: var(--carbon); color: #fff; }
.mission__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.mission .section-head, .mission .eyebrow { color: #8FD3AE; }
.mission .eyebrow::before { background: var(--green-bright); }
.mission h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 16px; font-weight: 800; letter-spacing: -.03em; }
.mission p { color: #97A099; font-size: 1.12rem; line-height: 1.6; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1.5px solid var(--ink); }
.service { background: var(--surface); padding: 34px 30px 38px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background .2s; }
.service:nth-child(3n) { border-right: none; }
.service:nth-child(n+4) { border-bottom: none; }
.service:hover { background: var(--paper); }
.service__num { font-family: var(--mono); font-size: 2.2rem; font-weight: 600; color: var(--border-2); line-height: 1; }
.service h3 { font-size: 1.4rem; margin: 22px 0 14px; font-weight: 700; letter-spacing: -.025em; }
.service p { color: var(--ink-2); line-height: 1.55; }
.service__bar { width: 40px; height: 2px; background: var(--green); margin-top: 24px; }

.cta-band { background: var(--ink); color: #fff; border-radius: 0; padding: clamp(40px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); max-width: 20ch; font-weight: 800; letter-spacing: -.03em; }
.cta-band p { color: #97A099; margin-top: 14px; max-width: 46ch; }

/* ============================================================
   REPRESENTACIONES
   ============================================================ */
.rep-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1.5px solid var(--ink); }
.rep-card { display: grid; grid-template-columns: 210px 1fr; background: var(--surface); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transition: background .2s; }
.rep-card:nth-child(2n) { border-right: none; }
.rep-card:nth-last-child(-n+2):not(:nth-child(n+3)) { }
.rep-card:hover { background: var(--paper); }
.rep-card__logo { position: relative; background: var(--surface-2); border-right: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 168px; }
.rep-card__logo img { max-width: 84%; max-height: 72px; object-fit: contain; opacity: 0; transition: opacity .25s var(--ease); z-index: 1; }
.rep-card__logo img.loaded { opacity: 1; }
.rep-card__logo .rep-card__name { position: absolute; font-family: var(--sans); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; color: var(--ink-2); text-align: center; padding: 0 12px; }
.rep-card__body { padding: 28px 30px; display: flex; flex-direction: column; }
.rep-card__country { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.rep-card__title { font-size: 1.4rem; font-family: var(--sans); font-weight: 700; margin: 10px 0 12px; letter-spacing: -.025em; }
.rep-card__desc { color: var(--ink-2); font-size: .94rem; line-height: 1.55; flex: 1; }
.rep-card__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 500; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-top: 22px; border-bottom: 1.5px solid var(--ink); padding-bottom: 4px; align-self: flex-start; transition: color .18s, border-color .18s; }
.rep-card:hover .rep-card__link { color: var(--green); border-color: var(--green); }
.rep-card__link svg { width: 14px; height: 14px; transition: transform .2s; }
.rep-card:hover .rep-card__link svg { transform: translate(3px,-3px); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-form { background: var(--surface); border: 1.5px solid var(--ink); padding: clamp(28px, 3vw, 44px); }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .field { margin-bottom: 20px; }
.contact-form__ok { color: var(--green); font-family: var(--sans); font-weight: 600; padding: 18px; background: var(--green-50); border: 1.5px solid var(--green); }
.contact-info__block { padding: 24px 0; border-bottom: 1px solid var(--border); }
.contact-info__block:first-child { padding-top: 0; }
.contact-info__label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.contact-info__item { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 1rem; margin-bottom: 8px; }
.contact-info__item svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.contact-wa { display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: #fff; padding: 14px 22px; border-radius: 0; font-family: var(--sans); font-weight: 600; transition: background .18s; }
.contact-wa:hover { background: var(--green-600); }
.contact-wa svg { width: 20px; height: 20px; }
.contact-map { aspect-ratio: 16 / 9; border: 1.5px solid var(--ink); margin-top: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero__body { grid-template-columns: 1fr; gap: 36px; }
  .cred__inner { grid-template-columns: 1fr 1fr; }
  .cred__item:nth-child(2) { border-right: none; }
  .cred__item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .lines-grid { grid-template-columns: 1fr 1fr; }
  .line-card:nth-child(2n) { border-right: none; }
  .line-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit { border-right: none; border-bottom: 1px solid var(--carbon-line); }
  .benefit:last-child { border-bottom: none; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .history__inner { grid-template-columns: 1fr; }
  .history__media { max-width: 540px; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3n) { border-right: 1px solid var(--border); }
  .service:nth-child(2n) { border-right: none; }
  .mission__inner { grid-template-columns: 1fr; }
  .rep-grid { grid-template-columns: 1fr; }
  .rep-card { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero__meta { gap: 8px; }
  .cred__inner { grid-template-columns: 1fr; }
  .cred__item { border-right: none; border-bottom: 1px solid var(--border); }
  .cred__item:last-child { border-bottom: none; }
  .lines-grid { grid-template-columns: 1fr; }
  .line-card { border-right: none; border-bottom: 1px solid var(--border); }
  .line-card:last-child { border-bottom: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .value { border-right: none; border-bottom: 1px solid var(--border); }
  .value:last-child { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .service:last-child { border-bottom: none !important; }
  .rep-card { grid-template-columns: 1fr; }
  .rep-card__logo { min-height: 130px; border-right: none; border-bottom: 1px solid var(--border); }
  .contact-form__row { grid-template-columns: 1fr; }
  .history__stats { grid-template-columns: 1fr; }
  .history__stat { border-right: none !important; }
}
