/* Sistema visual compartido Condeara Community */
:root {
  --brand-violet: #5c2679;
  --brand-green: #26795c;
  --brand-white: #f2f2f2;
  --brand-ink: #173d33;
  --brand-base: #f8f8f7;
  --brand-line: #cfe0d9;
  --brand-lilac: #e5ccf0;
  --brand-muted: #58706a;
  --heading-key: var(--brand-violet);
  --heading-final: var(--brand-green);
  --shadow-sm: 0 4px 12px rgba(92, 38, 121, 0.08);
  --shadow-md: 0 12px 28px rgba(92, 38, 121, 0.12);
  --shadow-lg: 0 20px 45px rgba(92, 38, 121, 0.16);
}

h1, h2, h3 {
  color: var(--brand-green);
}

footer h1, footer h2, footer h3,
.band h1, .band h2, .band h3,
.outcome h1, .outcome h2, .outcome h3 {
  color: inherit;
}

.title-key, .key-purple, .title-purple {
  color: var(--brand-violet) !important;
  font-style: normal;
}
.title-final, .green-final, .title-green {
  color: var(--brand-green) !important;
  font-style: normal;
}
.black-final {
  color: var(--brand-ink) !important;
  font-style: normal;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--brand-violet) !important;
  outline-offset: 3px !important;
}

/* Enlace para saltar al contenido principal (WCAG 2.1 AA) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--brand-violet);
  color: var(--brand-white);
  font-weight: 800;
  border-radius: 8px;
  transition: top 0.2s ease;
  box-shadow: 0 8px 20px rgba(38, 121, 92, 0.35);
}
.skip-link:focus {
  top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Insignias de comunidad */
.community-badge {
  display: block;
  position: absolute;
  z-index: 5;
  right: 18px;
  top: 16px;
  width: 58px;
  height: 58px;
  border: 2px solid #ffffff;
  border-radius: 14px;
  padding: 3px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.community-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.community-badge:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-md);
}

.community-wide .community-badge {
  right: 18px;
  left: auto;
  top: 14px;
}


/* WhatsApp Flotante */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

/* FAQ Accordion */
.faq {
  grid-column: 1 / -1;
  margin-top: 42px;
  padding: 36px;
  border: 1px solid var(--brand-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.faq details {
  padding: 18px 0;
  border-top: 1px solid var(--brand-line);
  transition: background-color 0.2s ease;
}
.faq details:first-of-type {
  border-top: 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand-violet);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-green);
  transition: transform 0.2s ease;
}
.faq details[open] summary:after {
  transform: rotate(45deg);
}
.faq p {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--brand-muted);
  line-height: 1.6;
}

/* Selectores estilizados (Pills UI) */
select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 11px 36px 11px 18px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235c2679' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--brand-ink);
  font: 700 0.86rem Montserrat, Arial, sans-serif;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
select:hover {
  border-color: var(--brand-violet);
}

.interest-wide {
  grid-column: 1 / -1;
}
.interest-wide select {
  width: 100%;
}

.form label {
  color: var(--brand-violet);
  font-weight: 750;
}

/* Responsivo */
@media (max-width: 760px) {
  #comunidades .community-wide {
    flex-direction: column !important;
    align-items: flex-start !important;
    min-height: unset !important;
  }
  #comunidades .community-wide > div:first-child {
    padding-right: 0 !important;
  }
  #comunidades .community-wide .btn {
    width: 100% !important;
    align-self: stretch !important;
    text-align: center !important;
    justify-content: center !important;
    /* badge has 58px width + 18px right + 8px gap = leave 84px at the top */
    margin-top: 12px;
  }
  .community-wide .community-badge {
    right: 14px;
    top: 14px;
  }
  .whatsapp-float span {
    display: none;
  }
}

