/* ==================================================
   XHINO — Mobile Hero
   Paleta: negro / blanco / gris / rojo (único acento)
   Tipografías: Anton (display) + Barlow Condensed (texto)
   Este archivo SOLO controla la portada móvil (.mobile-hero).
   No toca ni asume la existencia de una versión de escritorio.
   ================================================== */

:root{
  --c-black: #0a0a0a;
  --c-ink: #111111;
  --c-white: #ffffff;
  --c-gray: #8a8a8a;
  --c-gray-light: #d4d4d4;
  --c-red: #e0161f;

  --font-display: 'Anton', 'Archivo Black', sans-serif;
  --font-cond: 'Barlow Condensed', 'Roboto Condensed', sans-serif;

  --hero-bg-pos-x: 32%;
  --hero-bg-pos-y: 16%;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);

  /* sombras suaves de contraste (permitidas por el brief) para que el
     texto se lea sin importar qué haya detrás en la fotografía */
  --shadow-on-light: 0 1px 2px rgba(255,255,255,.55), 0 0 14px rgba(255,255,255,.35);
  --shadow-on-dark: 0 1px 3px rgba(0,0,0,.65), 0 0 16px rgba(0,0,0,.35);
}

*{ box-sizing: border-box; }

/* Contraste: texto negro sobre zonas claras/oscuras variables de la foto */
.top-bar, .left-margin-rule, .xhino-title, .xhino-side,
.editorial-left-top, .personal-title, .editorial-left-bottom,
.editorial-right-top .phone-block, .editorial-right-top .globe-icon,
.own-path .own{
  text-shadow: var(--shadow-on-light);
}
.left-margin-rule{ box-shadow: var(--shadow-on-light); text-shadow: none; }

/* Contraste: texto blanco sobre zonas oscuras/claras variables de la foto */
.editorial-right-top .micro-text, .own-path .path, .side-right-mid,
.social-contact, .scroll-indicator, .hero-footer{
  text-shadow: var(--shadow-on-dark);
}

html, body{
  margin: 0;
  padding: 0;
  background: var(--c-black);
  font-family: var(--font-cond);
  -webkit-tap-highlight-color: transparent;
}

.content-stub{ height: 40vh; background: var(--c-black); }

/* ================= CONTENEDOR PRINCIPAL ================= */

.mobile-hero{
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--c-black);
  color: var(--c-black);
  isolation: isolate;
}

.mobile-hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-bg-pos-x) var(--hero-bg-pos-y);
  z-index: 0;
  will-change: transform;
  transition: transform .6s ease-out;
}

.hero-contrast-shade{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 60%, rgba(0,0,0,.55) 82%, rgba(0,0,0,.72) 100%),
    linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 22%);
}

