/* =============================================
   Variables & Reset
   ============================================= */
:root {
  --color-offwhite: #F5F0EC;
  --color-rose-light: #CFA6AD;
  --color-rose: #A97882;
  --color-dark: #2F2F2F;
  --color-muted: #5E5959;
  --color-body: #454040;
  --color-white: #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 4px 24px rgba(47, 47, 47, 0.06);
  --shadow-card: 0 2px 12px rgba(169, 120, 130, 0.08);

  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-body);
  background-color: var(--color-offwhite);
  -webkit-font-smoothing: antialiased;
}

body.splash-lock {
  overflow: hidden;
}

/* =============================================
   Splash / mini inicio
   ============================================= */
.splash {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-rose);
  transition: background-color 0.55s ease;
}

.splash.is-exiting {
  background-color: transparent;
  pointer-events: none;
}

.splash.is-done {
  visibility: hidden;
  pointer-events: none;
}

.splash__logo {
  display: block;
  width: min(78vw, 540px);
  max-width: calc(100vw - 2.5rem);
  height: auto;
  overflow: visible;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.splash__path {
  fill: #fff;
  stroke: none;
}

.splash.is-filled .splash__path {
  mask: none;
}

.splash.is-exiting .splash__path {
  fill: #1d1d1b;
  stroke-width: 0;
  transition: fill 0.45s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   Header & Navigation
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(245, 240, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(207, 166, 173, 0.25);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

.nav__logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 42vw);
  opacity: 0;
}

.nav__logo-img.is-ready {
  opacity: 1;
}

.nav__menu {
  display: flex;
  gap: 2.5rem;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-rose);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-rose);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-dark);
  transition: var(--transition);
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--color-rose);
  color: var(--color-white);
  border-color: var(--color-rose);
}

.btn--primary:hover {
  background: var(--color-rose-light);
  border-color: var(--color-rose-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(169, 120, 130, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-rose);
  border-color: var(--color-rose-light);
}

.btn--outline:hover {
  background: var(--color-rose);
  color: var(--color-white);
  border-color: var(--color-rose);
}

/* =============================================
   Section Shared Styles
   ============================================= */
.section {
  padding: 7rem 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__header--left {
  text-align: left;
}

.section__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-rose);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 5.5vw, 3.55rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  line-height: 1.15;
  min-height: 1.2em;
}

.title-cursor {
  display: inline-block;
  width: 2px;
  height: 0.72em;
  margin-left: 5px;
  background: var(--color-rose);
  vertical-align: 0.05em;
  animation: hero-cursor-blink 0.85s step-end infinite;
}

.title-cursor.is-done {
  animation: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.section__divider {
  width: 48px;
  height: 1px;
  background: var(--color-rose-light);
  margin: 1.25rem auto;
}

.section__divider--left {
  margin-left: 0;
  margin-right: auto;
}

.section__intro {
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--color-body);
  line-height: 1.8;
}

.section__cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* =============================================
   Intro wrap (hero + servicios shared bg)
   ============================================= */
.intro-wrap {
  position: relative;
  overflow: visible;
  background: var(--color-offwhite);
}

.intro-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-white));
  pointer-events: none;
  z-index: 0;
}

.intro-wrap__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transition: transform 0.12s ease-out;
  will-change: transform;
}

/* =============================================
   Hero
   ============================================= */
.hero {
  --hero-scale: 1;
  --hero-blur: 0px;
  --hero-veil: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  padding-bottom: 2.5rem;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245, 240, 236, var(--hero-veil));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
  z-index: 4;
}

.hero.is-blurred::after {
  backdrop-filter: blur(var(--hero-blur));
  -webkit-backdrop-filter: blur(var(--hero-blur));
}

.hero__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation: hero-orbit 40s linear infinite;
}

.hero__orbit--reverse {
  animation: hero-orbit 52s linear infinite reverse;
  animation-delay: -14s;
}

.hero__orbit--slow {
  animation: hero-orbit 64s linear infinite;
  animation-delay: -20s;
}

.hero__orbit--fast {
  animation: hero-orbit 26s linear infinite reverse;
  animation-delay: -8s;
}

.hero__orbit--wide {
  top: 42%;
  animation: hero-orbit 48s linear infinite;
  animation-delay: -16s;
}

@keyframes hero-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero__orb {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%) translateX(34vmin);
  will-change: transform;
}

.hero__orb--rose {
  width: 82vmin;
  height: 82vmin;
  background: radial-gradient(
    circle,
    rgba(169, 120, 130, 0.52) 0%,
    rgba(207, 166, 173, 0.28) 38%,
    rgba(255, 255, 255, 0.08) 58%,
    transparent 72%
  );
  filter: blur(36px);
}

