.p900-home {
  --p900-ink: #141414;
  --p900-paper: #f6f4ed;
  --p900-line: #d8d4c8;
  --p900-yellow-light: #fff3ac;
  --p900-accent: var(--primary, #ffd400);
}

.p900-home .nav {
  background: var(--p900-ink);
  border-bottom: 4px solid var(--p900-accent);
  box-shadow: none;
  backdrop-filter: none;
}

.p900-home .nav-inner > a:first-child {
  display: grid;
  place-items: center;
  align-self: stretch;
  flex: 0 0 clamp(112px, 11vw, 156px);
  padding-right: 18px;
  background: var(--p900-accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

.p900-home .nav-inner > a:first-child:focus-visible {
  outline: 2px solid var(--p900-ink);
  outline-offset: -5px;
}

.p900-home .nav-inner .logo {
  width: 102px;
  height: 59px;
  max-height: none !important;
}

.p900-home .nav-links { gap: clamp(5px, 1vw, 15px); }
.p900-home .nav-links a:not(.btn) {
  padding: 10px 7px;
  border-radius: 2px;
  color: #fffef9;
  font-weight: 650;
}

.p900-home .nav-links a:not(.btn):hover { color: var(--p900-accent); background: #ffffff0d; }
.p900-home .nav-links .nav-soat-pill {
  color: var(--p900-accent) !important;
  background: transparent !important;
  border: 1px solid #ffe05490 !important;
  border-radius: 3px !important;
  padding: 8px 12px !important;
}

.p900-home .nav-links .nav-soat-pill:hover {
  color: var(--p900-ink) !important;
  background: var(--p900-accent) !important;
}

.p900-home .nav-links > .btn {
  background: var(--p900-accent) !important;
  color: var(--p900-ink) !important;
  border-radius: 3px !important;
  box-shadow: none;
  white-space: nowrap;
}

.p900-home .cookies { border-radius: 10px; padding: 16px 18px; }

@media (min-width: 1080px) {
  .p900-home .nav-links > a { white-space: nowrap; }
}

@media (max-width: 1079px) {
  .p900-home .nav-links { display: none; }
  .p900-home .nav #menu {
    display: inline-flex !important;
    color: #fffef9;
    border: 1px solid #ffffff78;
    border-radius: 3px;
    background: #242424;
  }
  .p900-home .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
    background: var(--p900-ink);
    border-top: 3px solid var(--p900-accent);
    box-shadow: 0 12px 22px #0005;
    gap: 6px;
  }
  .p900-home .nav-links.open a { min-height: 42px; justify-content: flex-start; }
}

.landing-p900 [id] { scroll-margin-top: 86px; }
.landing-p900 [hidden] { display: none !important; }
.landing-p900 :focus-visible { outline: 3px solid #b47900; outline-offset: 4px; }

/* Keep the full-width slideshow with the text and buttons above each photo. */
.landing-p900 .hero-slideshow { background: var(--p900-ink); }
.landing-p900 .hero-slide { transform: none; }
.landing-p900 .hero-slide:not(.active) { display: none !important; }
.landing-p900 .hero-slide-photo, .landing-p900 .hero-slide-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}
.landing-p900 .hero-slide-overlay {
  background: linear-gradient(270deg, #111111 5%, #111111db 24%, #11111152 48%, #1111110a 74%);
}

.landing-p900 .hero-slide[data-p900-scene] .hero-slide-photo {
  width: 80%;
  mask-image: linear-gradient(90deg, #000 0 62%, transparent 100%);
}

.landing-p900 .hero-slide[data-p900-scene] .hero-slide-photo img {
  object-position: var(--scene-x, 46%) var(--scene-y, 44%);
}

.hero-slide[data-p900-scene="livianos"] { --scene-x: 38%; --scene-y: 34%; }
.hero-slide[data-p900-scene="motos"] { --scene-x: 66%; --scene-y: 59%; }
.hero-slide[data-p900-scene="pesados"] { --scene-x: 36%; --scene-y: 61%; }
.hero-slide[data-p900-scene="sede"] { --scene-x: 27%; --scene-y: 47%; }

@media (min-width: 769px) {
  .landing-p900 .hero-slide[data-p900-scene]:not([data-p900-scene="sede"]) .hero-slide-content {
    max-width: min(620px, 45vw);
  }
  .landing-p900 .hero-slide[data-p900-scene="motos"] .hero-slide-photo {
    width: 52%;
    mask-image: linear-gradient(90deg, #000 0 92%, transparent 100%);
  }
}

.landing-p900 .hero-slide-content {
  background: #151515f3;
  border: 1px solid #ffffff30;
  border-left: 5px solid var(--p900-accent);
  border-radius: 3px;
  box-shadow: 0 12px 28px #0005;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.landing-p900 .hero-slide-content::before {
  inset: 0 0 auto auto;
  width: 76px;
  height: 5px;
  border-radius: 0;
  background: repeating-linear-gradient(120deg, var(--p900-accent) 0 9px, transparent 9px 16px);
}
.landing-p900 .hero-shield-badge {
  background: transparent;
  color: var(--p900-accent);
  border: 0;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
}
.landing-p900 .hero-slide-content h1, .landing-p900 .hero-slide-content h2 {
  font-size: clamp(28px, 3.7vw, 46px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.034em;
  color: #fffef9;
  margin: 0 0 16px;
  text-shadow: none;
}
.landing-p900 .hero-slide-content p { color: #edebe1; text-shadow: none; }
.landing-p900 .hero-slide-actions .btn {
  min-height: 44px;
  border-radius: 6px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.landing-p900 .hero-slide-actions .btn:not(.ghost):not(.dark) {
  color: #191a17;
  background: var(--p900-accent);
  border-color: transparent;
  box-shadow: none;
}
.landing-p900 .hero-slide-actions .btn.ghost { border-color: #e1ddd2; color: #fffef9; }
.landing-p900 .hero-slide-actions .btn.dark { border-color: #f3d447; color: #ffe379; }
.landing-p900 .hero-nav-btn, .p900-hero-pause {
  color: #fffef9;
  background: #191a17;
  border: 1px solid #ffffff78;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.p900-hero-pause {
  position: absolute;
  left: calc(50% - 112px);
  bottom: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}
.landing-p900 .hero-dot { min-width: 14px; min-height: 14px; }
.landing-p900 .hero-progress-fill { background: var(--p900-accent); box-shadow: none; }

/* Existing sections and cards share the same photographic treatment. */
.landing-p900 .fan-solutions-section, .landing-p900 .news-magazine-section { background: var(--p900-paper); }
.landing-p900 .fan-section-title { color: var(--p900-ink); text-shadow: none; }
.landing-p900 .fan-section-sub { color: #484a42; }
.landing-p900 .news-magazine-section .section-head h2 { color: var(--p900-ink); }
.landing-p900 .news-magazine-section .section-head p { color: #484a42; }
.landing-p900 .news-magazine-section .section-head .eyebrow { color: #715000 !important; }
.landing-p900 .fan-card {
  border-radius: 12px;
  border: 1px solid #262820;
  box-shadow: none;
}
.landing-p900 .fan-glass-card {
  background: #161713ef !important;
  border: 1px solid #ffffff40 !important;
  border-radius: 8px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.landing-p900 .fan-card-bg { filter: none; object-position: center 43%; }
.landing-p900 .click-catalog-section {
  background: var(--p900-ink);
}
.landing-p900 .city-map-canvas { opacity: 0.18; }
.landing-p900 .product-card-3d, .landing-p900 .about-glass-card, .landing-p900 .about-policy-box,
.landing-p900 .news-featured-card, .landing-p900 .news-side-card,
.landing-p900 .contact-map-card, .landing-p900 .portfolio-form-container {
  border-radius: 12px;
  box-shadow: none;
}
.landing-p900 .about-glass-card, .landing-p900 .about-policy-box {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.landing-p900 .news-featured-card, .landing-p900 .news-side-card, .landing-p900 .news-help-box {
  background: #242620 !important;
}
.landing-p900 .contact-map-info h3 { margin: 0 0 4px; color: #fffef9; font-size: 1rem; }
.landing-p900 .about-main-headline, .landing-p900 .click-catalog-title, .landing-p900 .portfolio-headline {
  letter-spacing: -0.035em;
  text-shadow: none;
}

.landing-p900 .gold-badge,
.landing-p900 .fan-pill-badge,
.landing-p900 .fan-pill-count {
  border-radius: 3px;
}

.landing-p900 .fan-glass-card {
  border-radius: 4px !important;
  border-left: 4px solid var(--p900-accent) !important;
}

.landing-p900 .fan-card .fan-circle-arrow {
  border-radius: 4px !important;
  background: var(--p900-accent) !important;
  color: var(--p900-ink) !important;
  box-shadow: none !important;
}
.landing-p900 .fan-card:hover .fan-circle-arrow { transform: none !important; }

.landing-p900 .product-card-3d .card-img-wrap {
  background: #fff;
  border-bottom: 1px solid var(--p900-line);
}

.landing-p900 .product-card-3d .card-img-wrap img { object-fit: contain; display: block; }
.landing-p900 .product-card-3d:hover .card-img-wrap img { transform: none; }
.landing-p900 .product-card-3d .card-badge { border-radius: 3px; }
.landing-p900 .product-card-3d .card-btn { border-radius: 4px; white-space: nowrap; padding-inline: 10px; }
.landing-p900 .product-card-3d .card-btn:not([target]) {
  color: var(--p900-ink) !important;
  border-color: #b8b3a5 !important;
}

.landing-p900 .about-p900-section,
.landing-p900 .portfolio-cta-section {
  background: var(--p900-paper) !important;
  color: var(--p900-ink) !important;
  border-block: 1px solid var(--p900-line);
}

.landing-p900 .about-main-headline { color: var(--p900-ink); }
.landing-p900 .about-lead-text { color: #494842; }
.landing-p900 .about-policy-box {
  background: var(--p900-yellow-light);
  border: 1px solid #cfb43b;
  border-left: 5px solid var(--p900-ink);
  border-radius: 3px;
}
.landing-p900 .about-policy-box strong,
.landing-p900 .about-policy-box p { color: var(--p900-ink) !important; }
.landing-p900 .about-stat-item {
  background: #fff;
  border: 1px solid var(--p900-line);
  border-bottom: 4px solid var(--p900-accent);
  border-radius: 3px;
}
.landing-p900 .about-stat-item .stat-number { color: var(--p900-ink); font-variant-numeric: tabular-nums; }
.landing-p900 .about-stat-item .stat-label { color: #45433a; }
.landing-p900 .about-actions-row .btn { border-radius: 4px !important; box-shadow: none; }
.landing-p900 .about-actions-row .ghost {
  color: var(--p900-ink) !important;
  background: transparent;
  border-color: var(--p900-ink) !important;
}
.landing-p900 .about-glass-card {
  background: var(--p900-ink);
  border: 1px solid var(--p900-ink);
  border-top: 6px solid var(--p900-accent);
  border-radius: 4px;
}
.landing-p900 .about-glass-card > p { color: #d0ccc2 !important; }
.landing-p900 .about-card-badge { background: var(--p900-accent); color: var(--p900-ink); }
.landing-p900 :is(.about-card-badge, .schedule-item, .cert-pill, .about-location-quick) { border-radius: 3px; }
.landing-p900 .schedule-item {
  background: #242424;
  border-color: #ffffff28;
}
.landing-p900 .schedule-item.highlight { background: #312b12; border-color: #ffd40077; }
.landing-p900 .schedule-hours { text-align: right; }

.landing-p900 .portfolio-cta-section::before,
.landing-p900 .portfolio-cta-section::after { display: none; }
.landing-p900 .portfolio-headline {
  background: none !important;
  color: var(--p900-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}
.landing-p900 .portfolio-header .eyebrow {
  display: inline-block;
  background: var(--p900-accent);
  padding: 5px 10px;
  color: var(--p900-ink) !important;
}
.landing-p900 .portfolio-subline { color: #494842 !important; }
.landing-p900 .portfolio-pill,
.landing-p900 .map-action-btn {
  border-radius: 4px;
  min-height: 44px;
  border: 1px solid transparent;
  box-shadow: none !important;
}
.landing-p900 .portfolio-contact-pills :is(.phone-pill, button.portfolio-pill) {
  color: var(--p900-ink) !important;
  border: 1px solid var(--p900-ink) !important;
  background: #fff !important;
}
.landing-p900 :is(.portfolio-pill[href*="wa.me"], .map-action-btn.wa-btn) { color: #0d2817 !important; }
.landing-p900 .contact-map-card {
  background: var(--p900-ink);
  border: 1px solid var(--p900-ink);
  border-top: 6px solid var(--p900-accent);
  border-radius: 4px;
}
.landing-p900 .contact-map-info p { color: #d6d3c7; }
.landing-p900 .portfolio-form-container {
  background: #fff;
  border: 1px solid var(--p900-line);
  border-top: 6px solid var(--p900-accent);
  border-radius: 4px;
}
.landing-p900 .portfolio-form-container :is(h3, label, .pill-text, .check) { color: var(--p900-ink) !important; }
.landing-p900 .portfolio-form-container :is(.form-header p, .portfolio-privacy, .pill-sub) { color: #494842 !important; }
.landing-p900 .portfolio-form-container :is(.service-pill-card, .form-group input, .form-group select) {
  background: #f9f8f1 !important;
  border: 1px solid #aaa594 !important;
  border-radius: 4px !important;
  color: var(--p900-ink) !important;
  box-shadow: none;
}
.landing-p900 .portfolio-form-container .service-pill-card.active { background: var(--p900-yellow-light) !important; border-color: #6c5900 !important; }
.landing-p900 .portfolio-form-container .service-pill-card:focus-within { outline: 2px solid #6c5900; outline-offset: 3px; }
.landing-p900 .portfolio-form-container .open-lead-service-modal { color: #5f4700 !important; }
.landing-p900 .portfolio-form-container .portfolio-submit-btn {
  background: var(--p900-accent) !important;
  border-radius: 4px;
  box-shadow: none !important;
}

.landing-p900 .p900-chat-inline,
.landing-p900 .p900-form-mascot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 8px;
  background: transparent;
  border: 0;
  color: var(--p900-accent);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.landing-p900 .p900-chat-inline {
  display: flex;
  margin: 4px auto 0;
}

.landing-p900 .p900-form-mascot {
  float: right;
  flex-direction: column;
  gap: 1px;
  margin: -4px 0 4px 10px;
  color: #5d4600;
  font-size: 0.74rem;
}

.landing-p900 .p900-form-mascot img {
  width: auto;
  height: 62px;
  display: block;
}

.landing-p900 .p900-form-intro { display: flow-root; }

@media (prefers-reduced-motion: no-preference) {
  .landing-p900 .p900-revealed { animation: p900-arrive 460ms ease-out; }
  .landing-p900 .hero-slide.active:not(:first-child) .hero-slide-photo { animation: p900-photo-in 350ms ease-out; }
  @keyframes p900-photo-in {
    from { opacity: 0.55; }
    to { opacity: 1; }
  }
  @keyframes p900-arrive {
    from { translate: 0 12px; }
    to { translate: 0 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-p900 .hero-slide, .landing-p900 .product-card-3d { transition: none !important; }
  .landing-p900 .p900-hero-pause { display: none; }
}

@media (max-width: 768px) {
  .landing-p900 .hero-slideshow { min-height: 88svh !important; }
  .landing-p900 .hero-slide-photo img { object-position: 50% 18%; }
  .landing-p900 .hero-slide[data-p900-scene] .hero-slide-photo {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    height: auto;
    mask-image: none;
  }
  .landing-p900 .hero-slide[data-p900-scene] .hero-slide-photo img {
    object-position: 50% 92%;
  }
  .landing-p900 .hero-slide-overlay {
    background: linear-gradient(180deg, #10110e08 0%, #10110e38 45%, #10110eec 90%) !important;
  }
  .landing-p900 .hero-slide[data-p900-scene] .hero-slide-overlay { background: none !important; }
  .landing-p900 .hero-slide[data-p900-scene] .hero-slide-content { flex-shrink: 0; }
  .landing-p900 .hero-slide.active { padding-bottom: 62px !important; }
  .landing-p900 .hero-slide-content { border-radius: 3px !important; }
  .landing-p900 .hero-slide-content h2 { font-size: clamp(20px, 5.2vw, 24px); line-height: 1.2; margin-bottom: 8px; }
  .landing-p900 .hero-slide-content p { display: block !important; overflow: visible !important; }
  .p900-hero-pause { bottom: 10px; }
  .landing-p900 .hero-nav-dots { bottom: 21px !important; }
  .p900-home .cookies { bottom: 76px; padding: 13px 15px; }
}

@media (max-width: 375px) {
  .landing-p900 .hero-slideshow:has(.hero-slide.active[data-p900-scene]) {
    min-height: max(88svh, 690px) !important;
  }
}
