/* =============================================
   KAROL SANHUEZA - PORTAFOLIO
   Paleta: Rosa Pastel + Blanco Marfil + Dorado suave
   ============================================= */

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

:root {
  --rose-light: #fce4ec;
  --rose-mid: #f8bbd0;
  --rose-deep: #f48fb1;
  --rose-accent: #e91e8c22;
  --blush: #fff0f5;
  --cream: #fdf8f5;
  --ivory: #fffaf8;
  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --charcoal: #3a2e35;
  --text-dark: #4a3840;
  --text-mid: #7a6570;
  --text-light: #a89099;
  --white: #ffffff;
  --shadow-rose: 0 8px 40px rgba(244, 143, 177, 0.2);
  --shadow-soft: 0 4px 24px rgba(58, 46, 53, 0.08);
  --border-rose: 1px solid rgba(248, 187, 208, 0.5);
  --radius: 20px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ivory);
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ─────────────────────────── */
.cursor {
  width: 10px; height: 10px;
  background: var(--rose-deep);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: multiply;
}
.cursor-follower {
  width: 32px; height: 32px;
  border: 1.5px solid var(--rose-deep);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.2s;
  opacity: 0.6;
}

/* ── SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--blush); }
::-webkit-scrollbar-thumb { background: var(--rose-deep); border-radius: 10px; }

/* ── NOISE TEXTURE OVERLAY ─────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.4;
}

/* ── NAVBAR ────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(255, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 30px rgba(244, 143, 177, 0.12);
  padding: 12px 5%;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--rose-deep); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-mid); text-decoration: none;
  letter-spacing: 0.08em; text-transform: uppercase;
  position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 0; height: 1px;
  background: var(--rose-deep); transform: scaleX(0);
  transform-origin: right; transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--charcoal); transition: all 0.3s; display: block; }

/* ── HERO ──────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blush) 0%, var(--rose-light) 40%, var(--cream) 100%);
  z-index: -1;
}
.hero-orbs {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 380px; height: 380px; background: var(--rose-mid); top: -80px; right: -60px; animation-delay: 0s; }
.orb-2 { width: 260px; height: 260px; background: var(--gold-light); bottom: 10%; left: 5%; animation-delay: -3s; }
.orb-3 { width: 180px; height: 180px; background: var(--rose-deep); top: 40%; right: 30%; opacity: 0.2; animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.04); }
}

.hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 6% 80px 8%;
  position: relative; z-index: 1;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(10px);
  border: var(--border-rose); border-radius: 50px;
  padding: 6px 16px; font-size: 0.75rem;
  color: var(--rose-deep); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 28px; width: fit-content;
  animation: fadeInUp 0.8s ease both;
}
.hero-tag::before { content: '✦'; font-size: 0.6rem; }
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300; line-height: 1.05;
  color: var(--charcoal); margin-bottom: 8px;
  animation: fadeInUp 0.8s ease 0.15s both;
}
.hero-name strong { font-weight: 600; color: var(--charcoal); display: block; }
.hero-name em { font-style: italic; color: var(--rose-deep); }
.hero-title {
  font-size: 0.9rem; font-weight: 300;
  color: var(--text-mid); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.25s both;
}
.hero-divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--rose-deep), transparent);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-bio {
  font-size: 0.95rem; line-height: 1.8;
  color: var(--text-mid); max-width: 440px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-ctas {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.btn-primary {
  padding: 14px 32px; border-radius: 50px;
  background: var(--charcoal); color: var(--white);
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; transition: all 0.3s ease;
  border: 2px solid var(--charcoal);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--rose-deep); transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }
.btn-secondary {
  padding: 14px 32px; border-radius: 50px;
  background: transparent; color: var(--charcoal);
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; transition: all 0.3s ease;
  border: 1.5px solid var(--rose-mid);
}
.btn-secondary:hover {
  background: var(--rose-light); border-color: var(--rose-deep);
}
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  padding: 120px 8% 80px 4%; position: relative;
  animation: fadeInRight 1s ease 0.3s both;
}
.hero-card {
  background: rgba(255,255,255,0.75); backdrop-filter: blur(20px);
  border: var(--border-rose); border-radius: 28px;
  padding: 44px 40px; width: 100%; max-width: 380px;
  box-shadow: var(--shadow-rose);
  position: relative;
}
.hero-card::before {
  content: ''; position: absolute;
  top: -1px; left: 30px; right: 30px; height: 3px;
  background: linear-gradient(90deg, var(--rose-mid), var(--rose-deep), var(--gold));
  border-radius: 0 0 3px 3px;
}
.avatar-ring {
  width: 90px; height: 90px;
  border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--rose-mid), var(--rose-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; color: white; font-weight: 600;
  position: relative;
}
.avatar-ring::after {
  content: ''; position: absolute; inset: -5px;
  border-radius: 50%; border: 1.5px dashed var(--rose-mid);
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 600;
  text-align: center; color: var(--charcoal);
  margin-bottom: 4px;
}
.card-role {
  font-size: 0.75rem; color: var(--rose-deep);
  text-align: center; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 24px;
}
.card-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 24px;
}
.stat-item {
  background: var(--blush); border-radius: 14px;
  padding: 14px; text-align: center;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 600; color: var(--charcoal);
  line-height: 1;
}
.stat-label { font-size: 0.68rem; color: var(--text-light); margin-top: 3px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 12px; border-radius: 50px;
  background: var(--rose-light); color: var(--text-mid);
  font-size: 0.7rem; font-weight: 500;
}

/* ── SECTION COMMONS ───────────────────────── */
section { position: relative; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 100px 5%; }
.section-header { margin-bottom: 64px; }
.section-tag {
  font-size: 0.72rem; font-weight: 500;
  color: var(--rose-deep); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-tag::before { content: ''; display: block; width: 30px; height: 1px; background: var(--rose-deep); }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300; color: var(--charcoal); line-height: 1.1;
}
.section-title strong { font-weight: 600; }