.hero__orb--light {
  width: 62vmin;
  height: 62vmin;
  transform: translate(-50%, -50%) translateX(26vmin);
  background: radial-gradient(
    circle,
    rgba(207, 166, 173, 0.48) 0%,
    rgba(255, 255, 255, 0.22) 42%,
    transparent 70%
  );
  filter: blur(44px);
}

.hero__orb--deep {
  width: 70vmin;
  height: 70vmin;
  transform: translate(-50%, -50%) translateX(42vmin);
  background: radial-gradient(
    circle,
    rgba(169, 120, 130, 0.45) 0%,
    rgba(169, 120, 130, 0.18) 45%,
    transparent 72%
  );
  filter: blur(40px);
}

.hero__orb--soft {
  width: 48vmin;
  height: 48vmin;
  transform: translate(-50%, -50%) translateX(18vmin);
  background: radial-gradient(
    circle,
    rgba(207, 166, 173, 0.55) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 72%
  );
  filter: blur(32px);
}

.hero__orb--mist {
  width: 90vmin;
  height: 90vmin;
  transform: translate(-50%, -50%) translateX(38vmin);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(207, 166, 173, 0.2) 40%,
    transparent 70%
  );
  filter: blur(52px);
}

.hero__glow {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 95vmin;
  height: 95vmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(245, 240, 236, 0.35) 40%,
    transparent 68%
  );
  pointer-events: none;
}

.hero__glow--secondary {
  top: 62%;
  width: 110vmin;
  height: 110vmin;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(207, 166, 173, 0.12) 45%,
    transparent 70%
  );
}

/* Trama vertical en los costados del hero */
.hero__pattern {
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: min(26vw, 320px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 20px,
      rgba(207, 166, 173, 0.07) 20px,
      rgba(207, 166, 173, 0.07) 21px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(169, 120, 130, 0.1) 40px,
      rgba(169, 120, 130, 0.1) 41px
    );
}

.hero__pattern--left {
  left: 0;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, transparent 88%);
}

.hero__pattern--right {
  right: 0;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.55) 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.55) 0%, transparent 88%);
}

.hero__orbit,
.hero__orb,
.hero__pattern {
  will-change: auto;
}

.hero__inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 4rem clamp(1rem, 3vw, 2rem);
  position: relative;
  z-index: 1;
  text-align: center;
  transform: scale(var(--hero-scale, 1));
  transform-origin: center 30%;
  will-change: transform;
}

.hero__label {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.1vw, 0.84rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-rose);
  margin-bottom: 1.35rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.8vw, 5.75rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.08;
  color: var(--color-dark);
  margin-bottom: 0;
  white-space: normal;
  display: block;
  width: 100%;
  text-align: center;
}

.hero__title-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.hero__line {
  display: block;
}

.hero__line--surname {
  margin-top: 0.06em;
  min-height: 1.05em;
}

.hero__surname {
  display: inline-block;
  letter-spacing: 0.06em;
}

.hero__typewriter {
  display: inline;
}

.hero__line--first {
  display: block;
}

.hero__cursor {
  display: inline-block;
  width: 2px;
  height: 0.82em;
  margin-left: 4px;
  background: var(--color-rose);
  flex-shrink: 0;
  animation: hero-cursor-blink 0.85s step-end infinite;
}

.hero__cursor--done {
  animation: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

@keyframes hero-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero__inner.is-revealed .hero__divider,
.hero__inner.is-revealed .hero__subtitle,
.hero__inner.is-revealed > .btn {
  opacity: 1;
}

.hero__divider {
  width: 80px;
  height: 1px;
  background: var(--color-rose-light);
  margin: 2.25rem auto;
  opacity: 0;
  transition: opacity 0.6s ease 0.1s;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 400;
  color: var(--color-body);
  line-height: 1.85;
  margin-bottom: 2.75rem;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transition: opacity 0.7s ease 0.15s;
}

.hero__inner > .btn {
  opacity: 0;
  transition: opacity 0.7s ease 0.15s;
}

/* =============================================
   Scroll reveal + parallax
   ============================================= */
.scroll-reveal {
  --reveal-opacity: 0;
  --reveal-y: 52px;
  --parallax-y: 0px;
  opacity: var(--reveal-opacity);
  transform: translate3d(0, calc(var(--reveal-y) + var(--parallax-y)), 0);
  will-change: transform, opacity;
}

/* =============================================
   Servicios
   ============================================= */
.servicios {
  --services-pull: 0px;
  background: var(--color-offwhite);
  position: relative;
  z-index: 2;
  margin-top: var(--services-pull);
  padding-top: 5.25rem;
  padding-bottom: 5.5rem;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -24px 48px rgba(245, 240, 236, 0.55);
}

.servicios .section__header {
  margin-bottom: 2.5rem;
}

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.4rem;
  perspective: 1200px;
  max-width: 1080px;
  margin: 0 auto;
}

