/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --orange-bg:    #F7931E;
  --orange-deep:  #E8790A;
  --orange-soft:  #FBB25A;
  --cream:        #FDECD3;
  --white:        #FFFFFF;
  --ink:          #221C14;
  --muted:        #7A6F63;

  /* Gradiente "bokeh" cálido para el fondo de las tarjetas */
  --card-bg:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0) 11%),
    radial-gradient(circle at 78% 12%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 9%),
    radial-gradient(circle at 42% 68%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 8%),
    radial-gradient(circle at 88% 62%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 10%),
    radial-gradient(circle at 60% 38%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 7%),
    radial-gradient(circle at 25% 90%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 9%),
    linear-gradient(135deg, #FFC169 0%, #F7931E 45%, #E8790A 100%);

  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-pill: 100px;

  --shadow-card: 0 24px 60px -20px rgba(80, 40, 0, 0.45);
  --shadow-btn:  0 10px 20px -8px rgba(232, 121, 10, 0.55);

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--orange-bg);
  position: relative;
  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: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

/* =========================================================
   FONDO DECORATIVO (blobs, como en la referencia visual)
   ========================================================= */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.bg-blob--one {
  width: 60vmax;
  height: 60vmax;
  top: -25vmax;
  right: -25vmax;
  background: var(--orange-deep);
  opacity: 0.35;
}

.bg-blob--two {
  width: 40vmax;
  height: 40vmax;
  bottom: -20vmax;
  left: -20vmax;
  background: var(--cream);
  opacity: 0.22;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* =========================================================
   TARJETA DE PERFIL
   ========================================================= */
.profile-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 44px 32px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-photo-wrap {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--orange-soft), var(--orange-deep));
  margin-bottom: 20px;
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  background: var(--cream);
}

.profile-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2rem);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--white);
}

.profile-tagline {
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 30ch;
  margin: 0 auto;
}

.profile-location {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 700;
  margin: 10px 0 0;
  background: rgba(255, 255, 255, 0.85);
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* --- Divisor de puntos: elemento distintivo, reutilizado en el carrusel --- */
.dot-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 22px 0 28px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.dot--filled {
  background: var(--white);
  border-color: var(--white);
}

.dot-line {
  width: 34px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

/* =========================================================
   BOTONES DE REDES SOCIALES
   ========================================================= */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-btn);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  color: var(--orange-deep);
  flex-shrink: 0;
}

.social-text {
  flex: 1;
  text-align: left;
}

.social-arrow {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* Botón de contacto principal (correo): CTA sólido en blanco para destacar */
.social-btn--email {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.social-btn--email .social-icon {
  background: var(--orange-deep);
  color: var(--white);
}

.social-btn--email .social-arrow { color: var(--orange-deep); }

/* =========================================================
   TARJETA DE PORTAFOLIO / CARRUSEL
   ========================================================= */
.portfolio-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 24px 28px;
}

.portfolio-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 18px;
  text-align: center;
  color: var(--white);
}

.carousel {
  position: relative;
}

.carousel-track-wrap {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.carousel-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  touch-action: pan-y;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  background: var(--cream);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--orange-deep);
  box-shadow: 0 8px 20px -6px rgba(80, 40, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.carousel-arrow:hover {
  background: var(--orange-deep);
  color: var(--white);
  transform: translateY(-50%) scale(1.06);
}

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

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.25);
  padding: 0;
  cursor: pointer;
  transition: background 0.18s ease, width 0.18s ease, border-radius 0.18s ease;
}

.carousel-dots button[aria-selected="true"] {
  background: var(--white);
  border-color: var(--white);
  width: 22px;
  border-radius: 5px;
}

/* =========================================================
   BOTONES FLOTANTES
   ========================================================= */
.fab {
  position: fixed;
  bottom: 24px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 14px 30px -10px rgba(80, 40, 0, 0.5);
  border: none;
  cursor: pointer;
}

.fab--pill {
  left: 24px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.18s ease, background 0.18s ease;
}

.fab--pill:hover,
.fab--pill:focus-visible {
  transform: translateY(-2px);
  background: var(--orange-deep);
}

.fab--circle {
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(34, 28, 20, 0.1);
  color: var(--orange-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.fab--circle:hover,
.fab--circle:focus-visible {
  transform: translateY(-3px);
  background: var(--orange-deep);
  color: var(--white);
}

.fab--circle.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 10px 20px 100px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  line-height: 1.7;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 420px) {
  .profile-card { padding: 36px 22px 28px; }
  .fab--pill span { display: inline; }
  .fab--pill { font-size: 0.85rem; padding: 12px 18px; }
}

@media (min-width: 640px) {
  .page { padding-top: 72px; }
  .profile-card { padding: 56px 56px 44px; }
  .portfolio-card { padding: 40px 40px 34px; }
}

/* Respeta la preferencia de "reducir movimiento" del usuario */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track,
  .social-btn,
  .carousel-arrow,
  .fab,
  .fab--circle {
    transition: none;
  }
}
