/* ============================================================
   VIRUCA.ES — Home Page CSS
   viruca-home.css
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.v-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.v-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 30%, rgba(200, 255, 0, 0.04), transparent);
  pointer-events: none;
}

.v-hero__inner {
  width: 100%;
  padding-top: clamp(100px, 15vh, 160px);
  padding-bottom: clamp(60px, 10vh, 100px);
}

.v-hero__label { margin-bottom: 28px; }

.v-hero__title {
  font-size: var(--fs-hero);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.v-hero__line { display: block; overflow: hidden; }
.v-hero__line--accent { color: var(--color-accent); }

.v-hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.v-hero__sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--color-gray-2);
  max-width: 480px;
  line-height: 1.7;
}

.v-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.v-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: var(--padding-x);
  display: flex;
  align-items: center;
  gap: 12px;
}

.v-hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--color-gray-3);
  animation: scrollLine 2s ease-in-out infinite;
}

.v-hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gray-3);
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.4; transform: scaleX(1); }
  50%       { opacity: 1; transform: scaleX(1.2); }
}

/* ── About ────────────────────────────────────────────────── */
.v-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.v-about__title { margin: 24px 0 28px; }
.v-about__title em { font-style: italic; color: var(--color-accent); }
.v-about__text p + p { margin-top: 16px; }

.v-about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding-top: 16px;
}

.v-stat { background: var(--color-surface); padding: 32px 28px; }
.v-stat:first-child  { border-radius: var(--radius-md) 0 0 0; }
.v-stat:nth-child(2) { border-radius: 0 var(--radius-md) 0 0; }
.v-stat:nth-child(3) { border-radius: 0 0 0 var(--radius-md); }
.v-stat:last-child   { border-radius: 0 0 var(--radius-md) 0; }

.v-stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 8px;
}

.v-stat__label { font-size: 13px; color: var(--color-gray-2); }

/* ── Services ─────────────────────────────────────────────── */
.v-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.v-section-header h2 { margin-top: 12px; }

.v-section-header__right {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.v-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.v-service-card {
  background: var(--color-surface);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: background var(--dur-base) ease;
}

.v-service-card:first-child  { border-radius: var(--radius-md) 0 0 0; }
.v-service-card:nth-child(2) { border-radius: 0 var(--radius-md) 0 0; }
.v-service-card:nth-child(3) { border-radius: 0 0 0 var(--radius-md); }
.v-service-card:last-child   { border-radius: 0 0 var(--radius-md) 0; }

.v-service-card:hover { background: var(--color-surface-2); }
.v-service-card:hover .v-service-card__arrow { opacity: 1; transform: translate(0, 0); }

.v-service-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-gray-3);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.v-service-card__icon {
  color: var(--color-accent);
  margin-bottom: 20px;
  font-size: 24px;
  line-height: 1;
}

.v-service-card h3 { font-size: clamp(16px, 1.5vw, 20px); margin-bottom: 12px; }

.v-service-card p { font-size: 13px; color: var(--color-gray-2); line-height: 1.65; }

.v-service-card__arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 18px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all var(--dur-base) ease;
  color: var(--color-accent);
}

/* ── Featured Projects ────────────────────────────────────── */
.v-featured__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
}

.v-project-card--large { grid-column: 1 / -1; }

.v-project-card { position: relative; overflow: hidden; }

.v-project-card__link { display: block; text-decoration: none; }

.v-project-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface);
}

.v-project-card--large .v-project-card__media { aspect-ratio: 21 / 9; }

.v-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.v-project-card:hover .v-project-card__media img { transform: scale(1.04); }

.v-project-card__info {
  padding: 24px 28px;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v-project-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }

.v-project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v-project-card__meta h3 { font-size: clamp(18px, 2vw, 24px); }

.v-project-card__arrow {
  font-size: 20px;
  color: var(--color-gray-3);
  transition: all var(--dur-fast) ease;
}

.v-project-card:hover .v-project-card__arrow {
  color: var(--color-accent);
  transform: translate(3px, -3px);
}

/* ── CTA Final ────────────────────────────────────────────── */
.v-cta__inner {
  text-align: center;
  padding: 80px 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.v-cta__title { font-size: var(--fs-h1); }
.v-cta__text  { font-size: 16px; color: var(--color-gray-2); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .v-about__grid { grid-template-columns: 1fr; }
  .v-services__grid { grid-template-columns: 1fr 1fr; }
  .v-featured__list { grid-template-columns: 1fr; }
  .v-project-card--large { grid-column: auto; }
}

@media (max-width: 768px) {
  .v-hero__bottom { flex-direction: column; align-items: flex-start; }
  .v-about__stats { grid-template-columns: 1fr 1fr; }
  .v-services__grid { grid-template-columns: 1fr; }
  .v-service-card { border-radius: 0 !important; }
  .v-service-card:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0 !important; }
  .v-service-card:last-child  { border-radius: 0 0 var(--radius-md) var(--radius-md) !important; }
  .v-cta__inner { padding: 48px 24px; }
}

@media (max-width: 576px) {
  .v-hero__ctas { flex-direction: column; width: 100%; }
  .v-btn { justify-content: center; }
}
