/* ============================================================
   home.css — Estilos exclusivos del home (index.html)
   alvarocofre.dev
   ============================================================ */

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero__badge {
  margin-bottom: 1.5rem;
}

.hero__badge .badge {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hero__badge .badge {
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    font-size: 12px;
    max-width: 260px;
  }
}

/* Badge invertido sobre fondo oscuro */
.hero .badge--green {
  border-color: rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.08);
  color: #4ade80;
}
.hero .badge--green::before {
  background: #4ade80;
}

.hero__h1 {
  font-size: clamp(38px, 6.5vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  line-height: 1.05;
}

.hero__h1 em {
  font-style: italic;
  font-weight: 600;
}

.hero__sub {
  font-size: clamp(var(--text-sm), 2vw, var(--text-md));
  color: rgba(255, 255, 255, 0.55);
  max-width: 54ch;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__social-proof {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 3rem;
}

.hero__social-proof strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Stats tipo tarjeta */
.hero__stats {
  display: inline-flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  gap: 0.2rem;
}

.hero__stat + .hero__stat {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__stat-num {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero__stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(100svh - var(--nav-h));
    align-items: center;
  }
  .hero .container { width: 100%; }
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }
  .hero__stat:nth-child(3) {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ── COMPANIES STRIP ──────────────────────────────────────────── */
.companies {
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-block: 1.6rem;
}

.companies__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 1.25rem;
}

/* Desktop: logos estáticos */
.companies__static {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2rem;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: clamp(2rem, 5vw, 4rem);
}

/* Mobile: track oculto en desktop */
.companies__track {
  display: none;
}

.companies__logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.4;
  transition: opacity 0.2s;
}

.companies__logo--lg {
  height: 52px;
}

.companies__logo:hover {
  opacity: 0.75;
}

/* Nombre de empresa como texto (cuando no hay logo imagen) */
.companies__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}

.companies__name:hover {
  color: rgba(255, 255, 255, 0.65);
}

@keyframes companies-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Mobile: ocultar estático, mostrar marquee */
@media (max-width: 768px) {
  .companies__static { display: none; }
  .companies__track {
    display: block;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  }
  .companies__marquee {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: companies-scroll 16s linear infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    .companies__marquee { animation: none; }
  }
}

/* ── SERVICIOS STICKY ─────────────────────────────────────────── */
.services-sticky {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.services-sticky__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

/* LEFT: sticky */
.services-sticky__left {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: flex-start;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 3rem;
  padding-right: 3rem;
}

.services-sticky__left-inner {
  width: 100%;
}

.services-sticky__title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.035em;
  margin-top: 0.35rem;
  margin-bottom: 0.8rem;
  line-height: 1.08;
}

.services-sticky__title em {
  font-style: italic;
}

.services-sticky__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.services-sticky__sub {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Nav lateral */
.services-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.services-nav__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s, background 0.2s;
  text-align: left;
  cursor: pointer;
}

.services-nav__item:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
}

.services-nav__item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.services-nav__num {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.2);
  font-variant-numeric: tabular-nums;
  min-width: 22px;
}

.services-nav__item.active .services-nav__num {
  color: rgba(255, 255, 255, 0.45);
}

