/* ==========================================================================
   Inversiones C3 v2 — Orange + Gray, druo-inspired
   ========================================================================== */

:root {
  --orange: #FF5F00;
  --orange-dark: #E55500;
  --orange-light: #FFF4EE;
  --gray-900: #1C1C1E;
  --gray-700: #48484A;
  --gray-500: #8E8E93;
  --gray-200: #E5E5EA;
  --gray-100: #F2F2F7;
  --gray-50: #FAFAFA;
  --white: #FFFFFF;

  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(28, 28, 30, 0.08);
  --shadow-lg: 0 12px 48px rgba(28, 28, 30, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

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

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

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  display: block;
  height: 26px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .nav__logo-img {
    height: 30px;
    max-width: 190px;
  }
}

.nav__cta {
  padding: 10px 20px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.nav__cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(242, 101, 34, 0.35);
}

.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(242, 101, 34, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
}

.btn--ghost:hover {
  border-color: var(--gray-500);
  color: var(--gray-900);
}

.btn--lg { padding: 16px 36px; font-size: 1rem; }

/* ---- Hero ---- */
.hero {
  padding: calc(var(--nav-h) + 48px) 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding-top: calc(var(--nav-h) + 80px);
    padding-bottom: 80px;
    gap: 40px 64px;
  }
}

.hero__tag {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-light);
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
}

.hero__tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 95, 0, 0.55);
  animation: statusPulse 2s ease-out infinite;
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 1.0625rem;
  color: var(--gray-700);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.hero__proof li {
  position: relative;
  padding-left: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
}

.hero__proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 6px;
  margin-top: -4px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

.hero__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 34%;
  transform: scale(1.42);
}

/* ---- Trust strip ---- */
.trust {
  position: relative;
  background: var(--gray-900);
  padding: 64px 24px;
  overflow: hidden;
}

.trust::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 95, 0, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.trust__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.trust__intro {
  max-width: 560px;
  margin-bottom: 40px;
}

.trust__eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.trust__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 10px;
}

.trust__desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.09);
}

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

@media (min-width: 1024px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
}

.trust__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 24px;
  background: var(--gray-900);
}

.trust__num {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.trust__item span {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-500);
}

/* ---- Values ---- */
.values {
  padding: 80px 24px;
  background: var(--gray-50);
}

.values__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.values__header {
  max-width: 560px;
  margin-bottom: 48px;
}

.values__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.values__desc {
  font-size: 1.0625rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .values__grid { grid-template-columns: repeat(3, 1fr); }
}

.value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.value-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.value-card__icon {
  width: 48px; height: 48px;
  background: var(--orange-light);
  color: var(--orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ---- Developments ---- */
.developments {
  padding: 80px 24px;
}

.developments__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.developments__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.developments__nav {
  display: none;
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .developments__nav { display: flex; }
}

.dev-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gray-200);
  border-radius: 50%;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s, background 0.2s, color 0.2s, opacity 0.2s;
}

.dev-nav svg { width: 18px; height: 18px; }

.dev-nav:hover:not(:disabled) {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.dev-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.developments__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.developments__desc {
  font-size: 1.0625rem;
  color: var(--gray-700);
}

.developments__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  scroll-padding-inline: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -24px;
  padding: 28px 0 36px;
}

.developments__viewport.is-transitioning {
  scroll-snap-type: none;
}

.developments__viewport::-webkit-scrollbar { display: none; }

.developments__track {
  --dev-gap: 24px;
  display: flex;
  gap: var(--dev-gap);
  align-items: stretch;
  padding-inline-start: 24px;
}

/* Chrome no cuenta el relleno ni el margen finales en el ancho de scroll:
   este separador crea el hueco real para que la última tarjeta se centre. */
.developments__track::after {
  content: "";
  flex: 0 0 24px;
  margin-inline-start: calc(-1 * var(--dev-gap));
}