.ambient-particles{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* Reveal animation base (respeta reduced motion) */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

.red-rule{
  display: block;
  width: clamp(22px, 7vw, 34px);
  height: 2px;
  background: var(--c-red);
  margin: 5px 0;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .6s ease .1s;
}
.reveal.is-visible .red-rule{ transform: scaleX(1); }

.x-red{ color: var(--c-red); }

/* ---- animación letra por letra para los títulos grandes ---- */
.letter{
  display: inline-block;
  animation: letterUp .55s cubic-bezier(.19,1,.22,1) forwards;
  animation-play-state: paused;
}
@keyframes letterUp{
  from{ opacity: 0; transform: translateY(.22em); }
  to{ opacity: 1; transform: translateY(0); }
}
/* ciclo repetido: se mantiene visible, se desvanece y vuelve a aparecer
   desde una dirección distinta (arriba/abajo/costado según la letra) */
@keyframes letterCycle{
  0%, 40%{ opacity: 1; transform: translate(0,0); }
  50%{ opacity: 0; transform: translate(var(--out-x,0px), var(--out-y,-14px)); }
  60%{ opacity: 0; transform: translate(var(--in-x,0px), var(--in-y,14px)); }
  100%{ opacity: 1; transform: translate(0,0); }
}
@media (prefers-reduced-motion: reduce){
  .letter{ animation: none; opacity: 1; transform: none; }
}

/* ================= ENCABEZADO SUPERIOR ================= */

.top-bar{
  position: absolute;
  top: calc(var(--safe-t) + 14px);
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 clamp(14px, 4vw, 20px);
  color: var(--c-black);
}

.left-margin-rule{
  position: absolute;
  top: calc(var(--safe-t) + 12px);
  left: clamp(10px, 3.2vw, 14px);
  width: 2px;
  height: clamp(190px, 32vh, 260px);
  background: var(--c-black);
  opacity: .85;
  z-index: 3;
  pointer-events: none;
}

.top-brand{
  position: relative;
  padding-left: clamp(14px, 4.2vw, 18px);
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: clamp(11px, 3.1vw, 13.5px);
}

.top-role{
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: .18em;
  font-size: clamp(9.5px, 2.6vw, 11.5px);
  padding-top: 1px;
}

.mobile-menu{
  width: 34px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.mobile-menu span{
  display: block;
  height: 2.4px;
  width: 100%;
  background: var(--c-black);
  transition: transform .25s ease, opacity .25s ease;
}
.mobile-menu:active span{ transform: scaleX(.85); }

/* ================= XHINO GIGANTE ================= */

.xhino-row{
  position: absolute;
  top: calc(var(--safe-t) + 40px);
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  padding: 0 clamp(10px, 3.5vw, 16px);
}

.xhino-title{
  margin: 0;
  flex: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(72px, 24vw, 128px);
  line-height: .8;
  letter-spacing: -0.01em;
  color: var(--c-black);
  position: relative;
}
.xhino-tm{
  font-size: .16em;
  vertical-align: super;
}

.xhino-side{
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 6px;
  color: var(--c-black);
}
.target-icon{
  width: clamp(24px, 7vw, 32px);
  height: clamp(24px, 7vw, 32px);
}
.mini-list{
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  text-align: left;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: clamp(8px, 2.2vw, 9.5px);
  line-height: 1.35;
}

/* ================= BLOQUES EDITORIALES ================= */

.statement-sm{
  margin: 0;
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: .01em;
  font-size: clamp(13px, 3.6vw, 16px);
  line-height: 1.12;
  color: var(--c-black);
}
.statement-sm.small{ font-size: clamp(11px, 3vw, 13px); }

.micro-text{
  margin: 4px 0 0;
  font-weight: 500;
  letter-spacing: .05em;
  font-size: clamp(7.5px, 2vw, 9px);
  line-height: 1.4;
  color: var(--c-ink);
}
.micro-text.tight{ line-height: 1.3; }
.micro-text.right-align{ text-align: right; }

/* ---- columnas: evitan encimados distribuyendo los 3 bloques de cada
   lado en el alto disponible, en el mismo orden que la referencia ---- */

.left-column{
  position: absolute;
  top: 17%;
  bottom: 39%;
  left: clamp(12px, 4vw, 18px);
  z-index: 3;
  max-width: 36%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--c-black);
}

.right-column{
  position: absolute;
  top: 15%;
  bottom: 37%;
  right: clamp(10px, 3.5vw, 16px);
  z-index: 3;
  max-width: 34%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  align-items: flex-end;
}

.editorial-left-top{ color: var(--c-black); }

.editorial-right-top{
  color: var(--c-black);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.editorial-right-top .phone-block{ color: var(--c-black); }
.editorial-right-top .micro-text{ color: var(--c-white); }

.phone-block{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 10.5px);
  letter-spacing: .06em;
  border-right: 1px solid currentColor;
  padding-right: 6px;
  margin-bottom: 4px;
}
.phone-block.small{ font-size: clamp(8.5px, 2.2vw, 10px); }

.globe-icon{
  width: clamp(16px, 4.5vw, 20px);
  height: clamp(16px, 4.5vw, 20px);
  margin: 4px 0;
}
.globe-icon.tiny{ width: 14px; height: 14px; color: var(--c-black); }

/* ================= OWN YOUR PATH ================= */

.own-path{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 9.5vw, 46px);
  line-height: 1;
  text-align: right;
}
.own-path .own{ color: var(--c-black); }
.own-path .your{
  background: var(--c-red);
  color: var(--c-white);
  padding: 2px clamp(8px, 2.5vw, 12px);
}
.own-path .path{
  color: var(--c-white);
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}

