/* LabAncestral · main.css */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #F6EFE1;
}

::selection {
  background: #EE9A1C;
  color: #0E3D22;
}

/* ──────────────────────────────────────
   Inputs
────────────────────────────────────── */
.la-input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d8c9a8;
  border-radius: 11px;
  background: #fff;
  font-size: 15px;
  font-family: 'IBM Plex Sans', sans-serif;
  color: #152514;
  margin-bottom: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.la-input:focus {
  outline: none;
  border-color: #18713A;
  box-shadow: 0 0 0 3px rgba(24, 113, 58, .14);
}

input::placeholder { color: #a9a08a; }

/* ──────────────────────────────────────
   Mensajes Django
────────────────────────────────────── */
.la-messages {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.la-message {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'IBM Plex Sans', sans-serif;
  background: #fff;
  border: 1px solid #e4d9c2;
  color: #152514;
}

.la-message--error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.la-message--success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

/* ──────────────────────────────────────
   Animaciones
────────────────────────────────────── */
@keyframes la_rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes la_glow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.25); }
}

@keyframes la_pan {
  0%   { transform: scale(1.12) translate(0, 0); }
  50%  { transform: scale(1.2) translate(-2.5%, -1.8%); }
  100% { transform: scale(1.12) translate(0, 0); }
}

@keyframes la_sun {
  0%, 100% { transform: translate(0, 0); opacity: .8; }
  50%       { transform: translate(3%, 2%); opacity: 1; }
}

@keyframes la_marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ──────────────────────────────────────
   Sección Nosotros - LabAncestral
────────────────────────────────────── */

/* Contenedores y Base de la página */
.la-nosotros-page {
  font-family: 'IBM Plex Sans', sans-serif;
  color: #152514;
  background: #F6EFE1;
  overflow-x: hidden;
}

.la-container-lg {
  max-width: 1240px;
  margin: 0 auto;
}

.la-container-md {
  max-width: 1100px;
  margin: 0 auto;
}

/* --- HERO --- */
.la-hero {
  position: relative;
  background: #F6EFE1;
  overflow: hidden;
  padding: 74px 44px 60px;
}

.la-hero__grid-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(#0e3d2210 1px, transparent 1px), linear-gradient(90deg, #0e3d2210 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.la-hero__glow-bg {
  position: absolute;
  top: -150px;
  right: -110px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, #F6CE7E 0%, rgba(238, 154, 28, .30) 38%, transparent 66%);
  pointer-events: none;
}

.la-hero__container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.la-breadcrumbs {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: #9a8f74;
  margin-bottom: 26px;
}

.la-breadcrumbs a {
  color: #9a8f74;
  text-decoration: none;
}

.la-hero__title {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 24px;
  color: #152514;
  max-width: 880px;
  animation: la_rise .7s ease both;
}

.la-hero__title em {
  font-style: italic;
  font-weight: 500;
  color: #18713A;
}

.la-hero__lead {
  font-size: 18px;
  line-height: 1.66;
  color: #54503f;
  max-width: 620px;
  margin: 0;
  animation: la_rise .9s ease both;
}

/* --- MISIÓN Y VISIÓN --- */
.la-mision-vision {
  background: #0E3D22;
  color: #eae3d2;
  padding: 84px 44px;
}

.la-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.la-mv-card {
  background: #0a3019;
  border: 1px solid #1f5a3e;
  border-radius: 18px;
  padding: 42px;
}

