/* ============================================================
   TRIBOS — Estilos principales
   Paleta: #a7b6bc · #c0c3b9 · #e8d6ca · #faf4e7
           #75808b · #7a958f · #d0c5c0
   Fuente: Glacial Indifference
   ============================================================ */

/* ---- Fuente local ---- */
@font-face {
  font-family: 'Glacial Indifference';
  src: url('../assets/fonts/GlacialIndifference-Regular.otf') format('opentype'),
       url('../assets/fonts/GlacialIndifference-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Glacial Indifference';
  src: url('../assets/fonts/GlacialIndifference-Bold.otf') format('opentype'),
       url('../assets/fonts/GlacialIndifference-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Glacial Indifference';
  src: url('../assets/fonts/GlacialIndifference-Italic.otf') format('opentype'),
       url('../assets/fonts/GlacialIndifference-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---- Variables ---- */
:root {
  /* Paleta */
  --c-primary:      #75808b;
  --c-primary-d:    #5c6972;
  --c-primary-l:    #a7b6bc;
  --c-teal:         #7a958f;
  --c-sage:         #c0c3b9;
  --c-peach:        #e8d6ca;
  --c-warm-gray:    #d0c5c0;
  --c-cream:        #faf4e7;

  /* Neutros */
  --c-white:        #ffffff;
  --c-bg:           #f8f5ef;       /* ligeramente cálido */
  --c-text:         #2a3238;
  --c-text-mid:     #566370;
  --c-text-soft:    #8a96a0;
  --c-dark:         #1e2a33;
  --c-dark-deep:    #141d23;

  /* Tipografía */
  --font: 'Glacial Indifference', 'Nunito', system-ui, sans-serif;

  /* Espacios */
  --nav-h:   72px;
  --max-w:   1140px;
  --r:       12px;
  --r-sm:    6px;

  /* Sombras */
  --shadow:       0 4px 24px rgba(42,50,56,.08);
  --shadow-hover: 0 10px 40px rgba(42,50,56,.14);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* ---- Utilidades ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: background .22s, border-color .22s, color .22s, transform .22s, box-shadow .22s;
}
.btn--solid {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}
.btn--solid:hover {
  background: var(--c-primary-d);
  border-color: var(--c-primary-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(117,128,139,.35);
}
.btn--ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--ghost:hover {
  background: var(--c-primary);
  color: var(--c-white);
  transform: translateY(-2px);
}
.btn--lg { padding: 17px 48px; font-size: 15px; }

/* ---- Labels / tags ---- */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 12px;
}
.label--light { color: var(--c-primary-l); }

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(248,245,239,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(117,128,139,.12);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 2px 20px rgba(42,50,56,.1); }

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo { height: 34px; width: auto; }
.nav__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--c-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--c-text-mid);
  transition: color .2s;
}
.nav__links a:hover { color: var(--c-primary); }

.nav__cta {
  background: var(--c-primary) !important;
  color: var(--c-white) !important;
  padding: 9px 22px;
  border-radius: 50px;
  transition: background .2s, transform .2s !important;
}
.nav__cta:hover {
  background: var(--c-primary-d) !important;
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all .3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 64px) 24px 80px;
  background-image: url('../assets/index.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 245, 239, 0.70);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  text-align: center;
}

.hero__tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--c-text);
  margin-bottom: 28px;
  letter-spacing: .04em;
}

.hero__sub {
  font-size: 18px;
  color: var(--c-text-mid);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__figure { display: none; }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px;
  height: 40px;
  border: 2px solid var(--c-warm-gray);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero__scroll span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--c-warm-gray);
  border-radius: 2px;
  animation: scroll-hint 2s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%       { opacity: .3; transform: translateY(8px); }
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section { padding: 100px 0; }
.section--cream { background: var(--c-cream); }
.section--dark  { background: var(--c-dark); }

.section__head {
  text-align: center;
  margin-bottom: 64px;
}
.section__head h2 {
  font-size: clamp(36px, 3.8vw, 44px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-text);
  margin-bottom: 16px;
  letter-spacing: .04em;
}
.h2--light { color: var(--c-white) !important; }
.section__sub {
  font-size: 17px;
  color: var(--c-text-mid);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}
.section__sub--light { color: rgba(255,255,255,.65); }
.section__head--light .label { color: var(--c-primary-l); }

