/* Estilos compartidos del sitio (reset, botones, header, footer) — cargados en todas las páginas que usan el layout crivelli-* */

.crivelli-home,
.crivelli-home * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.crivelli-home {
  font-family: 'Lato', sans-serif;
  color: #1E1E1E;
  background: #F8F6F3;
  min-height: 100%;
}

.crivelli-home a {
  text-decoration: none;
  color: inherit;
}

.crivelli-home ::selection {
  background: #C9A84C;
  color: #5C1F5B;
}

/* ===== Layout helpers ===== */

.crivelli-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.crivelli-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.crivelli-eyebrow {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 16px;
}

.crivelli-section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.3;
  color: #5C1F5B !important;
}

/* ===== Buttons & text links ===== */

.crivelli-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  transition: background 0.18s, color 0.18s;
}

.crivelli-btn--block {
  display: block;
  text-align: center;
}

.crivelli-btn--gold,
a.crivelli-btn--gold {
  background: #C9A84C;
  color: #3A1339;
}

.crivelli-btn--gold:hover {
  background: #A8893A;
}

.crivelli-btn--gold-shadow-sm {
  box-shadow: 0 12px 30px rgba(201, 168, 76, 0.32);
}

.crivelli-btn--gold-shadow-lg {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

.crivelli-btn--outline {
  background: transparent;
  color: #5C1F5B !important;
  border: 2px solid #5C1F5B;
  padding: 8px 24px;
}

.crivelli-btn--outline:hover {
  background: #5C1F5B;
  color: #FFFFFF !important;
}

.crivelli-tlink,
a.crivelli-tlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #5C1F5B;
  border-bottom: 2px solid #C9A84C;
  padding-bottom: 4px;
}

.crivelli-tlink:hover {
  color: #7A2E79;
}

/* ===== Header ===== */

.crivelli-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 31, 91, 0.10);
}

.crivelli-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crivelli-logo {
  display: flex;
  align-items: center;
}

.crivelli-logo__custom {
  height: 40px;
  width: auto;
  display: block;
}

header .crivelli-logo__custom img {
  height: 50px;
  width: auto;
  display: block;
}

.crivelli-logo__text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: #5C1F5B;
}

.crivelli-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.crivelli-nav__link {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #1E1E1E;
}

.crivelli-nav__link:hover {
  color: #C9A84C;
}

.crivelli-home a.crivelli-nav__link--current {
  color: #5C1F5B;
}

.crivelli-nav__link--current:hover {
  color: #5C1F5B;
}

.crivelli-burger {
  display: none;
}

/* ===== Page hero (banner de páginas internas) ===== */

.crivelli-pagehero {
  position: relative;
  background: #5C1F5B;
  overflow: hidden;
}

.crivelli-pagehero__decor {
  position: absolute;
  top: -90px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.10);
}

.crivelli-pagehero__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(201, 168, 76, 0.30);
}

.crivelli-pagehero__inner {
  position: relative;
  padding-top: 88px;
  padding-bottom: 88px;
}

.crivelli-pagehero__title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: #FFFFFF;
}

/* ===== Contact CTA strip ===== */

.crivelli-cta {
  background: #5C1F5B;
  position: relative;
  overflow: hidden;
}

.crivelli-cta__decor {
  position: absolute;
  top: -64px;
  right: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.10);
}

.crivelli-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
}

.crivelli-cta__content {
  max-width: 624px;
}

.crivelli-cta__title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.3;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.crivelli-cta .crivelli-cta__title {
  color: #FFFFFF;
  line-height: 1.3 !important;
  text-transform: none;
}

.crivelli-cta__text {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}

/* ===== Footer ===== */

.crivelli-footer {
  background: #2A0F2A;
  color: rgba(255, 255, 255, 0.75);
}

.crivelli-footer__top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.crivelli-footer__logo {
  margin-bottom: 24px;
}

.crivelli-footer__logo img {
  height: 48px;
  width: auto;
  display: block;
}

.crivelli-footer__desc {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}

.crivelli-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.crivelli-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s;
}

.crivelli-social:hover {
  border-color: #C9A84C;
}

.crivelli-footer__heading {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 24px;
}

.crivelli-footer__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crivelli-flink {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.18s;
}

.crivelli-flink:hover {
  color: #FFFFFF;
}

.crivelli-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.crivelli-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.crivelli-footer__bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.crivelli-footer__legal {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ===== Back to top button ===== */
#ast-scroll-top {
  /* posición y forma */
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;
  width: 48px;
  height: 48px;
  /* display: flex !important; */
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 7px 0px;

  /* color de marca */
  background: #5C1F5B;
  border: 1px solid rgba(201, 168, 76, 0.35);
  box-shadow: 0 10px 26px rgba(58, 19, 57, 0.28);

  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
}

/* la flecha */
#ast-scroll-top .ast-arrow-svg {
  width: 16px;
  height: auto;
  fill: #C9A84C;
  transition: fill 0.18s ease;
}

/* hover: se invierte a dorado */
#ast-scroll-top:hover {
  background: #C9A84C;
  border-color: #C9A84C;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(201, 168, 76, 0.34);
}

#ast-scroll-top:hover .ast-arrow-svg {
  fill: #3A1339;
}

/* accesibilidad: foco visible por teclado */
#ast-scroll-top:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 3px;
}

/* ===== Responsive ===== */

@media (max-width: 860px) {

  /* Header / menú móvil */
  .crivelli-header__inner {
    padding: 12px 20px;
    position: relative;
  }

  .crivelli-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0 10px;
  }

  .crivelli-burger span {
    display: block;
    height: 2px;
    background: #5C1F5B;
    border-radius: 2px;
  }

  .crivelli-burger:hover {
    background-color: transparent;
  }

  .crivelli-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #F8F6F3;
    border-bottom: 1px solid rgba(92, 31, 91, 0.10);
    box-shadow: 0 18px 34px rgba(58, 19, 57, 0.10);
  }

  body.navopen .crivelli-nav {
    display: flex;
  }

  .crivelli-nav>a {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(92, 31, 91, 0.08);
    text-align: left;
  }

  .crivelli-nav>a.crivelli-btn--outline {
    border: 0;
    border-radius: 0;
    justify-content: left;
  }

  /* Secciones */
  .crivelli-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .crivelli-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .crivelli-section-title {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }

  .crivelli-pagehero__inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .crivelli-pagehero__title {
    font-size: 34px;
  }

  .crivelli-cta__title {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }

  .crivelli-cta__inner {
    padding: 56px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  /* Footer */
  .crivelli-footer__top {
    padding: 48px 20px 24px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .crivelli-footer__bottom-inner {
    padding: 56px 20px;
  }

  #ast-scroll-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    padding: 6px 0px;
  }
}