/* =================================================
   ALLIANCES.CSS — Fundar Galápagos
   Página unificada: socios + formulario de alianza
================================================= */

/* ══════════════════════════════════════════
   VARIABLES
══════════════════════════════════════════ */
:root {
  --al-green:      #083d2e;
  --al-green-mid:  #0a7c5c;
  --al-green-lt:   #1a9e7a;
  --al-green-pale: #e6f5f0;
  --al-accent:     #a8f0d8;
  --al-dark:       #0f1f18;
  --al-text:       #1a2e2a;
  --al-muted:      #5a7a72;
  --al-border:     #c8ddd8;
  --al-sand:       #f5f2ed;
  --al-radius:     12px;
  --al-trans:      .25s ease;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.al-hero {
  background: linear-gradient(160deg, #083d2e 0%, #0a7c5c 60%, #1a9e7a 100%);
  padding: 80px 24px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.al-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 60%, rgba(255,255,255,.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(255,255,255,.04) 0%, transparent 70%);
  pointer-events: none;
}

.al-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 48px;
}

.al-hero__tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--al-accent);
  margin-bottom: 20px;
}

.al-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -.02em;
  color: #fff;
}

.al-hero__title em {
  font-style: italic;
  color: var(--al-accent);
}

.al-hero__desc {
  font-size: 1.05rem;
  opacity: .85;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 32px;
}

.al-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--al-green);
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: transform var(--al-trans), box-shadow var(--al-trans);
}
.al-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.28);
}

/* Stats en hero */
.al-hero__stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.12);
  margin: 0 -24px;
  padding: 0;
}

.al-hero__stat {
  flex: 1;
  max-width: 200px;
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.al-hero__stat:last-child { border-right: none; }

.al-hero__stat strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--al-accent);
  line-height: 1;
}

.al-hero__stat span {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ══════════════════════════════════════════
   LAYOUT GENERAL
══════════════════════════════════════════ */
.al-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.al-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.al-section-header--light { margin-bottom: 48px; }

.al-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--al-green-mid);
  margin-bottom: 12px;
}

.al-label--light { color: var(--al-accent); }

.al-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--al-text);
  margin: 0 0 14px;
}

.al-section-title em { font-style: italic; color: var(--al-green-mid); }
.al-section-title--light { color: #fff; }
.al-section-title--light em { color: var(--al-accent); }

.al-section-desc {
  font-size: 1rem;
  color: var(--al-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.al-divider {
  width: 48px;
  height: 3px;
  background: var(--al-green-mid);
  border-radius: 2px;
  margin: 16px 0 24px;
}

/* ══════════════════════════════════════════
   SOCIOS ACTUALES
══════════════════════════════════════════ */
.al-partners {
  padding: 88px 0 80px;
  background: #fff;
}

/* Filtros */
.al-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.al-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(10,124,92,.25);
  background: #fff;
  color: var(--al-text);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--al-trans);
  font-family: inherit;
}

.al-filter:hover { border-color: var(--al-green-mid); background: var(--al-green-pale); }
.al-filter.active {
  background: var(--al-green);
  color: var(--al-accent);
  border-color: var(--al-green);
}

.al-filter__count {
  background: rgba(10,124,92,.1);
  color: var(--al-green-mid);
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}
.al-filter.active .al-filter__count {
  background: rgba(168,240,216,.2);
  color: var(--al-accent);
}

/* Grid socios */
.al-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Card socio */
.al-partner-card {
  background: #fff;
  border: 1px solid rgba(10,124,92,.1);
  border-radius: var(--al-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform var(--al-trans), box-shadow var(--al-trans);
  animation: al-rise .4s ease both;
}

@keyframes al-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.al-partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,.1);
}

.al-partner-card__logo {
  height: 120px;
  background: #f9fafb;
  border-bottom: 1px solid #eef2ef;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  transition: background var(--al-trans);
}

.al-partner-card:hover .al-partner-card__logo { background: #f0f7f3; }

.al-partner-card__logo img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter var(--al-trans), transform var(--al-trans);
}

.al-partner-card:hover .al-partner-card__logo img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.al-partner-card__body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.al-partner-card__cat {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--al-green-pale);
  color: var(--al-green-mid);
  padding: 3px 10px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 10px;
}

.al-partner-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--al-text);
  margin: 0 0 8px;
}

.al-partner-card__desc {
  font-size: .875rem;
  color: var(--al-muted);
  line-height: 1.6;
  margin: 0 0 14px;
  flex: 1;
}

.al-partner-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--al-green-mid);
  text-decoration: none;
  transition: gap var(--al-trans);
  align-self: flex-start;
}
.al-partner-card__link:hover { gap: 8px; }

