/* ════════════════════════════════════════════
   ECOEMS Generador — Estilos
   clasesmexico.com
   ════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,600;0,700;1,400&family=DM+Sans:wght@400;500&display=swap');

.ecoems-wrap {
  font-family: 'DM Sans', sans-serif;
  color: #2C2C2A;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* ── HERO ──────────────────────────────── */
.ecoems-hero {
  text-align: center;
  background: linear-gradient(180deg, #E1F5EE 0%, #FAFAF8 100%);
  border-radius: 16px;
  padding: 3rem 2rem 2.5rem;
  margin-bottom: 2rem;
}
.ecoems-hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #085041;
  background: white;
  border: 1px solid #1D9E75;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
}
.ecoems-hero-title {
  font-family: 'Fraunces', serif !important;
  font-size: clamp(28px, 5vw, 42px) !important;
  font-weight: 700 !important;
  color: #085041 !important;
  line-height: 1.2 !important;
  margin-bottom: 1rem !important;
}
.ecoems-hero-title em {
  color: #D85A30;
  font-style: italic;
}
.ecoems-hero-desc {
  font-size: 16px;
  color: #5F5E5A;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.ecoems-price-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 1px solid #9FE1CB;
  border-radius: 16px;
  padding: 1.25rem 2.5rem;
  gap: 3px;
}
.ecoems-price-label {
  font-size: 11px;
  color: #5F5E5A;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ecoems-price-amount {
  font-family: 'Fraunces', serif;
  font-size: 52px;
  font-weight: 700;
  color: #085041;
  line-height: 1;
}
.ecoems-price-sub {
  font-size: 13px;
  color: #5F5E5A;
}

/* ── PASOS ─────────────────────────────── */
.ecoems-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 2rem;
}
.ecoems-step {
  background: white;
  border: 1px solid #D3D1C7;
  border-radius: 12px;
  padding: 1.25rem;
}
.ecoems-step-num {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  color: #1D9E75;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.ecoems-step h4 {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #2C2C2A !important;
  margin: 0 0 4px !important;
}
.ecoems-step p {
  font-size: 12px;
  color: #5F5E5A;
  line-height: 1.5;
  margin: 0;
}

/* ── GENERADOR ─────────────────────────── */
.ecoems-generador {
  background: white;
  border: 1px solid #D3D1C7;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.ecoems-gen-header {
  background: #085041;
  color: white;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ecoems-gen-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
}
.ecoems-gen-sub {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 2px;
}
.ecoems-gen-badge {
  background: rgba(255,255,255,0.15);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}
.ecoems-gen-body {
  padding: 1.5rem;
}

/* ── CONFIG GRID ───────────────────────── */
.ecoems-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.25rem;
}
@media (max-width: 540px) {
  .ecoems-config-grid { grid-template-columns: 1fr; }
}
.ecoems-config-item label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #5F5E5A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.ecoems-config-item input,
.ecoems-config-item select {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  border: 1px solid #D3D1C7;
  border-radius: 8px;
  background: #FAFAF8;
  color: #2C2C2A;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.ecoems-config-item input:focus,
.ecoems-config-item select:focus {
  border-color: #1D9E75;
}

/* ── ÁREAS ─────────────────────────────── */
.ecoems-areas-label {
  font-size: 11px;
  font-weight: 500;
  color: #5F5E5A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.ecoems-areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 1.25rem;
}
@media (max-width: 540px) {
  .ecoems-areas-grid { grid-template-columns: 1fr; }
}
.ecoems-area-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5F5E5A;
  cursor: pointer;
  padding: 8px 10px;
  border: 1px solid #D3D1C7;
  border-radius: 8px;
  background: white;
  transition: all 0.12s;
  user-select: none;
}
.ecoems-area-chip.active {
  background: #E1F5EE;
  border-color: #1D9E75;
  color: #085041;
  font-weight: 500;
}
.ecoems-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #D3D1C7;
  flex-shrink: 0;
  transition: background 0.12s;
}
.ecoems-area-chip.active .ecoems-dot {
  background: #1D9E75;
}

/* ── STATUS ────────────────────────────── */
.ecoems-status {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.ecoems-status.loading { display:block; background:#E1F5EE; color:#085041; }
.ecoems-status.success { display:block; background:#EAF3DE; color:#3B6D11; }
.ecoems-status.error   { display:block; background:#FCEBEB; color:#A32D2D; }

.ecoems-progress {
  height: 3px;
  background: #D3D1C7;
  border-radius: 2px;
  margin-bottom: 8px;
  display: none;
  overflow: hidden;
}
.ecoems-progress-fill {
  height: 100%;
  background: #1D9E75;
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
}

/* ── PAGO ──────────────────────────────── */
.ecoems-pay-section {
  border-top: 1px solid #D3D1C7;
  padding: 1.25rem 1.5rem;
  background: #F9FAF8;
}
.ecoems-pay-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.ecoems-pay-label {
  font-size: 13px;
  color: #5F5E5A;
  margin-bottom: 2px;
}
.ecoems-pay-desc {
  font-size: 12px;
  color: #888780;
}
.ecoems-pay-price {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: #085041;
}
.ecoems-pay-btn {
  width: 100%;
  padding: 15px;
  background: #D85A30;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(216,90,48,0.25);
}
.ecoems-pay-btn:hover:not(:disabled) { background: #993C1D; }
.ecoems-pay-btn:disabled { background: #B4B2A9; cursor: not-allowed; box-shadow: none; }
.ecoems-pay-note {
  font-size: 11px;
  color: #5F5E5A;
  text-align: center;
  margin-top: 8px;
}
.ecoems-pay-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.ecoems-pay-icon {
  background: white;
  border: 1px solid #D3D1C7;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  color: #5F5E5A;
  font-weight: 500;
}

/* ── FAQ ───────────────────────────────── */
.ecoems-faq { margin-top: 2rem; }
.ecoems-faq-title {
  font-family: 'Fraunces', serif;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #2C2C2A !important;
  text-align: center;
  margin-bottom: 1rem !important;
}
.ecoems-faq-item {
  border-bottom: 1px solid #D3D1C7;
  padding: 0.9rem 0;
}
.ecoems-faq-q {
  font-size: 14px;
  font-weight: 500;
  color: #2C2C2A;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ecoems-faq-arrow {
  transition: transform 0.2s;
  color: #5F5E5A;
  font-size: 16px;
}
.ecoems-faq-item.open .ecoems-faq-arrow { transform: rotate(180deg); }
.ecoems-faq-a {
  font-size: 13px;
  color: #5F5E5A;
  margin-top: 8px;
  line-height: 1.6;
  display: none;
}
.ecoems-faq-item.open .ecoems-faq-a { display: block; }