/* ================= MICROTEXTO DERECHO MEDIO ================= */

.side-right-mid{
  text-align: right;
  color: var(--c-white);
}
.side-right-mid .red-rule{ margin-left: auto; transform-origin: right center; }

/* ================= VICTOR PABLO (BLOQUE PRINCIPAL) ================= */

.personal-title{ color: var(--c-black); }
.name-big{
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 7.6vw, 34px);
  line-height: .95;
}
.role-sm{
  margin: 4px 0 0;
  font-weight: 700;
  letter-spacing: .05em;
  font-size: clamp(9.5px, 2.6vw, 11px);
  line-height: 1.25;
}

/* ================= BLOQUE INFERIOR IZQUIERDO ================= */

.editorial-left-bottom{ color: var(--c-black); }
.micro-text.dark{ color: var(--c-black); }

/* ================= SERVICIOS ================= */

.services-grid{
  position: absolute;
  left: clamp(10px, 3.5vw, 16px);
  right: clamp(10px, 3.5vw, 16px);
  bottom: 27%;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 2vw, 9px);
}

.service-btn{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: clamp(8px, 2.6vw, 11px) 4px;
  background: rgba(15,15,15,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  color: var(--c-white);
  font-family: var(--font-cond);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.service-btn svg{
  width: clamp(16px, 5vw, 20px);
  height: clamp(16px, 5vw, 20px);
  stroke: var(--c-white);
}
.service-btn span{
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  font-size: clamp(9px, 2.6vw, 11px);
  line-height: 1.25;
  text-align: center;
}
.service-btn:active,
.service-btn:hover{
  transform: translateY(-2px) scale(1.02);
  background: rgba(25,25,25,.68);
}

.construction-tag{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42%;
  z-index: 5;
  text-align: center;
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: clamp(19px, 5.6vw, 24px);
  line-height: 1.35;
  color: var(--c-white);
  text-shadow: 0 0 5px rgba(255,255,255,.95), 0 0 10px rgba(255,255,255,.6);
  pointer-events: none;
}
.construction-tag em{
  display: block;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .06em;
  font-size: .78em;
  opacity: .9;
}

/* ================= CONTACTO / REDES / WHATSAPP ================= */

.social-contact{
  position: absolute;
  left: clamp(10px, 3.5vw, 16px);
  right: clamp(10px, 3.5vw, 16px);
  bottom: calc(var(--safe-b) + 6.5%);
  z-index: 6;
  color: var(--c-white);
}

.divider-line{
  display: block;
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,.35);
  margin-bottom: 10px;
}

.contact-row{
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.6vw, 12px);
  pointer-events: auto;
}

.social-icons{
  display: flex;
  gap: 8px;
}

.social-link{
  width: 40px;
  height: 40px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  color: var(--c-white);
  transition: transform .18s ease, background .18s ease;
}
.social-link svg{ width: 18px; height: 18px; }
.social-link:active,
.social-link:hover{ transform: translateY(-2px); background: rgba(255,255,255,.14); }

.v-divider{
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,.35);
}
.v-divider.red{ background: var(--c-red); }

