/* ==========================================================================
   Mauricio Paz - Mobile Landing Page Stylesheet
   Luxury Dark Neumorphic & Glassmorphism Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #0c0d11;
  --bg-gradient-top: #15171e;
  --bg-gradient-bottom: #07080b;

  --gold-accent: #e2b97f;
  --gold-glow: rgba(226, 185, 127, 0.25);
  --gold-rim: linear-gradient(135deg, #f5d49f 0%, #b88646 50%, #e0b06b 100%);

  --text-primary: #ffffff;
  --text-secondary: #a2a8b6;
  --text-muted: #6b7280;

  /* Card Backgrounds & Gradients */
  --card-dark-bg: linear-gradient(180deg, #22252e 0%, #15171d 100%);
  --card-dark-border: rgba(255, 255, 255, 0.09);
  --card-dark-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 4px 8px -2px rgba(0, 0, 0, 0.4);
  --card-inset-highlight: inset 0 1px 1px rgba(255, 255, 255, 0.18), inset 0 -1px 1px rgba(0, 0, 0, 0.5);

  --card-fb-bg: linear-gradient(180deg, #183359 0%, #0e1e36 100%);
  --card-fb-border: rgba(56, 128, 238, 0.3);
  --card-fb-shadow: 0 10px 25px -5px rgba(10, 42, 86, 0.5), 0 4px 8px -2px rgba(0, 0, 0, 0.4);

  --card-insta-bg: linear-gradient(135deg, #7c2443 0%, #993352 30%, #582159 70%, #2f1b49 100%);
  --card-insta-border: rgba(230, 80, 115, 0.35);
  --card-insta-shadow: 0 10px 25px -5px rgba(138, 35, 87, 0.45), 0 4px 8px -2px rgba(0, 0, 0, 0.4);

  --card-tiktok-bg: linear-gradient(180deg, #1e2027 0%, #121317 100%);
  --card-tiktok-border: rgba(255, 255, 255, 0.09);
  --card-tiktok-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 4px 8px -2px rgba(0, 0, 0, 0.4);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Base Reset & Mobile Viewport Locking */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-main);
  background-image:
    radial-gradient(circle at 50% 12%, rgba(212, 169, 106, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(30, 41, 59, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-main) 40%, var(--bg-gradient-bottom) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* Ambient Background Vignette & Depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 1;
}

/* Page Layout Container */
.page-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 20px 40px;
}

.landing-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

/* ==========================================================================
   Profile Header & Avatar
   ========================================================================== */

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s var(--ease-spring);
}

.avatar-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Golden Metallic Rim with Specular Highlight */
.avatar-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gold-rim);
  padding: 2.5px;
  box-shadow:
    0 0 20px var(--gold-glow),
    0 8px 24px rgba(0, 0, 0, 0.8),
    inset 0 1px 2px rgba(255, 255, 255, 0.7);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Specular Glint on Top-Right of Avatar Ring */
.avatar-wrapper::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 18px;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 240, 200, 0.4) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 12px;
  box-sizing: border-box;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  display: block;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Profile Title */
.profile-name {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

/* Ornamental Divider with 4-Point Star */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  gap: 12px;
  opacity: 0.85;
}

.divider-line {
  flex: 1;
  height: 1px;
}

.divider-line.left {
  background: linear-gradient(90deg, transparent 0%, rgba(226, 185, 127, 0.5) 100%);
}

.divider-line.right {
  background: linear-gradient(90deg, rgba(226, 185, 127, 0.5) 0%, transparent 100%);
}

.star-icon {
  width: 10px;
  height: 10px;
  color: var(--gold-accent);
  filter: drop-shadow(0 0 4px var(--gold-glow));
  flex-shrink: 0;
}

/* ==========================================================================
   Action Links & Pill Buttons
   ========================================================================== */

.links-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 14px;
}

/* Base Pill Button */
.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 68px;
  padding: 7px 22px 7px 9px;
  border-radius: 9999px;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--card-dark-border);
  box-shadow: var(--card-dark-shadow), var(--card-inset-highlight);
  position: relative;
  cursor: pointer;
  outline: none;
  user-select: none;
  transition: transform 0.22s var(--ease-spring),
    box-shadow 0.22s var(--ease-spring),
    filter 0.22s ease,
    border-color 0.22s ease;
  overflow: hidden;
  animation: fadeInUp 0.7s var(--ease-spring) backwards;
}

/* Staggered entrance animation for each button */
.link-btn:nth-child(1) {
  animation-delay: 0.10s;
}

