/* ============================================================
   KORDE — Diseño, construcción y desarrollo de espacios
   Identidad: oscuro premium + madera cálida + luz LED indirecta
   ============================================================ */

:root {
  --bg:        #12100e;
  --bg-2:      #17140f;
  --surface:   #1e1a14;
  --line:      #2c261d;
  --ink:       #ede5d8;
  --muted-txt: #a89c8a;
  --wood:      #c98a4e;
  --wood-soft: #b9814d;
  --glow:      #ffb35c;
  --glow-dim:  rgba(255, 179, 92, .14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Manrope", system-ui, sans-serif;

  --pad: clamp(1.25rem, 5vw, 6rem);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

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

/* --- textura sutil de fondo (grano) --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ TIPOGRAFÍA BASE ============ */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.01em;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--wood);
}

h2 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 1.1rem;
}

.section { position: relative; z-index: 2; padding: clamp(5rem, 10vw, 9rem) var(--pad); }

.section-head { max-width: 60rem; margin-bottom: clamp(3rem, 6vw, 5rem); }

.section-head__note {
  color: var(--muted-txt);
  max-width: 34rem;
  margin-top: 1.4rem;
}

/* ============ BOTONES ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s, border-color .35s;
}

.btn--glow {
  background: linear-gradient(120deg, var(--wood) 0%, #e0a563 100%);
  color: #1b1207;
  box-shadow: 0 0 0 0 rgba(255, 179, 92, 0);
}

.btn--glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 34px -6px rgba(255, 179, 92, .55);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255,255,255,.02);
}

.btn--ghost:hover { border-color: var(--wood); color: var(--wood); }

/* ============ HEADER ============ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem var(--pad);
  transition: background .4s, box-shadow .4s, padding .4s;
}

.site-header.is-scrolled {
  background: rgba(18, 16, 14, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .75rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: .34em;
  font-weight: 500;
}

.brand__spark {
  width: .5em; height: .5em;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 12px 2px rgba(255,179,92,.8);
  animation: sparkPulse 3.2s ease-in-out infinite;
  translate: -0.3em 0;
}

@keyframes sparkPulse {
  0%, 100% { opacity: .75; box-shadow: 0 0 8px 1px rgba(255,179,92,.5); }
  50%       { opacity: 1;  box-shadow: 0 0 16px 4px rgba(255,179,92,.85); }
}

.site-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted-txt);
}

.site-nav a { position: relative; padding-block: .3rem; transition: color .3s; }

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--glow), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-cta { font-size: .85rem; padding: .7rem 1.4rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .3s;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--pad) 6rem;
  isolation: isolate;
  overflow: hidden;
}

.hero__media, .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__media img { object-position: 65% 40%; animation: heroDrift 22s ease-in-out infinite alternate; }

@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to   { transform: scale(1.1)  translateY(-1.5%); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(75deg, rgba(14,12,10,.96) 0%, rgba(14,12,10,.82) 38%, rgba(14,12,10,.35) 70%, rgba(14,12,10,.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

/* línea de luz LED — la firma de Korde */
.hero__glowline {
  position: absolute;
  left: 0; right: 0;
  bottom: 18%;
  height: 2px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, var(--glow) 35%, transparent 80%);
  filter: drop-shadow(0 0 14px var(--glow));
  opacity: .5;
  animation: glowSlide 9s ease-in-out infinite alternate;
}

@keyframes glowSlide {
  from { transform: translateX(-12%); opacity: .35; }
  to   { transform: translateX(10%);  opacity: .65; }
}

.hero__title {
  font-size: clamp(2.9rem, 8.5vw, 7rem);
  font-weight: 300;
  max-width: 12ch;
}

.hero__lede {
  max-width: 33rem;
  margin-top: 1.8rem;
  color: #cfc4b2;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .74rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted-txt);
}

.hero__scroll-line {
  width: 4.5rem; height: 1px;
  background: var(--wood);
  transform-origin: left;
  animation: scrollHint 2.4s var(--ease) infinite;
}

