:root {
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --primary: #871e44;
  --primary-dark: #621130;
  --gold: #bc955c;
  --gold-light: #e4bc7a;

  --text-main: #1e293b;
  --text-muted: #64748b;

  --surface: rgba(255,255,255,.96);
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 20% 20%, rgba(176,35,88,.95), transparent 38%),
    radial-gradient(circle at 85% 80%, rgba(188,149,92,.22), transparent 28%),
    linear-gradient(135deg, #25050f 0%, #6a1738 48%, #100208 100%);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 20px;
  color: var(--text-main);
}

.welcome-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 980px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 30px 60px rgba(0,0,0,.3),
    0 10px 25px rgba(0,0,0,.15);
}

.accent-bar {
  height: 8px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--gold),
    var(--primary)
  );
}

.card-content {
  display: grid;
  gap: 24px;
  padding: 40px 24px;
  grid-template-columns: 1fr;
  grid-template-areas:
    "avatar"
    "main"
    "socials";
  justify-items: center;
  text-align: center;
}

.card-avatar {
  grid-area: avatar;
  margin-bottom: 12px;
}

.card-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.card-socials {
  grid-area: socials;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 24px;
  margin-top: 8px;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
}

.pulse-ring {
  position: relative;
}

.pulse-ring::before,
.pulse-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.pulse-ring::before {
  inset: -8px;
  border: 2px solid rgba(188,149,92,.5);
  animation: pulseRing 2.5s ease-out infinite;
}

.pulse-ring::after {
  inset: -16px;
  border: 2px solid rgba(188,149,92,.2);
  animation: pulseRing 2.5s ease-out infinite .8s;
}

.doctor-avatar {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background:
    #eae5df url("/images/EleazarRubio.jpg")
    center top / cover no-repeat;
  border: 4px solid var(--gold);
  box-shadow: 0 16px 32px rgba(135,30,68,.15);
}

.social-title {
  color: #94a3b8;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 16px;
  text-align: center;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.socialContainer {
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all .3s cubic-bezier(.16,1,.3,1);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
  -webkit-tap-highlight-color: transparent;
}

.socialSvg {
  width: 22px;
  transition: all .3s;
}

.socialSvg path {
  fill: #64748b;
  transition: fill .3s;
}

@media (hover: hover) {
  .containerFacebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 8px 20px rgba(24,119,242,.3);
  }

  .containerTiktok:hover {
    background: #000;
    border-color: #000;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
  }

  .socialContainer:hover .socialSvg path {
    fill: #fff;
  }
}

.socialContainer:active {
  transform: scale(.9);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -.5px;
  color: #0f172a;
  line-height: 1.25;
}

.subtitle {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  margin: 0 0 20px;
}

.divider {
  width: 60px;
  height: 3px;
  margin: 0 auto 24px;
  background: var(--gold);
  border-radius: 2px;
}

.welcome-message {
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 28px;
}

.welcome-message strong {
  color: var(--primary);
  font-weight: 800;
}

.disclaimer-box {
  background: #fdfaf6;
  border: 1px solid rgba(188,149,92,.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 32px;
  text-align: left;
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.disclaimer-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disclaimer-text {
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.5;
  margin: 0;
}

.disclaimer-text strong {
  color: #475569;
}

.cta-container {
  margin-top: auto;
  width: 100%;
}

.btn-enter {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 58px;

  padding: 0;
  border: none;
  outline: none;

  background: #871e44;
  text-decoration: none;
  cursor: pointer;

  font-family: inherit;
  overflow: hidden;
  border-radius: 17px;

  box-shadow:
    0 8px 20px rgba(135, 30, 68, .25);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.btn-enter::before {
  content: "";

  position: absolute;
  inset: 0;

  width: 0%;

  background: linear-gradient(
    90deg,
    #d85a82 0%,
    #b83262 45%,
    #5a0b2b 100%
  );

  transition:
    width .55s cubic-bezier(.65, 0, .076, 1);

  z-index: 0;
}

.btn-enter::after {
  content: "";

  position: absolute;

  left: 22px;
  top: 50%;

  width: 12px;
  height: 12px;

  border-top: 2px solid #fff;
  border-right: 2px solid #fff;

  transform:
    translateY(-50%)
    rotate(45deg);

  z-index: 2;

  transition:
    left .55s cubic-bezier(.65, 0, .076, 1);
}

.btn-enter-text {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding-left: 15px;

  color: #fff;

  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;

  z-index: 2;

  transition:
    transform .55s cubic-bezier(.65, 0, .076, 1);
}

.btn-enter:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 30px rgba(135, 30, 68, .42);
}

.btn-enter:hover::before {
  width: 100%;
}

.btn-enter:hover::after {
  left: calc(100% - 31px);
}

.btn-enter:hover .btn-enter-text {
  transform: translateX(-5px);
}

.btn-enter:active {
  transform: translateY(0) scale(.98);

  box-shadow:
    0 5px 15px rgba(135, 30, 68, .25);
}

@media (max-width: 480px) {

  .btn-enter {
    height: 54px;
    border-radius: 16px;
  }

  .btn-enter::after {
    left: 19px;
  }

  .btn-enter-text {
    font-size: .95rem;
  }

  .btn-enter:hover::after {
    left: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .btn-enter,
  .btn-enter::before,
  .btn-enter::after,
  .btn-enter-text {
    transition: none;
  }
}

.trust-indicator {
  margin-top: 16px;
  color: #94a3b8;
  font-size: .8rem;
  font-weight: 600;
}

.card-footer {
  padding: 20px 32px;
  border-top: 1px solid rgba(0,0,0,.04);
  text-align: center;
  background: #eeeeee;
}

.card-footer p {
  color: #64748b;
  font-size: .75rem;
  letter-spacing: .05em;
  margin: 0;
  font-weight: 600;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: .3;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up-1 {
  animation: fadeUp .6s ease both .1s;
}

.fade-up-2 {
  animation: fadeUp .6s ease both .25s;
}

.fade-up-3 {
  animation: fadeUp .6s ease both .4s;
}

@media (min-width: 768px) {
  .card-content {
    grid-template-columns: 240px 1fr;
    grid-template-areas:
      "avatar main"
      "socials main";
    padding: 50px 48px 60px;
    gap: 32px 50px;
    justify-items: start;
    text-align: left;
  }

  .card-avatar {
    margin: 0;
    margin-top: 35px;
    justify-self: center;
  }

  .card-main {
    align-items: flex-start;
  }

  .card-socials {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    width: 100%;
    align-items: center;
    justify-self: center;
  }

  .divider {
    margin-left: 0;
  }

  .trust-indicator {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .doctor-avatar {
    width: 140px;
    height: 140px;
  }

  .welcome-card {
    border-radius: 20px;
  }

  .card-content {
    padding: 32px 20px;
  }

  .disclaimer-box {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
