/* ============================================
   CONAMI — Coordinadora Nacional de Mujeres Indígenas
   ============================================ */

:root {
  --color-purple-dark: #4A154B;
  --color-purple-medium: #5B2C6F;
  --color-lavender: #E8D5E8;
  --color-orange: #E67E22;
  --color-white: #ffffff;
  --color-text-dark: #2C2C2C;

  --font: 'Montserrat', sans-serif;
  --max-width: 1100px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-heading {
  color: var(--color-orange);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
}

/* ── HERO ── */

.hero {
  position: relative;
  background-color: var(--color-purple-dark);
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(74, 21, 75, 0.7);
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
}

.hero__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.hero__logo {
  width: min(220px, 70vw);
  height: auto;
  object-fit: contain;
}

.hero__quote {
  font-style: italic;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  max-width: 360px;
  line-height: 1.4;
  border: none;
}

.hero__quote cite {
  display: block;
  font-style: normal;
  margin-top: 0.25rem;
}

.hero__title {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
}

/* ── NUESTRA HISTORIA ── */

.historia {
  background-color: var(--color-purple-dark);
  color: var(--color-white);
  padding: 4rem 0;
}

.historia__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.historia__image-wrapper {
  position: relative;
  background-color: var(--color-purple-medium);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.historia__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.historia__text p,
.historia__continuation p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.historia__text .subheading {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 1.5rem 0 0.75rem;
}

.historia__continuation {
  margin-top: 1rem;
}

.historia__continuation-grid {
  display: grid;
  gap: 2.5rem;
  margin: 2rem 0;
}

.historia__image-wrapper--right {
  position: relative;
  background-color: var(--color-purple-medium);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.historia__image-wrapper--right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.historia__details {
  margin-top: 1rem;
}

.historia__toggle {
  color: var(--color-orange);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.historia__toggle::-webkit-details-marker {
  display: none;
}

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

.historia__details[open] .historia__toggle {
  margin-bottom: 1.5rem;
}

.historia blockquote {
  border-left: 4px solid var(--color-orange);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 8px 8px 0;
}

.historia .source {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 2rem;
  font-style: italic;
}

/* ── QUIÉNES SOMOS ── */

.quienes {
  background-color: var(--color-lavender);
  padding: 4rem 0;
}

.quienes__grid {
  display: grid;
  gap: 2.5rem;
}

.quienes__image-wrapper {
  background-color: var(--color-purple-medium);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.quienes__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quienes__text p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.quienes .source {
  font-size: 0.8rem;
  opacity: 0.6;
  font-style: italic;
  margin-top: 1rem;
}

/* ── ENLACES ÚTILES ── */

.enlaces {
  background-color: var(--color-lavender);
  padding: 2rem 0 4rem;
}

.enlaces .section-heading {
  text-align: center;
}

.enlaces__grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  display: flex;
  align-items: center;
  background-color: var(--color-purple-dark);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s;
}

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

.card__thumb {
  width: 100px;
  min-height: 90px;
  flex-shrink: 0;
  background-color: var(--color-purple-medium);
  overflow: hidden;
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.enlaces .card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
}

.enlaces .card__thumb img {
  object-fit: contain;
}

.card__body {
  padding: 1rem 1.25rem;
  color: var(--color-white);
}

.card__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.card__link {
  color: var(--color-orange);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

/* ── GROUP PHOTO ── */

.foto-grupo {
  background-color: var(--color-lavender);
}

.foto-grupo__image {
  width: 100%;
  min-height: 200px;
  background-color: var(--color-purple-medium);
  object-fit: cover;
}

/* ── ORGANIZACIONES ALIADAS (subpágina) ── */

.page-aliadas {
  background-color: var(--color-lavender);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-aliadas .footer {
  margin-top: auto;
}

.subpage-hero {
  background-color: var(--color-purple-dark);
  color: var(--color-white);
  padding: 2rem 0 2.5rem;
}

.subpage-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.subpage-back {
  align-self: flex-start;
  color: var(--color-orange);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.subpage-back:hover {
  text-decoration: underline;
}

.subpage-hero__brand {
  margin-top: 0.25rem;
}

.subpage-hero__logo {
  width: min(200px, 50vw);
  height: auto;
  object-fit: contain;
}

.subpage-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-white);
}

.subpage-hero__lead {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  max-width: 36rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.aliadas {
  padding: 3rem 0 4rem;
  flex: 1;
}

.aliadas__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.aliada-card {
  margin: 0;
}

.aliada-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(74, 21, 75, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.aliada-card__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(74, 21, 75, 0.18);
}

.aliada-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(180deg, #faf8fc 0%, var(--color-lavender) 100%);
}

.aliada-card__logo img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 100px;
  object-fit: contain;
}

.aliada-card__logo--compact img {
  max-height: 120px;
  max-width: 120px;
}

.aliada-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: center;
  color: var(--color-text-dark);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.aliada-card__name {
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-purple-dark);
  margin-bottom: 0.5rem;
}

.aliada-card__desc {
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 1rem;
  flex: 1;
}

.aliada-card__cta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-orange);
}

.aliada-card__link:hover .aliada-card__cta {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .aliadas__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .aliadas__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* ── FOOTER / CTA ── */

.footer {
  background-color: var(--color-purple-dark);
  color: var(--color-white);
  padding: 3rem 0;
}

.footer__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer__logo {
  width: min(200px, 55vw);
  height: auto;
  object-fit: contain;
  opacity: 0.95;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.footer__heading {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
}

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

.footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.footer__social-label {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 100%;
}

.footer__social-link {
  color: var(--color-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer__social-link:hover {
  text-decoration: underline;
}

.footer__social-dot {
  color: rgba(255, 255, 255, 0.45);
  user-select: none;
}

.footer__credit {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer__credit a {
  color: var(--color-orange);
  font-weight: 600;
}

.footer__credit a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
}

.btn:hover {
  opacity: 0.85;
}

.btn--primary {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

/* ── RESPONSIVE ── */

@media (min-width: 768px) {
  .historia__grid {
    grid-template-columns: 1fr 1fr;
  }

  .historia__continuation-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quienes__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .enlaces__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__column {
    align-items: flex-end;
  }

  .footer__heading {
    max-width: 50%;
  }

  .footer__social-label {
    width: auto;
    margin-right: 0.25rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem 0;
  }

  .historia {
    padding: 6rem 0;
  }

  .quienes {
    padding: 6rem 0;
  }

  .card__thumb {
    width: 120px;
    min-height: 100px;
  }
}
