/* ============================================
   TRIBU DE LENGUAJE — Identidad visual
   Paleta tomada del manual de marca
   ============================================ */
:root {
  /* Colores de marca */
  --cream: #f0ead9;
  --cream-light: #f7f3e8;
  --sand: #e6dcc3;
  --brown: #8c4b22;
  --brown-dark: #5f3a20;
  --ink: #4a3a2c;
  --terracotta: #bc8068;
  --terracotta-deep: #a96a52;
  --green: #6e7c49;
  --green-soft: #949c72;
  --sage: #c2c7ad;
  --ochre: #d2a24c;
  --ochre-soft: #e8d9ae;

  --radius: 22px;
  --shadow: 0 12px 40px rgba(95, 58, 32, 0.1);
  --font-head: "Poppins", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-light);
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--brown-dark);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.container--narrow { width: min(820px, 92%); }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.8rem;
}

.eyebrow--light { color: var(--cream); opacity: 0.85; }

/* ============ Botones ============ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--brown);
  color: var(--cream-light);
  box-shadow: 0 8px 24px rgba(140, 75, 34, 0.3);
}

.btn--primary:hover { background: var(--brown-dark); }

.btn--ghost {
  border: 2px solid var(--brown);
  color: var(--brown);
}

.btn--ghost:hover { background: rgba(140, 75, 34, 0.07); }

.btn--light {
  background: var(--cream-light);
  color: var(--brown);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn--small { padding: 0.55rem 1.4rem; font-size: 0.85rem; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(140, 75, 34, 0.1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav__logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.nav__brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brown);
  font-size: 1.05rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.nav__brand-text small {
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
  color: var(--green);
  text-transform: lowercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav__links a:not(.btn) {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:not(.btn):hover { color: var(--brown); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}

.nav__toggle span {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--brown);
  transition: transform 0.25s, opacity 0.25s;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  padding: 5.5rem 0 6rem;
}

.hero__circles span {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  opacity: 0.35;
}

.hero__circles span:nth-child(1) {
  width: 720px; height: 720px;
  border: 38px solid var(--terracotta);
  top: -360px; right: -260px;
}

.hero__circles span:nth-child(2) {
  width: 520px; height: 520px;
  border: 30px solid var(--sage);
  top: -260px; right: -160px;
}

.hero__circles span:nth-child(3) {
  width: 480px; height: 480px;
  border: 34px solid var(--ochre-soft);
  bottom: -300px; left: -200px;
}

.hero__circles span:nth-child(4) {
  width: 300px; height: 300px;
  border: 24px solid var(--green-soft);
  bottom: -190px; left: -90px;
  opacity: 0.25;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--terracotta-deep);
}

.hero__lead {
  margin: 1.4rem 0 2rem;
  font-size: 1.12rem;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
}

.hero__visual { display: flex; justify-content: center; }

.hero__logo-ring {
  width: clamp(240px, 26vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ============ Secciones ============ */
.section { padding: 5.5rem 0; }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.2rem;
}

.section__sub { margin-top: 1rem; color: #6b5a48; }

.section--cream { background: var(--cream); }

.section--terracotta {
  background: linear-gradient(160deg, var(--terracotta) 0%, var(--terracotta-deep) 100%);
  color: var(--cream-light);
}

.section--terracotta h2 { color: var(--cream-light); }

.section--terracotta .quote {
  margin-top: 1.6rem;
  font-style: italic;
  font-size: 1.15rem;
  border-left: 4px solid var(--cream);
  padding-left: 1.2rem;
  opacity: 0.95;
}

.section--sage { background: var(--sage); }

/* ============ Split (Por qué nace Tribu) ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split__text p { margin-bottom: 1rem; }

.split__cards {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mini-card {
  background: rgba(247, 243, 232, 0.95);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.mini-card__icon { font-size: 1.7rem; grid-row: span 2; }

.mini-card h3 { font-size: 1.02rem; color: var(--brown-dark); }

.mini-card p { font-size: 0.92rem; line-height: 1.5; }

/* ============ Cards (Qué vas a encontrar) ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.6rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.card:hover { transform: translateY(-6px); }

.card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.card__icon--green { background: #e4e8d4; }
.card__icon--terracotta { background: #f3ddd3; }
.card__icon--ochre { background: #f3e7c8; }
.card__icon--brown { background: #e9d9cb; }

.card h3 { margin-bottom: 0.7rem; }

.card p { font-size: 0.95rem; }

/* ============ Mitos ============ */
.myths {
  display: grid;
  gap: 1.4rem;
  max-width: 820px;
  margin: 0 auto;
}

.myth {
  background: var(--cream-light);
  border-radius: var(--radius);
  padding: 1.6rem 1.9rem;
  box-shadow: 0 6px 22px rgba(74, 58, 44, 0.1);
}

.myth p { margin: 0; }

.myth__myth {
  color: #8a7563;
  font-style: italic;
  margin-bottom: 0.6rem !important;
}

.myth span {
  display: inline-block;
  font-family: var(--font-head);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  margin-right: 0.6rem;
}

.myth__myth span { background: #e9ded2; color: #8a7563; }

.myth__truth span { background: var(--green); color: var(--cream-light); }

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

/* ============ Nosotras ============ */
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 320px));
  justify-content: center;
  gap: 2rem;
}

