/* components.css — header/nav, buttons, cards, lists, forms */

/* ✅ Fix para anchors con header sticky (evita que se corte el título) */
:root{
  scroll-padding-top: 96px; /* header (76px) + aire */
}
section[id]{
  scroll-margin-top: 96px;
}

.header{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__mark{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 18px rgba(15,42,68,0.25);
  flex-shrink: 0;
}
.brand__mark::after{
  content: "G&G";
}
.brand__name{
  display: block;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__tag{
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* ✅ Badge (ya no parece botón) */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;

  /* “Eyebrow” editorial */
  /*font-family: var(--font-serif);
  font-style: italic;*/
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 14px;
  line-height: 1;

  padding: 0;            /* sin padding de chip */
  border: none;          /* sin marco */
  background: transparent;
  color: var(--muted);
}

/* Detalle visual: línea + punto (como encabezado fino) */
.badge::before{
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  border-radius: 999px;
}
/*.badge::after{
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
}*/

/* Nav */
.nav__toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
}
.nav__toggle-lines{
  width: 18px;
  height: 2px;
  background: var(--primary);
  position: relative;
}
.nav__toggle-lines::before,
.nav__toggle-lines::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--primary);
}
.nav__toggle-lines::before{ top: -6px; }
.nav__toggle-lines::after{ top: 6px; }

.nav__list{
  list-style: none;
  margin: 0;
  padding: 14px;
  display: none;
  position: absolute;
  right: 20px;
  top: 76px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-width: 220px;
}
.nav__list.is-open{ display: grid; gap: 6px; }
.nav__link{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
}
.nav__link:hover{ background: rgba(15,42,68,0.05); }
.nav__link--cta{
  background: var(--primary);
  color: #fff;
}
.nav__link--cta:hover{ background: #647C8F; }

@media (min-width: 900px){
  .nav__toggle{ display: none; }
  .nav__list{
    display: flex;
    position: static;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    min-width: 0;
    gap: 10px;
    align-items: center;
  }
  .nav__link{ padding: 10px 12px; }
}

/* Buttons – premium */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;

  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15,42,68,0.18);
}
.btn--primary:hover{
  background: #647C8F;
  box-shadow: 0 14px 28px rgba(15,42,68,0.22);
}

.btn--secondary{
  background: rgba(255,255,255,0.75);
  color: var(--primary);
  border-color: rgba(15,42,68,0.16);
}
.btn--secondary:hover{
  background: rgba(255,255,255,0.95);
  border-color: rgba(15,42,68,0.22);
}

.btn--ghost{
  background: transparent;
  color: var(--primary);
  border-color: rgba(15,42,68,0.16);
}
.btn--ghost:hover{
  background: rgba(15,42,68,0.04);
  border-color: rgba(15,42,68,0.22);
}
.btn--full{ width: 100%; }

/* Cards */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card__icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(47,128,237,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.card__title{
  margin: 0 0 6px;
  font-size: 18px;
}
.card__text{
  margin: 0 0 14px;
  color: var(--muted);
}
.card--soft{ border-color: rgba(45,156,139,0.22); }
.card--formal{ border-color: rgba(15,42,68,0.18); }

/* Lists */
.list{
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--ink);
}
.list li{ margin: 6px 0; }

/* Pills */
.audience-toggle{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.pill{
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.pill[aria-pressed="true"]{
  background: rgba(15,42,68,0.06);
  border-color: rgba(15,42,68,0.22);
}

/* Form */
.form{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.field{ display: grid; gap: 8px; margin-bottom: 14px; }
.field__label{ font-weight: 700; font-size: 14px; }
.field__input{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
}
.field__input--area{ resize: vertical; min-height: 120px; }

.form__fineprint{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  padding: 32px 0 18px;
  background: var(--bg);
}
.footer__grid{
  display: grid;
  gap: 18px;
}
.footer__nav{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
}
.footer__bottom{
  margin-top: 18px;
  color: var(--muted);
}

.footer__bottom{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
}

.footer__credits{
  font-size: 12px;
  color: var(--muted);
}

.footer__dev{
  font-weight: 600;
  color: var(--ink);
}

.footer__credits a{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(15,42,68,0.2);
}

.footer__credits a:hover{
  color: var(--ink);
}


@media (min-width: 900px){
  .footer__grid{ grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer__nav{ justify-content: flex-end; }
}

/* Tabs (no button look) */
.tabs{
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-end;
  margin-top: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.tab{
  appearance: none;
  background: transparent !important;
  border: none !important;
  outline: none;
  box-shadow: none;
  padding: 10px 2px;
  cursor: pointer;
  font-weight: 800;
  color: var(--muted);
  position: relative;
}
.tab:hover{ color: var(--primary); }
.tab.is-active{ color: var(--primary); }
.tab.is-active::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

/* Panels (flat look, no card box) */
.panel{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 10px 0;
}
.panel__icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(47,128,237,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.panel__title{
  margin: 0 0 6px;
  font-size: 20px;
}
.panel__text{
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 68ch;
}

/* Optional subtle separation between personas/empresas in desktop */
@media (min-width: 900px){
  .split__grid{ align-items: start; }
  .panel--personas{ padding-right: 24px; }
}

/* Keep layout stable: dim non-active panel */
.panel.is-dim{
  opacity: 0.22;
  filter: grayscale(0.15);
  transition: opacity 180ms ease, filter 180ms ease;
  pointer-events: none;
}
.panel.is-focus{
  opacity: 1;
  filter: none;
  transition: opacity 180ms ease, filter 180ms ease;
  pointer-events: auto;
}

.areas{
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
}

.area-item{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
  cursor: default;
}

.area-icon{
  color: var(--accent);
  opacity: 0.9;
}

.area-item:hover{
  color: var(--ink);
}

.scope__icon i{
  display: grid;
  place-items: center;
}


.section-head__text{
  margin: 0;
  max-width: 740px;
  color: var(--muted);
}