@keyframes scrollHint {
  0%   { transform: scaleX(0);  opacity: 0; }
  40%  { transform: scaleX(1);  opacity: 1; }
  100% { transform: scaleX(1) translateX(30%); opacity: 0; }
}

/* ============ MARQUEE ============ */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .06em;
  color: var(--muted-txt);
  white-space: nowrap;
}

.marquee__track i { color: var(--wood); font-style: normal; font-size: .55rem; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ ÁREAS ============ */

.area {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.area--flip .area__media { order: 2; }
.area--flip .area__body  { order: 1; }

.area__media {
  position: relative;
  aspect-ratio: 5 / 4;
}

.area__media img {
  width: 82%;
  height: 92%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  transition: transform .8s var(--ease);
}

.area__media .area__media-b {
  position: absolute;
  right: 0;
  bottom: -6%;
  width: 46%;
  height: 56%;
  border: 6px solid var(--bg);
  border-radius: 6px;
}

.area:hover .area__media > img:first-child { transform: scale(1.02) rotate(-.4deg); }

.area__num {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 300;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--wood-soft);
  display: block;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: .85;
}

.area__body h3 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: 1.1rem;
}

.area__body p { color: var(--muted-txt); max-width: 30rem; }

.area__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  list-style: none;
  margin-top: 1.6rem;
}

.area__tags li {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .42rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c9bda8;
  background: rgba(255,255,255,.015);
}

/* ============ GALERÍA ============ */

.gallery { background: var(--bg-2); border-block: 1px solid var(--line); }

.gallery__strip {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding: .5rem .5rem 1.6rem;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  scroll-snap-type: x proximity;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--wood) transparent;
}

.gallery__strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.gallery__strip::-webkit-scrollbar { height: 4px; }
.gallery__strip::-webkit-scrollbar-thumb { background: var(--wood); border-radius: 2px; }
.gallery__strip::-webkit-scrollbar-track { background: var(--line); }

.gallery__strip figure {
  flex: 0 0 auto;
  width: clamp(240px, 30vw, 380px);
  scroll-snap-align: start;
}

.gallery__strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  cursor: zoom-in;
}

.gallery__strip figure:nth-child(even) { translate: 0 2.2rem; }

.gallery__strip img:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 50px -18px rgba(255,179,92,.25);
}

.gallery__strip figcaption {
  margin-top: .7rem;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--muted-txt);
}

/* ============ PROCESO ============ */

.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  counter-reset: step;
  position: relative;
}

/* línea de luz que conecta los pasos */
.process__steps::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: 2%;
  right: 2%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wood-soft) 15%, var(--wood-soft) 85%, transparent);
  opacity: .45;
  filter: drop-shadow(0 0 6px var(--glow));
}

.process__num {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--glow);
  background: var(--bg);
  border: 1px solid var(--wood-soft);
  box-shadow: 0 0 18px -4px rgba(255,179,92,.5);
  margin-bottom: 1.3rem;
}

.process__steps h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.process__steps p  { color: var(--muted-txt); font-size: .95rem; }

/* ============ NOSOTROS ============ */

.about {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  background:
    radial-gradient(60% 50% at 80% 20%, var(--glow-dim), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.about__media { position: relative; }

.about__media img {
  border-radius: 6px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  filter: saturate(.92);
}

.about__media-tag {
  position: absolute;
  left: 1rem; bottom: 1rem;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: rgba(18,16,14,.8);
  backdrop-filter: blur(6px);
  padding: .5rem .9rem;
  border-radius: 4px;
  color: var(--wood);
}

.about blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  color: #d8cdbb;
  border-left: 2px solid var(--wood);
  padding-left: 1.4rem;
  margin-block: 1.8rem;
  max-width: 34rem;
}

.about > .about__body > p { color: var(--muted-txt); max-width: 34rem; }

.about__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.4rem;
}

