.cnd-language-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: center;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: .35rem .7rem;
  border: 1px solid #6b7280;
  border-radius: .4rem;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
  font-size: .83rem;
  font-weight: 600;
}
.cnd-language-link:hover { background: #374151; color: #fff; }
.cnd-language-link:focus-visible,
.cnd-es-menu summary:focus-visible,
.cnd-es-mobile summary:focus-visible {
  outline: 2px solid #ffe1a9;
  outline-offset: 3px;
}
.cnd-language-fallback { background: #1e293b; text-align: right; padding: .5rem 1rem; }
html[lang=es] main .capitalize { text-transform: none; }
html[lang=es] .cnd-header-nav > :first-child { flex-shrink: 0; }
.cnd-es-desktop { display: none; }
.cnd-es-desktop > a, .cnd-es-menu > summary {
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}
.cnd-es-desktop > a[aria-current=page] { text-decoration: underline; text-underline-offset: .4rem; }
.cnd-es-menu, .cnd-es-mobile { position: relative; align-self: center; }
.cnd-es-menu > summary, .cnd-es-mobile > summary {
  cursor: pointer;
  list-style: none;
}
.cnd-es-menu > summary::-webkit-details-marker, .cnd-es-mobile > summary::-webkit-details-marker { display: none; }
.cnd-es-menu > summary::after, .cnd-es-mobile > summary::after {
  content: "⌄";
  display: inline-block;
  margin-left: .4em;
}
.cnd-es-menu[open] > summary::after, .cnd-es-mobile[open] > summary::after { transform: rotate(180deg); }
.cnd-es-submenu, .cnd-es-drawer-links {
  position: absolute;
  z-index: 60;
  top: 100%;
  min-width: 13rem;
  padding: .5rem;
  border: 1px solid #d1d5db;
  border-radius: .5rem;
  background: #fff;
  color: #1e293b;
  box-shadow: 0 12px 35px rgb(15 23 42 / 18%);
  overflow-y: auto;
  max-height: min(62dvh, 32rem);
}
.cnd-es-submenu a, .cnd-es-drawer-links > a,
.cnd-es-drawer-links > details > summary {
  display: block;
  padding: .55rem .7rem;
  color: #1e293b;
  border-radius: .3rem;
}
.cnd-es-submenu a:hover, .cnd-es-drawer-links > a:hover,
.cnd-es-drawer-links > details > summary:hover,
.cnd-es-submenu a[aria-current=page], .cnd-es-drawer-links > a[aria-current=page] {
  background: #f3f4f6;
  text-decoration: underline;
}
.cnd-es-mobile > summary {
  background: #dc2626;
  color: #fff;
  min-height: 36px;
  padding: .4rem .55rem;
  border-radius: .4rem;
  white-space: nowrap;
  font-weight: 600;
  font-size: .83rem;
}
.cnd-es-drawer-links { right: 0; width: min(19rem, 78vw); }
.cnd-es-drawer-links .cnd-es-submenu {
  position: static;
  min-width: auto;
  margin-left: .65rem;
  border: 0;
  box-shadow: none;
  padding-block: 0;
}
@media (min-width: 1350px) {
  html[lang=es] .cnd-header-nav { gap: clamp(.6rem, .9vw, .95rem); }
  html[lang=es] .cnd-header-nav > :first-child img { width: 5.75rem; height: 3rem; object-fit: contain; }
  html[lang=es] .cnd-header-nav > a[href^="tel:"] { font-size: .82rem; }
  .cnd-es-desktop { display: flex; flex: 1 1 auto; align-items: center; gap: clamp(.55rem, .8vw, .9rem); }
  .cnd-es-desktop > a, .cnd-es-desktop > .cnd-es-menu > summary { font-size: .83rem; }
  .cnd-es-mobile { display: none; }
}
@media (min-width: 1024px) and (max-width: 1349px) {
  html[lang=es] .cnd-header-nav > :first-child { margin-right: auto; }
}
@media (max-width: 600px) {
  .cnd-language-link { padding-inline: .5rem; }
  html[lang=es] .cnd-header-nav { gap: .4rem; }
}

.cnd-es-carousel-window,
[data-cnd-hero] .swiper-wrapper {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cnd-es-carousel-window::-webkit-scrollbar,
[data-cnd-hero] .swiper-wrapper::-webkit-scrollbar { display: none; }
.cnd-es-carousel-window [aria-roledescription=diapositiva],
[data-cnd-hero] .swiper-slide { scroll-snap-align: start; }
[data-cnd-hero] .swiper-wrapper { display: flex; transform: none !important; }
[data-cnd-hero] .swiper-slide { flex: 0 0 100%; }
.cnd-es-hero-controls {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  bottom: 1.25rem;
  z-index: 3;
  display: flex;
  gap: .5rem;
}
.cnd-es-hero-controls button, .cnd-es-slide-button {
  color: #fff;
  background: #1e293b;
  padding: .35rem .65rem;
  border: 1px solid #94a3b8;
  border-radius: .35rem;
}
.cnd-es-hero-controls button { font-size: 1.5rem; line-height: 1; min-width: 38px; min-height: 38px; }
.cnd-es-slide-actions { display: flex; justify-content: center; gap: .65rem; margin-top: .8rem; }
.cnd-es-lightbox {
  position: fixed;
  inset: 0;
  max-width: min(92vw, 60rem);
  max-height: 90vh;
  margin: auto;
  padding: 1rem;
  border-radius: .55rem;
  background: white;
}
.cnd-es-lightbox::backdrop { background: rgb(15 23 42 / 80%); }
.cnd-es-lightbox img { display: block; max-width: 100%; max-height: 72vh; object-fit: contain; }
.cnd-es-lightbox button { margin-bottom: .55rem; }

.cnd-es-contact-actions { display: grid; gap: .9rem; }
.cnd-upload-panel {
  display: grid;
  gap: .7rem;
  padding: .85rem;
  border: 1px solid #788392;
  border-radius: .55rem;
  background: #182231;
  color: #fff;
}
.cnd-upload-native.input { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); opacity: 0; }
.cnd-upload-help, .cnd-upload-count, .cnd-upload-format-help { margin: 0; font-size: .875rem; color: #e2e8f0; }
.cnd-upload-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.cnd-upload-choose, .cnd-upload-remove {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  min-height: 40px;
  padding: .4rem .65rem;
  border-radius: .35rem;
  font-size: .85rem;
  font-weight: 600;
}
.cnd-upload-choose { background: #f1f5f9; color: #111827; }
.cnd-upload-choose[hidden], .cnd-upload-list[hidden], .cnd-upload-status:empty { display: none; }
.cnd-upload-native:focus-visible + .cnd-upload-panel .cnd-upload-choose, .cnd-upload-remove:focus-visible {
  outline: 2px solid #ffd58a;
  outline-offset: 3px;
}
.cnd-upload-list { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.cnd-upload-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  padding: .45rem;
  border-radius: .4rem;
  background: #2b384b;
}
.cnd-upload-thumb, .cnd-upload-pdf { width: 48px; height: 46px; border-radius: .25rem; }
.cnd-upload-thumb { display: block; object-fit: cover; }
.cnd-upload-pdf { display: grid; place-items: center; color: #111827; background: #e2e8f0; font-size: .7rem; font-weight: 700; }
.cnd-upload-detail { display: grid; gap: .1rem; color: #e2e8f0; }
.cnd-upload-filename { color: #fff; overflow-wrap: anywhere; font-size: .85rem; }
.cnd-upload-remove { color: #fff; background: #36445a; border: 1px solid #94a3b8; }
.cnd-upload-remove:hover { background: #41536b; }
.cnd-upload-status { margin: 0; color: #d1fae5; font-size: .85rem; }
.cnd-upload-status[data-problem="true"] { color: #fecaca; }
.cnd-upload-format-help summary { cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.cnd-upload-format-help p { margin-top: .35rem; }
.cnd-carwise-review button, .cnd-carwise-review button:hover { background: #1e293b; color: white; }
.cnd-carwise-review button::after { background: #374151; }
.cnd-es-human { display: flex; align-items: center; gap: .6rem; margin: 0; color: #fff; font-weight: 600; }
.cnd-es-human input { width: 1.25rem; height: 1.25rem; accent-color: #b91c1c; }
.cnd-es-form-status:empty, [data-cnd-human-widget]:empty { display: none; }
.cnd-es-form-status { margin: 0; font-weight: 600; }
.cnd-es-form-status[data-result=error] { color: #fecaca; }
.cnd-es-form-status[data-result=success] { color: #bbf7d0; }
@media (prefers-reduced-motion: no-preference) {
  .cnd-es-reveal.cnd-es-reveal-pending { opacity: 0; transform: translateY(24px); }
  .cnd-es-reveal { transition: opacity .55s ease, transform .55s ease; }
}
main form #name { scroll-margin-top: 6rem; }
