/* =========================================================
   Alondra Villanueva — Perfil personal
   Dirección visual: glassmorphism sobre fondo "mesh" degradado
   (violeta / rosa / azul), inspirado en UI de apps móviles.

   Paleta:
     --violet   #7c5cff  acento primario
     --orchid   #b478f2  transición violeta -> rosa
     --rose     #f472b6  acento cálido / badges
     --sky      #7dd3fc  acento frío / detalle
     --bg-deep  #140f24  base detrás del degradado
     --white           texto principal sobre vidrio
     --white-70        texto secundario

   Tipografía:
     Display -> "Plus Jakarta Sans" (nombre, botones, chips)
     Cuerpo  -> "Inter" (descripciones, footer)
   ========================================================= */

:root {
  --violet: #7c5cff;
  --orchid: #b478f2;
  --rose: #f472b6;
  --sky: #7dd3fc;
  --bg-deep: #140f24;

  --white: #ffffff;
  --white-85: rgba(255, 255, 255, 0.85);
  --white-70: rgba(255, 255, 255, 0.68);
  --white-45: rgba(255, 255, 255, 0.45);

  --glass-fill: rgba(255, 255, 255, 0.10);
  --glass-fill-strong: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-dark: rgba(18, 12, 34, 0.38);
  --glass-dark-strong: rgba(18, 12, 34, 0.55);

  --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--white);
  font-family: var(--font-body);
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* ===================== FONDO / MESH GRADIENT ===================== */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #1b1330 0%, #241a3d 45%, #2a1a35 100%);
}

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

.blob-1 {
  width: 60vw;
  height: 60vw;
  max-width: 520px;
  max-height: 520px;
  top: -18%;
  left: -15%;
  background: radial-gradient(circle, var(--violet), transparent 70%);
  animation: float-a 16s ease-in-out infinite;
}

.blob-2 {
  width: 55vw;
  height: 55vw;
  max-width: 480px;
  max-height: 480px;
  top: 15%;
  right: -18%;
  background: radial-gradient(circle, var(--rose), transparent 70%);
  animation: float-b 18s ease-in-out infinite;
}

.blob-3 {
  width: 65vw;
  height: 65vw;
  max-width: 560px;
  max-height: 560px;
  bottom: -22%;
  left: 5%;
  background: radial-gradient(circle, var(--sky), transparent 70%);
  animation: float-c 20s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 8%) scale(1.08); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, 6%) scale(1.05); }
}

@keyframes float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, -6%) scale(1.1); }
}

/* ===================== LAYOUT / GLASS BASE ===================== */

.profile {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 48px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.glass-panel {
  width: 100%;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 8px 40px rgba(10, 5, 25, 0.35);
  padding: 36px 26px 30px;
}

/* ===================== HERO / AVATAR ===================== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 18px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.55);
  background: var(--glass-fill-strong);
}

.badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--violet));
  border: 2.5px solid var(--bg-deep);
  box-shadow: 0 0 18px rgba(244, 114, 182, 0.55);
}

.name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.3px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--white-70);
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
}

.tag {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--white-85);
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border);
  padding: 7px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.bio {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--white-70);
  max-width: 300px;
}

/* ===================== LINKS / REDES ===================== */

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

.section-title {
  margin: 0 0 4px 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-45);
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 20px;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.link-btn:hover,
.link-btn:focus-visible {
  background: var(--glass-dark-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(10, 5, 25, 0.4);
}

.link-btn:focus-visible {
  outline: 2px solid var(--white-70);
  outline-offset: 2px;
}

.link-btn .icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.link-btn .icon svg {
  width: 19px;
  height: 19px;
}

.icon-fb   { background: linear-gradient(135deg, #6d8cff, var(--violet)); }
.icon-ig   { background: linear-gradient(135deg, var(--rose), var(--orchid)); }
.icon-tt   { background: linear-gradient(135deg, #2b2540, #524a6e); }
.icon-of   { background: linear-gradient(135deg, var(--sky), var(--violet)); }
.icon-mail { background: linear-gradient(135deg, var(--orchid), var(--rose)); }

.link-btn .label {
  flex: 1 1 auto;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-btn .chev {
  flex: 0 0 auto;
  color: var(--white-45);
  font-size: 16px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.link-btn:hover .chev {
  color: var(--white);
  transform: translateX(3px);
}

/* ===================== PORTAFOLIO / SLIDER ===================== */

.portfolio {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio .section-title {
  align-self: flex-start;
  margin-bottom: 16px;
}

.slider {
  position: relative;
  width: 100%;
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  border-radius: 24px;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border);
}

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

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-dark-strong);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-arrow:hover {
  background: rgba(124, 92, 255, 0.45);
  transform: translateY(-50%) scale(1.06);
}

.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }

.dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

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

.dot.active {
  background: var(--white);
  transform: scale(1.3);
}

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

.site-footer {
  text-align: center;
  color: var(--white-45);
  font-size: 12.5px;
  line-height: 1.8;
  padding-top: 6px;
}

.site-footer a {
  color: var(--white-85);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

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

@media (max-width: 380px) {
  .name { font-size: 24px; }
  .profile { padding: 36px 16px 32px; }
  .glass-panel { padding: 28px 18px 24px; }
}

/* Respeta preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  html { scroll-behavior: auto; }
}