.developments__track .dev-card {
  flex: 0 0 calc(100% - 24px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.developments__track .dev-card__body {
  flex: 1;
}

/* Móvil: tarjeta a todo el ancho útil — queda centrada y el gap deja ver la vecina */
@media (max-width: 619px) {
  .developments__track { --dev-gap: 12px; }
}

@media (min-width: 620px) {
  .developments__track .dev-card { flex-basis: calc((100% - 48px) / 2); }
}

@media (min-width: 1024px) {
  .developments__track .dev-card { flex-basis: calc((100% - 72px) / 3); }
}

.developments__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.developments__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--gray-200);
  cursor: pointer;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.developments__dot:hover {
  background: var(--orange-light);
}

.developments__dot--active {
  width: 28px;
  background: var(--orange);
}

.dev-card {
  position: relative;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  isolation: isolate;
}

.dev-card.is-active {
  border-color: rgba(255, 95, 0, 0.18);
}

/* Haz de luz recorriendo el borde — solo tarjeta activa */
@property --dev-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.dev-card::before,
.dev-card::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--radius-lg) + 1.5px);
  padding: 1.5px;
  background: conic-gradient(
    from var(--dev-border-angle, 0deg),
    transparent 0deg,
    rgba(255, 95, 0, 0.12) 50deg,
    rgba(255, 95, 0, 0.75) 88deg,
    #FF7A22 104deg,
    rgba(255, 95, 0, 0.75) 120deg,
    rgba(255, 95, 0, 0.12) 158deg,
    transparent 208deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.dev-card::before { z-index: -1; }

/* Resplandor tenue que acompaña al haz */
.dev-card::after {
  inset: -2.5px;
  padding: 2.5px;
  border-radius: calc(var(--radius-lg) + 2.5px);
  z-index: -2;
  filter: blur(6px);
}

.dev-card.is-active::before {
  opacity: 1;
  animation: devCardBorderSpin 2.2s infinite;
}

.dev-card.is-active::after {
  opacity: 0.5;
  animation: devCardBorderSpin 2.2s infinite;
}

/* Dos impulsos por vuelta: acelera y frena */
@keyframes devCardBorderSpin {
  0% {
    --dev-border-angle: 0deg;
    animation-timing-function: cubic-bezier(0.6, 0, 0.25, 1);
  }
  50% {
    --dev-border-angle: 180deg;
    animation-timing-function: cubic-bezier(0.6, 0, 0.25, 1);
  }
  100% { --dev-border-angle: 360deg; }
}

.developments__track .dev-card.is-active {
  animation: devCardFloat 5s ease-in-out infinite;
}

@keyframes devCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.dev-card__media,
.dev-card__body {
  position: relative;
  z-index: 1;
}

.dev-card__media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
}

.dev-card__media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.dev-card__media:hover img { transform: scale(1.05); }

.dev-card__status {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gray-900);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(28, 28, 30, 0.12);
}

.dev-card__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 95, 0, 0.55);
  animation: statusPulse 2s ease-out infinite;
}

.dev-card__status--done i {
  background: #1F9D6B;
  box-shadow: none;
  animation: none;
}

@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 95, 0, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 95, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 95, 0, 0); }
}

.dev-card__zoom {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(28,28,30,0.75);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s;
}

.dev-card__media:hover .dev-card__zoom { opacity: 1; }

.dev-card__body { padding: 24px; }

.dev-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dev-card__type {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--white);
  background: var(--orange);
  padding: 4px 10px;
  border-radius: 999px;
}

.dev-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

.dev-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.dev-card__offer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 14px;
}

.dev-card__offer li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 10px;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
}

.dev-card__offer svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.dev-card__text {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* ---- CTA Final ---- */
.cta-final {
  padding: 80px 24px;
  background: var(--gray-100);
}

.cta-final__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-final__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-final__desc {
  font-size: 1.0625rem;
  color: var(--gray-700);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  color: var(--gray-500);
  padding: 40px 24px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo-img {
  height: 24px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.footer__brand span {
  font-size: 0.8125rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--orange); }

.footer__copy {
  font-size: 0.8125rem;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28,28,30,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox[hidden] { display: flex; }

.lightbox--open { opacity: 1; visibility: visible; }

.lightbox__figure { text-align: center; max-width: 90vw; }

.lightbox__figure img {
  max-height: 75vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: var(--radius);
}

.lightbox__figure figcaption {
  color: var(--white);
  margin-top: 12px;
  font-size: 0.9375rem;
}

.lightbox__close {
  position: absolute;
  top: 20px; right: 20px;
  color: var(--white);
  font-size: 2rem;
  width: 44px; height: 44px;
}

.lightbox__prev, .lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 1.5rem;
  width: 44px; height: 44px;
  opacity: 0.7;
}

.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__prev:hover, .lightbox__next:hover { opacity: 1; }

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal--visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dev-card, .value-card, .btn { transition: none; }
  .dev-card__status i { animation: none; }
  .hero__tag i { animation: none; }
  .dev-card::before,
  .dev-card::after {
    animation: none;
    transition: none;
  }
  .dev-card.is-active::before {
    opacity: 1;
    background: var(--orange);
  }
  .dev-card::after { display: none; }
  .developments__track .dev-card.is-active {
    animation: none;
  }
}

/* ---- Páginas 403 / 404 ---- */
.error-page {
  min-height: 100vh;
  background: var(--white);
}

.error-page__main {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 80px) 24px 80px;
}

.error-page__code {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 12px;
}

.error-page__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.error-page__desc {
  font-size: 1.0625rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 32px;
}
