/*
 * Trueno Maquinarias — media-led presentation.
 * Loaded after main.css. Layout starts at narrow mobile widths and expands
 * progressively, keeping real photographs and the USA film distortion-free.
 */

.tractor-hero,
.tractor-gallery-section,
.clients-section,
.owner-section,
.secondary-family,
.contact-map {
  overflow:clip
}

.tractor-hero {
  position:relative;
  isolation:isolate;
  background:var(--dark);
  color:#fff
}

.tractor-hero::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:
    linear-gradient(135deg,rgba(255,189,33,.1),transparent 38%),
    repeating-linear-gradient(90deg,transparent 0,transparent calc(25% - 1px),rgba(255,255,255,.035) 25%)
}

.tractor-hero__grid {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:28px;
  padding-block:40px 28px;
  min-width:0
}

.tractor-hero__copy,
.hero-film,
.hero-film__frame {
  min-width:0
}

.tractor-hero__copy {
  position:relative;
  z-index:2
}

.tractor-hero .eyebrow {
  color:#e8c46b;
  margin-bottom:16px
}

.tractor-hero h1 {
  max-width:10ch;
  font-size:clamp(52px,15.2vw,72px);
  line-height:.92;
  text-wrap:balance
}

.tractor-hero__copy>p {
  max-width:580px;
  margin-top:22px;
  color:#c6ccc2;
  font-size:12px;
  line-height:1.75
}

.tractor-hero .button-row {
  align-items:stretch;
  flex-direction:column;
  gap:11px;
  margin-top:25px
}

.tractor-hero .button {
  width:100%
}

.tractor-hero .button--outline {
  border-color:#646a61;
  color:#fff
}

.tractor-hero .button--outline:hover {
  color:var(--ink)
}

.tractor-hero .text-link {
  color:#fff
}

.tractor-hero .text-link:hover {
  color:var(--yellow)
}

.tractor-hero__note {
  display:flex;
  align-items:center;
  gap:10px;
  max-width:430px;
  margin-top:20px;
  padding-top:17px;
  border-top:1px solid #454b43;
  color:#aeb6aa;
  font-size:9px;
  font-weight:700;
  line-height:1.55;
  letter-spacing:.08em;
  text-transform:uppercase
}

.tractor-hero__note .icon {
  width:20px;
  height:20px;
  color:var(--yellow)
}

.hero-film {
  position:relative;
  width:min(100%,354px);
  margin:0 auto
}

.hero-film__frame {
  position:relative;
  aspect-ratio:9/16;
  max-height:630px;
  overflow:hidden;
  background:#090a09;
  border:1px solid #484d46
}

.hero-film__frame::after {
  content:"";
  position:absolute;
  pointer-events:none;
  inset:0;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),inset 0 -110px 90px -80px rgba(0,0,0,.78)
}

.hero-film video {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  background:#090a09
}

.hero-film figcaption {
  position:absolute;
  z-index:2;
  left:16px;
  right:68px;
  bottom:16px;
  color:#fff;
  font-size:8px;
  font-weight:700;
  line-height:1.5;
  letter-spacing:.13em;
  text-transform:uppercase;
  text-shadow:0 1px 12px #000
}

.hero-film figcaption .live-dot {
  display:inline-block;
  margin-right:6px
}

.motion-toggle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid #8e948b;
  border-radius:50%;
  background:rgba(20,22,20,.78);
  color:#fff;
  -webkit-backdrop-filter:blur(7px);
  backdrop-filter:blur(7px);
  transition:background-color .2s,border-color .2s,color .2s,transform .2s
}

.motion-toggle:hover {
  background:var(--yellow);
  border-color:var(--yellow);
  color:var(--ink);
  transform:translateY(-2px)
}

.motion-toggle:focus-visible {
  outline-color:var(--yellow);
  outline-offset:3px
}

.motion-toggle .icon {
  width:18px;
  height:18px
}

