@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,500;0,600;1,500;1,600&family=Sora:wght@400;500;600;700&family=Caveat:wght@600;700&display=swap');

:root {
  /* Palette tokens */
  --bg: #FFF7F9;
  --rose: #FF8FAE;
  --rose-deep: #E85D82;
  --lavender: #C9BBF0;
  --mint: #A9E5C9;
  --peach: #FFCFA3;
  --yellow: #FFCFA3;
  --ink: #3A2C3A;
  --ink-soft: rgba(58, 44, 58, 0.65);
  --card: #FFFFFF;

  /* Semantic tokens */
  --surface: var(--card);
  --surface-alt: var(--bg);
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --accent: var(--rose-deep);
  --accent-soft: var(--rose);
  --highlight: var(--lavender);
  --positive: var(--mint);
  --shadow: rgba(58, 44, 58, 0.12);
  --shadow-strong: rgba(58, 44, 58, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition-duration: .001ms !important;
  }
}

body {
  background: var(--surface-alt);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

::selection {
  background: var(--accent-soft);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.display {
  font-family: 'Fraunces', serif;
  font-style: italic;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.hand {
  font-family: 'Caveat', cursive;
  font-weight: 700;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-capsule {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 60;
  background: var(--surface);
  border-radius: 0 0 24px 24px;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-shadow: 0 10px 30px var(--shadow);
}

.nav-capsule .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-capsule .brand-logo {
  height: 40px;
  width: auto;
  padding: 0 10px 0 4px;
  display: block;
}

.nav-capsule a {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.nav-capsule a:hover {
  background: var(--accent-soft);
  color: #fff;
}

@media (max-width: 760px) {
  .nav-capsule {
    display: none;
  }

  .nav-mini {
    display: flex;
  }
}

.nav-mini {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  background: var(--surface);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px var(--shadow-strong);
  font-size: 1.2rem;
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 130px 0 60px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  z-index: 0;
}

.blob1 {
  width: 380px;
  height: 380px;
  background: var(--highlight);
  top: -60px;
  left: -100px;
  filter: blur(40px);
}

.blob2 {
  width: 300px;
  height: 300px;
  background: var(--positive);
  bottom: -80px;
  right: -60px;
  filter: blur(50px);
}

.blob3 {
  width: 180px;
  height: 180px;
  background: var(--peach);
  top: 40%;
  right: 8%;
  filter: blur(35px);
  opacity: 0.5;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 16px var(--shadow);
}

.eyebrow::before {
  content: '✦';
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  margin: 20px 0 22px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p.tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 30px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 15px 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 93, 130, 0.35);
}

.btn.ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 6px 16px var(--shadow);
}

.btn:hover {
  transform: translateY(-3px);
}

.avatar-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--rose), var(--highlight));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 3.4rem;
  font-style: italic;
  color: #fff;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

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

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 290px;
  height: 290px;
  border: 2.5px dashed var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 24s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.badge-note {
  position: absolute;
  bottom: -6px;
  right: 6px;
  background: var(--yellow);
  padding: 8px 14px;
  border-radius: 14px;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 8px 18px var(--shadow-strong);
  transform: rotate(-6deg);
  z-index: 3;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .avatar-wrap {
    margin-top: 30px;
  }
}

section {
  padding: 110px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-top: 12px;
}

#sobre-mi {
  background: var(--surface);
  border-radius: 48px;
  margin: 0 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-grid p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-grid h2.display {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 16px 0 18px;
}

.stat-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-bubble {
  flex: 1 1 130px;
  background: var(--surface-alt);
  border-radius: 26px;
  padding: 22px;
  text-align: center;
}

.stat-bubble .n {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 2.1rem;
  color: var(--accent);
}

.stat-bubble .l {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.carousel {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.carousel-track-wrap {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform .5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 360px;
  position: relative;
  display: flex;
  align-items: flex-end;
}

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

.carousel-slide .fallback {
  position: absolute;
  inset: 0;
}

.cs-1 { background: linear-gradient(150deg, var(--rose), var(--peach)); }
.cs-2 { background: linear-gradient(150deg, var(--highlight), var(--rose)); }
.cs-3 { background: linear-gradient(150deg, var(--mint), var(--highlight)); }
.cs-4 { background: linear-gradient(150deg, var(--peach), var(--mint)); }
.cs-5 { background: linear-gradient(150deg, var(--rose-deep), var(--highlight)); }

.carousel-caption {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 22px 26px;
  background: linear-gradient(to top, rgba(58,44,58,0.55), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 8px 20px var(--shadow-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 3;
}

.carousel-arrow:hover {
  background: var(--rose);
  color: #fff;
}

.carousel-arrow.prev {
  left: -22px;
}

.carousel-arrow.next {
  right: -22px;
}

@media (max-width: 600px) {
  .carousel-arrow.prev {
    left: 6px;
  }

  .carousel-arrow.next {
    right: 6px;
  }

  .carousel-slide {
    height: 280px;
  }
}

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

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--highlight);
  transition: background .2s ease, transform .2s ease;
}

.carousel-dots button.active {
  background: var(--accent);
  transform: scale(1.25);
}

.bubble-cluster {
  columns: 2 220px;
  column-gap: 26px;
}

@media (max-width: 640px) {
  .bubble-cluster {
    columns: 1;
  }
}

.bubble-card {
  break-inside: avoid;
  margin-bottom: 26px;
  background: var(--surface);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(58, 44, 58, 0.08);
  transition: transform .25s ease;
}

.bubble-card:nth-child(2n) {
  border-radius: 20px 40px 20px 40px;
}

.bubble-card:nth-child(3n) {
  border-radius: 40px 20px 40px 20px;
}

.bubble-card:hover {
  transform: translateY(-5px);
}

.cover {
  height: 190px;
}

.cover.tall {
  height: 250px;
}

.cover-1 { background: linear-gradient(150deg, var(--rose), var(--peach)); }
.cover-2 { background: linear-gradient(150deg, var(--highlight), var(--rose)); }
.cover-3 { background: linear-gradient(150deg, var(--mint), var(--highlight)); }
.cover-4 { background: linear-gradient(150deg, var(--peach), var(--mint)); }
.cover-5 { background: linear-gradient(150deg, var(--rose-deep), var(--highlight)); }
.cover-6 { background: linear-gradient(150deg, var(--mint), var(--peach)); }

.cover.logo-cover {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cover.logo-cover img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bubble-body {
  padding: 22px 24px 26px;
}

.bubble-body .tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.bubble-body h3 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.bubble-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.bubble-link {
  font-weight: 600;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--rose);
  display: inline-block;
  margin-top: 10px;
}

.bubble-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

#contacto {
  background: linear-gradient(160deg, var(--rose), var(--highlight));
  color: #fff;
  border-radius: 48px;
  margin: 0 20px 20px;
  text-align: center;
}

#contacto .eyebrow {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

#contacto .eyebrow::before {
  color: #fff;
}

#contacto h2 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  margin: 18px 0 26px;
}

#contacto .email-link {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  border-bottom: 3px solid #fff;
  padding-bottom: 4px;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.social-row a {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.social-row a:hover {
  background: #fff;
  color: var(--accent);
}

footer {
  text-align: center;
  padding: 30px 0 50px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
