/* =====================================================
   RESET + VARIABLES
   ===================================================== */

:root {
  --bg-color: #ffffff;
  --card-bg: #ffffff;

  --text-main: #0f172a;
  --text-muted: #475569;

  --accent: #1e3a8a;
  --accent-contrast: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;

  --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.12);

  --max-width: 420px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.4;
}

/* =====================================================
   PAGE LAYOUT
   ===================================================== */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px 80px;
  text-align: center;
}

/* =====================================================
   PROFILE
   ===================================================== */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}

/* =====================================================
   AVATAR (CÍRCULO REAL + BADGE)
   ===================================================== */

.avatar {
  width: 120px;
  height: 120px;

  position: relative;
  display: inline-block;

  border-radius: 50%;

  /* 🔴 CLAVE: permite que el badge sobresalga */
  overflow: visible;

  background: #ffffff;
  border: 2px solid #e5e7eb;
  box-shadow: var(--shadow-soft);

  margin-bottom: 18px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  border-radius: 50%;
}

/* ---------- BADGE (branding, NO clickeable) ---------- */

.avatar-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: #ffffff;
  border: 3px solid #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);

  z-index: 10; /* 🔴 CLAVE: encima del avatar */
}

.avatar-badge img {
  width: 100%;
  height: 100%;

  object-fit: cover;      /* 🔑 llena todo el badge */
  border-radius: 50%;     /* 🔑 mantiene círculo */
  display: block;
}





/* =====================================================
   NAME + DESCRIPTION
   ===================================================== */

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 6px 0 0;
}

.profile-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 300px;
  margin: 4px auto 0;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.buttons {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.btn {
  display: block;
  width: 100%;
  padding: 16px 18px;

  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;

  font-size: 0.95rem;
  font-weight: 600;

  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;

  box-shadow: var(--shadow-soft);
}

/* ---------- PRIMARY ---------- */

.btn.primary {

  background: var(--accent);

  color: var(--accent-contrast);

  font-size: 1rem;

  letter-spacing: 0.2px;

}


.btn.primary:hover {
  background: #1e40af;
}

/* ---------- SECONDARY ---------- */

.btn.secondary {
  background: #f1f5f9;
  color: var(--text-main);
}

.btn.secondary:hover {
  background: #e2e8f0;
}


.btn:hover {

  transform: translateY(-2px);

  box-shadow: 0 10px 22px rgba(0,0,0,0.18);

}


/* ---------- ACTIVE ---------- */

.btn:active {
  transform: scale(0.97);
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  margin-top: 36px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =====================================================
   LAYOUT MODES (clean | hero)
   ===================================================== */

/* ---------- CLEAN ---------- */

body.layout-clean {
  background: var(--bg-color);
}

body.layout-clean .profile {
  margin-top: 0;
}


/* ---------- HERO ---------- */

body.layout-hero .page {
  padding-top: 72px; /* 🔑 da aire al hero */
}

body.layout-hero .profile {
  margin-top: -24px; /* 🔑 ajuste fino (antes -32 / -60) */
}



/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (min-width: 768px) {
  .page {
    max-width: 480px;
  }
}

/* =====================================================
   CONTACT BUTTON UNLOCK (VCARD)
   ===================================================== */

.btn-contact {

  margin-top: 16px;

  background: #16a34a;
  color: white;

  font-size: 1rem;
  font-weight: 700;

  padding: 18px 20px;

  border-radius: 16px;

  box-shadow: 0 10px 22px rgba(0,0,0,0.25);

  animation: pulseContact 2s infinite;

}

@keyframes pulseContact {

  0% { transform: scale(1); }

  50% { transform: scale(1.05); }

  100% { transform: scale(1); }

}

/* =====================================================
   LEAD FORM PREMIUM
   ===================================================== */

.lead-form-card {

  margin-top: 18px;

  padding: 16px;

  border-radius: 14px;

  background: rgba(15, 23, 42, 0.04);

  backdrop-filter: blur(6px);

}

/* INPUTS */

.lead-form-card input {

  width: 100%;

  padding: 12px 14px;

  border-radius: 10px;

  border: 1px solid rgba(15,23,42,0.12);

  background: rgba(255,255,255,0.85);

  color: var(--text-main);

  margin-bottom: 10px;

  font-size: 14px;

}

.lead-form-card input::placeholder {

  color: var(--text-muted);

}

.lead-form-card input:focus {

  outline: none;

  border-color: var(--accent);

  box-shadow: 0 0 0 2px rgba(30,58,138,0.15);

}