/* RIGHT: paneles */
.services-sticky__right {
  padding-block: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-panel {
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.service-panel.active {
  opacity: 1;
}

.service-panel__card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.service-panel__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.25rem;
}

.service-panel__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.service-panel__problem {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-panel__example {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.service-panel__example-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.35rem;
}

.service-panel__example-desc {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.service-panel__result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: #4ade80;
  font-weight: 500;
}

/* Mobile: sin sticky */
@media (max-width: 900px) {
  .services-sticky__wrapper { grid-template-columns: 1fr; }

  .services-sticky__title { font-size: clamp(40px, 11vw, 56px); }

  .services-sticky__left {
    position: relative;
    top: 0;
    height: auto;
    padding-block: 3rem 1.5rem;
  }

  .services-sticky__left-inner { padding-right: 0; }

  .services-nav { display: none; }

  .service-panel { opacity: 1; }
}

/* ── PROYECTOS DESTACADOS ────────────────────────────────────── */
.projects__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.projects__head h2 {
  font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
  letter-spacing: -0.02em;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: var(--ink-3);
  transform: translateY(-2px);
}

.project-card__thumb {
  aspect-ratio: 16/10;
  background: var(--surface);
  overflow: hidden;
}

.project-card__thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.project-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__client {
  font-size: var(--text-xs);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.project-card__name {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.project-card__desc {
  font-size: var(--text-sm);
  color: var(--ink-2);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.6;
}

.project-card__result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--green);
  font-weight: 500;
  margin-bottom: 1rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-card__link {
  font-size: var(--text-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  transition: opacity 0.15s;
  align-self: flex-start;
}
.project-card__link:hover { opacity: 0.8; }
.project-card__link::after { content: '→'; }

@media (max-width: 768px) {
  .projects__grid { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 768px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── PROCESO ─────────────────────────────────────────────────── */
.process {
  background: var(--bg);
}

.process__head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.process__head h2 {
  font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
  letter-spacing: -0.02em;
}

.process__timeline {
  position: relative;
  max-width: 580px;
  margin-inline: auto;
}

.process__line-track {
  position: absolute;
  left: 18px;
  top: 19px;
  bottom: 19px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  pointer-events: none;
}

.process__line-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: var(--ink);
  border-radius: 2px;
  transition: height 0.08s linear;
}

.process__items {
  display: flex;
  flex-direction: column;
}

.pstep {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 2.5rem;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}
.pstep:last-child { padding-bottom: 0; }
.pstep.active { opacity: 1; }

.pstep__dot {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
  transition: background 0.35s, border-color 0.35s;
}
.pstep.active .pstep__dot {
  background: var(--ink);
  border-color: var(--ink);
}
.pstep__dot span {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  transition: color 0.35s;
}
.pstep.active .pstep__dot span { color: var(--white); }

.pstep__content { padding-top: 0.5rem; }

.pstep__title {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.pstep__desc {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.65;
}

/* ── WHY / LO QUE MARCA LA DIFERENCIA ───────────────────────── */
.why {
  background: var(--bg-dark);
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(6rem, 10vw, 10rem);
}

.why__head {
  text-align: center;
  padding-bottom: 3rem;
}

.why .section-label {
  color: rgba(255, 255, 255, 0.28);
}

.why__head h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.why__head p {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.42);
  max-width: 52ch;
  margin-inline: auto;
  margin-top: 0.75rem;
  line-height: 1.65;
}

.why__cards {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

.why-card {
  position: -webkit-sticky;
  position: sticky;
  margin-bottom: 3rem;
  width: 100%;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 2.5rem 2.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Desktop: top y z-index por posición */
.why-card:nth-child(1) { top: calc(var(--nav-h) + 24px);       z-index: 1; }
.why-card:nth-child(2) { top: calc(var(--nav-h) + 24px + 28px); z-index: 2; }
.why-card:nth-child(3) { top: calc(var(--nav-h) + 24px + 56px); z-index: 3; }
.why-card:nth-child(4) { top: calc(var(--nav-h) + 24px + 84px); z-index: 4; }
.why-card:nth-child(5) { top: calc(var(--nav-h) + 24px + 112px); z-index: 5; }
.why-card:nth-child(6) { top: calc(var(--nav-h) + 24px + 140px); z-index: 6; }

.why-card__icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
}

.why-card__icon svg {
  width: 26px;
  height: 26px;
}

.why-card__body { flex: 1; }

.why-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.why-card__desc {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .why-card {
    padding: 1.5rem 1.25rem;
    gap: 1rem;
    border-radius: 16px;
  }
  .why-card:nth-child(1) { top: calc(var(--nav-h) + 14px); }
  .why-card:nth-child(2) { top: calc(var(--nav-h) + 34px); }
  .why-card:nth-child(3) { top: calc(var(--nav-h) + 54px); }
  .why-card:nth-child(4) { top: calc(var(--nav-h) + 74px); }
  .why-card:nth-child(5) { top: calc(var(--nav-h) + 94px); }
  .why-card:nth-child(6) { top: calc(var(--nav-h) + 114px); }
  .why-card__icon { width: 44px; height: 44px; }
  .why-card__icon svg { width: 22px; height: 22px; }
  .why-card__title { font-size: var(--text-md); }
  .why-card__desc { font-size: var(--text-sm); }
}

/* ── RESEÑAS GOOGLE ─────────────────────────────────────────── */
.reviews {
  background: var(--bg-dark);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(5rem, 8vw, 8rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 7;
}

.reviews .section-label {
  color: rgba(255, 255, 255, 0.28);
}

.reviews__head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.reviews__head h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  max-width: 32ch;
  margin-inline: auto;
  margin-top: 0.5rem;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
  max-width: var(--max-w);
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.review-card {
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 2rem 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.review-card__stars {
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #f59e0b;
}

.review-card__text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  flex: 1;
  margin: 0;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.review-card__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.review-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.review-card__meta {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.28);
}

.reviews__footer {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.reviews__google-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.reviews__google-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
  .reviews__grid { grid-template-columns: 1fr; max-width: 520px; }
}

@media (min-width: 600px) and (max-width: 900px) {
  .reviews__grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
  .review-card:last-child { grid-column: 1 / -1; }
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq {
  background: var(--bg);
}

.faq__head {
  text-align: center;
  margin-bottom: 3rem;
}

.faq__head h2 {
  font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
  letter-spacing: -0.02em;
}

.faq__list {
  max-width: 680px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  gap: 1rem;
  cursor: pointer;
}

.faq-item__btn::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--ink-3);
}

.faq-item__btn[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item__body.open {
  max-height: 400px;
}

.faq-item__body p {
  padding-bottom: 1.25rem;
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.7;
}

/* ── CTA FINAL ───────────────────────────────────────────────── */
.cta-final {
  text-align: center;
}

.cta-final h2 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.04em;
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  line-height: 1.05;
}

.cta-final h2 em {
  font-style: italic;
}

.cta-final p {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.45);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.cta-final__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── SOBRE MÍ PREVIEW ────────────────────────────────────────── */
.about-preview__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 760px;
  margin-inline: auto;
}

.about-preview__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border);
}

.about-preview__text h2 {
  font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.about-preview__text p {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 52ch;
}

@media (max-width: 600px) {
  .about-preview__inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .about-preview__text p { max-width: 100%; }
}

/* ── BLOG PREVIEW ────────────────────────────────────────────── */
.blog-preview__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.blog-preview__head h2 {
  font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
  letter-spacing: -0.02em;
}

.blog-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.article-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover {
  border-color: var(--ink-3);
  transform: translateY(-2px);
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.article-card__title {
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  flex: 1;
}

.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  margin-top: auto;
  transition: gap 0.15s;
}

.article-card__link::after {
  content: '→';
  transition: transform 0.15s;
}

.article-card:hover .article-card__link::after {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .blog-preview__grid { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 768px) {
  .blog-preview__grid { grid-template-columns: repeat(2, 1fr); }
}