.link-btn:nth-child(2) {
  animation-delay: 0.18s;
}

.link-btn:nth-child(3) {
  animation-delay: 0.26s;
}

.link-btn:nth-child(4) {
  animation-delay: 0.34s;
}

.link-btn:nth-child(5) {
  animation-delay: 0.42s;
}

/* Tactile Micro-Interactions */
.link-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.link-btn:active {
  transform: scale(0.978) translateY(0);
  filter: brightness(0.95);
}

.link-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(226, 185, 127, 0.4), var(--card-dark-shadow);
}

/* Button Label */
.btn-label {
  flex: 1;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-left: -10px;
  /* Counterbalances chevron spacing for visual centering */
}

/* Chevron Icon */
.chevron-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  transition: transform 0.22s var(--ease-spring), color 0.22s ease;
}

.link-btn:hover .chevron-icon {
  transform: translateX(3px);
  color: rgba(255, 255, 255, 0.9);
}

/* Circular Icon Badges */
.btn-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  background: radial-gradient(circle at 35% 30%, #2b2e38 0%, #17181f 80%, #0d0e12 100%);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.22),
    inset 0 -1px 2px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-icon {
  width: 23px;
  height: 23px;
  color: #e4c48e;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* --------------------------------------------------------------------------
   Button Theming Specifics (Matching Reference Graphic)
   -------------------------------------------------------------------------- */

/* 1. Book a call Button */
.btn-book {
  background: var(--card-dark-bg);
}

.btn-book .btn-badge {
  background: radial-gradient(circle at 35% 30%, #2a2d36 0%, #15161c 80%, #0d0e12 100%);
}

.btn-book .badge-icon {
  color: #e6bd76;
}

/* 2. Add to Contacts Button */
.btn-contacts {
  background: var(--card-dark-bg);
  font-family: inherit;
}

.btn-contacts .btn-badge {
  background: radial-gradient(circle at 35% 30%, #2a2d36 0%, #15161c 80%, #0d0e12 100%);
}

.btn-contacts .badge-icon {
  color: #d6be90;
}

/* 3. Facebook Button */
.btn-facebook {
  background: var(--card-fb-bg);
  border-color: var(--card-fb-border);
  box-shadow: var(--card-fb-shadow), var(--card-inset-highlight);
}

.btn-facebook .fb-badge {
  background: radial-gradient(circle at 35% 30%, #266dd3 0%, #1656b8 60%, #0f3f8c 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(14, 52, 110, 0.6), inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
}

.btn-facebook .fb-icon {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

/* 4. Instagram Button */
.btn-instagram {
  background: var(--card-insta-bg);
  border-color: var(--card-insta-border);
  box-shadow: var(--card-insta-shadow), var(--card-inset-highlight);
}

.btn-instagram .insta-badge {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 12px rgba(180, 36, 110, 0.5), inset 0 1px 1.5px rgba(255, 255, 255, 0.45);
}

.btn-instagram .insta-icon {
  width: 23px;
  height: 23px;
  color: #ffffff;
  stroke: #ffffff;
}

/* 5. TikTok Button */
.btn-tiktok {
  background: var(--card-tiktok-bg);
  border-color: var(--card-tiktok-border);
  box-shadow: var(--card-tiktok-shadow), var(--card-inset-highlight);
}

.btn-tiktok .tiktok-badge {
  background: radial-gradient(circle at 35% 30%, #22242b 0%, #111216 75%, #050608 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-tiktok .tiktok-icon {
  width: 21px;
  height: 21px;
  color: #ffffff;
  filter: drop-shadow(-1.5px -1.5px 0px #00f2fe) drop-shadow(1.5px 1.5px 0px #fe0979);
}

/* ==========================================================================
   Toast Notification for Contact Card
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 9999px;
  background: rgba(25, 28, 36, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 185, 127, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px var(--gold-glow);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  pointer-events: none;
  z-index: 100;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-check {
  width: 18px;
  height: 18px;
  color: var(--gold-accent);
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 380px) {
  .page-container {
    padding: 36px 16px 30px;
  }

  .avatar-wrapper {
    width: 116px;
    height: 116px;
    margin-bottom: 18px;
  }

  .profile-name {
    font-size: 2rem;
  }

  .link-btn {
    height: 62px;
    padding: 6px 18px 6px 8px;
  }

  .btn-badge {
    width: 46px;
    height: 46px;
  }

  .btn-label {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .page-container {
    padding-top: 60px;
  }

  .landing-card {
    max-width: 410px;
  }
}