/* AWS User Group El Progreso — Styles */
:root {
  --bg:        #0d1117;
  --surface:   #131a24;
  --surface2:  #1a2332;
  --purple:    #8b5cf6;
  --purple2:   #a78bfa;
  --purple-dim: rgba(139,92,246,.15);
  --orange:    #FF9900;
  --orange2:   #ffb84d;
  --text:      #e8edf3;
  --muted:     #6b7a8d;
  --radius:    14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%,  rgba(139,92,246,.13) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 90% 90%,  rgba(255,153,0,.07)  0%, transparent 60%),
    radial-gradient(ellipse 30% 25% at 10% 80%,  rgba(139,92,246,.07) 0%, transparent 60%);
}

.star {
  position: fixed; border-radius: 50%;
  background: rgba(255,255,255,.55);
  animation: twk var(--t) ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes twk { from { opacity:.05 } to { opacity:.75 } }

.plus-deco {
  position: fixed; pointer-events: none;
  animation: plusFloat var(--t2) ease-in-out infinite alternate;
  opacity: .18;
}
@keyframes plusFloat {
  from { transform: translate(0,0) rotate(0deg); opacity:.12; }
  to   { transform: translate(4px,-6px) rotate(5deg); opacity:.28; }
}

main {
  position: relative; z-index: 1;
  max-width: 460px; margin: 0 auto;
  padding: 52px 20px 80px;
  display: flex; flex-direction: column; align-items: center;
}

/* ── LOGO ── */
.logo-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: logoPulse 4s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 14px rgba(139,92,246,.4));
}
.logo-img {
  width: 110px;
  height: 110px;
  max-width: 110px;
  max-height: 110px;
  object-fit: contain;
  display: block;
  position: static;
}
@keyframes logoPulse {
  from { filter: drop-shadow(0 0 8px rgba(139,92,246,.3)); transform: scale(1); }
  to   { filter: drop-shadow(0 0 20px rgba(139,92,246,.6)) drop-shadow(0 0 6px rgba(255,153,0,.25)); transform: scale(1.02); }
}

/* ── TEXTO ── */
.profile-name {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.4px;
  text-align: center; line-height: 1.2; margin-bottom: 6px; color: #fff;
}
.profile-name span { color: var(--orange); }
.profile-tag {
  font-family: 'Space Mono', monospace;
  font-size: .68rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--purple2); margin-bottom: 12px;
}
.profile-bio {
  font-size: .875rem; color: var(--muted); text-align: center;
  line-height: 1.65; max-width: 330px; margin-bottom: 38px; font-weight: 300;
}

/* ── BADGES ── */
.badges {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 38px;
}
.badge {
  font-size: .7rem; font-family: 'Space Mono', monospace;
  padding: 4px 12px; border-radius: 99px; font-weight: 700; letter-spacing: .5px;
}
.badge-purple { background: rgba(139,92,246,.15); border: 1px solid rgba(139,92,246,.35); color: var(--purple2); }
.badge-orange { background: rgba(255,153,0,.12);  border: 1px solid rgba(255,153,0,.3);   color: var(--orange2); }
.badge-blue   { background: rgba(99,179,237,.1);  border: 1px solid rgba(99,179,237,.25); color: #63b3ed; }

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: .62rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px; align-self: flex-start;
}

.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,.3), rgba(255,153,0,.2), transparent);
  margin: 28px 0;
}

/* ── LINK CARDS ── */
.links-group { width: 100%; display: flex; flex-direction: column; gap: 9px; }

.link-card {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid rgba(139,92,246,.15);
  text-decoration: none; color: var(--text);
  transition: transform .18s, border-color .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.link-card::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--purple), var(--orange));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .25s ease;
}
.link-card:hover::after { transform: scaleY(1); }
.link-card:hover {
  transform: translateX(4px);
  border-color: rgba(139,92,246,.35);
  box-shadow: 0 4px 24px rgba(139,92,246,.1);
}
.link-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.link-text { flex: 1; }
.link-title { font-weight: 700; font-size: .88rem; }
.link-desc  { font-size: .72rem; color: var(--muted); margin-top: 2px; font-weight: 300; }
.link-arr   { font-size: .75rem; color: rgba(139,92,246,.5); transition: all .2s; }
.link-card:hover .link-arr { color: var(--orange); transform: translateX(3px); }

