/* =====================================================
   SALA THEME — amigos-sala.css  v3
   Página Amigos de la Sala
   ===================================================== */

body.page-template-page-amigos-sala {
  background: var(--sala-bg);
  color: var(--sala-text);
}

.container.narrow {
  width: min(calc(100% - 40px), 980px);
  margin-inline: auto;
}

.section-space { padding: 72px 0; }

/* =====================================================
   HERO
   ===================================================== */
.amigos-hero { background: #f2f2f2; }

.amigos-hero__media img,
.amigos-hero__placeholder {
  width: 100%;
  height: clamp(320px, 45vw, 520px);
  object-fit: cover;
  display: block;
}

.amigos-hero__placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e7e7e7, #f7f7f7);
  color: var(--sala-navy);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
}

/* =====================================================
   INTRO: título + tarjetas estadísticas
   ===================================================== */
.amigos-intro { background: var(--sala-bg); }

.amigos-intro__title {
  text-align: center;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.05;
  color: var(--sala-pink);
  font-weight: 700;
  margin: 0 0 58px;
}

/* Fan de 3 tarjetas inclinadas */
.amigos-stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: center;
  justify-items: center;
  max-width: 1120px;
  margin: 0 auto;
  perspective: 1400px;
}

.info-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 34px;
  box-shadow: 0 24px 44px rgba(80, 90, 110, 0.10);
  width: 100%;
  max-width: 352px;
  min-height: 300px;
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(4px);
  will-change: transform;
}

.info-card--left  { transform: rotate(-9deg) translateX(18px); }
.info-card--center{ transform: translateY(18px); z-index: 2; }
.info-card--right { transform: rotate(9deg) translateX(-18px); }

.info-card:hover {
  box-shadow: 0 32px 60px rgba(80, 90, 110, 0.18);
}

/* Íconos de las tarjetas estadísticas */
.info-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  width: 56px;
  height: 56px;
}

.info-card__icon svg {
  width: 100%;
  height: 100%;
}