.whatsapp-block{
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.wa-mini{ width: 24px; height: 24px; flex-shrink: 0; color: var(--c-white); }
.wa-numbers-text{
  display: flex;
  flex-direction: column;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(14px, 4vw, 17px);
  letter-spacing: .02em;
  line-height: 1.3;
}
.wa-numbers-text a{
  color: var(--c-white);
  text-decoration: none;
  min-height: 22px;
  display: inline-block;
}
.wa-numbers-text a:active,
.wa-numbers-text a:hover{ color: var(--c-red); }

.project-cta{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding-top: 7px;
}
.cta-divider{
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,.4);
}
.cta-text{
  flex: 1;
  margin: 0;
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: .05em;
  font-size: clamp(10.5px, 2.8vw, 12.5px);
  line-height: 1.2;
}
.cta-arrow-btn{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  flex-shrink: 0;
  transition: transform .18s ease, background .18s ease;
}
.cta-arrow-btn svg{ width: 18px; height: 18px; animation: arrow-nudge 2.2s ease-in-out infinite; }
.cta-arrow-btn:active,
.cta-arrow-btn:hover{ background: rgba(255,255,255,.14); }

@keyframes arrow-nudge{
  0%, 100%{ transform: translate(0,0); }
  50%{ transform: translate(2px, -2px); }
}

/* ================= SCROLL INDICATOR ================= */

.scroll-indicator{
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-b) + 3%);
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--c-white);
  pointer-events: none;
}
.scroll-mouse{
  width: 18px;
  height: 28px;
  border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-dot{
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--c-white);
  animation: scroll-dot-move 1.8s ease-in-out infinite;
}
.scroll-indicator p{
  margin: 0;
  font-size: clamp(7.5px, 2vw, 8.5px);
  letter-spacing: .22em;
  font-weight: 600;
}
@keyframes scroll-dot-move{
  0%{ transform: translateY(0); opacity: 1; }
  60%{ transform: translateY(9px); opacity: .3; }
  100%{ transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce){
  .scroll-dot, .cta-arrow-btn svg{ animation: none; }
}

/* ================= PIE ================= */

.hero-footer{
  position: absolute;
  left: clamp(12px, 4vw, 18px);
  right: clamp(12px, 4vw, 18px);
  bottom: calc(var(--safe-b) + 1.6%);
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: var(--c-white);
}
.footer-url{
  font-size: clamp(9px, 2.4vw, 10.5px);
  font-weight: 500;
  letter-spacing: .04em;
}
.footer-right{ text-align: right; }
.footer-right p{
  margin: 0;
  font-size: clamp(7.5px, 2vw, 8.5px);
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.35;
}
.footer-right .red-rule{ margin-left: auto; transform-origin: right center; }

/* ================= BREAKPOINTS MÓVILES ================= */

@media (max-width: 340px){
  .own-path{ font-size: clamp(26px, 10vw, 32px); }
  .name-big{ font-size: clamp(21px, 7.6vw, 26px); }
  .right-column{ top: 20%; bottom: 34%; }
  .left-column{ top: 18%; bottom: 36%; }
  .micro-text{ font-size: 7px; line-height: 1.25; margin-top: 3px; }
  .statement-sm{ font-size: 12px; line-height: 1.05; }
  .statement-sm.small{ font-size: 10.5px; }
  .red-rule{ margin: 3px 0; }
  .xhino-side{ gap: 2px; }
  .mini-list{ font-size: 7.5px; line-height: 1.2; }
  .services-grid{ bottom: 24%; }
  .service-btn{ padding: 6px 3px; gap: 4px; }
  .service-btn span{ font-size: 7px; }
  .construction-tag{ bottom: 39%; font-size: 15px; }
}

@media (min-width: 400px){
  .services-grid{ bottom: 21.5%; }
}

/* ================= PANTALLAS ANCHAS (no es una versión de escritorio,
   solo evita que la portada móvil se vea rota mientras no exista una
   versión de escritorio real) ================= */
@media (min-width: 768px){
  body{ display: flex; justify-content: center; background: #050505; }
  .mobile-hero{
    max-width: 460px;
    box-shadow: 0 0 60px rgba(0,0,0,.6);
  }
  .content-stub{ display: none; }
}