.team__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.team__photo {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(95, 58, 32, 0.18);
}

.team__photo--terracotta { border: 5px solid var(--terracotta); }
.team__photo--green { border: 5px solid var(--green-soft); }

.team__role {
  font-size: 0.88rem;
  color: #6b5a48;
  margin: 0.3rem 0 0.9rem;
}

.team__ig {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terracotta-deep);
  text-decoration: none;
}

.team__ig:hover { text-decoration: underline; }

.team__statement {
  text-align: center;
  max-width: 680px;
  margin: 3rem auto 0;
  font-size: 1.12rem;
}

/* ============ Ebook ============ */
.ebook {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.ebook__cover img {
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(95, 58, 32, 0.25);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.ebook__cover img:hover { transform: rotate(0deg) scale(1.02); }

.ebook__sub {
  font-family: var(--font-head);
  color: var(--green);
  font-weight: 600;
  margin: 0.4rem 0 1.2rem;
}

.ebook__list {
  list-style: none;
  margin: 1.6rem 0 2rem;
  display: grid;
  gap: 0.65rem;
}

.ebook__list li {
  position: relative;
  padding-left: 1.9rem;
  font-style: italic;
  color: #5d4c3b;
}

.ebook__list li::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -0.15rem;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--ochre);
  font-weight: 700;
}

.ebook__note {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: #8a7563;
}

/* ============ FAQ ============ */
.faq { display: grid; gap: 1rem; }

.faq details {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(95, 58, 32, 0.08);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 3.4rem 1.3rem 1.7rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--brown-dark);
  position: relative;
  transition: color 0.2s;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--terracotta);
  transition: transform 0.25s;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p {
  padding: 0 1.7rem 1.5rem;
  color: #5d4c3b;
}

/* ============ CTA final ============ */
.cta-final {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--green) 0%, #5a6739 100%);
  color: var(--cream-light);
  text-align: center;
  padding: 5.5rem 0;
}

.cta-final h2 { color: var(--cream-light); margin-bottom: 1rem; }

.cta-final p {
  max-width: 520px;
  margin: 0 auto 2.2rem;
  font-size: 1.12rem;
}

.cta-final__circles span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.14;
}

.cta-final__circles span:nth-child(1) {
  width: 420px; height: 420px;
  border: 30px solid var(--cream);
  top: -200px; left: -140px;
}

.cta-final__circles span:nth-child(2) {
  width: 300px; height: 300px;
  border: 24px solid var(--ochre-soft);
  bottom: -160px; right: -80px;
}

.cta-final__circles span:nth-child(3) {
  width: 180px; height: 180px;
  border: 16px solid var(--terracotta);
  bottom: -60px; right: 160px;
}

/* ============ Footer ============ */
.footer {
  background: var(--brown-dark);
  color: #e8ddcf;
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer__brand img {
  width: 64px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.footer__brand p { max-width: 300px; opacity: 0.85; }

.footer__col h4 {
  color: var(--ochre-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.footer__col a {
  display: block;
  color: #e8ddcf;
  text-decoration: none;
  margin-bottom: 0.55rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer__col a:hover { opacity: 1; text-decoration: underline; }

.footer__disclaimer {
  border-top: 1px solid rgba(232, 221, 207, 0.2);
  padding-top: 1.6rem;
  font-size: 0.8rem;
  opacity: 0.65;
  font-style: italic;
}

.footer__bottom {
  margin-top: 1.6rem;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ============ Animaciones reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--delay { transition-delay: 0.18s; }

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__badges { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__logo-ring { width: 200px; }
  .hero { padding: 3.5rem 0 4.5rem; }

  .split { grid-template-columns: 1fr; }
  .ebook { grid-template-columns: 1fr; gap: 2.5rem; }
  .ebook__cover { max-width: 320px; margin: 0 auto; }
  .team { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 820px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream-light);
    border-bottom: 1px solid rgba(140, 75, 34, 0.12);
    box-shadow: 0 14px 30px rgba(95, 58, 32, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav__links.is-open { max-height: 420px; }

  .nav__links a:not(.btn) {
    width: 100%;
    padding: 0.95rem 1.4rem;
    border-bottom: 1px solid rgba(140, 75, 34, 0.07);
  }

  .nav__links .btn { margin: 1rem 1.4rem 1.2rem; }

  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