/* ── SOBRE MÍ ──────────────────────────────── */
.about {
  background: var(--white);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: center;
}
.about-left { position: relative; }
.about-decoration {
  position: absolute; top: -20px; left: -20px;
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--rose-light); z-index: 0; opacity: 0.6;
}
.about-card-main {
  background: var(--blush); border-radius: 24px;
  padding: 40px; position: relative; z-index: 1;
  border: var(--border-rose);
}
.about-icon-big {
  font-size: 3.5rem; margin-bottom: 20px; display: block;
}
.about-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: 16px;
}
.about-card-text {
  font-size: 0.9rem; line-height: 1.8; color: var(--text-mid);
}
.about-float-card {
  position: absolute; bottom: -24px; right: -28px;
  background: var(--white); border-radius: 18px;
  padding: 16px 24px; box-shadow: var(--shadow-rose);
  border: var(--border-rose); z-index: 2;
}
.float-card-label { font-size: 0.68rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.1em; }
.float-card-val { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--charcoal); }
.about-right {}
.about-text {
  font-size: 1rem; line-height: 1.9; color: var(--text-mid);
  margin-bottom: 28px;
}
.about-highlights { display: flex; flex-direction: column; gap: 16px; }
.highlight-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border-radius: 14px;
  background: var(--cream); border: var(--border-rose);
  transition: transform 0.3s, box-shadow 0.3s;
}
.highlight-item:hover { transform: translateX(6px); box-shadow: var(--shadow-soft); }
.highlight-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.highlight-content h4 { font-size: 0.88rem; font-weight: 500; color: var(--charcoal); margin-bottom: 3px; }
.highlight-content p { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; }

/* ── COMPETENCIAS ──────────────────────────── */
.competencias { background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 100%); }
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.comp-card {
  background: var(--white); border-radius: 20px;
  padding: 32px 28px; border: var(--border-rose);
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative; overflow: hidden;
}
.comp-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--rose-mid), var(--rose-deep));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.comp-card:hover::before { transform: scaleX(1); }
.comp-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-rose); }
.comp-emoji { font-size: 2rem; margin-bottom: 16px; display: block; }
.comp-title { font-size: 0.95rem; font-weight: 500; color: var(--charcoal); margin-bottom: 10px; }
.comp-desc { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }

/* ── FORMACIÓN ─────────────────────────────── */
.formacion { background: var(--white); }
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 8px; bottom: 0;
  width: 1.5px; background: linear-gradient(180deg, var(--rose-deep), var(--rose-light), transparent);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot {
  position: absolute; left: -28px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 2.5px solid var(--rose-deep);
  transition: all 0.3s;
}
.timeline-item:hover .timeline-dot {
  background: var(--rose-deep); transform: scale(1.3);
}
.timeline-card {
  background: var(--cream); border-radius: 16px;
  padding: 24px 28px; border: var(--border-rose);
  transition: all 0.3s;
}
.timeline-item:hover .timeline-card { box-shadow: var(--shadow-soft); }
.timeline-year {
  font-size: 0.72rem; color: var(--rose-deep);
  letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 500; margin-bottom: 6px;
}
.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: 4px;
}
.timeline-place { font-size: 0.82rem; color: var(--text-mid); }

