/* ══════════════════════════════════════════════════
   MACARENA TAPIA LAGOS — Personal Brand Website
   Paleta Rosa Pastel & Blanco Lúmino (Onda Fluida Suave)
   Sin rosas oscuros ni tonos pesados — Transición pura Blanco ➔ Rosa Pastel
   ══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* PALETA ROSA PASTEL Y BLANCO LÚMINO */
  --rose-primary:     #e28fa2; /* Rosa Pastel Suave */
  --rose-light:       #fcf2f5; /* Rosa Blush Ultraliviano */
  --rose-blush:       #f6dbe2; /* Rosa Algodón Fino */
  --rose-medium:      #d8738a; /* Rosa Medio Elegante */
  --rose-deep:        #c25972; /* Rosa Ejecutivo Sobrio */
  --rose-soft-dark:   #9c3d53; /* Rosa Borgoña Suave */

  /* GRADIENTES Y RESPLANDOR PASTEL */
  --grad-rose-main:   linear-gradient(135deg, #e28fa2, #c25972);
  --rose-glow:        rgba(226, 143, 162, 0.25);
  --rose-glow-deep:   rgba(194, 89, 114, 0.3);

  /* Neutros */
  --ink:              #111827;
  --ink-soft:         #1f2937;
  --slate:            #374151;
  --mist:             #4b5563;
  --ash:              #cbd5e1;
  --cloud:            #fcf4f6;
  --snow:             #ffffff;
  --white:            #ffffff;

  /* Tipografía */
  --ff-head: 'Playfair Display', Georgia, serif;
  --ff-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Espaciado */
  --gap:  clamp(1.25rem, 3vw, 2.5rem);
  --wrap: min(72rem, 92vw);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  --snow:     #0c1017;
  --cloud:    #181c24;
  --ink:      #f8fafc;
  --ink-soft: #e2e8f0;
  --slate:    #cbd5e1;
  --mist:     #94a3b8;
  --ash:      #334155;
  --white:    #141a23;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ── FONDO DEGRADADO CONTINUO EN ONDA SUAVE (BLANCO ➔ ROSA PASTEL) ── */
body {
  font-family: var(--ff-body);
  font-size: clamp(.938rem, 1vw, 1.063rem);
  line-height: 1.7;
  color: var(--ink-soft);
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fdf5f7 10%,
    #f7dbe2 22%,
    #eed0d9 35%,
    #fcf6f8 48%,
    #f2c8d2 62%,
    #fcf2f5 76%,
    #e8a2b2 88%,
    #d87d92 100%
  );
  background-attachment: scroll;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: var(--wrap); margin: 0 auto; }

/* ── SECCIONES SIN BORDES DULCES NI PESADOS (ONDA SUAVE) ── */
section {
  padding: 7.5rem 0;
  position: relative;
  background: transparent !important;
  border: none !important;
}

/* ── BARRA DE PROGRESO DE LECTURA ── */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3.5px;
  background: linear-gradient(90deg, #f6dbe2, #e28fa2, #c25972);
  width: 0%; z-index: 9999; transition: width .15s linear;
}