/* ============================================================
   QUÉ ES (ABOUT)
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.about__text p {
  color: var(--c-text-mid);
  margin-bottom: 18px;
  font-size: 16px;
}
.about__text strong { color: var(--c-text); font-weight: 700; }

.pullquote {
  border-left: 3px solid var(--c-primary);
  padding-left: 20px;
  margin-top: 28px;
  font-size: 17px;
  font-style: italic;
  color: var(--c-text);
  line-height: 1.6;
}

.about__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-card {
  background: var(--c-white);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--c-primary);
  transition: transform .25s, box-shadow .25s;
}
.about-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}
.about-card__icon {
  font-size: 18px;
  color: var(--c-primary);
  margin-bottom: 8px;
}
.about-card h3 {
  font-size: 16px;
  color: var(--c-text);
  margin-bottom: 6px;
}
.about-card p {
  font-size: 14px;
  color: var(--c-text-mid);
  line-height: 1.65;
}

/* ============================================================
   PILARES
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--c-white);
  border-radius: var(--r);
  padding: 32px 24px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.pillar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.pillar:hover::after { transform: scaleX(1); }

.pillar__num {
  font-size: 40px;
  font-weight: 700;
  color: var(--c-peach);
  line-height: 1;
  margin-bottom: 12px;
}
.pillar__name {
  font-size: 21px;
  color: var(--c-primary);
  margin-bottom: 6px;
}
.pillar__q {
  font-size: 13px;
  font-style: italic;
  color: var(--c-text-soft);
  margin-bottom: 12px;
  line-height: 1.4;
}
.pillar__text {
  font-size: 14px;
  color: var(--c-text-mid);
  line-height: 1.7;
}

/* ============================================================
   SENDAS
   ============================================================ */
.sendas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.senda {
  background: var(--c-white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.senda:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.senda__top {
  background: var(--c-primary);
  padding: 32px 32px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: var(--c-white);
}
.senda__num {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  opacity: .3;
  flex-shrink: 0;
}
.senda__name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.senda__byline {
  font-size: 13px;
  font-style: italic;
  opacity: .85;
}
.senda__text {
  font-size: 14px;
  color: var(--c-text-mid);
  padding: 24px 32px 16px;
  line-height: 1.75;
}
.senda__list {
  padding: 0 32px 28px;
}
.senda__list li {
  font-size: 14px;
  color: var(--c-text);
  padding: 8px 0 8px 18px;
  border-bottom: 1px solid var(--c-bg);
  position: relative;
}
.senda__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 700;
}

/* ============================================================
   PARA QUIÉN
   ============================================================ */
.audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.audience-card {
  background: var(--c-white);
  border-radius: var(--r);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.audience-card__mark {
  font-size: 26px;
  color: var(--c-primary);
  margin-bottom: 14px;
}
.audience-card h3 {
  font-size: 18px;
  color: var(--c-text);
  margin-bottom: 12px;
  font-weight: 700;
}
.audience-card p {
  font-size: 15px;
  color: var(--c-text-mid);
  line-height: 1.75;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact {
  max-width: 640px;
  margin: 0 auto;
}
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field--full  { grid-column: 1 / -1; }
.field--center { align-items: center; }

.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.field input,
.field textarea {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--c-white);
  outline: none;
  resize: vertical;
  transition: border-color .2s, background .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,.3); }
.field input:focus,
.field textarea:focus {
  border-color: var(--c-primary-l);
  background: rgba(255,255,255,.11);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--c-dark-deep);
  padding: 52px 24px;
  text-align: center;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer__logo {
  height: 26px;
  width: auto;
  opacity: .55;
  filter: grayscale(1) brightness(3);
}
.footer__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--c-white);
}
.footer__tagline {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  font-style: italic;
  margin-bottom: 8px;
}
.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,.25);
}

/* ============================================================
   ANIMACIONES DE ENTRADA
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet grande */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; gap: 48px; }
}

/* Tablet */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--c-white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 20px;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    gap: 0;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 14px 28px;
    border-bottom: 1px solid var(--c-bg);
  }
  .nav__cta {
    margin: 16px 28px 0;
    width: auto;
    text-align: center;
    display: block;
    border-radius: 50px;
  }
  .nav__burger { display: flex; }

  .pillars { grid-template-columns: repeat(2, 1fr); }
  .sendas { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }

  .section { padding: 72px 0; }
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 64px; }
}

/* Móvil */
@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { width: 100%; justify-content: center; }
  .senda__top { flex-direction: column; gap: 8px; }
  .senda__num { font-size: 36px; }
  .section__head { margin-bottom: 40px; }
}