.motion-toggle [hidden] {
  display:none!important
}

.motion-toggle [data-video-label],
.motion-toggle [data-carousel-label] {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0
}

.hero-film__toggle {
  position:absolute;
  z-index:3;
  right:13px;
  bottom:13px
}

.tractor-hero+.trust-strip .trust-strip__inner,
.tractor-trust .trust-strip__inner {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 12px;
  padding-block:10px
}

.tractor-hero+.trust-strip .trust-strip__inner>span,
.tractor-trust .trust-strip__inner>span {
  min-width:0;
  min-height:48px;
  font-size:8px;
  line-height:1.4
}

/* Editorial tractor gallery. */
.tractor-gallery-section {
  background:#f0f0e9
}

.tractor-gallery-section .section-heading {
  margin-bottom:28px
}

.tractor-gallery {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  min-width:0
}

.tractor-gallery figure {
  position:relative;
  min-width:0;
  margin:0;
  overflow:hidden;
  background:#d9dbd3
}

.tractor-gallery figure:first-child,
.tractor-gallery__lead {
  grid-column:1/-1;
  aspect-ratio:4/3
}

.tractor-gallery figure:not(:first-child):not(.tractor-gallery__lead) {
  aspect-ratio:1
}

.tractor-gallery picture,
.tractor-gallery img {
  display:block;
  width:100%;
  height:100%
}

.tractor-gallery img {
  object-fit:cover;
  object-position:center;
  transition:transform .45s ease
}

.tractor-gallery figure:hover img {
  transform:scale(1.025)
}

.tractor-gallery figcaption {
  position:absolute;
  z-index:1;
  left:0;
  right:0;
  bottom:0;
  padding:28px 15px 13px;
  background:linear-gradient(transparent,rgba(0,0,0,.72));
  color:#fff;
  font-size:8px;
  font-weight:700;
  line-height:1.4;
  letter-spacing:.1em;
  text-transform:uppercase
}

.tractor-gallery__lead figcaption {
  font-size:9px
}

.tractor-gallery__lead figcaption span,
.tractor-gallery__lead figcaption strong {
  display:block
}

.tractor-gallery__lead figcaption strong {
  margin-top:3px;
  font-family:var(--heading);
  font-size:clamp(24px,7vw,39px);
  line-height:1;
  text-transform:uppercase
}

.gallery-footer,
.section-action {
  display:flex;
  align-items:stretch;
  flex-direction:column;
  justify-content:flex-start;
  gap:18px;
  margin-top:27px
}

.gallery-footer>p,
.section-action>p {
  max-width:590px;
  color:var(--muted);
  font-size:11px
}

.gallery-footer .button,
.section-action .button {
  width:100%;
  min-height:56px
}

.gallery-footer .button--dark {
  box-shadow:0 7px 18px rgba(25,27,26,.2)
}

/* Real clients: native overflow remains available for touch and keyboard users. */
.clients-section {
  position:relative;
  background:var(--dark);
  color:#fff
}

.clients-section .section-heading {
  align-items:flex-end
}

.clients-section .eyebrow {
  color:#c9b16b
}

.clients-intro {
  display:flex;
  align-items:center;
  gap:14px
}

.clients-intro>p {
  max-width:390px;
  color:#b4bcb0;
  font-size:11px
}

.client-carousel {
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-inline:contain;
  touch-action:pan-x pan-y pinch-zoom;
  scrollbar-width:thin;
  scrollbar-color:#73796f #272b27;
  -webkit-overflow-scrolling:touch
}

.client-carousel::-webkit-scrollbar {
  height:7px
}

.client-carousel::-webkit-scrollbar-track {
  background:#272b27
}

.client-carousel::-webkit-scrollbar-thumb {
  background:#73796f;
  border-radius:0
}