/* ── NAVEGACIÓN Y MENU FLOTANTE ── */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(226, 143, 162, 0.3);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav--scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 24px rgba(194, 89, 114, 0.12);
}
.nav__inner {
  width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.nav__brand { display: flex; align-items: center; gap: .75rem; }
.nav__mark {
  width: 2.35rem; height: 2.35rem;
  display: grid; place-items: center;
  font-family: var(--ff-head); font-weight: 700; font-size: .9rem;
  color: var(--white);
  background: var(--grad-rose-main);
  border-radius: .6rem;
  letter-spacing: .03em;
  box-shadow: 0 2px 10px var(--rose-glow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav__brand:hover .nav__mark {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 18px var(--rose-glow-deep);
}

.nav__name { font-weight: 600; font-size: .95rem; color: var(--ink); }
.nav__name em { font-style: normal; color: var(--rose-deep); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a {
  font-size: .85rem; font-weight: 600; color: var(--slate);
  letter-spacing: .02em; transition: color .2s var(--ease);
  position: relative;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px;
  background: var(--grad-rose-main);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--rose-deep); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  padding: .5rem 1.25rem; border-radius: 6rem;
  background: var(--grad-rose-main)!important;
  color: var(--white)!important;
  font-weight: 600!important; transition: transform .25s var(--ease), box-shadow .25s var(--ease)!important;
  box-shadow: 0 4px 14px var(--rose-glow);
}
.nav__cta::after { display: none!important; }
.nav__cta:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 24px var(--rose-glow-deep); }

.theme-toggle-btn {
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--rose-light); color: var(--rose-deep);
  display: grid; place-items: center; font-size: .95rem;
  transition: transform .3s var(--ease), background .3s;
}
.theme-toggle-btn:hover { transform: rotate(20deg) scale(1.15); background: var(--rose-deep); color: var(--white); }

/* HERO AURORA PASTEL */
.hero {
  position: relative; padding-top: 8.5rem; padding-bottom: 6rem;
  min-height: 90vh; display: flex; flex-direction: column; justify-content: center;
}

.hero__aurora {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(95px); opacity: 0.45;
  animation: orbFloat 22s ease-in-out infinite alternate;
}
.orb--1 { width: 520px; height: 520px; background: #fce8ed; top: -120px; right: -60px; }
.orb--2 { width: 460px; height: 460px; background: #f6dbe2; bottom: -60px; left: -100px; animation-delay: -7s; }
.orb--3 { width: 380px; height: 380px; background: rgba(226, 143, 162, 0.22); top: 30%; left: 40%; animation-delay: -14s; }

@keyframes orbFloat {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(35px, -45px) scale(1.06); }
  100% { transform: translate(-25px, 30px) scale(0.96); }
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--gap);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.95); padding: .35rem .9rem; border-radius: 6rem;
  border: 1px solid rgba(226, 143, 162, 0.35);
  box-shadow: 0 2px 8px rgba(194, 89, 114, 0.1);
  margin-bottom: 1.25rem;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.eyebrow:hover { transform: translateY(-2px); box-shadow: 0 4px 12px var(--rose-glow); }

.hero__title {
  font-family: var(--ff-head);
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  font-weight: 700; line-height: 1.18; color: var(--ink);
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: italic; color: var(--rose-medium); font-weight: 600;
}
.hero__title strong {
  font-style: normal; color: var(--rose-deep); font-weight: 700;
}
.hero__lead {
  font-size: 1.1rem; color: var(--slate); max-width: 36rem;
  margin-bottom: 2rem; line-height: 1.75; font-weight: 500;
}
.hero__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.8rem; border-radius: 6rem;
  font-size: .938rem; font-weight: 600; transition: all .3s var(--ease);
}
.btn--primary {
  background: var(--grad-rose-main);
  color: var(--white); box-shadow: 0 6px 20px var(--rose-glow);
}
.btn--primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px var(--rose-glow-deep);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.95); color: var(--slate);
  border: 1px solid rgba(226, 143, 162, 0.4); backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(194, 89, 114, 0.1);
}
.btn--ghost:hover {
  background: var(--rose-light); color: var(--rose-deep);
  border-color: var(--rose-primary); transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px var(--rose-glow);
}

.hero__meta { display: flex; gap: 1.5rem; font-size: .85rem; color: var(--slate); font-weight: 600; }
.hero__meta li { display: flex; align-items: center; gap: .4rem; transition: color .2s; }
.hero__meta li:hover { color: var(--rose-deep); }

/* PORTRAIT CON GLOW SUAVE */
.portrait__frame {
  position: relative; max-width: 22rem; margin: 0 auto;
  border-radius: 1.75rem; padding: .75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(226, 143, 162, 0.4);
  box-shadow: 0 18px 40px var(--rose-glow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.portrait__frame:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--rose-deep);
  box-shadow: 0 24px 50px var(--rose-glow-deep);
}
.portrait__img {
  width: 100%; height: 26rem; object-fit: cover; border-radius: 1.25rem;
}
.portrait__badge {
  position: absolute; bottom: -1rem; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid rgba(226, 143, 162, 0.4);
  padding: .6rem 1.2rem; border-radius: 6rem;
  box-shadow: 0 8px 24px rgba(194, 89, 114, 0.15);
  white-space: nowrap; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.portrait__frame:hover .portrait__badge {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 28px var(--rose-glow-deep);
}
.portrait__badge-k { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--rose-deep); letter-spacing: .06em; }
.portrait__badge-v { font-weight: 600; font-size: .85rem; color: var(--ink); }

/* SECCIONES ENCABEZADOS */
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3.5rem; }
.section-kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--rose-deep); margin-bottom: .6rem;
  background: rgba(255, 255, 255, 0.94); padding: .3rem .9rem; border-radius: 6rem;
  border: 1px solid rgba(226, 143, 162, 0.35);
  box-shadow: 0 2px 8px rgba(194, 89, 114, 0.08);
}
.section-title {
  font-family: var(--ff-head); font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700; color: var(--ink); line-height: 1.25; margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--rose-deep); font-weight: 600; }
