@font-face {
  font-family: 'Circe';
  src: url('/assets/fonts/Circe-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circe';
  src: url('/assets/fonts/Circe-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circe';
  src: url('/assets/fonts/Circe-ExtraLight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circe';
  src: url('/assets/fonts/Circe-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circe';
  src: url('/assets/fonts/Circe-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circe';
  src: url('/assets/fonts/Circe-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

:root {
  --bone: #b3b3b3;
  --accent: #676767;
  --grey: #8c8c8c;
  --black-glass: rgba(0,0,0,.6);
  --font-main: 'Circe', sans-serif;
  --shadow: 3px 4px 4px #000;
}

p {
  display: block;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  unicode-bidi: isolate;
}

h2 {
  display: block;
  font-size: 1.5em;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  font-weight: bold;
  unicode-bidi: isolate;
}

* {
  box-sizing: border-box;
}

.page-wrapper {
  margin: 0 100px;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background:
    url("/assets/img/sitebg.svg") no-repeat center top,
    #000;
  background-size: 100% auto;
  background-attachment: scroll;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  overflow-y: overlay;
}

:root {
  --nav-h: 50px;
}

body {
  padding-top: var(--nav-h);
}

.nav-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(1);
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  transition:
    top 0.50s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.50s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.50s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.50s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease,
    backdrop-filter 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.logo {
  margin-left: 100px;
}

.nav-inner {
  display: flex;
  gap: 64px;
  margin-left: auto;
  margin-right: 100px;
}

.nav-element {
  position: relative;
  text-decoration: none;
  padding: 2px 0;
  font-family: 'Circe', sans-serif;
  font-weight: 400;
  color: var(--grey, #ddd);
  transition: color 0.3s ease;
  text-shadow: var(--shadow, 0 1px 2px rgba(0, 0, 0, 0.4));
}

.nav-element:hover {
  color: #FFF;
}

.nav-element::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease-out;
}

.nav-element:hover::after {
  transform: scaleX(1);
}

.nav-bar.is-floating {
  top: 16px;
  width: min(1280px, calc(100% - 32px));
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(100, 116, 139, 0.6);
  transform: translateX(-50%) scale(1.02);
  animation: nav-pop-in 420ms cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}

.nav-bar:not(.is-floating) {
  transform: translateX(-50%) scale(1);
}

@keyframes nav-pop-in {
  0% {
    transform: translateX(-50%) scale(0.985);
  }
  60% {
    transform: translateX(-50%) scale(1.03);
  }
  100% {
    transform: translateX(-50%) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-bar {
    transition: none;
  }
  .nav-bar.is-floating {
    animation: none;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 56px;
  }
  .logo {
    margin-left: 12px;
  }
  .nav-inner {
    margin-right: 12px;
    gap: 20px;
  }
  .nav-bar.is-floating {
    top: 12px;
    width: calc(100% - 16px);
  }
}

.main-container {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  padding-top: 100px;
  min-height: calc(100vh - 100px);
}

.inicio {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}


.text-overlay {
  position: absolute;
  left: 50%;
  top: 55%; /* Cambia 'top' para posicionar el elemento */
  transform: translate(-50%, -50%); /* Ajusta solo la posición, si es necesario */
  text-align: center;
  width: 100%;
  z-index: 2;
}

.text-overlay a {
  display: block;
  font-family: 'Cinzel Decorative';
  font-size: 40px;
  font-weight: 400;
  color: var(--accent);
  text-shadow: var(--shadow);
  white-space: nowrap;
  will-change: transform, opacity;
  transition: transform .8s ease, opacity .8s ease;
}

.line.left-in  { transform: translateX(-60vw); opacity: 0; }
.line.right-in { transform: translateX( 60vw); opacity: 0; }
.line.enter    { transform: translateX(0); opacity: 1; }
.line.left-in.leave  { transform: translateX(-60vw); opacity: 0; }
.line.right-in.leave { transform: translateX( 60vw); opacity: 0; }

.about,
.services,
.hanzo {
  margin-bottom: 100px;
  max-width: 1200px;
  padding: 0 20px;
}

.section-title {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: 75px;
  text-align: center;
  margin-bottom: 50px;
  color: var(--accent);
  text-shadow: var(--shadow);
  padding-top: 100px;
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.about-text {
  margin: 0;
  border-radius: 20px;
  padding: 5px;
  color: var(--bone);
  flex: 1;
  font-size: 24px;
  font-family: 'Circe';
  line-height: 1.6;
  text-shadow: var(--shadow);
}

.space {
  margin-bottom: 100px;
}

.carousel {
  position: relative;
  width: 600px;
  height: 270px;
  margin: 0 auto;
  overflow: visible;
}

.carousel-track {
  position: relative;
  width: 600px;
  height: 270px;
  margin: 0 auto;
}

.slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 600px;
  height: 270px;
  transform: translateX(-50%);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  transition: transform .6s ease, filter .4s ease, opacity .4s ease, z-index .2s;
  will-change: transform, filter, opacity;
  object-fit: cover;
}

.slide.is-center {
  z-index: 3;
  transform: translateX(-50%) scale(1);
  filter: none;
  opacity: 1;
}

.slide.is-left {
  z-index: 2;
  transform: translateX(calc(-50% - var(--offset))) scale(.85);
  filter: blur(2.5px);
  opacity: .9;
}

.slide.is-right {
  z-index: 2;
  transform: translateX(calc(-50% + var(--offset))) scale(.85);
  filter: blur(2.5px);
  opacity: .9;
}

.slide.is-hidden {
  z-index: 1;
  transform: translateX(-50%) scale(.7);
  filter: blur(4px);
  opacity: 0;
  pointer-events: none;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.carousel-indicators .indicator {
  width: 20px;
  height: 5px;
  border-radius: 6px;
  background: rgb(84 84 84 / 35%);
  border: 1px solid rgb(93 93 93 / 25%);
  cursor: pointer;
  transition: transform .2s, background .2s, opacity .2s;
  opacity: .85;
}

.carousel-indicators .indicator:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.carousel-indicators .indicator.is-active {
  background: rgb(90 90 90 / 90%);
  border-color: rgb(129 129 129 / 60%);
  opacity: 1;
}

@media (max-width: 640px) {
  .carousel,
  .carousel-track,
  .slide {
    width: calc(100vw - 32px);
    height: calc((100vw - 32px) * 270 / 600);
  }
}

.service-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-direction: row-reverse;
  margin-bottom: 100px;
}

.hanzo-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-direction: column;
  margin-bottom: 50px;
}

.service-img,
.hanzo-img {
  max-width: 300px;
  height: auto;
}

.hanzo-img-content {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-x-left   { transform: translateX(-40px); }
.reveal-x-right  { transform: translateX(40px); }
.reveal-y-up     { transform: translateY(40px); }
.reveal-y-down   { transform: translateY(-40px); }

.reveal.active.reveal-x-left,
.reveal.active.reveal-x-right,
.reveal.active.reveal-y-up,
.reveal.active.reveal-y-down {
  transform: translate(0,0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1 !important;
    transform: none !important;
  }
}

.contact-buttom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 50px;
  margin-top: 100px;
  margin-bottom: 150px;
}

.btn {
  width: 128px;
  height: 128px;
  transition: transform 0.3s ease;
}

.btn:hover {
  cursor: pointer;
  transform: scale(1.1);
}

/* ==== MODO RESPONSIVE ==== */

.nav-toggle {
  display: none;
  margin-left: auto;
  margin-right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 1002;
  background: transparent;
  border: none;
}

.nav-toggle .icon-open,
.nav-toggle .icon-close {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  display: block;
  filter: invert(1) brightness(2) drop-shadow(0 1px 2px rgba(0,0,0,.6));
  transition: opacity .2s ease;
}

.nav-toggle .icon-close {
  opacity: 0;
  pointer-events: none;
}

.nav-bar.is-open .nav-toggle .icon-open {
  opacity: 0;
  pointer-events: none;
}

.nav-bar.is-open .nav-toggle .icon-close {
  opacity: 1;
  pointer-events: auto;
}

.nav-inner {
  display: flex;
  gap: 64px;
  margin-left: auto;
  margin-right: 24px;
  justify-content: flex-end;
  z-index: 1001;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-inner {
    position: fixed;
    inset: 0;
    padding: calc(var(--nav-h) + 12px) 24px 24px;
    display: grid;
    gap: 16px;
    align-content: start;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    margin: 0;
    z-index: 1001;
  }
  .nav-bar.is-open .nav-inner {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .logo {
    margin-left: 12px;
  }
}

html.menu-open,
body.menu-open {
  overflow: hidden;
}

/* INICIO */

.logo-big {
  width: min(80%, 600px);
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .page-wrapper {
    margin: 0 16px;
  }

  .section-title {
    font-size: 48px;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .text-overlay a {
    font-size: 24px; /* Added missing rule to make text responsive */
  }

  .about-content,
  .service-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .about-img,
  .service-img {
    max-width: 250px;
  }

  .about-text p {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .carousel,
  .carousel-track,
  .slide {
    width: calc(80vw - 32px);
    height: calc((80vw - 32px) * 270 / 600);
  }
}

@media (max-width: 480px) {
  .contact-buttom {
    flex-direction: row;
    gap: 20px;
  }

  .btn {
    width: 80px;
    height: 80px;
  }
}