.client-rail {
  display:flex;
  align-items:stretch;
  gap:12px;
  width:max-content;
  max-width:none;
  padding:2px var(--gutter) 14px;
  padding:2px max(var(--gutter),env(safe-area-inset-right)) 14px max(var(--gutter),env(safe-area-inset-left));
  will-change:transform
}

.client-photo {
  position:relative;
  flex:0 0 clamp(230px,74vw,340px);
  width:clamp(230px,74vw,340px);
  aspect-ratio:3/4;
  margin:0;
  overflow:hidden;
  background:#2b302b
}

.client-photo picture,
.client-photo img {
  display:block;
  width:100%;
  height:100%
}

.client-photo img {
  object-fit:cover;
  object-position:center
}

.client-photo figcaption {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:42px 15px 15px;
  background:linear-gradient(transparent,rgba(0,0,0,.77));
  color:#fff;
  font-size:8px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase
}

.client-photo[aria-hidden="true"] {
  pointer-events:none
}

.clients-hint {
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:12px;
  color:#9fa79c;
  font-size:8px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase
}

.clients-hint .icon {
  width:17px;
  height:17px;
  color:var(--yellow)
}

/* Owner portrait and institutional story. */
.owner-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:34px;
  align-items:center
}

.owner-portrait {
  position:relative;
  width:min(100%,520px);
  margin:0;
  overflow:hidden;
  background:#e8e8df
}

.owner-portrait picture,
.owner-portrait img {
  display:block;
  width:100%
}

.owner-portrait img {
  height:auto;
  aspect-ratio:9/16;
  object-fit:contain;
  object-position:center;
  background:#e8e8df
}

.owner-portrait figcaption,
.owner-portrait__label,
.owner-portrait>span {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:15px 17px;
  background:var(--yellow);
  color:var(--ink);
  font-size:8px;
  font-weight:700;
  line-height:1.5;
  letter-spacing:.1em;
  text-transform:uppercase
}

.owner-grid .editorial-copy {
  min-width:0
}

.owner-service-link {
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-top:26px;
  padding-top:20px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:11px
}

.owner-service-link .icon {
  width:20px;
  height:20px;
  color:#a76304
}

/* Miniexcavadoras remain visibly secondary to the tractor-led sections. */
.secondary-family {
  background:#ebede7
}

.secondary-family__inner {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:26px;
  align-items:center
}

.secondary-family__copy,
.secondary-family__inner>div {
  min-width:0
}

.secondary-family__copy>p,
.secondary-family__inner>div>p {
  max-width:620px;
  margin-top:18px;
  color:var(--muted);
  font-size:12px
}

.secondary-family__copy .button,
.secondary-family__copy .text-link,
.secondary-family__inner>div .button,
.secondary-family__inner>div .text-link {
  margin-top:24px
}

.secondary-family__icon {
  display:block;
  width:min(52vw,210px);
  height:auto;
  min-height:0;
  justify-self:start;
  padding:24px;
  border:1px solid #ced1c7;
  background:#f8f8f4;
  color:#343934;
  stroke-width:.75
}

.secondary-family__inner>.button {
  justify-self:start;
  width:100%
}

/* Contact information and an embedded map with a stable footprint. */
.contact-details {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  border:1px solid var(--line)
}

.contact-details article {
  position:relative;
  min-width:0;
  padding:29px 23px;
  overflow-wrap:anywhere
}

.contact-details article+article {
  border-top:1px solid var(--line)
}

.contact-details article>.icon {
  width:29px;
  height:29px;
  margin-bottom:25px;
  color:#a76304
}

.contact-details article .eyebrow {
  margin-bottom:10px
}

.contact-details h2 {
  font-size:clamp(27px,8.2vw,38px);
  overflow-wrap:anywhere
}

.contact-details__email {
  font-family:var(--body);
  font-size:clamp(14px,4.35vw,22px)!important;
  line-height:1.35;
  text-transform:none
}