.info-card__icon--left  { color: #c8d2d8; }
.info-card__icon--right { color: #1697d6; }

.info-card__number {
  display: block;
  font-size: 3.4rem;
  line-height: 1;
  margin-bottom: 18px;
  font-weight: 600;
  color: var(--sala-yellow, #e4bf00);
}

.info-card h3 {
  font-size: 2rem;
  margin: 0 0 14px;
  font-weight: 700;
}

.info-card--left  h3 { color: #d76560; }
.info-card--center h3,
.info-card--center .info-card__number { color: #e4bf00; }
.info-card--right h3 { color: #1697d6; }

.info-card p {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  color: #4b4b4b;
}

/* =====================================================
   BENEFICIOS — tarjetas con íconos y hover lift
   ===================================================== */
.section-dark {
  background: var(--sala-navy, #0f4d78);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Marca de agua sutil */
.section-dark::after {
  content: "sala mendoza";
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  font-size: clamp(5rem, 16vw, 13rem);
  line-height: 1;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  white-space: nowrap;
}

.benefit-columns {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── Tarjeta individual ── */
.benefit-col {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px 24px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform    0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow   0.3s ease,
    background   0.3s ease,
    border-color 0.3s ease;
  cursor: default;
}

/* ✨ Hover: tarjeta sube */
.benefit-col:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

/* ── Ícono superior de cada tarjeta ── */
.benefit-col__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease, transform 0.3s ease;
}

.benefit-col:hover .benefit-col__icon {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

.benefit-col__icon svg {
  width: 28px;
  height: 28px;
}

/* Colores de ícono por nivel */
.benefit-col__icon--pilar     { color: #f3d000; }   /* dorado */
.benefit-col__icon--impulsor  { color: #17AACF; }   /* azul sala */
.benefit-col__icon--embajador { color: #4ecdc4; }   /* teal */
.benefit-col__icon--amigo     { color: #ff6b6b; }   /* coral/rojo */

/* ── Título y precio ── */
.benefit-col h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: white;
  letter-spacing: 0.03em;
  text-align: center;
}

.benefit-price {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
  line-height: 1.4;
}

/* ── Lista de beneficios con checkmarks ── */
.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

.benefit-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  line-height: 1.55;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.88);
}

/* Checkmark antes de cada ítem */
.benefit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 7px;
  border-left: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  transform: rotate(-45deg);
}

.benefit-col:hover .benefit-list li::before {
  border-color: rgba(255, 255, 255, 0.9);
}

/* =====================================================
   FORMULARIO
   ===================================================== */
.amigos-donacion-wrap {
  background: #f2f2f2;
  padding: 88px 0 110px;
}

.amigos-donacion-container {
  width: min(calc(100% - 40px), 980px);
  margin: 0 auto;
}

.amigos-donacion-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0 0 10px;
  letter-spacing: .02em;
  color: #4a4a4a;
}

.amigos-donacion-header p {
  margin: 0 0 34px;
  color: #666;
  line-height: 1.7;
}

.amigos-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
}

.amigos-field-group { margin-bottom: 26px; }

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid rgba(20, 181, 146, .45);
  border-radius: 999px;
  overflow: hidden;
  background: white;
}

.segmented-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 18px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.segmented-btn.is-active {
  background: rgba(20, 181, 146, .08);
  color: var(--sala-primary-dark);
  font-weight: 700;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.amount-card {
  border: 1px solid #cfcfd4;
  background: white;
  min-height: 100px;
  padding: 18px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.amount-card:hover,
.amount-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(20, 181, 146, .9);
  background: #e8f7f3;
  box-shadow: 0 8px 18px rgba(20, 181, 146, .12);
}

.amount-card__price {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #555;
}

.amount-card__title {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #3d3d3d;
}

.custom-amount-wrap { margin-top: 14px; }

.custom-amount-wrap input,
.form-field input,
.amigos-field-group textarea {
  width: 100%;
  border: 1px solid #cfcfd4;
  background: white;
  padding: 14px 16px;
  border-radius: 10px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
  font-size: 1rem;
}

.custom-amount-wrap input:focus,
.form-field input:focus,
.amigos-field-group textarea:focus {
  border-color: var(--sala-primary);
  box-shadow: 0 0 0 4px rgba(20, 181, 146, .12);
}

.amigos-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.amigos-field-group textarea {
  min-height: 120px;
  resize: vertical;
}

.char-counter {
  text-align: right;
  margin-top: 6px;
  color: #888;
  font-size: .92rem;
}

.amigos-submit-btn {
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sala-primary), #0dbca3);
  color: white;
  padding: 18px 28px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  box-shadow: 0 15px 28px rgba(20, 181, 146, .22);
}

.amigos-submit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.amigos-submit-btn:disabled { opacity: .7; cursor: wait; }

.amigos-form-note { margin: 10px 0 0; color: #d05050; font-size: .95rem; }

.amigos-form-message {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  display: none;
}

.amigos-form-message.is-success {
  display: block;
  background: #e9f8f1;
  color: #116b55;
  border: 1px solid #bde8d8;
}

.amigos-form-message.is-error {
  display: block;
  background: #fff0f0;
  color: #ab2f2f;
  border: 1px solid #f0c1c1;
}

/* =====================================================
   FAQ
   ===================================================== */
.amigos-faq { background: #eef3f4; }

.amigos-faq__title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 40px;
  color: #2f3136;
}

.amigos-faq__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 34px;
}

.amigos-faq__item {
  background: rgba(255, 255, 255, .78);
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.amigos-faq__item h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #222;
}

.amigos-faq__item p {
  margin: 0;
  color: #5d636a;
  line-height: 1.7;
}

/* =====================================================
   ANIMACIONES fade-in-up
   ===================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tarjetas estadísticas: mantener su inclinación al aparecer */
.fade-in-up.info-card--left.is-visible  { transform: rotate(-9deg) translateX(18px); }
.fade-in-up.info-card--center.is-visible{ transform: translateY(18px); }
.fade-in-up.info-card--right.is-visible { transform: rotate(9deg) translateX(-18px); }

.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.delay-5 { transition-delay: .40s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .benefit-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  .amigos-stats-cards,
  .amount-grid,
  .amigos-faq__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .section-space,
  .amigos-donacion-wrap { padding: 56px 0; }

  .amigos-stats-cards,
  .benefit-columns,
  .amigos-form-grid,
  .amount-grid,
  .amigos-faq__list {
    grid-template-columns: 1fr;
  }

  /* Quitar inclinación en mobile */
  .info-card--left,
  .info-card--center,
  .info-card--right {
    transform: none !important;
  }

  .segmented-btn,
  .amigos-submit-btn { font-size: 1rem; }
}