/* ── PRÁCTICA ──────────────────────────────── */
.practica { background: var(--blush); }
.practica-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.practica-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border-radius: 14px;
  padding: 20px 22px; border: var(--border-rose);
  transition: all 0.3s;
}
.practica-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.practica-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose-deep); flex-shrink: 0; margin-top: 7px; }
.practica-text { font-size: 0.85rem; color: var(--text-mid); line-height: 1.5; }
.practica-text strong { color: var(--charcoal); font-weight: 500; }

/* ── CERTIFICADOS ──────────────────────────── */
.certificados { background: var(--cream); }
.certs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cert-card {
  background: var(--white); border-radius: 24px;
  overflow: hidden; border: var(--border-rose);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}
.cert-card:hover { transform: translateY(-10px); box-shadow: 0 24px 60px rgba(244, 143, 177, 0.25); }
.cert-img-wrap {
  position: relative; overflow: hidden;
  height: 260px;
}
.cert-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform 0.5s ease;
}
.cert-card:hover .cert-img-wrap img { transform: scale(1.04); }
.cert-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(252, 228, 236, 0.6), transparent);
}
.cert-zoom-btn {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border: none; border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; opacity: 0; transition: opacity 0.3s;
}
.cert-card:hover .cert-zoom-btn { opacity: 1; }
.cert-info { padding: 24px 26px; }
.cert-source {
  font-size: 0.7rem; color: var(--rose-deep);
  letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 500; margin-bottom: 6px;
}
.cert-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: 6px;
  line-height: 1.3;
}
.cert-detail { font-size: 0.78rem; color: var(--text-light); }

/* ── LIGHTBOX ──────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(30, 10, 20, 0.88); z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 88vh;
  border-radius: 12px; box-shadow: 0 0 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: white;
  font-size: 2rem; cursor: pointer; opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ── CONTACTO ──────────────────────────────── */
.contacto {
  background: linear-gradient(135deg, var(--charcoal) 0%, #5a3a48 100%);
  position: relative; overflow: hidden;
}
.contacto::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,143,177,0.15), transparent 70%);
}
.contacto::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.1), transparent 70%);
}
.contacto .section-tag { color: var(--rose-mid); }
.contacto .section-tag::before { background: var(--rose-mid); }
.contacto .section-title { color: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: start; position: relative; z-index: 1;
}
.contact-intro {
  font-size: 0.95rem; line-height: 1.8; color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
}
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}
.contact-item:hover { background: rgba(248,187,208,0.1); border-color: rgba(248,187,208,0.3); }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-label { font-size: 0.7rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-val { font-size: 0.88rem; color: var(--white); margin-top: 2px; }
.contact-val a { color: var(--rose-mid); text-decoration: none; }
.contact-val a:hover { text-decoration: underline; }
.contact-form-wrap {
  background: rgba(255,255,255,0.06); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 24px;
  padding: 40px;
}
.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; color: white; margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; color: white; font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s; outline: none;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--rose-mid);
  background: rgba(248,187,208,0.08);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.btn-send {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--rose-deep), var(--rose-mid));
  border: none; border-radius: 10px; color: white;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer;
  transition: all 0.3s; font-family: 'DM Sans', sans-serif;
}
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(244,143,177,0.4); }

/* ── FOOTER ────────────────────────────────── */
footer {
  background: #2a1e25;
  text-align: center; padding: 32px;
  font-size: 0.78rem; color: rgba(255,255,255,0.3);
}
footer span { color: var(--rose-mid); }

/* ── ANIMATIONS ────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: 120px 8% 80px; max-width: 680px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-left { max-width: 420px; }
  .comp-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; width: 70vw; background: var(--ivory); padding: 80px 40px; gap: 2rem; z-index: 99; transform: translateX(100%); transition: transform 0.4s ease; box-shadow: -20px 0 60px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; transform: translateX(0); }
  .nav-links a { font-size: 1rem; }
  .nav-toggle { display: flex; }
  .comp-grid { grid-template-columns: 1fr; }
  .practica-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 2.8rem; }
  .section-inner { padding: 80px 5%; }
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
  .about-float-card { display: none; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
  .card-stats { grid-template-columns: 1fr 1fr; }
}