.servicio-card {
  --reveal-opacity: 0;
  --reveal-y: 56px;
  --parallax-y: 0px;
  --card-scale: 0.96;
  grid-column: span 2;
  background: var(--color-white);
  border: 1px solid var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.15rem 1.55rem;
  text-align: center;
  cursor: default;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 8px rgba(169, 120, 130, 0.08),
    0 8px 24px rgba(47, 47, 47, 0.04);
  opacity: var(--reveal-opacity);
  transform: translate3d(0, calc(var(--reveal-y) + var(--parallax-y)), 0) scale(var(--card-scale));
  transition:
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    border-color 0.35s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.servicio-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.servicio-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.servicio-card.is-revealed {
  --card-scale: 1;
}

.servicio-card.is-revealed:hover,
.servicio-card.is-revealed.is-pressed,
.servicio-card.is-revealed:focus-within {
  background: var(--color-rose);
  border-color: var(--color-rose);
  transform: translate3d(0, calc(var(--reveal-y) + var(--parallax-y) - 14px), 0) scale(1.06);
  box-shadow:
    0 14px 36px rgba(169, 120, 130, 0.28),
    0 24px 48px rgba(47, 47, 47, 0.1);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.25, 0.64, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    border-color 0.35s ease;
}

.servicio-card.is-revealed:hover .servicio-card__icon,
.servicio-card.is-revealed:hover .servicio-card__title,
.servicio-card.is-revealed:hover .servicio-card__desc,
.servicio-card.is-revealed.is-pressed .servicio-card__icon,
.servicio-card.is-revealed.is-pressed .servicio-card__title,
.servicio-card.is-revealed.is-pressed .servicio-card__desc,
.servicio-card.is-revealed:focus-within .servicio-card__icon,
.servicio-card.is-revealed:focus-within .servicio-card__title,
.servicio-card.is-revealed:focus-within .servicio-card__desc {
  color: var(--color-white);
}

.servicio-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--color-rose);
  transition: color var(--transition);
}

.servicio-card__icon svg {
  width: 100%;
  height: 100%;
}

.servicio-card__title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

.servicio-card__desc {
  font-size: 0.86rem;
  color: var(--color-body);
  line-height: 1.55;
  transition: color var(--transition);
  max-width: 22em;
}

/* =============================================
   Sobre mí
   ============================================= */
.sobre-mi {
  background: var(--color-white);
  position: relative;
}

.sobre-mi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 900px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-rose-light), transparent);
}

.sobre-mi__content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.sobre-mi__content > * {
  min-width: 0;
}

.sobre-mi__header {
  margin-bottom: 1.75rem;
}

.sobre-mi__header .section__label {
  margin-bottom: 0.75rem;
}

.sobre-mi__image {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  width: 100%;
  min-width: 0;
  align-self: start;
  height: fit-content;
}

.sobre-mi__image-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #e8ddd8;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.45s ease;
  cursor: default;
  outline: none;
}

.sobre-mi__image-frame::before {
  content: '';
  display: block;
  padding-top: 133.333%;
}

.sobre-mi__image-frame:hover,
.sobre-mi__image-frame.is-pressed,
.sobre-mi__image-frame:focus-visible {
  transform: scale(1.04);
  box-shadow:
    0 12px 36px rgba(169, 120, 130, 0.22),
    0 20px 48px rgba(47, 47, 47, 0.08);
}

.sobre-mi__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.1s ease;
}

.sobre-mi__photo.is-active {
  opacity: 1;
}

.sobre-mi__accent-line {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 80px;
  height: 80px;
  border-right: 1px solid var(--color-rose-light);
  border-bottom: 1px solid var(--color-rose-light);
  pointer-events: none;
}

.sobre-mi__text p {
  font-size: 0.95rem;
  color: var(--color-body);
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

.sobre-mi__subtitle {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--color-rose);
  margin: 1.75rem 0 0.7rem;
  line-height: 1.25;
}

.sobre-mi__list {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
}

.sobre-mi__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--color-body);
  line-height: 1.75;
  margin-bottom: 0.55rem;
}

.sobre-mi__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-rose);
}