.ic-meetup   { background: rgba(232,64,68,.12);   color: #f05a5e; }
.ic-linkedin { background: rgba(10,102,194,.12);  color: #4da3ff; }
.ic-whatsapp { background: rgba(37,211,102,.12);  color: #25d366; }
.ic-instagram{ background: rgba(225,48,108,.12);  color: #f06292; }
.ic-youtube  { background: rgba(255,0,0,.12);     color: #ff5252; }
.ic-tiktok   { background: rgba(255,255,255,.08); color: #fff; }

/* ── FORM CARDS ── */
.form-card {
  width: 100%; border-radius: var(--radius);
  background: var(--surface); border: 1px solid rgba(139,92,246,.18);
  margin-bottom: 10px; overflow: hidden; transition: border-color .2s;
}
.form-card:hover { border-color: rgba(139,92,246,.35); }

.form-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; cursor: pointer; user-select: none;
}
.form-card-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.fic-volunteer { background: rgba(139,92,246,.15); color: var(--purple2); }
.fic-speaker   { background: rgba(255,153,0,.12);  color: var(--orange); }

.form-card-info { flex: 1; }
.form-card-title { font-weight: 700; font-size: .88rem; }
.form-card-sub   { font-size: .72rem; color: var(--muted); margin-top: 2px; font-weight: 300; }

.form-toggle-btn {
  border-radius: 8px; padding: 6px 14px; flex-shrink: 0;
  font-family: 'Outfit', sans-serif; font-size: .78rem; font-weight: 700;
  cursor: pointer; transition: all .18s; letter-spacing: .3px;
  border: 1px solid; white-space: nowrap;
}
.btn-vol { background: var(--purple-dim); border-color: rgba(139,92,246,.4); color: var(--purple2); }
.btn-vol:hover { background: rgba(139,92,246,.25); }
.btn-spk { background: rgba(255,153,0,.1); border-color: rgba(255,153,0,.35); color: var(--orange); }
.btn-spk:hover { background: rgba(255,153,0,.22); }

.form-body {
  max-height: 0; overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1), padding .3s;
  padding: 0 16px; border-top: 0px solid rgba(139,92,246,.12);
}
.form-body.open {
  max-height: 900px; padding: 18px 16px 20px; border-top-width: 1px;
}

/* ── FIELDS ── */
.field { margin-bottom: 13px; }
.field label {
  display: block; font-size: .7rem; font-weight: 700;
  color: var(--muted); margin-bottom: 6px;
  letter-spacing: .8px; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px; padding: 11px 13px;
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: .875rem;
  font-weight: 400; outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,.12);
}
.field textarea { resize: vertical; min-height: 80px; }
.field select option { background: #1a2332; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.check-row {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px;
}
.check-row input[type=checkbox] { margin-top: 4px; accent-color: var(--purple); flex-shrink: 0; }
.check-row label {
  font-size: .76rem; color: var(--muted); line-height: 1.5;
  text-transform: none; font-weight: 300; letter-spacing: 0;
}

.btn-submit {
  width: 100%; padding: 12px; border: none; border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-size: .9rem; font-weight: 700;
  cursor: pointer; letter-spacing: .3px; transition: opacity .2s, transform .15s;
}
.btn-submit-vol {
  background: linear-gradient(90deg, var(--purple), #7c3aed);
  color: #fff; box-shadow: 0 4px 20px rgba(139,92,246,.3);
}
.btn-submit-spk {
  background: linear-gradient(90deg, var(--orange), var(--orange2));
  color: #000; box-shadow: 0 4px 20px rgba(255,153,0,.25);
}
.btn-submit:hover  { opacity: .9; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: .45; cursor: not-allowed; }

.form-msg {
  font-size: .78rem; text-align: center; margin-top: 10px;
  padding: 9px 12px; border-radius: 8px; display: none;
}
.form-msg.success { display:block; background:rgba(37,211,102,.08); border:1px solid rgba(37,211,102,.25); color:#4ade80; }
.form-msg.error   { display:block; background:rgba(255,80,80,.08);  border:1px solid rgba(255,80,80,.25);  color:#f87171; }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1; text-align: center;
  font-family: 'Space Mono', monospace; font-size: .62rem;
  color: var(--muted); padding: 24px 20px; letter-spacing: 1px;
}
footer a { color: var(--purple2); text-decoration: none; }
footer a:hover { color: var(--orange); }

/* ── ANIMATIONS ── */
.fade-up { opacity:0; transform:translateY(16px); animation:fadeUp .5s ease forwards; }
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }
.d1{animation-delay:.08s} .d2{animation-delay:.16s} .d3{animation-delay:.24s}
.d4{animation-delay:.32s} .d5{animation-delay:.40s} .d6{animation-delay:.48s}
.d7{animation-delay:.56s} .d8{animation-delay:.64s} .d9{animation-delay:.72s}

@media (max-width:480px) {
  main { padding: 36px 14px 60px; }
  .profile-name { font-size: 1.3rem; }
  .field-row { grid-template-columns: 1fr; }
}
