* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  overflow: hidden;
  background: #f8fafc;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.1); }
}
@keyframes pulseAvatar {
  0%, 100% { box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
  50% { box-shadow: 0 10px 50px rgba(99, 102, 241, .45); }
}
@keyframes iaGlow {
  0%, 100% { box-shadow: 0 8px 26px rgba(99, 102, 241, .35); }
  50% { box-shadow: 0 10px 40px rgba(99, 102, 241, .65); }
}

.icon { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 13px; height: 13px; }
.icon--md { width: 24px; height: 24px; }
.icon--lg { width: 36px; height: 36px; }

/* ---------- Layout ---------- */
.main {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex .4s ease;
}
.panel:hover, .panel:focus-visible { flex: 1.05; }
.panel:focus-visible { outline: 2px solid #6366f1; outline-offset: -4px; }

.panel--dark { background: #0f172a; }
.panel--light { background: #f8fafc; }

.panel__content {
  text-align: center;
  z-index: 1;
  animation: fadeInUp .8s ease-out;
  max-width: 320px;
}

.panel__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 2px solid;
  transition: transform .3s ease, box-shadow .3s ease;
}
.panel:hover .panel__icon { transform: scale(1.1); box-shadow: 0 0 30px rgba(99, 102, 241, .35); }
.panel__icon--dark { border-color: #3b82f6; }
.panel__icon--light { border-color: #6366f1; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .7rem;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
}
.badge-pill--dark { border: 1px solid rgba(99, 102, 241, .5); background: rgba(99, 102, 241, .14); color: #c7d2fe; }
.badge-pill--light { border: 1px solid #6366f1; background: rgba(99, 102, 241, .1); color: #4f46e5; }

.panel__title { font-size: 1.75rem; font-weight: 700; margin-bottom: .6rem; }
.panel__title--dark { color: #fff; }
.panel__title--light { color: #1e293b; }

.panel__text { font-size: .95rem; line-height: 1.6; margin-bottom: 1.15rem; }
.panel__text--dark { color: #94a3b8; }
.panel__text--light { color: #64748b; }

.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.tag { font-size: .72rem; font-weight: 600; padding: .32rem .7rem; border-radius: 999px; white-space: nowrap; }
.tag--dark { border: 1px solid rgba(59, 130, 246, .35); background: rgba(59, 130, 246, .08); color: #93c5fd; }
.tag--light { border: 1px solid #e2e8f0; background: #fff; color: #64748b; }
.tag--accent { border-color: #6366f1; background: rgba(99, 102, 241, .1); color: #4f46e5; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .6;
  pointer-events: none;
}
.blob--1 {
  width: 300px; height: 300px;
  background: linear-gradient(135deg, #c7d2fe, #a5b4fc);
  top: -100px; right: -50px;
  animation: floatBlob 8s ease-in-out infinite;
}
.blob--2 {
  width: 250px; height: 250px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  bottom: -80px; right: 50px;
  animation: floatBlob 10s ease-in-out infinite reverse;
}

/* ---------- Center avatar ---------- */
.avatar-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ia-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
  padding: .45rem .95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .03em;
  white-space: nowrap;
  animation: iaGlow 3s ease-in-out infinite;
}

.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  animation: pulseAvatar 3s ease-in-out infinite;
}
.avatar-circle:hover, .avatar-circle:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 15px 50px rgba(99, 102, 241, .5);
}
.avatar-circle:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }

.avatar-circle__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(180deg, #fef9e7 0%, #fef3c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar-circle__inner img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.cta-bubble {
  margin-top: .85rem;
  padding: .5rem 1rem;
  font-size: .85rem;
  color: #1e293b;
  background: #fff;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  white-space: nowrap;
}
.cta-bubble::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 6px solid #fff;
}
.cta-bubble:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }

/* ---------- Footer logo ---------- */
.site-footer {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
}
.site-footer__logo {
  height: 40px;
  opacity: .8;
  transition: opacity .3s ease, transform .3s ease;
  cursor: pointer;
}
.site-footer__logo:hover { opacity: 1; transform: scale(1.05); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .8);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s ease, visibility .3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  background: #fff;
  border-radius: 24px;
  padding: 3rem 2.5rem 0;
  max-width: 430px;
  width: 90%;
  text-align: center;
  transition: transform .3s ease;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .3);
  border-top: 4px solid #6366f1;
  transform: translateY(30px) scale(.95);
}
.modal-overlay.is-open .modal-card { transform: translateY(0) scale(1); }

.modal-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: linear-gradient(180deg, #fef9e7, #fef3c7);
  border: 4px solid #3b82f6;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(99, 102, 241, .2);
}
.modal-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.modal-card__title { font-size: 1.75rem; font-weight: 700; color: #1e293b; margin-bottom: .75rem; }
.modal-card__text { font-size: 1rem; color: #64748b; margin-bottom: 2rem; line-height: 1.6; }

.modal-card__actions { display: flex; flex-direction: column; gap: .875rem; }
.modal-card__row { display: flex; gap: .875rem; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--half { flex: 1; }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 211, 102, .4); }
.btn--neutral { background: #f1f5f9; color: #1e293b; border: 1px solid #e2e8f0; }
.btn--neutral:hover { transform: translateY(-2px); background: #e2e8f0; box-shadow: 0 8px 25px rgba(0, 0, 0, .1); }
.btn--linkedin { background: #0077b5; color: #fff; }
.btn--linkedin:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 119, 181, .4); }

.modal-card__footer {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #f8fafc;
  margin-left: -2.5rem;
  margin-right: -2.5rem;
  border-radius: 0 0 24px 24px;
}
.modal-card__close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: color .2s ease;
}
.modal-card__close:hover { color: #1e293b; }

/* ---------- Responsive: stack panels on small screens ---------- */
@media (max-width: 768px) {
  body { overflow-y: auto; }

  .main {
    flex-direction: column;
    min-height: auto;
  }

  .panel {
    flex: none;
    order: 1;
    width: 100%;
    min-height: 60vh;
    padding: 3rem 1.5rem 4rem;
  }
  .panel:hover, .panel:focus-visible { flex: none; }
  .panel--dark { order: 1; }
  .panel--light { order: 3; padding-top: 4rem; }

  .avatar-wrap {
    position: relative;
    order: 2;
    left: auto;
    top: auto;
    transform: none;
    padding: 2rem 0;
    background: #f8fafc;
    width: 100%;
  }

  .site-footer { bottom: 1rem; right: 1rem; }
  .site-footer__logo { height: 32px; }
}

@media (max-width: 420px) {
  .modal-card { padding: 2.5rem 1.5rem 0; }
  .modal-card__footer { margin-left: -1.5rem; margin-right: -1.5rem; }
  .btn { font-size: 1rem; padding: .9rem 1rem; }
}
