:root {
  --tp-red: #e3262e;
  --tp-navy: #171f5a;
  --tp-navy-dark: #101643;
  --tp-ink: #171717;
  --tp-light: #f7f7f8;
}

html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { color: var(--tp-ink); font-family: "Montserrat", sans-serif; font-size: 1rem; line-height: 1.55; }
.section-space { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-navy { background: var(--tp-navy); color: #fff; }
.section-title { font-size: clamp(2rem, 3vw, 3.35rem); font-weight: 800; line-height: 1; }
.text-red { color: var(--tp-red) !important; }
.text-navy { color: var(--tp-navy) !important; }

.navbar { min-height: 78px; }
.navbar-brand { align-items: center; display: inline-flex; gap: .5rem; line-height: .8; }
.brand-mark { color: var(--tp-red); font-size: 2rem; font-style: italic; font-weight: 800; letter-spacing: -.18rem; }
.brand-name { color: var(--tp-navy); font-size: .58rem; font-weight: 800; }
.navbar .nav-link { color: #111; font-size: .86rem; font-weight: 800; text-transform: uppercase; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--tp-red); }

.hero {
  background-color: #101010;
  background-image: url("../img/hero-background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  min-height: clamp(600px, 54vw, 810px);
  overflow: hidden;
  position: relative;
}
.hero::after {
  background: linear-gradient(90deg, rgba(0,0,0,.12), transparent 50%, rgba(0,0,0,.08));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.hero-content { min-height: inherit; position: relative; z-index: 1; }
.hero-copy { bottom: 7%; font-size: clamp(1rem, 1.75vw, 1.55rem); left: .75rem; line-height: 1.28; max-width: 46rem; position: absolute; }
.hero-copy strong { color: var(--tp-red); }
.hero-slogan { font-size: clamp(1.7rem, 3vw, 2.75rem); line-height: 1.3; position: absolute; right: 2%; top: 17%; }
.hero-slogan span { display: block; }

.media-placeholder { align-items: center; background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.03)); border: 2px dashed rgba(255,255,255,.35); color: rgba(255,255,255,.76); display: flex; font-size: .8rem; font-weight: 700; justify-content: center; letter-spacing: .08em; min-height: 260px; padding: 2rem; text-align: center; }
.section-image { display: block; height: auto; max-width: 100%; }
.about-image { margin-inline: auto; width: min(100%, 780px); }
.boxtruck-image { margin-inline: auto; max-height: 430px; object-fit: contain; width: 100%; }
.product-visual { min-height: 350px; position: relative; }
.product-image { margin-inline: auto; max-height: 390px; object-fit: contain; width: auto; }
.product-plus { color: var(--tp-red); font-size: 6rem; font-weight: 500; line-height: 1; position: absolute; right: 10%; top: 52%; transform: translateY(-50%); }
.catalog-team-image { margin-left: auto; max-height: 470px; object-fit: contain; object-position: right bottom; width: auto; }

.clean-list { list-style: none; padding-left: 0; }
.clean-list li::before { content: "• "; }
.value-formula { align-items: center; display: flex; flex-wrap: wrap; gap: clamp(.75rem, 3vw, 2rem); justify-content: center; }
.value-formula > span:not(.formula-brand) { align-items: center; display: flex; flex-direction: column; }
.value-formula i { font-size: 3rem; }
.value-formula small { font-size: .67rem; text-transform: uppercase; }
.value-formula b { font-size: 2.5rem; }

.specialty-card { min-height: 470px; position: relative; }
.specialty-card::before {
  background: linear-gradient(90deg, rgba(23,31,90,0) 0%, #7e243f 18%, #bd1e2b 42%, #db202c 100%);
  content: "";
  height: 42%;
  left: calc((100vw - 100%) / -2);
  position: absolute;
  top: 30%;
  width: calc(46% + ((100vw - 100%) / 2));
}
.specialty-card > [class*="col-"] { position: relative; z-index: 1; }
.specialty-copy { max-width: 34rem; padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3.5vw, 3rem); text-align: center;}
.specialty-copy strong { font-size: 1.2em; }
.specialty .boxtruck-image { margin-left: -4%; max-height: 500px; position: relative; z-index: 2; }
.purpose { background: linear-gradient(110deg, #fff 65%, #f1f1f3 65%, #fff 82%); }
.differences-title { color: var(--tp-navy); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 400; line-height: 1; }
.differences-title span { display: block; }
.difference-list { color: var(--tp-red); font-weight: 600; line-height: 1.75; list-style: none; padding: 0; }
.difference-list li::before { content: "• "; }

.brands { background: #191f52; overflow: hidden; }
.brands-title { font-size: clamp(1.65rem, 3vw, 2.7rem); font-weight: 700; margin-bottom: 2rem; }
.brands-carousel { overflow: hidden; width: 100%; }
.brands-track { animation: brands-scroll 30s linear infinite; display: flex; width: max-content; }
.brands-group { align-items: center; display: flex; flex-shrink: 0; gap: clamp(2rem, 4vw, 4.5rem); padding-right: clamp(2rem, 4vw, 4.5rem); }
.brand-slide { align-items: center; display: flex; flex: 0 0 clamp(165px, 13vw, 225px); height: 105px; justify-content: center; }
.brand-slide img { display: block; height: auto; max-height: 88px; max-width: 100%; object-fit: contain; width: auto; }
@keyframes brands-scroll { to { transform: translateX(-50%); } }
.btn-brand { background: var(--tp-red); border: 0; border-radius: .8rem; color: #fff; font-weight: 800; padding: .85rem 1.5rem; text-transform: uppercase; }
.btn-brand:hover { background: #ba1720; color: #fff; }
.contact-kicker { font-size: clamp(1.25rem, 3vw, 2rem); }
.contact-title { font-size: clamp(1.5rem, 3.5vw, 2.35rem); font-weight: 700; }
.contact-links { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; justify-content: center; margin-top: 2.5rem; }
.contact-links a { color: #111; font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.contact-links i { font-size: 1.7rem; margin-right: .5rem; vertical-align: middle; }
.site-footer { background-color: #101417; background-image: linear-gradient(90deg, rgba(8,15,20,.28), rgba(8,15,20,.18)), url("../img/footer-background-hd.png"); background-position: center; background-repeat: no-repeat; background-size: cover; color: #fff; }
.footer-logo { color: var(--tp-red); font-size: 3rem; font-style: italic; font-weight: 800; }
.footer-logo span { color: #fff; display: inline-block; font-size: .7rem; font-style: normal; line-height: 1; max-width: 4rem; }

@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0; }
  .hero { background-position: center top; min-height: 680px; }
  .hero-slogan { right: 3%; top: 10%; }
  .hero-copy { bottom: 6%; }
  .about-image { width: min(100%, 680px); }
  .catalog-team-image { margin-inline: auto; }
  .specialty-card { min-height: auto; }
  .specialty-card::before { height: 52%; left: -1.5rem; top: 0; width: calc(100% + 3rem); }
  .specialty-copy { margin-inline: auto; max-width: 42rem; }
  .specialty .boxtruck-image { margin: -2rem auto 0; max-height: 410px; }
}

@media (max-width: 575.98px) {
  body { font-size: .95rem; }
  .section-space { padding: 3.5rem 0; }
  .hero { background-position: 47% top; min-height: 690px; }
  .hero::before {
    background: linear-gradient(180deg, rgba(0,0,0,.08) 35%, rgba(0,0,0,.82) 74%, rgba(0,0,0,.94));
    content: "";
    inset: 0;
    position: absolute;
  }
  .hero-content { padding-inline: 1.25rem; }
  .hero-slogan { font-size: 1.4rem; left: 1.25rem; right: auto; top: 6%; }
  .hero-copy { bottom: 5%; font-size: 1rem; left: 1.25rem; max-width: calc(100% - 2.5rem); }
  .media-placeholder { min-height: 220px; }
  .value-formula { gap: .65rem; }
  .value-formula i { font-size: 2rem; }
  .value-formula b { font-size: 1.75rem; }
  .formula-brand { font-size: 2rem; }
  .purpose { background: linear-gradient(110deg, #fff 70%, #f4f4f5 70%); }
  .purpose .text-lg-end { text-align: right; }
  .product-visual { min-height: 300px; }
  .specialty-card::before { background: linear-gradient(90deg, rgba(23,31,90,.35), #9f2237 16%, #d91f2b 100%); height: 56%; }
  .specialty-copy { padding-inline: .75rem; }
  .product-image { max-height: 320px; }
  .product-plus { font-size: 4.5rem; right: 2%; }
  .brands-title { margin-bottom: 1.25rem; }
  .brands-track { animation-duration: 22s; }
  .brands-group { gap: 2rem; padding-right: 2rem; }
  .brand-slide { flex-basis: 175px; height: 90px; }
  .brand-slide img { max-height: 74px; }
  .contact-links { align-items: center; flex-direction: column; gap: 1.25rem; }
  .contact-links a { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brands-track { animation-duration: 80s; }
}


/* =====================================================
   WIDGET DE WHATSAPP
====================================================== */

.whatsapp-widget {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1050;
    font-family: "Montserrat", Arial, sans-serif;
}

.whatsapp-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-left: auto;
    padding: 0;
    color: #ffffff;
    background: #25d366;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.whatsapp-button:hover {
    color: #ffffff;
    background: #1ebe5d;
    transform: scale(1.07);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.32);
}

.whatsapp-button:focus-visible,
.whatsapp-close:focus-visible,
.whatsapp-start:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.4);
    outline-offset: 3px;
}

.whatsapp-notification {
    position: absolute;
    top: -3px;
    right: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    background: #e3262e;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.whatsapp-panel {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: 340px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.96);
    transform-origin: right bottom;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.whatsapp-widget.is-open .whatsapp-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    color: #ffffff;
    background: #075e54;
}

.whatsapp-avatar {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    padding: 5px;

    background-color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    overflow: hidden;
}

.whatsapp-avatar-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.whatsapp-agent {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
}

.whatsapp-agent strong {
    font-size: 15px;
    line-height: 1.3;
}

.whatsapp-agent span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
}

.whatsapp-status {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    background: #25d366;
    border-radius: 50%;
}

.whatsapp-close {
    align-self: flex-start;
    padding: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 27px;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.whatsapp-close:hover {
    color: #ffffff;
}

.whatsapp-body {
    min-height: 160px;
    padding: 24px 18px;
    background-color: #efeae2;
    background-image:
        radial-gradient(
            circle at 20% 20%,
            rgba(7, 94, 84, 0.05) 0 2px,
            transparent 3px
        );
    background-size: 28px 28px;
}

.whatsapp-message {
    position: relative;
    max-width: 90%;
    padding: 12px 14px;
    color: #222222;
    font-size: 13px;
    line-height: 1.45;
    background: #ffffff;
    border-radius: 0 10px 10px 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.whatsapp-message::before {
    position: absolute;
    top: 0;
    left: -9px;
    content: "";
    border-top: 10px solid #ffffff;
    border-left: 10px solid transparent;
}

.whatsapp-message-name {
    display: block;
    margin-bottom: 5px;
    color: #075e54;
    font-size: 12px;
    font-weight: 700;
}

.whatsapp-message p {
    margin: 0 0 6px;
}

.whatsapp-message small {
    color: #777777;
    font-size: 10px;
}

.whatsapp-footer {
    padding: 14px 18px 18px;
    background: #ffffff;
}

.whatsapp-start {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: #25d366;
    border-radius: 30px;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.whatsapp-start:hover {
    color: #ffffff;
    background: #1ebe5d;
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    .whatsapp-widget {
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-button {
        width: 58px;
        height: 58px;
    }

    .whatsapp-panel {
        position: fixed;
        right: 12px;
        bottom: 86px;
        width: calc(100% - 24px);
        max-width: 360px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-button,
    .whatsapp-panel,
    .whatsapp-start {
        transition: none;
    }
}

.navbar {
  min-height: 78px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.navbar-logo {
  display: block;
  width: auto;
  height: 90px;
  object-fit: contain;
}

@media (max-width: 575.98px) {
  .navbar {
    min-height: 68px;
  }

  .navbar-logo {
    height: 48px;
  }
}

.formula-logo {
    display: block;
    width: auto;
    height: 90px;
    max-width: 150px;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .formula-logo {
        height: 48px;
        max-width: 105px;
    }
}