/*
 Theme Name:   Gose
 Author:       WAP
 Author URI:   http://gose.cl
 Version:      0.1
*/

/************************************************************************************
FONT
*************************************************************************************/
/* Webfonts: Airbnb Cereal */
@font-face {
  font-family: "Airbnb Cereal";
  src:
    url("/wp-content/themes/tu-theme/assets/fonts/airbnb-cereal/AirbnbCereal-Light.woff2") format("woff2"),
    url("/wp-content/themes/tu-theme/assets/fonts/airbnb-cereal/AirbnbCereal-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Airbnb Cereal";
  src:
    url("/wp-content/themes/tu-theme/assets/fonts/airbnb-cereal/AirbnbCereal-Book.woff2") format("woff2"),
    url("/wp-content/themes/tu-theme/assets/fonts/airbnb-cereal/AirbnbCereal-Book.woff") format("woff");
  font-weight: 400;
  /* Regular */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Airbnb Cereal";
  src:
    url("/wp-content/themes/tu-theme/assets/fonts/airbnb-cereal/AirbnbCereal-Medium.woff2") format("woff2"),
    url("/wp-content/themes/tu-theme/assets/fonts/airbnb-cereal/AirbnbCereal-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Airbnb Cereal";
  src:
    url("/wp-content/themes/tu-theme/assets/fonts/airbnb-cereal/AirbnbCereal-Bold.woff2") format("woff2"),
    url("/wp-content/themes/tu-theme/assets/fonts/airbnb-cereal/AirbnbCereal-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Airbnb Cereal";
  src:
    url("/wp-content/themes/tu-theme/assets/fonts/airbnb-cereal/AirbnbCereal-ExtraBold.woff2") format("woff2"),
    url("/wp-content/themes/tu-theme/assets/fonts/airbnb-cereal/AirbnbCereal-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Airbnb Cereal";
  src:
    url("/wp-content/themes/tu-theme/assets/fonts/airbnb-cereal/AirbnbCereal-Black.woff2") format("woff2"),
    url("/wp-content/themes/tu-theme/assets/fonts/airbnb-cereal/AirbnbCereal-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Aplicación global */
:root {
  --font-sans: "Airbnb Cereal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Utilidades opcionales */
.font-light {
  font-weight: 300;
}

.font-regular {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.font-xbold {
  font-weight: 800;
}

.font-black {
  font-weight: 900;
}


/************************************************************************************
GENERAL STYLING RESET
*************************************************************************************/

@charset "UTF-8";

:root {
  /* Ajustes rápidos */
  --page-max-w: 1200px;
  --pad-x: clamp(16px, 4vw, 40px);
  --gap: clamp(12px, 2.5vw, 28px);
  --hero-fs: clamp(32px, 6vw, 64px);
  /* titular grande */
  --band-fs: clamp(52px, 7vw, 72px);
  /* bandas de servicios */
  --text-fs: clamp(14px, 1.6vw, 16px);
  /* textos base */
  --muted: #3b3b3b;
  --ink: #222;
  --bg: #faf9f6;
  --accent: #1fc7c1;
  /* rombo/marker */
  --band-height: clamp(65px, 12vw, 95px);
  --band-speed: 60s;
  /* duración del loop; duplica contenido si ves cortes */
  --pad-x: clamp(16px, 4vw, 48px);
  --wrap: 1200px;
  /* amarillo */
  --h1: clamp(22px, 3.6vw, 42px);
  --h3: clamp(32px, 2.2vw, 48px);
  --p: clamp(14px, 1.4vw, 16px);
  --gap-y: clamp(20px, 4vw, 56px);
  --gap-x: clamp(20px, 4vw, 56px);
}

::selection {
  color: var(--bg);
  background: var(--accent);
}

* {
  box-sizing: border-box;
}

* {
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
}

.svg_hidden {
  display: none;
}

html,
body {
  font-family: var(--font-sans);
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.35;
  text-rendering: optimizeLegibility;
}

/* LAYOUT GENERAL */
.landing {
  display: grid;
  grid-template-columns: auto;
  column-gap: var(--gap);
  min-height: 100dvh;
}

/* Logo vertical a la izquierda */
.landing__rail {
  padding: var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo-vertical {
  display: block;
  position: sticky;
  width: 55px;
  margin: 32px 0 0 10%;
}

.logo-vertical img {
  width: 70px;
}

.rail-mini {
  font-size: 11px;
  color: var(--muted);
  display: grid;
  gap: 2px;
  text-align: center;
}

.landing__main {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: clamp(20px, 4vw, 48px);
  max-width: 100%;
}

/* Intro box */
.intro {
  max-width: 500px;
  font-size: var(--text-fs);
  color: var(--muted);
  margin: 0 10% 0 auto;
}

.intro span {
  font-style: italic;
}

/* BANDAS DE SERVICIOS */
.bands {
  display: grid;
  gap: clamp(10px, 2vw, 18px);
  margin: 25px 0px 60px;
}

.band {
  position: relative;
  height: var(--band-height);
  overflow: hidden;
}

.band__viewport {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.band__track {
  display: inline-flex;
  gap: clamp(28px, 5vw, 64px);
  padding-inline: 4vw;
  will-change: transform;
  animation-duration: var(--band-speed);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.band--rtl .band__track {
  animation-name: slide-left;
}

.band--ltr .band__track {
  animation-name: slide-right;
}

@keyframes slide-left {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }

  /* usamos 2 tracks idénticos => 50% */
}

@keyframes slide-right {
  from {
    transform: translate3d(-50%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.band__item {
  font-weight: 600;
  font-size: var(--band-fs);
  letter-spacing: .01em;
  color: var(--ink);
  white-space: nowrap;
}

.band__sep::before {
  content: "";
  position: relative;
  width: 40px;
  height: 2px;
  background: #7d7d7d;
  display: inline-block;
  vertical-align: middle;
}

/* Rombo decorativo */
.diamond {
  width: 14px;
  height: 14px;
  rotate: 45deg;
  background: var(--accent);
  margin: 0 auto;
}

/* Clientes */
.clients {
  display: grid;
  gap: 18px;
  justify-items: center;
  margin: 60px auto 120px;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: clamp(14px, 2.5vw, 28px);
  align-items: center;
  max-width: var(--page-max-w);
}

.client {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 1;
  width: 100%
}

.client img {
  max-width: 120px;
}

/* Footer simple */
.footer {
  margin-top: auto;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: var(--ink);
  text-decoration: none;
  font-size: 38px;
  font-weight: 600;
  margin-left: 10%;
}

/* Subrayado animado derecha → izquierda */
.sweep-rl {
  position: relative;
  display: inline-block;
  /* para que la línea mida el texto */
}

/* Línea gruesa “falsa” usando ::after */
.sweep-rl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  /* separa un poco del texto */
  height: 0.18em;
  /* grosor del subrayado */
  background: var(--accent);
  /* usa el color del texto */
  transform: scaleX(0);
  /* oculta inicialmente */
  transform-origin: right center;
  /* empieza a la derecha */
  transition: transform .35s ease;
  /* velocidad de la animación */
  border-radius: 2px;
  /* borde suave (opcional) */
}

/* Cuando el <a> está en hover/focus, dibuja la línea */
a:hover .sweep-rl::after,
a:focus-visible .sweep-rl::after {
  transform: scaleX(1);
  /* se expande hacia la izquierda */
}

.friend {
  display: flex;
  width: 100%;
  justify-content: end;
  align-items: end;
  height: 60px;
}

.friend img {
  width: 60px;
  height: 60px;
}

/************************************************************************************
SERVICIOS
*************************************************************************************/

.svc {
  color: var(--ink);
  padding: var(--pad-x);
  display: grid;
  gap: clamp(24px, 4vw, 56px);
}

.svc__wrap {
  margin: 0 auto;
  width: min(100%, var(--wrap));
  display: grid;
  gap: clamp(24px, 3vw, 36px);
}

/* Título cabecera */
.svc__hero {
  text-align: center;
}

.svc__title {
  font-size: var(--h1);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 40px auto 0px;
}

/* Grilla 2 columnas */
.svc__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap-x);
  row-gap: var(--gap-y);
  align-items: start;
  margin: 60px auto 80px;
}

/* Ítem */
.svc__item {
  display: grid;
  align-items: center;
}

.svc__bullet {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 4px;
  /* alinea con el h3 */
  flex: 0 0 28px;
}

.svc__heading {
  font-size: var(--h3);
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 6px 0;
  text-align: center;
}

.svc__text {
  grid-column: 1 / -1;
  /* que el párrafo ocupe ancho completo bajo el título */
  margin: 0;
  font-size: var(--p);
  color: var(--muted);
  text-align: center;
  /* como la referencia */
}

/* Responsive */
@media (max-width: 900px) {
  .svc__grid {
    grid-template-columns: 1fr;
  }

  .svc__grid {
    margin: 20px auto 60px;
  }

  .svc__grid>.svc__item:nth-child(2n) {
    margin-top: 0;
  }

  .svc__text {
    text-align: center;
  }
}

/* Respeta Reduce Motion (no hay animaciones, pero por si añadimos luego) */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/************************************************************************************
STYLES
*************************************************************************************/
/* Preload */

.preload {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999999;
  background-color: var(--accent);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-flow: row nowrap;
  flex-flow: row nowrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  pointer-events: none;
  -webkit-animation: fadeOut 1s ease 1 2s both;
  animation: fadeOut 1s ease 1 2s both;
}

.preload__img {
  width: 4em;
  height: 4em;
  -webkit-animation: pumPum 2s cubic-bezier(0.31, -0.49, 0.76, 1.32) infinite both;
  animation: pumPum 2s cubic-bezier(0.31, -0.49, 0.76, 1.32) infinite both;
  fill: var(--bg);
}

@-webkit-keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@-webkit-keyframes pumPum {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  50% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes pumPum {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  50% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

/* =============================================
SECRET MENU
================================================ */

#trigger-overlay {
  background: transparent;
  border: none;
  margin: 0px;
  padding: 0px;
  position: absolute;
  right: 0px;
  cursor: pointer;
}

#trigger-overlay svg {
  width: 38px;
  height: 38px;
  fill: var(--accent);
  margin: 9px;
  cursor: pointer;
}

/* Accesibilidad helper */
.sr-only {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Estado body con overlay abierto -> bloquea scroll */
.has-overlay {
  overflow: hidden;
}

/* Overlay base */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s cubic-bezier(.22, .61, .36, 1);
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Fondo */
.overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

/* Panel */
.overlay__panel {
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* close / nav / footer */
  padding: clamp(16px, 4vw, 32px);
  background: #fff;
  transform: translateY(8px);
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}

.overlay__close i {
  font-size: 32px;
  color: var(--ink);
}

.overlay.is-open .overlay__panel {
  transform: translateY(0);
}

/* Close (X) arriba derecha */
.overlay__close {
  justify-self: end;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.overlay__close:hover {
  opacity: .85;
}

/* Nav centrado */
.overlay__nav {
  display: grid;
  place-items: center;
  gap: clamp(24px, 5vw, 56px);
  grid-auto-flow: column;
}

.overlay__group {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(10px, 1.8vw, 18px);
  text-align: center;
}

.overlay__group a {
  font-size: clamp(28px, 4.8vw, 48px);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.1;
}

.overlay__group a:hover {
  color: var(--accent);
}

/* Footer dentro del overlay */
.overlay__footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: 14px;
}

.overlay__footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
}

.overlay__footer a:hover {
  opacity: .85;
}

/* Responsive */
@media (max-width: 900px) {
  .overlay__nav {
    grid-auto-flow: row;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

  .overlay,
  .overlay__panel {
    transition: none !important;
  }
}




/* Accesibilidad: si el usuario reduce animaciones, deja la línea fija al hover */
@media (prefers-reduced-motion: reduce) {
  .sweep-rl::after {
    transition: none;
  }
}


/* Responsivo */
@media (max-width: 900px) {
  .landing {
    grid-template-columns: 1fr;
  }

  .landing__rail {
    flex-direction: row;
    justify-content: space-between;
  }

  .rail-mini {
    text-align: right;
  }

  .clients__grid {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }
}

@media (max-width: 640px) {
  .clients__grid {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }

  .intro {
    margin: 24px 10% 0 10%;
  }

  .footer a {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .logo-vertical img {
    width: 55px;
  }
}

/* Accesibilidad: respeta Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .band__track {
    animation: none;
  }
}