/* ══════════════════════════════════════════
   PILARES
══════════════════════════════════════════ */
.al-pillars {
  background: var(--al-green);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.al-pillars::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 90% 20%, rgba(26,158,122,.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(10,124,92,.3) 0%, transparent 60%);
  pointer-events: none;
}

.al-pillars .al-container { position: relative; z-index: 1; }

.al-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.al-pillar {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  padding: 36px 28px;
  transition: background var(--al-trans), transform var(--al-trans);
  position: relative;
  overflow: hidden;
}

.al-pillar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px; width: 0;
  background: var(--al-accent);
  transition: width var(--al-trans);
}

.al-pillar:hover {
  background: rgba(168,240,216,.08);
  transform: translateY(-3px);
}
.al-pillar:hover::after { width: 100%; }

.al-pillar__icon { font-size: 2rem; margin-bottom: 16px; }

.al-pillar h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.al-pillar p {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════════
   POR QUÉ ALIARSE
══════════════════════════════════════════ */
.al-why {
  background: var(--al-sand);
  padding: 88px 0;
}

.al-why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.al-why__img {
  border-radius: var(--al-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.al-why__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.al-why__img:hover img { transform: scale(1.03); }

.al-why__text p {
  color: var(--al-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.al-why__list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.al-why__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: var(--al-text);
  line-height: 1.5;
}

.al-why__list .bi {
  color: var(--al-green-mid);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: .95rem;
}

/* ══════════════════════════════════════════
   FORMULARIO
══════════════════════════════════════════ */
.al-form-section {
  background: #fff;
  padding: 88px 0;
}

.al-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.al-form-info p {
  color: var(--al-muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.al-contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.al-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--al-muted);
}

.al-contact-list .bi {
  width: 36px;
  height: 36px;
  background: var(--al-green-pale);
  color: var(--al-green-mid);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
}

.al-contact-list a {
  color: var(--al-green-mid);
  text-decoration: none;
}
.al-contact-list a:hover { text-decoration: underline; }

/* Form card */
.al-form {
  background: var(--al-sand);
  border-radius: 16px;
  padding: 40px 36px;
}

.al-form h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--al-text);
  margin: 0 0 28px;
}

.al-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}

.al-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.al-field label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--al-muted);
}

.al-field input,
.al-field select,
.al-field textarea {
  font-family: 'DM Sans', inherit;
  font-size: .92rem;
  background: #fff;
  border: 1.5px solid var(--al-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--al-text);
  outline: none;
  transition: border-color var(--al-trans), box-shadow var(--al-trans);
  width: 100%;
  box-sizing: border-box;
}

.al-field input:focus,
.al-field select:focus,
.al-field textarea:focus {
  border-color: var(--al-green-mid);
  box-shadow: 0 0 0 3px rgba(10,124,92,.1);
}

.al-field textarea { resize: vertical; min-height: 110px; }

/* Checkboxes */
.al-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.al-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--al-text);
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--al-border);
  background: #fff;
  transition: border-color var(--al-trans), background var(--al-trans);
}
.al-check:hover { border-color: var(--al-green-mid); background: var(--al-green-pale); }
.al-check:has(input:checked) {
  border-color: var(--al-green-mid);
  background: var(--al-green-pale);
  font-weight: 600;
}

.al-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--al-green-mid);
  flex-shrink: 0;
}

/* Botón submit */
.al-btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--al-green-mid);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--al-trans), transform var(--al-trans), box-shadow var(--al-trans);
  margin-top: 4px;
}

.al-btn-submit:hover {
  background: var(--al-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,124,92,.3);
}

.al-btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Éxito */
.al-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--al-green-pale);
  border: 1px solid rgba(10,124,92,.3);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: .9rem;
  color: var(--al-green);
  font-weight: 500;
  margin-top: 14px;
}
.al-success[hidden] { display: none; }
.al-success .bi { color: var(--al-green-mid); font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .al-pillars-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .al-why__inner,
  .al-form-wrap  { grid-template-columns: 1fr; gap: 40px; }
  .al-pillars-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .al-hero { padding: 64px 20px 0; }
  .al-hero__stats { flex-wrap: wrap; margin: 0 -20px; }
  .al-hero__stat { min-width: 50%; border-bottom: 1px solid rgba(255,255,255,.12); }
  .al-partners, .al-pillars, .al-why, .al-form-section { padding: 64px 0; }
  .al-form { padding: 28px 22px; }
  .al-form-row { grid-template-columns: 1fr; }
  .al-checks { grid-template-columns: 1fr; }
  .al-partners-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .al-pillars-grid { grid-template-columns: 1fr; }
  .al-hero__title { font-size: 2rem; }
}