.about__values strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--wood);
  margin-bottom: .35rem;
}

.about__values span { font-size: .88rem; color: var(--muted-txt); line-height: 1.5; }

/* ============ CONTACTO ============ */

.contact { position: relative; overflow: hidden; }

.contact__glow {
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 90%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255,179,92,.16), transparent 70%);
  pointer-events: none;
}

.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact__intro > p { color: var(--muted-txt); max-width: 28rem; }

.contact__channels {
  list-style: none;
  margin-top: 2.6rem;
  display: grid;
  gap: 0;
}

.contact__channels li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}

.contact__channels li:first-child { border-top: 1px solid var(--line); }

.contact__label {
  flex: 0 0 7.5rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--wood);
}

.contact__channels a {
  transition: color .3s;
  border-bottom: 1px solid transparent;
}

.contact__channels a:hover { color: var(--glow); }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: grid;
  gap: 1.3rem;
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.9);
}

.contact__form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}

.contact__form label { display: grid; gap: .5rem; }

.contact__form label span {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-txt);
}

.contact__form input,
.contact__form select,
.contact__form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: .85rem 1rem;
  transition: border-color .3s, box-shadow .3s;
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--wood);
  box-shadow: 0 0 0 3px rgba(201,138,78,.18);
}

.contact__form textarea { resize: vertical; }

.contact__form-note { font-size: .78rem; color: var(--muted-txt); }

/* ============ FOOTER ============ */

.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem var(--pad) 2.5rem;
  display: grid;
  justify-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.site-footer__glowline {
  position: absolute;
  top: -1px; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  filter: drop-shadow(0 0 10px var(--glow));
  opacity: .5;
}

.site-footer p { color: var(--muted-txt); font-size: .9rem; }

.site-footer nav { display: flex; gap: 1.8rem; font-size: .85rem; color: var(--muted-txt); }
.site-footer nav a:hover { color: var(--wood); }

.site-footer small { color: #6f6455; font-size: .78rem; margin-top: .8rem; }

/* ============ LIGHTBOX ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 9, 7, .93);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 3rem;
}

.lightbox[hidden] { display: none; }

.lightbox figure { max-width: min(92vw, 1000px); max-height: 86vh; text-align: center; }

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 80px -20px rgba(255,179,92,.25);
  margin-inline: auto;
}

.lightbox figcaption { margin-top: 1rem; color: var(--muted-txt); font-size: .9rem; letter-spacing: .05em; }

.lightbox__close,
.lightbox__nav {
  position: fixed;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 50%;
  width: 3rem; height: 3rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .3s, color .3s;
}

.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--wood); color: var(--glow); }

.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__nav--prev { left: 1.5rem; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 1.5rem; top: 50%; translate: 0 -50%; }

/* ============ WHATSAPP FLOTANTE ============ */

.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  width: 3.6rem; height: 3.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ea94f, #1f8a3d);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(46,169,79,.6);
  transition: transform .35s var(--ease), box-shadow .35s;
}

.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 36px -8px rgba(46,169,79,.75); }

/* ============ REVEAL ON SCROLL ============ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

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

@media (max-width: 960px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .process__steps::before { display: none; }
  .about { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    font-size: 1.4rem;
    background: rgba(14, 12, 10, .96);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
    z-index: 55;
  }

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

  .header-cta { display: none; }
  .nav-toggle { display: flex; z-index: 60; }

  .nav-toggle.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle.is-open span:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

  .area { grid-template-columns: 1fr; gap: 2.2rem; }
  .area--flip .area__media { order: 0; }
  .area--flip .area__body  { order: 1; }
  .area__media { aspect-ratio: 4 / 3.4; }

  .gallery__strip figure:nth-child(even) { translate: 0 1.2rem; }

  .about__values { grid-template-columns: 1fr; gap: 1.1rem; }
}

@media (max-width: 560px) {
  .process__steps { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .lightbox { padding: 1rem; }
  .lightbox__nav { display: none; }
}