.la-mv-card__tag {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.la-mv-card__tag span {
  width: 28px;
  height: 1px;
  display: block;
}

.la-mv-card__tag--mision { color: #EE9A1C; }
.la-mv-card__tag--mision span { background: #EE9A1C; }

.la-mv-card__tag--vision { color: #7fae89; }
.la-mv-card__tag--vision span { background: #7fae89; }

.la-mv-card__text {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: 27px;
  line-height: 1.32;
  margin: 0;
  color: #fff;
}

/* --- VALORES --- */
.la-valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid #1f5a3e;
}

.la-valor-item {
  padding: 26px;
}

.la-valor-item--first { padding-left: 0; padding-right: 26px; }
.la-valor-item--center { border-left: 1px solid #1f5a3e; border-right: 1px solid #1f5a3e; }
.la-valor-item--last { padding-left: 26px; padding-right: 0; }

.la-valor-item__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  color: #7fae89;
  margin-bottom: 12px;
}

.la-valor-item__title {
  font-family: 'Spectral', serif;
  font-size: 19px;
  color: #fff;
  margin-bottom: 7px;
}

.la-valor-item__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #9ec0a8;
}

/* --- HISTORIA (TIMELINE) --- */
.la-historia {
  background: #F6EFE1;
  padding: 88px 44px;
}

.la-historia__tag, .la-equipo__tag {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #9a8f74;
  margin-bottom: 18px;
}

.la-historia__tag span, .la-equipo__tag span {
  width: 28px;
  height: 1px;
  background: #c2b48f;
  display: block;
}

.la-historia__title {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 48px;
  color: #152514;
  max-width: 560px;
}

.la-timeline {
  position: relative;
  padding-left: 34px;
}

.la-timeline__line {
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, #EE9A1C, #18713A, #7A4F2E);
}

.la-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding-bottom: 38px;
}

.la-timeline__item:last-child {
  padding-bottom: 0;
}

.la-timeline__dot {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #F6EFE1;
  /* Si no viene color de la base de datos, usa el naranja por defecto */
  background: var(--hito-color, #EE9A1C); 
  box-shadow: 0 0 0 2px var(--hito-color, #EE9A1C);
}

.la-timeline__year {
  font-family: 'Spectral', serif;
  font-size: 30px;
  font-weight: 600;
  color: #18713A;
}

.la-timeline__item-title {
  font-family: 'Spectral', serif;
  font-size: 21px;
  font-weight: 500;
  color: #1a2417;
  margin-bottom: 8px;
}

.la-timeline__item-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #54503f;
  max-width: 560px;
}

/* --- EQUIPO --- */
.la-equipo {
  background: #F6EFE1;
  padding: 88px 44px;
  border-top: 1px solid #e4d9c2;
}

.la-equipo__header {
  margin-bottom: 46px;
}

.la-equipo__title {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: 40px;
  line-height: 1.1;
  margin: 0;
  color: #152514;
}

.la-equipo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.la-miembro-card {
  background: #fff;
  border: 1px solid #e4d9c2;
  border-radius: 18px;
  padding: 34px 26px;
  text-align: center;
}

.la-miembro-card__avatar {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Degradados para cuando no hay foto de perfil */
.la-miembro-card__avatar--gradient-1 { background: linear-gradient(160deg, #e9d39a, #9e7038); }
.la-miembro-card__avatar--gradient-2 { background: linear-gradient(160deg, #9fd06a, #2f8137); }
.la-miembro-card__avatar--gradient-3 { background: linear-gradient(160deg, #e2a766, #7A4F2E); }

.la-miembro-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.la-miembro-card__name {
  font-family: 'Spectral', serif;
  font-size: 21px;
  font-weight: 600;
  color: #1a2417;
}

.la-miembro-card__role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  color: #18713A;
  margin-top: 8px;
  text-transform: uppercase;
}

.la-miembro-card__desc {
  margin: 13px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #6b6657;
}

/* --- SECCIÓN CTA Y BOTONES --- */
.la-cta {
  background: #F6EFE1;
  padding: 74px 44px;
  text-align: center;
}

.la-cta__container {
  max-width: 760px;
  margin: 0 auto;
}

.la-cta__title {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: 38px;
  line-height: 1.12;
  margin: 0 0 20px;
  color: #152514;
}

.la-cta__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.la-btn {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}

.la-btn--primary {
  background: #18713A;
  color: #fff;
}

.la-btn--primary:hover {
  background: #12542a;
}

.la-btn--secondary {
  border: 1px solid #d8c9a8;
  color: #16331c;
}

.la-btn--secondary:hover {
  background: #eae2cf;
}