.sobre-mi__text strong {
  font-weight: 600;
  color: var(--color-dark);
}

.sobre-mi__text .btn {
  margin-top: 1rem;
}

/* =============================================
   Publicaciones LinkedIn
   ============================================= */
.publicaciones {
  background: var(--color-white);
  position: relative;
}

.publicaciones::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 900px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-rose-light), transparent);
}

.publicaciones__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pub-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-offwhite);
  box-shadow: 0 2px 12px rgba(47, 47, 47, 0.05);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

.pub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(169, 120, 130, 0.18);
}

.pub-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.pub-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-rose-light);
}

.pub-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.pub-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(47, 47, 47, 0.35);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
}

.pub-card__play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(47, 47, 47, 0.15);
  transition: transform 0.35s ease, background 0.35s ease;
}

.pub-card__play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.pub-card:hover .pub-card__play {
  transform: scale(1.08);
  background: var(--color-white);
}

.pub-card__body {
  padding: 1.35rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pub-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.pub-card__linkedin {
  width: 14px;
  height: 14px;
  color: var(--color-rose);
  flex-shrink: 0;
}

.pub-card__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.pub-card__excerpt {
  font-size: 0.82rem;
  color: var(--color-body);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.pub-card__cta {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-rose);
  transition: color var(--transition);
}

.pub-card:hover .pub-card__cta {
  color: var(--color-dark);
}

.publicaciones__footer {
  text-align: center;
}

.publicaciones__btn {
  display: inline-flex;
}

/* =============================================
   Contacto
   ============================================= */
.contacto {
  background:
    radial-gradient(ellipse at 20% 100%, rgba(207, 166, 173, 0.12) 0%, transparent 50%),
    var(--color-offwhite);
}

.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contacto__info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contacto__item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contacto__item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-rose);
  margin-top: 0.2rem;
}

.contacto__item-icon svg {
  width: 100%;
  height: 100%;
}

.contacto__item-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-rose);
  margin-bottom: 0.25rem;
}

.contacto__item-value {
  font-size: 0.92rem;
  color: var(--color-dark);
  transition: color var(--transition);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contacto__item-value:hover {
  color: var(--color-rose);
}

.contacto__item-value--text {
  margin: 0;
}

.contacto__item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 0.45rem;
}

.contacto__item-actions a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-rose);
}

.contacto__item-actions a:hover {
  color: var(--color-dark);
}

.contacto__horario {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.contacto__map {
  height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-rose-light);
  box-shadow: var(--shadow-soft);
}

.contacto__map iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(20%) contrast(1.05);
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: var(--color-dark);
  color: rgba(245, 240, 236, 0.85);
}

.footer__line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-rose), transparent);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  padding: 3rem 1.5rem;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-offwhite);
  margin-bottom: 0.25rem;
}

.footer__role {
  font-size: 0.78rem;
  color: var(--color-rose-light);
  letter-spacing: 0.05em;
}

.footer__nav {
  display: flex;
  gap: 2rem;
}

.footer__nav a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 236, 0.6);
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--color-rose-light);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(207, 166, 173, 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-rose-light);
  transition: all var(--transition);
}

.footer__social a svg {
  width: 16px;
  height: 16px;
}

.footer__social a:hover {
  background: var(--color-rose);
  border-color: var(--color-rose);
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(207, 166, 173, 0.15);
  padding: 1.25rem 0;
}

.footer__bottom p {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(245, 240, 236, 0.4);
  text-align: center;
}

