/* ==========================================================================
   FERNANDA OGUSHI — Link in bio
   Sistema de diseño: "Aurora de cristal"
   - Fondo: violeta profundo con niebla aurora (rosa / lavanda / azul)
   - Componentes: pastillas y tarjetas de vidrio (glassmorphism)
   - Firma: anillo cónico giratorio detrás de la foto de perfil
   ========================================================================== */

:root {
  /* Paleta */
  --bg-deep:        #150c28;
  --bg-deep-2:      #1f1338;
  --aurora-pink:    #f45fa0;
  --aurora-lavender:#a98ae8;
  --aurora-blue:    #6e8df7;
  --aurora-magenta: #d94fc4;

  --glass:          rgba(255, 255, 255, 0.09);
  --glass-strong:   rgba(255, 255, 255, 0.16);
  --glass-border:   rgba(255, 255, 255, 0.22);
  --glass-border-soft: rgba(255, 255, 255, 0.12);

  --text-primary:   #fbf7ff;
  --text-muted:     rgba(251, 247, 255, 0.68);
  --text-faint:     rgba(251, 247, 255, 0.44);

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body:    "Inter", "Segoe UI", sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-full: 999px;

  --shadow-glass: 0 8px 32px rgba(10, 4, 30, 0.45);
  --focus-ring: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 0 6px var(--aurora-pink);
}

/* ---------- Reset básico ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* Foco visible accesible en toda la página */
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-md);
}

/* ---------- Fondo aurora ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(110, 141, 247, 0.25), transparent 45%),
    radial-gradient(circle at 85% 92%, rgba(244, 95, 160, 0.22), transparent 50%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-deep-2) 55%, #120a22 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.blob--a {
  width: 55vmax;
  height: 55vmax;
  top: -20%;
  left: -18%;
  background: radial-gradient(circle, var(--aurora-blue), transparent 70%);
  animation: drift-a 26s ease-in-out infinite;
}

.blob--b {
  width: 48vmax;
  height: 48vmax;
  bottom: -22%;
  right: -15%;
  background: radial-gradient(circle, var(--aurora-pink), transparent 70%);
  animation: drift-b 32s ease-in-out infinite;
}

.blob--c {
  width: 38vmax;
  height: 38vmax;
  top: 35%;
  left: 55%;
  background: radial-gradient(circle, var(--aurora-lavender), transparent 70%);
  animation: drift-c 22s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(6%, 8%) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-7%, -5%) scale(1.05); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-5%, 6%) scale(0.95); }
}

/* ---------- Tarjeta principal ---------- */
.card {
  width: 100%;
  max-width: 420px;
  margin: 48px auto;
  padding: 40px 28px 32px;
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: var(--shadow-glass);
  position: relative;
}

/* ---------- Perfil ---------- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.profile__ring {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

/* Firma visual: anillo cónico giratorio, como un halo de aurora */
.profile__ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--aurora-pink),
    var(--aurora-lavender),
    var(--aurora-blue),
    var(--aurora-magenta),
    var(--aurora-pink)
  );
  animation: spin 9s linear infinite;
  filter: blur(1px);
}

.profile__ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg-deep-2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.profile__photo {
  position: relative;
  z-index: 1;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(21, 12, 40, 0.9);
}

.profile__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.profile__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 30ch;
}

.profile__desc .dot,
.profile__desc .cross {
  color: var(--aurora-pink);
  padding: 0 2px;
}

/* ---------- Enlaces / pastillas de vidrio ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.link-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.link-pill:hover {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
}

.link-pill:active { transform: translateY(0); }

.link-pill__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aurora-pink), var(--aurora-blue));
  color: #fff;
}

.link-pill__icon svg { width: 18px; height: 18px; }

.link-pill__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  flex-grow: 1;
  text-align: left;
}

.link-pill__arrow {
  color: var(--text-faint);
  font-size: 1rem;
}

.link-pill--contact .link-pill__icon {
  background: linear-gradient(135deg, var(--aurora-lavender), var(--aurora-magenta));
}

/* ---------- Portafolio ---------- */
.portfolio__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
  text-align: left;
}

.carousel {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border-soft);
  background: rgba(0, 0, 0, 0.15);
  touch-action: pan-y;
}

.carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel__slide {
  min-width: 100%;
  margin: 0;
  aspect-ratio: 4 / 5;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(21, 12, 40, 0.45);
  color: #fff;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel__arrow:hover {
  background: rgba(21, 12, 40, 0.7);
}

.carousel__arrow svg { width: 20px; height: 20px; }

.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }

.carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.carousel__dot[aria-selected="true"] {
  background: var(--aurora-pink);
  width: 20px;
  border-radius: var(--radius-full);
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: 420px;
  margin: 0 auto 32px;
  padding: 0 28px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.site-footer p { margin: 4px 0; }

.site-footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover { color: var(--text-primary); }

/* ---------- Responsivo ---------- */
@media (min-width: 480px) {
  .card { padding: 48px 36px 36px; }
}

@media (max-width: 360px) {
  .card { margin: 24px auto; padding: 32px 20px 24px; }
}

/* ---------- Preferencia de movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob,
  .profile__ring::before {
    animation: none;
  }
  .carousel__track {
    transition: none;
  }
}