.contact-details article>p {
  margin-top:12px;
  color:var(--muted);
  font-size:11px
}

.contact-details .button,
.contact-details .text-link {
  margin-top:22px
}

.contact-map {
  margin-top:40px;
  border:1px solid var(--line);
  background:#efefe9
}

.contact-map__heading {
  display:flex;
  align-items:flex-start;
  flex-direction:column;
  gap:22px;
  padding:25px 22px
}

.contact-map__heading>div {
  min-width:0
}

.contact-map__heading h2 {
  font-size:clamp(36px,11vw,52px)
}

.contact-map__heading p {
  margin-top:9px;
  color:var(--muted);
  font-size:12px
}

.contact-map__heading .button {
  width:100%
}

.contact-map iframe {
  display:block;
  width:100%;
  max-width:100%;
  height:360px;
  border:0;
  background:#d7d9d2
}

@media(max-width:374px) {
  .tractor-hero__grid {
    gap:20px;
    padding-top:28px
  }

  .tractor-hero h1 {
    font-size:clamp(46px,15vw,56px)
  }

  .tractor-hero__copy>p {
    margin-top:16px;
    font-size:11px;
    line-height:1.6
  }

  .tractor-hero .button-row {
    margin-top:18px
  }

  .tractor-gallery {
    gap:6px
  }

  .client-photo {
    flex-basis:min(78vw,260px);
    width:min(78vw,260px)
  }
}

@media(max-width:429px) {
  .tractor-hero__note {
    display:none
  }
}

@media(min-width:375px) {
  .tractor-hero .button-row {
    align-items:flex-start
  }

  .tractor-hero .button {
    width:auto
  }

  .hero-film figcaption {
    font-size:9px
  }
}

@media(min-width:430px) {
  .tractor-hero__grid {
    padding-block:46px 34px
  }

  .tractor-hero .button-row {
    align-items:center;
    flex-direction:row;
    flex-wrap:wrap
  }

  .tractor-gallery {
    gap:11px
  }

}

@media(min-width:768px) {
  .tractor-hero__grid {
    grid-template-columns:minmax(0,1.17fr) minmax(280px,.83fr);
    gap:clamp(38px,6vw,80px);
    align-items:center;
    min-height:calc(100svh - 108px);
    padding-block:42px
  }

  .tractor-hero h1 {
    font-size:clamp(66px,8.2vw,92px)
  }

  .tractor-hero__copy>p {
    font-size:13px
  }

  .hero-film {
    justify-self:end;
    width:min(100%,354px)
  }

  .tractor-hero+.trust-strip .trust-strip__inner,
  .tractor-trust .trust-strip__inner {
    grid-template-columns:repeat(4,minmax(0,1fr));
    padding-block:0
  }

  .tractor-hero+.trust-strip .trust-strip__inner>span,
  .tractor-trust .trust-strip__inner>span {
    min-height:76px;
    padding-inline:10px;
    font-size:9px
  }

  .tractor-gallery {
    grid-template-columns:repeat(12,minmax(0,1fr));
    grid-template-rows:repeat(2,minmax(205px,24vw));
    gap:13px
  }

  .tractor-gallery figure:first-child,
  .tractor-gallery__lead {
    grid-column:span 6;
    grid-row:span 2;
    aspect-ratio:auto
  }

  .tractor-gallery figure:not(:first-child):not(.tractor-gallery__lead) {
    grid-column:span 3;
    aspect-ratio:auto
  }

  .tractor-gallery figcaption {
    padding:40px 18px 16px
  }

  .gallery-footer,
  .section-action {
    align-items:center;
    flex-direction:row;
    justify-content:space-between;
    margin-top:31px
  }

  .gallery-footer .button,
  .section-action .button {
    width:auto
  }

  .clients-intro>p {
    font-size:12px
  }

  .client-rail {
    gap:16px
  }

  .client-photo {
    flex-basis:clamp(250px,30vw,340px);
    width:clamp(250px,30vw,340px)
  }

  .owner-grid {
    grid-template-columns:minmax(280px,.88fr) minmax(0,1.12fr);
    gap:clamp(48px,8vw,110px)
  }

  .owner-portrait {
    width:100%
  }

  .secondary-family__inner {
    grid-template-columns:minmax(180px,.45fr) minmax(0,1fr) auto;
    gap:clamp(28px,4vw,62px)
  }

  .secondary-family__icon {
    width:210px;
    padding:29px
  }

  .secondary-family__inner>.button {
    align-self:center;
    width:auto
  }

  .contact-details {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }

  .contact-details article {
    padding:31px 24px
  }

  .contact-details article+article {
    border-top:0;
    border-left:1px solid var(--line)
  }

  .contact-details h2 {
    font-size:clamp(24px,3.1vw,36px)
  }

  .contact-details__email {
    font-size:clamp(13px,1.65vw,20px)!important
  }

  .contact-map {
    margin-top:54px
  }

  .contact-map__heading {
    align-items:center;
    justify-content:space-between;
    flex-direction:row;
    padding:29px 31px
  }

  .contact-map__heading .button {
    width:auto
  }

  .contact-map iframe {
    height:480px
  }
}

