:root{
  --xc-bg: #f4efe8;
  --xc-bg-soft: #f8f4ee;
  --xc-line: rgba(30, 24, 18, 0.08);
  --xc-text: #141414;
  --xc-text-soft: #6f675f;
  --xc-black: #0f0f0f;
  --xc-white-bone: #f7f2eb;

  --xc-radius-xl: 42px;
  --xc-radius-lg: 28px;
  --xc-radius-md: 22px;
  --xc-pill: 999px;

  --xc-shadow-soft: 0 14px 32px rgba(0,0,0,.06);
  --xc-shadow-dropdown: 0 20px 40px rgba(0,0,0,.08);

  --xc-header-h: 136px;
  --xc-ease: cubic-bezier(.22,.61,.36,1);
}

/* RESET LOCAL */
.xc-header,
.xc-header *{
  box-sizing: border-box;
}

.xc-header a{
  text-decoration: none;
  color: inherit;
}

.xc-header button{
  font: inherit;
}

/* HEADER */
.xc-header{
  position: relative;
  width: 100%;
  padding: 16px 18px 0;
  z-index: 80;
}

.xc-header__inner{
  width: min(100%, 2048px);
  min-height: var(--xc-header-h);
  margin: 0 auto;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  background: var(--xc-white-bone);
  border: 1px solid var(--xc-line);
  border-radius: var(--xc-radius-xl);
  box-shadow: none;
}

/* BRAND */
.xc-brand{
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.xc-brand__title{
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 2.7vw, 3.7rem);
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--xc-text);
  text-transform: uppercase;
  line-height: .95;
}

.xc-brand__sub{
  margin-top: 12px;
  font-family: "Inter", sans-serif;
  font-size: .9rem;
  font-weight: 300;
  letter-spacing: .16em;
  color: var(--xc-text-soft);
  line-height: 1;
}

/* BURGER */
.xc-burger{
  display: none;
  width: 58px;
  height: 58px;
  border: 1px solid var(--xc-line);
  border-radius: 50%;
  background: var(--xc-white-bone);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.xc-burger span{
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--xc-text);
  transition: transform .28s var(--xc-ease), opacity .28s var(--xc-ease);
}

.xc-burger.is-active span:first-child{
  transform: translateY(4px) rotate(45deg);
}

.xc-burger.is-active span:last-child{
  transform: translateY(-4px) rotate(-45deg);
}

/* NAV DESKTOP */
.xc-nav{
  display: flex;
  align-items: center;
  margin-left: auto;
}

.xc-nav__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.xc-nav__list > li{
  position: relative;
}

.xc-link,
.dd-toggle{
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 56px;
  padding: 0 24px;
  border-radius: var(--xc-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--xc-text);
  cursor: pointer;
  transition:
    background-color .24s var(--xc-ease),
    color .24s var(--xc-ease),
    transform .24s var(--xc-ease);
}

/* PASTILLA HOVER / FOCUS */
.xc-link:hover,
.dd-toggle:hover,
.xc-item:hover > .dd-toggle,
.xc-item.is-open > .dd-toggle{
  background: #efe8df;
}

/* CTA */
.xc-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 82px;
  padding: 0 36px;
  border-radius: 999px;

  background: #0f0f0f;
  color: #ffffff !important; /* 👈 CLAVE */

  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .06em;

  transition: transform .24s ease, background-color .24s ease;
}

.xc-cta:hover{
  background: #000;
  transform: translateY(-1px);
}

/* DROPDOWN DESKTOP */
.xc-item{
  position: relative;
}

.xc-dd{
  list-style: none;
  margin: 0;
  padding: 18px;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 340px;

  background: var(--xc-white-bone);
  border: 1px solid rgba(20,20,20,.04);
  border-radius: 32px;
  box-shadow: var(--xc-shadow-dropdown);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity .24s var(--xc-ease),
    transform .24s var(--xc-ease),
    visibility .24s var(--xc-ease);
}

.xc-item:hover > .xc-dd,
.xc-item.is-open > .xc-dd{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.xc-dd li + li{
  margin-top: 8px;
}

.xc-dd a{
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;

  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--xc-text);

  transition:
    background-color .22s var(--xc-ease),
    transform .22s var(--xc-ease);
}

.xc-dd a:hover{
  background: #efe8df;
  transform: translateX(2px);
}

/* MOBILE */
@media (max-width: 980px){

  .xc-header{
    padding: 12px 14px 0;
  }

  .xc-header__inner{
    min-height: 108px;
    padding: 0 20px;
    border-radius: 28px;
    align-items: center;
  }

  .xc-brand{
    min-width: 0;
    flex: 1 1 auto;
  }

  .xc-brand__title{
    font-size: clamp(1.9rem, 7vw, 2.5rem);
    letter-spacing: .18em;
    line-height: .92;
  }

  .xc-brand__sub{
    margin-top: 10px;
    font-size: .78rem;
    letter-spacing: .12em;
  }

  .xc-burger{
    display: inline-flex;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
  }

  .xc-nav{
    position: absolute;
    top: calc(100% + 10px);
    left: 14px;
    right: 14px;
    z-index: 100;

    display: none;
    margin-left: 0;
    padding: 14px;

    background: var(--xc-white-bone);
    border: 1px solid var(--xc-line);
    border-radius: 26px;
    box-shadow: 0 18px 40px rgba(0,0,0,.08);
  }

  .xc-nav.is-open{
    display: block;
  }

  .xc-nav__list{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .xc-nav__list > li{
    width: 100%;
    position: relative;
  }

  .xc-link,
  .dd-toggle{
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border-radius: 18px;
    justify-content: center;
    text-align: center;
    font-size: .98rem;
    letter-spacing: .08em;
    background: #f3ede5;
  }

  .xc-item{
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .xc-dd{
    position: static;
    min-width: 100%;
    margin: 0;
    padding: 8px;
    display: none;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;

    background: #f3ede5;
    border: 0;
    border-radius: 18px;
    box-shadow: none;
  }

  .xc-item.is-open > .xc-dd{
    display: block;
  }

  .xc-dd li + li{
    margin-top: 6px;
  }

  .xc-dd a{
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    justify-content: center;
    text-align: center;
    font-size: .95rem;
    transform: none;
  }

  .xc-dd a:hover{
    transform: none;
  }

  .xc-cta{
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 999px;
    justify-content: center;
    font-size: .98rem;
    color: #fff !important;
  }
}

@media (max-width: 640px){

  .xc-header{
    padding: 10px 12px 0;
  }

  .xc-header__inner{
    min-height: 96px;
    padding: 0 16px;
    border-radius: 24px;
  }

  .xc-brand__title{
    font-size: clamp(1.7rem, 8vw, 2.15rem);
    letter-spacing: .16em;
  }

  .xc-brand__sub{
    margin-top: 8px;
    font-size: .72rem;
    letter-spacing: .1em;
  }

  .xc-burger{
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

  .xc-burger span{
    width: 20px;
  }

  .xc-nav{
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    padding: 12px;
    border-radius: 22px;
  }

  .xc-link,
  .dd-toggle,
  .xc-cta{
    min-height: 52px;
    font-size: .94rem;
  }

  .xc-dd a{
    min-height: 44px;
    font-size: .92rem;
  }
}

