/* Micho CV Landing — Colores corporativos Yotta (yotta.cl) */

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

:root {
  --yotta-blue: #428bca;
  --yotta-blue-dark: #357abd;
  --yotta-blue-light: rgba(66, 139, 202, 0.12);
  --yotta-dark: #222222;
  --yotta-dark-soft: #333333;
  --yotta-gray: #666666;
  --yotta-gray-light: #efefef;
  --yotta-gray-bg: #f5f5f5;
  --yotta-text: #444444;
  --yotta-white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --font-body: "Open Sans", system-ui, sans-serif;
  --font-heading: "Raleway", system-ui, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(34, 34, 34, 0.08);
  --header-h: 72px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--yotta-text);
  background: var(--yotta-white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

/* ── Header ── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.is-scrolled {
  border-bottom-color: var(--yotta-gray-light);
  box-shadow: var(--shadow);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--yotta-dark);
  letter-spacing: -0.02em;
}

.logo span { color: var(--yotta-blue); }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links {
  display: flex;
  gap: 1.75rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--yotta-gray);
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--yotta-blue);
}

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

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--yotta-dark);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

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

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--yotta-white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn--primary {
  background: var(--yotta-blue);
  color: var(--yotta-white);
}

.btn--primary:hover {
  background: var(--yotta-blue-dark);
}

.btn--outline {
  background: transparent;
  color: var(--yotta-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  border-color: var(--yotta-white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost {
  background: var(--yotta-white);
  color: var(--yotta-blue);
  border-color: var(--yotta-gray-light);
}

.btn--ghost:hover {
  border-color: var(--yotta-blue);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* ── Hero ── */
.hero {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  background: linear-gradient(160deg, var(--yotta-gray-bg) 0%, var(--yotta-white) 55%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: var(--yotta-blue-light);
  border-radius: 50%;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yotta-blue);
  background: var(--yotta-blue-light);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  color: var(--yotta-dark);
  margin-bottom: 1rem;
}

.hero__title em {
  font-style: normal;
  color: var(--yotta-blue);
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--yotta-gray);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero__highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--whatsapp-dark);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__card {
  background: var(--yotta-dark);
  color: var(--yotta-white);
  border-radius: calc(var(--radius) * 2);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero__card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yotta-blue), var(--yotta-blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hero__card h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.hero__card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero__meta {
  display: grid;
  gap: 0.85rem;
}

.hero__meta li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  gap: 1rem;
}

.hero__meta span:first-child {
  color: rgba(255, 255, 255, 0.55);
}

.hero__meta span:last-child {
  font-weight: 600;
  text-align: right;
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section--gray {
  background: var(--yotta-gray-bg);
}

.section--dark {
  background: var(--yotta-dark);
  color: var(--yotta-white);
}

.section__header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yotta-blue);
  margin-bottom: 0.75rem;
}

.section--dark .section__label { color: rgba(66, 139, 202, 0.9); }

.section__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  color: var(--yotta-dark);
  margin-bottom: 0.75rem;
}

.section--dark .section__title { color: var(--yotta-white); }

.section__desc {
  color: var(--yotta-gray);
  font-size: 1.05rem;
}

.section--dark .section__desc { color: rgba(255, 255, 255, 0.65); }

/* ── Services ── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--yotta-white);
  border: 1px solid var(--yotta-gray-light);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.section--gray .service-card { background: var(--yotta-white); }

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--yotta-blue);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--yotta-blue-light);
  color: var(--yotta-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--yotta-dark);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--yotta-gray);
}

/* ── Experience ── */
.experience__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline__item {
  position: relative;
  padding: 0 0 2rem 1.75rem;
  border-left: 2px solid var(--yotta-gray-light);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yotta-blue);
  border: 2px solid var(--yotta-white);
}

.timeline__year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--yotta-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.timeline__item h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--yotta-dark);
  margin-bottom: 0.25rem;
}

.timeline__item p {
  font-size: 0.92rem;
  color: var(--yotta-gray);
}

.skills {
  background: var(--yotta-white);
  border: 1px solid var(--yotta-gray-light);
  border-radius: var(--radius);
  padding: 2rem;
}

.skills h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yotta-dark);
  margin-bottom: 1.25rem;
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skills__list li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yotta-blue);
  background: var(--yotta-blue-light);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* ── Process ── */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.process-step__num {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(66, 139, 202, 0.2);
  color: var(--yotta-blue);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section--dark .process-step__num {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yotta-white);
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--yotta-gray);
}

.section--dark .process-step p {
  color: rgba(255, 255, 255, 0.6);
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--yotta-blue) 0%, var(--yotta-blue-dark) 100%);
  color: var(--yotta-white);
  border-radius: calc(var(--radius) * 2);
  padding: 3rem;
  text-align: center;
  margin-top: 3rem;
}

.cta-banner h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

/* ── Contact ── */
.contact__box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.contact__info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yotta-dark);
  margin-bottom: 1rem;
}

.contact__info p {
  color: var(--yotta-gray);
  margin-bottom: 1.5rem;
}

.contact__channels {
  display: grid;
  gap: 1rem;
}

.contact__channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--yotta-gray-bg);
  border-radius: var(--radius);
  border: 1px solid var(--yotta-gray-light);
  transition: border-color var(--transition);
}

.contact__channel:hover { border-color: var(--yotta-blue); }

.contact__channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__channel-icon--wa { background: rgba(37, 211, 102, 0.15); color: var(--whatsapp-dark); }
.contact__channel-icon--mail { background: var(--yotta-blue-light); color: var(--yotta-blue); }

.contact__channel strong {
  display: block;
  font-size: 0.95rem;
  color: var(--yotta-dark);
}

.contact__channel span {
  font-size: 0.85rem;
  color: var(--yotta-gray);
}

.contact__card {
  background: var(--yotta-dark);
  color: var(--yotta-white);
  border-radius: calc(var(--radius) * 2);
  padding: 2.5rem;
  text-align: center;
}

.contact__card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact__card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
}

/* ── Footer ── */
.footer {
  background: var(--yotta-dark);
  color: rgba(255, 255, 255, 0.55);
  padding: 2rem 0;
  font-size: 0.85rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--yotta-blue);
  transition: color var(--transition);
}

.footer a:hover { color: var(--yotta-white); }

/* ── Floating WhatsApp ── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--yotta-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), background var(--transition);
  animation: float-bounce 3s ease-in-out infinite;
}

.wa-float:hover {
  transform: scale(1.08);
  background: var(--whatsapp-dark);
  animation: none;
}

.wa-float svg { width: 28px; height: 28px; }

@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__grid,
  .experience__grid,
  .contact__box {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav__links,
  .nav .btn--whatsapp { display: none; }

  .nav__toggle { display: flex; }

  .nav__mobile {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--yotta-white);
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 99;
    border-top: 1px solid var(--yotta-gray-light);
  }

  .nav__mobile.is-open { display: flex; }

  .nav__mobile a {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--yotta-dark);
  }

  .nav__mobile .btn { width: 100%; }

  .process__grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 2rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