@media(min-width:1024px) {
  .tractor-hero__grid {
    grid-template-columns:minmax(0,1fr) minmax(330px,.68fr);
    min-height:640px;
    max-height:760px
  }

  .tractor-hero h1 {
    font-size:clamp(78px,7.5vw,108px)
  }

  .tractor-hero__copy>p {
    font-size:14px
  }

  .hero-film {
    width:min(100%,354px)
  }

  .tractor-gallery {
    grid-template-rows:repeat(2,minmax(240px,21vw))
  }

  .client-photo {
    flex-basis:clamp(270px,24vw,340px);
    width:clamp(270px,24vw,340px)
  }

  .contact-details article {
    padding:38px 32px
  }
}

@media(min-width:1440px) {
  .tractor-hero__grid {
    min-height:690px;
    gap:105px
  }

  .tractor-hero h1 {
    font-size:108px
  }

  .hero-film {
    width:354px
  }

  .tractor-gallery {
    grid-template-rows:repeat(2,300px)
  }

  .client-photo {
    flex-basis:330px;
    width:330px
  }
}

@supports not (overflow:clip) {
  .tractor-hero,
  .tractor-gallery-section,
  .clients-section,
  .owner-section,
  .secondary-family,
  .contact-map {
    overflow:hidden
  }
}

@media(prefers-reduced-motion:reduce) {
  .tractor-gallery img,
  .motion-toggle {
    transition:none
  }

  .tractor-gallery figure:hover img,
  .motion-toggle:hover {
    transform:none
  }

  .client-rail {
    will-change:auto
  }
}

@media(hover:none),(pointer:coarse) {
  .button:hover {
    transform:none
  }

  .button--primary:hover {
    background:var(--yellow);
    border-color:#e3a40f;
    color:var(--ink)
  }

  .button--dark:hover {
    background:var(--ink);
    border-color:var(--ink);
    color:#fff
  }

  .button--outline:hover {
    background:transparent;
    border-color:#9b9e95;
    color:var(--ink)
  }

  .tractor-hero .text-link:hover {
    color:#fff
  }

  .motion-toggle:hover {
    background:rgba(20,22,20,.78);
    border-color:#8e948b;
    color:#fff;
    transform:none
  }

  .tractor-gallery figure:hover img {
    transform:none
  }
}

@media print {
  .hero-film__toggle,
  .clients-section .motion-toggle,
  .clients-hint {
    display:none
  }

  .tractor-hero,
  .clients-section {
    color:#000;
    background:#fff
  }

  .client-carousel {
    overflow:visible
  }

  .client-rail {
    flex-wrap:wrap;
    width:auto
  }
}