.section-sub { font-size: 1.05rem; color: var(--slate); font-weight: 500; }

/* MANIFIESTO / ENFOQUE */
.manifesto {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--gap);
  align-items: center; margin-top: 2rem;
}
.manifesto__quote {
  background: rgba(255, 255, 255, 0.94); padding: 2.5rem; border-radius: 1.5rem;
  border-left: 5px solid var(--rose-medium);
  border-top: 1px solid rgba(226, 143, 162, 0.3);
  border-right: 1px solid rgba(226, 143, 162, 0.3);
  border-bottom: 1px solid rgba(226, 143, 162, 0.3);
  box-shadow: 0 10px 30px rgba(194, 89, 114, 0.1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.manifesto__quote:hover {
  transform: translateY(-4px);
  border-left-color: var(--rose-deep);
  box-shadow: 0 16px 40px var(--rose-glow-deep);
}
.manifesto__quote p { font-family: var(--ff-head); font-size: 1.25rem; line-height: 1.6; color: var(--ink); margin-bottom: 1rem; }
.manifesto__quote footer { font-size: .9rem; font-weight: 700; color: var(--rose-deep); }

.manifesto__side { display: flex; flex-direction: column; gap: 1rem; }
.mini-card {
  background: rgba(255, 255, 255, 0.94); padding: 1.25rem 1.5rem; border-radius: 1rem;
  border: 1px solid rgba(226, 143, 162, 0.35);
  box-shadow: 0 4px 16px rgba(194, 89, 114, 0.08);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.mini-card:hover {
  transform: translateX(8px);
  border-color: var(--rose-deep);
  box-shadow: 0 8px 24px var(--rose-glow);
}
.mini-card h3 { font-size: 1rem; font-weight: 700; color: var(--rose-deep); margin-bottom: .3rem; }
.mini-card p { font-size: .875rem; color: var(--slate); font-weight: 500; }

/* PILARES 01 02 03 CON TARJETAS PASTEL CRISTALINAS */
.pillars__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.75rem; }
.pillar {
  background: rgba(255, 255, 255, 0.94); padding: 2.25rem 2rem; border-radius: 1.5rem;
  border: 1px solid rgba(226, 143, 162, 0.35); box-shadow: 0 10px 30px rgba(194, 89, 114, 0.1);
  position: relative;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.pillar:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--rose-deep);
  box-shadow: 0 20px 44px var(--rose-glow-deep);
}
.pillar__num { font-family: var(--ff-head); font-size: 2.5rem; font-weight: 700; color: #f2c0cc; margin-bottom: .5rem; transition: color .3s; }
.pillar:hover .pillar__num { color: var(--rose-deep); }

.pillar__icon {
  width: 3.2rem; height: 3.2rem; border-radius: .85rem;
  background: var(--rose-light); color: var(--rose-deep);
  display: grid; place-items: center; margin-bottom: 1.25rem;
  font-size: 1.25rem; transition: transform .3s var(--ease), background .3s, color .3s;
  box-shadow: 0 4px 12px rgba(194, 89, 114, 0.12);
}
.pillar:hover .pillar__icon { transform: scale(1.15) rotate(5deg); background: var(--grad-rose-main); color: var(--white); }

.pillar:nth-child(1) .pillar__icon { background: #fdf0f3; color: #c25972; }
.pillar:nth-child(2) .pillar__icon { background: #f8dede; color: #d8738a; }
.pillar:nth-child(3) .pillar__icon { background: #f3d4dc; color: #9c3d53; }

.pillar h3 { font-family: var(--ff-head); font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-bottom: .75rem; }
.pillar p { font-size: .925rem; color: var(--slate); margin-bottom: 1.25rem; font-weight: 500; }
.pillar__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.pillar__tags li {
  font-size: .75rem; font-weight: 600; background: #fdf5f7; color: var(--rose-deep);
  padding: .2rem .6rem; border-radius: 6rem; transition: background .2s, color .2s;
  border: 1px solid rgba(226, 143, 162, 0.25);
}
.pillar:hover .pillar__tags li { background: var(--rose-light); color: var(--rose-deep); border-color: var(--rose-primary); }

/* TRAYECTORIA TIMELINE */
.timeline { max-width: 50rem; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 1.25rem; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #f6dbe2, #e28fa2, #c25972); }
.timeline__item { position: relative; padding-left: 3.5rem; margin-bottom: 2.5rem; }
.timeline__item:last-child { margin-bottom: 0; }
.timeline__dot {
  position: absolute; left: .75rem; top: 1.25rem; width: 1.1rem; height: 1.1rem;
  border-radius: 50%; background: var(--white); border: 3px solid var(--rose-deep);
  box-shadow: 0 0 12px var(--rose-glow); transition: transform .3s var(--ease), background .3s;
}
.timeline__item:hover .timeline__dot { transform: scale(1.4); background: var(--rose-deep); }

.timeline__card {
  background: rgba(255, 255, 255, 0.94); padding: 1.75rem 2rem; border-radius: 1.25rem;
  border: 1px solid rgba(226, 143, 162, 0.35);
  box-shadow: 0 8px 28px rgba(194, 89, 114, 0.1);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.timeline__card:hover {
  transform: translateY(-5px) translateX(5px);
  border-color: var(--rose-deep);
  box-shadow: 0 16px 36px var(--rose-glow-deep);
}
.timeline__year { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--white); background: var(--grad-rose-main); padding: .2rem .75rem; border-radius: 6rem; margin-bottom: .6rem; }
.timeline__role { font-family: var(--ff-head); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.timeline__org { font-size: .9rem; font-weight: 600; color: var(--rose-deep); margin-bottom: .75rem; }

/* CREDENTIALES Y FORMACION GRID */
.credentials { padding: 7rem 0; }
.cred__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.5rem; }
.cred__card {
  background: rgba(255, 255, 255, 0.94); padding: 1.75rem; border-radius: 1.25rem;
  border: 1px solid rgba(226, 143, 162, 0.35); display: flex; flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(194, 89, 114, 0.08);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.cred__card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--rose-deep);
  box-shadow: 0 16px 36px var(--rose-glow-deep);
}
.cred__univ { font-size: .85rem; font-weight: 700; color: var(--rose-deep); text-transform: uppercase; margin-bottom: .4rem; }
.cred__degree { font-family: var(--ff-head); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.cred__year { font-size: .8rem; color: var(--mist); font-weight: 600; margin-top: 1rem; }

/* CONTACTO CON CARD ROSA PASTEL */
.contact__card {
  max-width: 52rem; margin: 0 auto; background: rgba(255, 255, 255, 0.96); padding: 3.5rem;
  border-radius: 2rem; border: 1.5px solid rgba(226, 143, 162, 0.4);
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  box-shadow: 0 18px 44px var(--rose-glow-deep);
}
.contact__info h3 { font-family: var(--ff-head); font-size: 1.75rem; font-weight: 700; color: var(--ink); margin-bottom: .75rem; }
.contact__list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.contact__item { display: flex; align-items: center; gap: .75rem; font-weight: 600; color: var(--ink-soft); transition: transform .2s, color .2s; }
.contact__item:hover { transform: translateX(5px); color: var(--rose-deep); }
.contact__icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--rose-light); color: var(--rose-deep); display: grid; place-items: center; transition: background .2s, color .2s; }
.contact__item:hover .contact__icon { background: var(--rose-deep); color: var(--white); }

.contact__form { display: flex; flex-direction: column; gap: 1rem; }
.input {
  width: 100%; padding: .85rem 1.1rem; border-radius: .75rem;
  border: 1px solid var(--ash); background: var(--snow);
  font: inherit; font-size: .9rem; outline: none; transition: border-color .25s, background .25s, box-shadow .25s;
}
.input:focus {
  border-color: var(--rose-deep); background: var(--white);
  box-shadow: 0 0 0 4px var(--rose-glow);
}
textarea.input { min-height: 7rem; resize: vertical; }

/* FOOTER SOFT PASTEL */
.footer {
  padding: 3rem 0; text-align: center;
  border-top: 1px solid rgba(226, 143, 162, 0.3);
  font-size: .85rem; color: var(--ink-soft); font-weight: 600;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
}

/* ── ANIMACIONES DE REVELADO (SCROLL REVEAL) ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.15s; }
.reveal[data-delay="2"] { transition-delay: 0.3s; }
.reveal[data-delay="3"] { transition-delay: 0.45s; }
.reveal[data-delay="4"] { transition-delay: 0.6s; }

/* RESPONSIVE */
@media(max-width: 860px) {
  .hero__inner, .manifesto, .contact__card { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__meta { justify-content: center; }
}