/* =============================================
   Responsive
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .servicio-card,
  .scroll-reveal {
    --reveal-opacity: 1 !important;
    --reveal-y: 0px !important;
    --parallax-y: 0px !important;
    --card-scale: 1 !important;
  }

  .servicio-card,
  .scroll-reveal,
  .hero__orbit,
  .hero__orb,
  .intro-wrap__bg,
  .hero__pattern,
  .hero__cursor,
  .title-cursor,
  .sobre-mi__image-frame {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .hero__divider,
  .hero__subtitle,
  .hero__inner > .btn,
  .title-cursor {
    opacity: 1 !important;
  }

  .hero {
    position: relative;
    min-height: auto;
  }

  .hero::after {
    display: none;
  }

  .splash.is-exiting .splash__path {
    fill: #1d1d1b !important;
  }

  .hero__inner {
    transform: none !important;
  }

  .servicios {
    --services-pull: 0px !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 1200px) {
  .servicios__grid {
    max-width: 820px;
  }
}

@media (max-width: 992px) {
  .servicios__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
  }

  .servicio-card,
  .servicio-card:nth-child(4),
  .servicio-card:nth-child(5) {
    grid-column: auto;
  }

  .sobre-mi__content {
    grid-template-columns: minmax(220px, 0.88fr) 1.12fr;
    gap: 2rem;
  }

  .sobre-mi__image {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    max-width: none;
    margin: 0;
  }

  .sobre-mi__accent-line {
    right: 0;
    bottom: -8px;
  }

  .contacto__grid {
    grid-template-columns: 1fr;
  }

  .contacto__map {
    height: 320px;
  }

  .publicaciones__track {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }

  .servicios {
    padding-top: 3.25rem;
    padding-bottom: 4rem;
    border-radius: 24px 24px 0 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__logo-img {
    height: 34px;
    max-width: min(160px, 46vw);
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(245, 240, 236, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(207, 166, 173, 0.25);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__menu li {
    width: 100%;
    text-align: center;
  }

  .nav__link {
    display: block;
    padding: 0.85rem 1.5rem;
  }

  .nav__toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
  }

  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
  }

  .hero__inner {
    padding: 2.75rem 1.1rem 3rem;
    max-width: 100%;
  }

  .hero__label {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.75rem;
  }

  .hero__subtitle br {
    display: none;
  }

  .hero__title {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
    line-height: 1.05;
    white-space: normal;
    display: block;
    width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .hero__subtitle {
    font-size: 0.95rem;
    padding: 0 0.15rem;
  }

  .servicios__grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    margin: 0 auto;
    gap: 0.85rem;
  }

  .servicio-card {
    aspect-ratio: auto;
    min-height: 0;
    padding: 1.25rem 0.85rem;
  }

  .container {
    padding: 0 1.15rem;
    max-width: 100%;
  }

  .hero__typewriter {
    display: inline;
  }

  .hero__cursor {
    display: inline-block;
    vertical-align: baseline;
  }

  .hero__surname {
    letter-spacing: 0.04em;
  }

  .section__title {
    font-size: clamp(2.35rem, 9.5vw, 3.1rem);
    line-height: 1.12;
  }

  .sobre-mi__header {
    text-align: center;
  }

  .sobre-mi__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sobre-mi__image {
    position: relative;
    top: auto;
    max-width: min(400px, 100%);
    margin: 0 auto;
  }

  .sobre-mi__header .section__divider--left {
    margin-left: auto;
    margin-right: auto;
  }

  .sobre-mi__text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .sobre-mi__text .btn {
    align-self: center;
    display: inline-flex;
  }

  .section__cta {
    display: flex;
    justify-content: center;
  }

  .section__cta .btn {
    display: inline-flex;
  }

  .hero__inner > .btn {
    display: inline-flex;
  }

  .servicio-card__title {
    font-size: 1.18rem;
    overflow-wrap: anywhere;
  }

  .sobre-mi__image-frame:hover,
  .sobre-mi__image-frame.is-pressed,
  .sobre-mi__image-frame:focus-visible {
    transform: none;
  }

  .servicio-card__icon {
    width: 52px;
    height: 52px;
  }

  .footer__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    text-align: left;
    justify-items: start;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 2rem 1.25rem;
  }

  .footer__nav {
    display: none;
  }

  .footer__social {
    justify-self: end;
  }

  .footer__name {
    font-size: 1.15rem;
  }

  .footer__role {
    font-size: 0.72rem;
  }

  .publicaciones__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }

  .pub-card {
    flex: 0 0 min(78vw, 280px);
    max-width: 100%;
    scroll-snap-align: start;
  }

  .publicaciones__footer {
    display: flex;
    justify-content: center;
  }

  .publicaciones__track::-webkit-scrollbar {
    display: none;
  }

  .hero__pattern {
    top: 12%;
    bottom: 12%;
    width: min(22vw, 100px);
    opacity: 0.35;
  }

  .hero__orb--rose {
    width: 95vmin;
    height: 95vmin;
    transform: translate(-50%, -50%) translateX(28vmin);
  }

  .hero__orb--light {
    width: 72vmin;
    height: 72vmin;
    transform: translate(-50%, -50%) translateX(22vmin);
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding: 3.75rem 0;
  }

  .hero__title {
    font-size: clamp(1.85rem, 11vw, 2.6rem);
  }

  .section__title {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .servicios__grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 0.9rem;
  }

  .servicio-card {
    padding: 1.45rem 1.15rem;
  }

  .servicio-card__title {
    font-size: 1.28rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer__social {
    justify-self: center;
  }

  .contacto__item {
    align-items: flex-start;
  }
}
