/* ---------------------------------------------------------------
   SG Consulting - hero estatico
   Medidas tomadas del sitio original (Valiance + Slider Revolution)
   --------------------------------------------------------------- */

/* ---- Poppins (auto-hospedada) ---- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- base ---- */
:root {
  --ink: #171717;
  --muted: #b9b9b9;
  --ring: #bebebd;
  --gutter: 60px;   /* margen lateral de barra, logo, flechas y contador */
  --inset: 50px;    /* margen interno del recuadro */
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- hero ---- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

/* ---- slides ---- */
.hero__slides { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide.is-active { opacity: 1; }

.slide--1 { background-image: url('../img/slider1.jpg'); background-position: 30% 0%; }
.slide--2 { background-image: url('../img/slider2.jpg'); background-position: left center; }
.slide--3 { background-image: url('../img/slider3.jpg'); background-position: center center; }

/* ---- barra superior ---- */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  z-index: 101;
}

.topbar__mail {
  font-size: 12px;
  line-height: 12px;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  transition: color .2s ease;
}
.topbar__mail:hover,
.topbar__mail:focus-visible { color: #fff; }

/* ---- isotipo ---- */
.brand {
  position: absolute;
  top: 82px;
  left: var(--gutter);
  display: block;
  line-height: 0;
  z-index: 101;
}

.brand__mark { width: 40px; height: 40px; display: block; }
.brand__mark--dark { display: none; }

/* ---- wordmark central ---- */
.wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(680px, max(47.2vw, 234px));
  height: auto;
  transform: translate(-50%, calc(-50% - 95px));
  filter: drop-shadow(5px 5px 5px black);
  pointer-events: none;
  z-index: 12;
}

/* ---- recuadros abajo a la derecha ---- */
.cards { position: absolute; inset: 0; pointer-events: none; }

.card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 488px;
  height: 248px;
  display: block;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.card.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  transition: opacity .2s ease;
}

.card__bg {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(101%);
  transition: transform .8s cubic-bezier(.4, 0, .2, 1) .1s;
}
.card.is-active .card__bg { transform: translateX(0); }

.card__mask {
  position: absolute;
  overflow: hidden;
  z-index: 1;
}
.card__mask > span {
  display: block;
  transform: translateY(-105%);
  transition: transform .8s cubic-bezier(.4, 0, .2, 1);
}
.card.is-active .card__mask > span { transform: translateY(0); }

.card__mask--eyebrow {
  right: var(--inset);
  bottom: 181px;
}
.card.is-active .card__mask--eyebrow > span { transition-delay: .3s; }

.card__eyebrow {
  font-size: 11px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.card__mask--title {
  right: var(--inset);
  bottom: 114px;
  width: 366px;
  padding-bottom: 6px;
}
.card.is-active .card__mask--title > span { transition-delay: .5s; }

.card__title {
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
  text-align: right;
  color: #fff;
}

.card__arrow {
  position: absolute;
  right: var(--inset);
  bottom: 49px;
  width: 52px;
  height: 52px;
  z-index: 1;
  opacity: 0;
  transition: opacity .5s cubic-bezier(.77, 0, .18, 1);
}
.card.is-active .card__arrow {
  opacity: 1;
  transition-delay: .8s;
}

.card__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--ring);
  transition: color .3s ease;
}
.card:hover .card__ring,
.card:focus-visible .card__ring { color: #fff; }

.card__arrow-icon {
  position: absolute;
  top: 50%;
  /* en reposo la punta queda en el centro del circulo y la cola sobresale a la izquierda */
  left: -7px;
  width: 36px;
  height: 7px;
  margin-top: -3.5px;
  line-height: 0;
  color: #fff;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), opacity .4s ease;
}
.card__arrow-icon svg { display: block; }
.card__arrow-icon--2 { transform: translateX(-100%); opacity: 0; }

.card:hover .card__arrow-icon--1,
.card:focus-visible .card__arrow-icon--1 { transform: translateX(100%); opacity: 0; }
.card:hover .card__arrow-icon--2,
.card:focus-visible .card__arrow-icon--2 { transform: translateX(0); opacity: 1; }

/* el recuadro inactivo vuelve al estado inicial sin animar */
.card:not(.is-active) .card__bg,
.card:not(.is-active) .card__mask > span,
.card:not(.is-active) .card__arrow { transition: none; }

/* ---- flechas prev / next ---- */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
  z-index: 20;
  -webkit-tap-highlight-color: transparent;
}
.nav--prev { left: var(--gutter); }
.nav--next { right: var(--gutter); }

.nav__chevron {
  line-height: 0;
  opacity: .75;
  transition: opacity .3s ease, transform .3s ease;
}
.nav__chevron svg { display: block; width: 42px; height: 83px; }
.nav--next .nav__chevron { transform: scaleX(-1); }

.nav:hover .nav__chevron,
.nav:focus-visible .nav__chevron { opacity: 1; }
.nav--prev:hover .nav__chevron { transform: translateX(-6px); }
.nav--next:hover .nav__chevron { transform: scaleX(-1) translateX(-6px); }

.nav__label {
  font-size: 11px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: 3.85px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

/* ---- contador ---- */
.counter {
  position: absolute;
  left: var(--gutter);
  bottom: 50px;
  margin: 0;
  height: 30px;
  line-height: 30px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  z-index: 20;
}
.counter__word {
  letter-spacing: 3.85px;
  text-transform: uppercase;
  margin-right: 14px;
}

/* ---- <= 1024px: header blanco, sin flechas ---- */
@media (max-width: 1024px) {
  .topbar { display: none; }

  .brand {
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    padding-left: 31px;
    background: #fff;
  }
  .brand__mark--light { display: none; }
  .brand__mark--dark { display: block; width: 45px; height: 45px; }

  .nav { display: none; }

  .card { width: 472px; height: 242px; }
}

/* ---- <= 768px: banda full width, sin contador ---- */
@media (max-width: 768px) {
  :root {
    --gutter: 40px;
    --inset: 40px;
  }

  .counter { display: none; }

  .card { width: 100%; height: 240px; }
  .card__mask--eyebrow { bottom: 182px; }
  .card__mask--title { bottom: 94px; width: 277px; }
  .card__arrow { bottom: 37px; }
}

/* ---- accesibilidad ---- */
@media (prefers-reduced-motion: reduce) {
  .slide,
  .card,
  .card__bg,
  .card__mask > span,
  .card__arrow,
  .card__arrow-icon,
  .card__ring,
  .nav__chevron { transition: none !important; }
}

:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
