@import url("./chat-widget.css?v=20260920-5");
@import url("./consent-manager.css?v=20260920-12");

/* ==============================
   GLOBAL HEADER / FOOTER DESKTOP
============================== */

:root {
  --brand-red: #e11919;
  --brand-red-dark: #b90000;
  --brand-black: #050505;
  --text-main: #111111;
  --text-muted: #3f3f3f;
  --page-bg: #f5f5f5;
  --glass-border: rgba(255, 255, 255, 0.58);
  --glass-bg: rgba(17, 17, 17, 0.34);
  --shadow-red: 0 16px 32px rgba(225, 25, 25, 0.24);
  --site-cta-red: var(--brand-red);
  --site-cta-red-dark: var(--brand-red-dark);
  --text-black: var(--text-main);
  --text-white: #ffffff;
  --muted-white: rgba(255, 255, 255, 0.82);
  --footer-border: rgba(255, 255, 255, 0.12);
}

/* Shared hero eyebrow used by Services, About and Contact. */
.site-hero-eyebrow {
  color: var(--brand-red);
  font-size: clamp(13px, 0.9vw, 18px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Shared primary hero action: one markup and one visual rule for every page. */
.site-hero-cta {
  width: clamp(230px, 17.8vw, 345px);
  height: clamp(50px, 3.35vw, 66px);
  border-radius: clamp(9px, 0.65vw, 13px);
  background: linear-gradient(135deg, var(--site-cta-red), var(--site-cta-red-dark));
  box-shadow:
    0 16px 32px rgba(225, 25, 25, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.2vw, 26px);
  font-size: clamp(13px, 0.9vw, 18px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.site-hero-cta i {
  font-size: clamp(17px, 1.15vw, 24px);
  line-height: 1;
}

.site-hero-cta:hover,
.site-hero-cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 20px 40px rgba(225, 25, 25, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

@media (max-width: 760px) {
  .site-hero-eyebrow {
    font-size: 11px;
  }

  .site-hero-cta {
    width: 205px;
    height: 42px;
    border-radius: 7px;
    gap: 16px;
    font-size: 12px;
    box-shadow:
      0 12px 24px rgba(225, 25, 25, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .site-hero-cta i {
    font-size: 17px;
  }
}

/* ==============================
   HEADER DESKTOP
============================== */

.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 50;
}

.site-header-inner {
  width: 100%;
  min-height: 86px;
  padding: 0 76px;
  display: grid;
  grid-template-columns: 190px 1fr 170px;
  align-items: center;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  width: 88px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 58px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 31px 0 28px;
  color: var(--text-black);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 100%;
  height: 3px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

/* ==============================
   FOOTER DESKTOP
============================== */

.site-footer {
  background: #030303;
  color: var(--text-white);
}

.footer-inner {
  min-height: 218px;
  padding: 56px 88px 48px;
  display: grid;
  grid-template-columns: 210px 1.1fr 1.1fr 1fr 1.35fr 1fr;
  gap: 58px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-logo-link {
  display: inline-flex;
  text-decoration: none;
}

.footer-logo {
  width: 200px;
  height: auto;
  display: block;
}

.footer-col h3 {
  margin: 0 0 17px;
  color: var(--text-white);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-col ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
  color: var(--muted-white);
  font-size: 14px;
  line-height: 1.25;
}

/* Home mobile first-paint skeleton; kept in shared CSS so CSP needs no inline style. */
.index-mobile-skeleton {
  display: none;
}

@media (max-width: 760px) {
  .site-loading-skeleton {
    display: none !important;
  }

  .index-mobile-skeleton {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 18px;
    background: #f6f7f9;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .index-mobile-skeleton.is-hidden {
    opacity: 0;
    visibility: hidden;
  }

  .index-mobile-skeleton__top,
  .index-mobile-skeleton__line,
  .index-mobile-skeleton__hero,
  .index-mobile-skeleton__button,
  .index-mobile-skeleton__card {
    border-radius: 14px;
    background: linear-gradient(90deg, #e8ebef 0%, #fff 50%, #e8ebef 100%);
    background-size: 220% 100%;
    animation: index-mobile-skeleton 1.15s ease-in-out infinite;
  }

  .index-mobile-skeleton__top {
    width: 100%;
    height: 58px;
    border-radius: 18px;
  }

  .index-mobile-skeleton__hero {
    height: 230px;
    border-radius: 22px;
  }

  .index-mobile-skeleton__line {
    height: 18px;
  }

  .index-mobile-skeleton__line.short {
    width: 58%;
  }

  .index-mobile-skeleton__line.long {
    width: 92%;
  }

  .index-mobile-skeleton__button {
    width: 170px;
    height: 48px;
    border-radius: 999px;
  }

  .index-mobile-skeleton__card {
    height: 92px;
    border-radius: 18px;
  }
}

@keyframes index-mobile-skeleton {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.footer-col a,
.footer-col span {
  color: var(--muted-white);
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact-list i {
  width: 14px;
  color: var(--brand-red);
  font-size: 13px;
  text-align: center;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #222222;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--brand-red);
  transform: translateY(-2px);
}

.footer-bottom {
  position: relative;
  border-top: 1px solid var(--footer-border);
  padding: 18px 88px 20px;
  text-align: center;
}

.footer-cookie-settings[hidden] {
  display: none !important;
}

.footer-cookie-settings {
  position: absolute;
  top: 50%;
  left: 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: #171717;
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer-cookie-settings svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
  border-color: rgba(225, 25, 25, 0.72);
  background: #202020;
  color: #ffffff;
  outline: none;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted-white);
  font-size: 13px;
  line-height: 1.3;
}

.mobile-header-actions,
.mobile-menu-backdrop,
.mobile-side-menu,
.footer-mobile-only {
  display: none;
}

/* Keep the shared desktop navigation and footer usable on tablets. */
@media (max-width: 1100px) and (min-width: 761px) {
  .site-header-inner {
    padding-inline: 32px;
    grid-template-columns: 120px minmax(0, 1fr) 120px;
  }

  .main-nav ul {
    gap: 20px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .footer-inner {
    padding: 48px 40px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .footer-logo {
    width: 160px;
  }

  .footer-bottom {
    padding-inline: 40px;
  }
}

@media (max-width: 760px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .site-header {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 120;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }

  .site-header-inner {
    min-height: 92px;
    padding: 18px 22px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .header-logo {
    width: 82px;
  }

  .main-nav {
    display: none;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .mobile-header-btn {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.64);
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 25px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
    cursor: pointer;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 180;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .mobile-side-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 190;
    width: min(82vw, 330px);
    height: 100svh;
    padding: 24px 24px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translateX(104%);
    box-shadow: -20px 0 44px rgba(0, 0, 0, 0.18);
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.mobile-menu-open .mobile-side-menu {
    transform: translateX(0);
  }

  .mobile-side-menu-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 24px;
  }

  .mobile-menu-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
  }

  .mobile-side-nav {
    display: grid;
    gap: 6px;
  }

  .mobile-side-nav a {
    padding: 12px 0;
    color: #070707;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
  }

  .mobile-side-actions {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    display: grid;
    gap: 12px;
  }

  .mobile-side-actions a {
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    color: #111111;
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-side-actions i {
    color: var(--brand-red);
    font-size: 18px;
  }

  .site-footer {
    position: relative;
    background:
      radial-gradient(circle at 18% 8%, rgba(255,255,255,0.055), transparent 22%),
      linear-gradient(180deg, #050505 0%, #010101 100%);
    color: #ffffff;
    overflow: hidden;
  }

  .site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.025), transparent 36%, rgba(255,255,255,0.018)),
      url("../images/index/nodos.png");
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
  }

  .footer-inner {
    position: relative;
    z-index: 1;
    min-height: 0;
    padding: 34px 28px 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-brand {
    justify-content: center;
    margin-bottom: 8px;
  }

  .footer-logo {
    width: 178px;
  }

  .footer-mobile-only {
    display: block;
  }

  .footer-col {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .footer-col h3 {
    position: relative;
    margin: 0 0 20px;
    padding-left: 20px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
  }

  .footer-col h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 5px;
    height: 22px;
    border-radius: 999px;
    background: var(--brand-red);
  }

  .footer-col li {
    margin: 0;
  }

  .footer-col a,
  .footer-col span {
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.2;
    text-decoration: none;
  }

  .footer-services-col li,
  .footer-fleet-col li,
  .footer-policies-col li,
  .footer-company-col li {
    margin-bottom: 19px;
  }

  .footer-services-col li:last-child,
  .footer-fleet-col li:last-child,
  .footer-policies-col li:last-child,
  .footer-company-col li:last-child {
    margin-bottom: 0;
  }

  .footer-services-col a,
  .footer-fleet-col a,
  .footer-policies-col a,
  .footer-company-col a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
  }

  .footer-services-col a::after,
  .footer-fleet-col a::after,
  .footer-policies-col a::after,
  .footer-company-col a::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
  }

  .footer-contact-list {
    display: grid;
    gap: 14px;
  }

  .footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .footer-contact-list i {
    width: 22px;
    color: var(--brand-red);
    font-size: 19px;
  }

  .footer-social-col {
    border-bottom: 0;
  }

  .footer-social {
    gap: 20px;
  }

  .footer-social a {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 22px;
  }

  .footer-chat-pill {
    justify-self: end;
    min-width: 130px;
    height: 58px;
    margin: -70px 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-red);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 21px;
    font-weight: 900;
    box-shadow: 0 18px 32px rgba(225, 25, 25, 0.32);
    cursor: pointer;
  }

  .footer-bottom {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 18px 24px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    text-align: left;
  }

  .footer-bottom p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.35;
  }

  .footer-cookie-settings {
    position: static;
    width: 36px;
    height: 36px;
    transform: none;
  }
}
/* ==============================
   GLOBAL LOADING SKELETON
============================== */

.site-loading-skeleton {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  background: #f6f7f9;
  color: #111111;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

.site-is-ready .site-loading-skeleton {
  opacity: 0;
  visibility: hidden;
}

.site-loading-header {
  min-height: 86px;
  display: grid;
  grid-template-columns: 170px 1fr 150px;
  align-items: center;
  gap: 34px;
  padding: 0 76px;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

.site-loading-logo,
.site-loading-nav span,
.site-loading-pill,
.site-loading-line,
.site-loading-button,
.site-loading-visual,
.site-loading-visual span {
  background: linear-gradient(90deg, #e9edf2 0%, #ffffff 48%, #e9edf2 100%);
  background-size: 220% 100%;
  animation: siteSkeletonShimmer 1.3s ease-in-out infinite;
}

.site-loading-logo {
  width: 88px;
  height: 38px;
  border-radius: 8px;
}

.site-loading-nav {
  display: flex;
  justify-content: center;
  gap: 46px;
}

.site-loading-nav span {
  width: 82px;
  height: 13px;
  border-radius: 999px;
}

.site-loading-pill {
  width: 132px;
  height: 42px;
  justify-self: end;
  border-radius: 9px;
}

.site-loading-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 52px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.site-loading-copy {
  display: grid;
  gap: 18px;
}

.site-loading-line {
  display: block;
  height: 18px;
  border-radius: 8px;
}

.site-loading-line.short {
  width: 42%;
}

.site-loading-line.medium {
  width: 78%;
}

.site-loading-line.title {
  width: 96%;
  height: 58px;
  border-radius: 10px;
}

.site-loading-line.title.small {
  width: 72%;
}

.site-loading-button {
  width: 190px;
  height: 50px;
  margin-top: 12px;
  border-radius: 8px;
}

.site-loading-visual {
  position: relative;
  min-height: 390px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.12);
}

.site-loading-visual span {
  position: absolute;
  left: 26px;
  right: 26px;
  height: 54px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.8);
}

.site-loading-visual span:nth-child(1) {
  bottom: 112px;
}

.site-loading-visual span:nth-child(2) {
  bottom: 44px;
  right: 34%;
}

.site-loading-visual span:nth-child(3) {
  top: 34px;
  left: auto;
  width: 132px;
  height: 132px;
  border-radius: 999px;
}

@keyframes siteSkeletonShimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

@media (max-width: 820px) {
  .site-loading-header {
    min-height: 74px;
    grid-template-columns: 118px 1fr 44px;
    gap: 16px;
    padding: 0 18px;
  }

  .site-loading-nav {
    display: none;
  }

  .site-loading-pill {
    width: 44px;
    height: 44px;
    border-radius: 999px;
  }

  .site-loading-hero {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 28px;
    width: calc(100% - 32px);
    padding: 34px 0 52px;
  }

  .site-loading-line.title {
    height: 42px;
  }

  .site-loading-visual {
    min-height: 260px;
  }
}
