/* =========================================================
   FIX VISUAL CONSTANCIA + GARCITA
   LICENCIATURA
   ========================================================= */

:root{
  --uaeh-accent:#007c84;
  --uaeh-accent-dark:#0b5e64;
  --uaeh-accent-soft:#d6f1f0;
  --uaeh-gold:#ecd46b;
  --uaeh-ink:#17213f;
  --uaeh-text:#24324f;
  --uaeh-muted:#5d6b86;
  --uaeh-line:#dbe7e7;
  --uaeh-card:#ffffff;
  --uaeh-soft:#f7fcfc;
}

/* ===== CONSTANCIA ===== */
.uaeh-constancia-strip,
#constancia-bachillerato,
#constancia-licenciatura{
  background:linear-gradient(180deg,#fcffff 0%, #f7fcfc 100%) !important;
  border:1px solid #cfe4e4 !important;
  border-radius:24px !important;
  padding:18px 20px !important;
  box-shadow:0 10px 24px rgba(23,33,63,.06) !important;
}

.uaeh-constancia-strip strong,
.uaeh-constancia-strip div,
.uaeh-constancia-strip p{
  color:var(--uaeh-ink) !important;
}

.uaeh-constancia-actions{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:12px !important;
  align-items:center !important;
  justify-content:flex-end !important;
}

.uaeh-constancia-btn,
#uaeh-constancia-download,
#uaeh-constancia-card-btn,
a[href*="AcademiaConstancia"],
a[href*="constanciaBachillerato"]{
  background:linear-gradient(135deg,var(--uaeh-accent) 0%, var(--uaeh-accent-dark) 100%) !important;
  color:#ffffff !important;
  border:0 !important;
  border-radius:999px !important;
  padding:12px 22px !important;
  font-weight:800 !important;
  font-size:1rem !important;
  line-height:1.15 !important;
  text-decoration:none !important;
  box-shadow:0 10px 22px rgba(0,124,132,.22) !important;
  text-shadow:none !important;
  opacity:1 !important;
}

.uaeh-constancia-btn:hover,
#uaeh-constancia-download:hover,
#uaeh-constancia-card-btn:hover{
  color:#ffffff !important;
  filter:brightness(1.03) !important;
}

.uaeh-constancia-btn.secondary,
a.uaeh-constancia-btn.secondary{
  background:#ffffff !important;
  color:var(--uaeh-accent) !important;
  border:1px solid #b9dcdc !important;
  box-shadow:none !important;
}

/* ===== GARCITA / CHAT DE APOYO ===== */
.uaeh-help-card{
  background:#ffffff !important;
  border:1px solid var(--uaeh-line) !important;
  border-radius:28px !important;
  padding:24px !important;
  box-shadow:0 14px 32px rgba(23,33,63,.06) !important;
  overflow:hidden !important;
}

.uaeh-garcita-badge{
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  background:#e8fbfb !important;
  color:#006f76 !important;
  border:1px solid #7dd3d7 !important;
  border-radius:999px !important;
  padding:10px 16px !important;
  font-weight:800 !important;
  font-size:.95rem !important;
  line-height:1.1 !important;
  box-shadow:none !important;
}

.uaeh-garcita-badge::before{
  content:"";
  font-size:1.05rem;
}

.uaeh-help-card h3{
  color:var(--uaeh-ink) !important;
  font-size:2rem !important;
  line-height:1.1 !important;
  margin:14px 0 10px !important;
  font-weight:900 !important;
}

.uaeh-help-card > p{
  color:var(--uaeh-text) !important;
  font-size:1.04rem !important;
  line-height:1.65 !important;
  max-width:980px !important;
  margin-bottom:18px !important;
}

.uaeh-help-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
  align-items:stretch !important;
}

@media (max-width:980px){
  .uaeh-help-grid{
    grid-template-columns:1fr !important;
  }
}

.uaeh-help-option{
  position:relative !important;
  background:#ffffff !important;
  border:1px solid #d8ecec !important;
  border-radius:22px !important;
  padding:20px 18px 18px 82px !important;
  min-height:180px !important;
  box-shadow:0 10px 24px rgba(23,33,63,.06) !important;
  color:var(--uaeh-text) !important;
}

.uaeh-help-option::before{
  position:absolute !important;
  top:18px !important;
  left:18px !important;
  width:48px !important;
  height:48px !important;
  border-radius:16px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:1.35rem !important;
  background:linear-gradient(135deg,#00a2ad 0%, #0a5f66 100%) !important;
  color:#fff !important;
  box-shadow:0 10px 18px rgba(0,124,132,.18) !important;
}

.uaeh-help-option:nth-child(1)::before{ content:""; }
.uaeh-help-option:nth-child(2)::before{ content:""; }
.uaeh-help-option:nth-child(3)::before{ content:""; }

.uaeh-help-option strong{
  display:block !important;
  color:var(--uaeh-ink) !important;
  font-size:1.28rem !important;
  line-height:1.2 !important;
  margin-bottom:10px !important;
  font-weight:900 !important;
}

.uaeh-help-option,
.uaeh-help-option p,
.uaeh-help-option div,
.uaeh-help-option span,
.uaeh-help-option small{
  color:var(--uaeh-text) !important;
  text-shadow:none !important;
  line-height:1.65 !important;
}

.uaeh-help-option a,
.uaeh-help-option .btn,
.uaeh-help-option .uaeh-bach-btn{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  margin-top:14px !important;
  padding:11px 16px !important;
  border-radius:999px !important;
  background:#ffffff !important;
  color:var(--uaeh-accent) !important;
  border:1px solid #9fd7da !important;
  font-weight:800 !important;
  text-decoration:none !important;
  box-shadow:none !important;
}

.uaeh-help-option a:hover,
.uaeh-help-option .btn:hover,
.uaeh-help-option .uaeh-bach-btn:hover{
  background:#f2ffff !important;
  color:var(--uaeh-accent) !important;
}

.uaeh-help-option a::before,
.uaeh-help-option .btn::before,
.uaeh-help-option .uaeh-bach-btn::before{
  content:"";
  font-weight:900;
}

.uaeh-help-card *{
  opacity:1 !important;
  filter:none !important;
}

.uaeh-help-card img{
  opacity:.20 !important;
  max-width:220px !important;
}

@media (max-width:768px){
  .uaeh-help-card h3{font-size:1.65rem !important;}
  .uaeh-help-option{padding:18px 16px 16px 76px !important; min-height:auto !important;}
}

.uaeh-constancia-strip a,
.uaeh-help-card a{
  white-space:normal !important;
}