/* =========================================================
   PAU MARTÍ FELIP — Rediseño Bold & Playful
   Inspiración: OATFUEL — crema, amarillo, tipografía pesada
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  /* Paleta */
  --cream:       #F5F0E4;
  --cream-2:     #EDE8D8;
  --white:       #FFFFFF;
  --yellow:      #FFD23F;
  --yellow-dark: #E6BB2A;
  --navy:        #0F0F1A;
  --navy-2:      #1C1C2E;
  --purple:      #5C3BFE;
  --purple-lt:   #EDE8FF;
  --teal:        #00C4B4;
  --teal-lt:     #D6F5F2;
  --coral:       #FF6B5B;
  --coral-lt:    #FFEAE8;
  --text:        #0F0F1A;
  --text-muted:  #5A5A72;
  --text-dim:    #9898AA;
  --border:      #0F0F1A;
  --shadow:      4px 6px 0px #0F0F1A;
  --shadow-lg:   6px 8px 0px #0F0F1A;
  --shadow-sm:   2px 3px 0px #0F0F1A;
  --radius:      20px;
  --radius-sm:   12px;
  --radius-xs:   8px;
  --transition:  0.25s cubic-bezier(0.4,0,0.2,1);
  --font-head:   'Syne', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

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

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ----- UTILITIES ----- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section { padding: 100px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-label::before { content: '✦'; font-size: 0.65rem; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 56px;
  color: var(--navy);
}

/* Stars decorative */
.section-title::after {
  content: ' ✦';
  font-size: 0.6em;
  color: var(--yellow-dark);
  vertical-align: super;
}

/* ----- NAVBAR ----- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--cream);
  border-bottom: 2px solid var(--border);
  padding: 10px 0;
  box-shadow: 0 4px 0px var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.nav-logo .dot { color: var(--purple); }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--navy);
  background: var(--yellow);
  border: 1.5px solid var(--border);
}

.nav-cta {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--border);
  padding: 10px 22px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ----- HERO ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 130px 28px 90px;
  background: var(--cream);
}

/* Squiggle / doodle bg */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(15,15,26,0.06) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
}

/* Remove animated orbs — replace with color blobs */
.hero-orb { display: none; }

.hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: var(--yellow);
  border-radius: 50%;
  top: -180px; right: -150px;
  opacity: 0.25;
  filter: blur(0);
}

.hero::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  background: var(--purple-lt);
  border-radius: 50%;
  bottom: -120px; left: -80px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--border);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(-10px);
  animation: fade-in-down 0.5s 0.1s forwards;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}

.hero-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
  opacity: 0;
  transform: scale(0.85);
  animation: scale-in 0.6s 0.2s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

.hero-avatar {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(15,15,26,0.2);
  animation: ring-spin 20s linear infinite;
}
.avatar-ring::after {
  content: '✦';
  position: absolute;
  font-size: 12px;
  color: var(--yellow-dark);
  top: 0; left: 50%;
  transform: translateX(-50%);
}

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

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--navy);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.6s 0.3s forwards;
}

.name-highlight {
  position: relative;
  display: inline-block;
}
.name-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 8px;
  background: var(--yellow);
  z-index: -1;
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow 0.7s 1s forwards;
}
@keyframes underline-grow { to { transform: scaleX(1); } }

.hero-role {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.6s 0.4s forwards;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.6s 0.5s forwards;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 36px;
  opacity: 0;
  animation: fade-in-up 0.6s 0.55s forwards;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fade-in-up 0.6s 0.6s forwards;
  flex-wrap: wrap;
}

.stat {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 130px;
  transition: var(--transition);
}
.stat:hover { transform: translate(-2px,-3px); box-shadow: var(--shadow); }

.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.stat-plus { font-size: 1.4rem; font-weight: 800; color: var(--purple); }
.stat-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.03em; }
.stat-divider { display: none; }

/* CTAs */
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
  opacity: 0;
  animation: fade-in-up 0.6s 0.7s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid var(--border);
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translate(-2px,-3px); box-shadow: var(--shadow-lg); }

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { transform: translate(-2px,-3px); box-shadow: var(--shadow-lg); }

/* Social */
.social-strip {
  display: flex;
  gap: 10px;
  justify-content: center;
  opacity: 0;
  animation: fade-in-up 0.6s 0.8s forwards;
}

.social-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-xs);
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { background: var(--yellow); transform: translate(-2px,-3px); box-shadow: var(--shadow); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: fade-in 1s 1.5s forwards;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2.5px solid var(--text-dim);
  border-bottom: 2.5px solid var(--text-dim);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(5px); } }

/* ----- ABOUT ----- */
.about-section {
  background: var(--white);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

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

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.85;
}
.about-text p strong { color: var(--navy); font-weight: 700; }

.skills-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.skill-tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--cream);
  border: 2px solid var(--border);
  color: var(--navy);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: default;
}
.skill-tag:hover { background: var(--yellow); transform: translate(-1px,-2px); box-shadow: var(--shadow); }

.cert-list li {
  padding: 10px 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--cream-2);
}
.cert-list li:last-child { border-bottom: none; }

/* ----- SERVICES ----- */
.services-section {
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card color variants */
.service-card:nth-child(1) { --card-bg: var(--purple-lt); }
.service-card:nth-child(2) { --card-bg: var(--yellow); }
.service-card:nth-child(3) { --card-bg: var(--teal-lt); }
.service-card:nth-child(4) { --card-bg: var(--coral-lt); }
.service-card:nth-child(5) { --card-bg: var(--yellow); }
.service-card:nth-child(6) { --card-bg: var(--purple-lt); }

.service-card {
  background: var(--card-bg, var(--white));
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow);
}
.service-card:hover { transform: translate(-3px,-4px); box-shadow: var(--shadow-lg); }

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}

.service-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.6;
  margin-bottom: 8px;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.service-link:hover { background: var(--yellow); color: var(--navy); transform: translate(-1px,-2px); box-shadow: var(--shadow); }

/* ----- EXPERIENCE ----- */
.experience-section {
  background: var(--white);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.timeline {
  position: relative;
  max-width: 720px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 6px; bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--border) 0, var(--border) 6px, transparent 6px, transparent 12px);
}

.timeline-item {
  display: flex;
  gap: 28px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.timeline-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2.5px solid var(--border);
  flex-shrink: 0;
  margin-top: 14px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.timeline-card {
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  flex: 1;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.timeline-card:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); background: var(--white); }

.timeline-year {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.timeline-card h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.timeline-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ----- CONTACT ----- */
.contact-section { background: var(--cream); }

.contact-intro {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 48px;
  line-height: 1.75;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 700px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.contact-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow); background: var(--yellow); }

.contact-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-xs);
  background: var(--cream);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.contact-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

/* ----- FOOTER ----- */
.footer {
  background: var(--navy);
  border-top: 2px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--yellow); }

/* ----- ANIMATIONS ----- */
@keyframes fade-in-up {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fade-in-down {
  from { opacity:0; transform:translateY(-10px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes scale-in {
  from { opacity:0; transform:scale(0.85); }
  to   { opacity:1; transform:scale(1); }
}
@keyframes fade-in { to { opacity:1; } }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 700px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--border);
    padding: 20px 28px;
    gap: 4px;
    z-index: 999;
  }

  .services-grid { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .hero-stats    { gap: 12px; }
  .section       { padding: 72px 0; }
  .timeline::before { left: 8px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
