@import url("page-nosotros.css");
@import url("page-contacto.css");
@import url("page-404.css");

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "Calcco AG Regular", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body.calcco-menu-open {
  overflow: hidden;
}

.calcco-site *,
.calcco-site *::before,
.calcco-site *::after {
  box-sizing: border-box;
}

.calcco-site a {
  color: inherit;
  text-decoration: none;
}
.calcco-site a:hover {
    color: #c70227; 
}

.calcco-site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.calcco-site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 30px;
  background: #fff;
}

.calcco-brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.calcco-brand img {
  display: block;
  width: 108px;
  height: auto;
}

.calcco-desktop-nav {
  position: absolute;
  left: 50%;
  display: flex;
  gap: .55rem;
  align-items: center;
  color: #111;
  font-size: 1rem;
  letter-spacing: .015em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.calcco-desktop-nav a,
.calcco-site-footer a {
  transition: opacity 180ms ease;
}

.calcco-desktop-nav a:hover,
.calcco-desktop-nav a:focus-visible,
.calcco-site-footer a:hover,
.calcco-site-footer a:focus-visible {
  color: #c70227;
}

.calcco-desktop-nav .is-active,
.calcco-mobile-panel .is-active {
  color: #c70227;
}

.calcco-menu-toggle,
.calcco-mobile-panel {
  display: none;
}

.calcco-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.calcco-newsletter {
  position: fixed;
  z-index: 19;
  top: 66px;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 3rem;
  background: #000;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-110%);
  transition: transform 320ms ease, opacity 220ms ease;
}

.calcco-newsletter.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.calcco-newsletter__form {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
}

.calcco-newsletter__form strong {
  flex: 0 0 auto;
  font-family: "Calcco CD Roman", Palatino, serif;
  font-size: .94rem;
}

.calcco-newsletter__form > input[type="text"],
.calcco-newsletter__form > input[type="email"] {
  width: min(24vw, 240px);
  min-width: 120px;
  height: 28px;
  padding: 0 .2rem;
  border: 0;
  border-bottom: 1px solid #fff;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: "Calcco AG Light", Arial, sans-serif;
  font-size: .78rem;
}

.calcco-newsletter__form > input::placeholder {
  color: #fff;
  opacity: .72;
}

.calcco-newsletter__privacy {
  display: inline-flex;
  flex: 0 1 auto;
  gap: .4rem;
  align-items: center;
  min-width: 0;
  font-family: "Calcco AG Light", Arial, sans-serif;
  font-size: .66rem;
}

.calcco-newsletter__privacy input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #fff;
}

.calcco-newsletter__privacy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calcco-newsletter__submit,
.calcco-newsletter__close {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.calcco-newsletter__submit {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  height: 30px;
  padding: 0;
  font-family: "Calcco AG Regular", Arial, sans-serif;
  font-size: .69rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.calcco-newsletter__submit svg {
  width: 28px;
  height: 8px;
}

.calcco-newsletter__close {
  position: absolute;
  top: 50%;
  right: .85rem;
  width: 22px;
  height: 22px;
  padding: 5px;
  transform: translateY(-50%);
}

.calcco-newsletter__close svg {
  display: block;
  width: 100%;
  height: 100%;
}

.calcco-site-footer {
  margin-top: auto;
  background: #000;
  color: #fff;
}

.calcco-site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .5rem;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  font-family: "Calcco AG Light", Arial, sans-serif;
  font-size: .8rem;
}

.calcco-site-footer__dot {
  opacity: .5;
}

@media (max-width: 1100px) {
  .calcco-newsletter { min-height: auto; padding: .5rem 3rem; }
  .calcco-newsletter__form { flex-wrap: wrap; gap: .35rem .8rem; white-space: normal; }
  .calcco-newsletter__form strong { flex: 1 0 100%; text-align: center; }
  .calcco-newsletter__form > input[type="text"],
  .calcco-newsletter__form > input[type="email"] { width: min(22vw, 150px); min-width: 90px; }
}

@media (min-width: 851px) and (max-width: 1080px) {
  .calcco-desktop-nav { font-size: .89rem; gap: .42rem; }
}

@media (max-width: 850px) {
  .calcco-site-header { height: 66px; padding: 0 20px; }
  .calcco-brand { position: relative; z-index: 42; }
  .calcco-desktop-nav { display: none; }
  .calcco-menu-toggle {
    position: fixed;
    z-index: 43;
    top: 0;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 66px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    cursor: pointer;
  }
  .calcco-menu-toggle__line {
    display: block;
    width: 27px;
    height: 1px;
    background: currentColor;
    transform-origin: center;
    transition: transform 220ms ease, opacity 160ms ease;
  }
  .calcco-menu-toggle[aria-expanded="true"] .calcco-menu-toggle__line:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
  .calcco-menu-toggle[aria-expanded="true"] .calcco-menu-toggle__line:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
  .calcco-mobile-panel {
    position: fixed;
    z-index: 41;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 86px 25px 48px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
  }
  .calcco-mobile-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .calcco-mobile-panel__logo {
    position: absolute;
    top: 20px;
    left: 20px;
    display: block;
    width: 108px;
    height: auto;
  }
  .calcco-mobile-panel nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .calcco-mobile-panel nav a {
    padding: 10px 0;
    font-size: clamp(1.7rem, 7vw, 2.25rem);
    line-height: 1.1;
    text-align: center;
  }
  .calcco-newsletter { top: 66px; min-height: auto; padding: .45rem 2.5rem; }
  .calcco-newsletter__form { gap: .3rem .5rem; }
  .calcco-newsletter__form strong { font-size: .66rem; }
  .calcco-newsletter__form > input[type="text"],
  .calcco-newsletter__form > input[type="email"] { width: min(24vw, 80px); min-width: 56px; font-size: .64rem; }
  .calcco-newsletter__privacy { font-size: .58rem; }
  .calcco-newsletter__submit span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .calcco-site-footer__inner { padding: 1.1rem 1.25rem; font-size: .68rem; }
}

@media (max-width: 420px) {
  .calcco-newsletter__submit { flex: 1 0 100%; justify-content: center; width: 100%; }
  .calcco-newsletter__submit span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .calcco-site * { transition-duration: .01ms !important; }
}
