/* ================================================
   LIGNE & OMBRE STUDIO — Global Design System
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ── */
:root {
  --clr-forest:       #263e2b;
  --clr-forest-dark:  #111a13;
  --clr-forest-mid:   #1e3324;
  --clr-forest-light: #3d5e40;
  --clr-cream:        #e8e0d0;
  --clr-cream-light:  #f5f0e8;
  --clr-gold:         #c9a96e;
  --clr-gold-light:   #dfc08a;
  --clr-white:        #ffffff;
  --clr-text-dark:    #1a2a1c;
  --clr-text-muted:   #5a7560;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 12px rgba(0,0,0,.08);
  --shadow-md:  0 8px 40px rgba(0,0,0,.14);
  --shadow-lg:  0 20px 80px rgba(0,0,0,.22);

  --transition: .45s cubic-bezier(.22,1,.36,1);
  --transition-fast: .2s ease;

  --nav-h: 80px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--clr-text-dark);
  background: var(--clr-white);
  overflow-x: hidden;
  cursor: none;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor__dot {
  width: 8px; height: 8px;
  background: var(--clr-white);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, opacity .2s;
}
.cursor__circle {
  width: 36px; height: 36px;
  border: 1.5px solid var(--clr-white);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%,-50%);
  transition: transform .12s ease, width .3s, height .3s;
  pointer-events: none;
}
body:hover .cursor__circle { opacity: 1; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--clr-forest-dark); }
::-webkit-scrollbar-thumb { background: var(--clr-gold); border-radius: 3px; }

/* ── TYPOGRAPHY ── */
.t-display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.t-label {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 5vw;
  justify-content: space-between;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(17,26,19,.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo img { height: 54px; width: auto; }
.nav__logo svg { height: 54px; width: auto; }
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--clr-cream);
  line-height: 1.2;
  letter-spacing: .04em;
}
.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__links a {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-cream);
  opacity: .8;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--clr-gold);
  transition: width var(--transition);
}
.nav__links a:hover { opacity: 1; color: var(--clr-gold); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  padding: 10px 24px;
  border: 1px solid var(--clr-gold);
  color: var(--clr-gold) !important;
  border-radius: 2px;
  font-size: .75rem !important;
  letter-spacing: .14em !important;
  opacity: 1 !important;
  transition: background var(--transition), color var(--transition) !important;
}
.nav__cta:hover { background: var(--clr-gold) !important; color: var(--clr-forest-dark) !important; }
.nav__cta::after { display: none !important; }

/* ── HAMBURGER (mobile) ── */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block; height: 1.5px;
  background: var(--clr-cream);
  transition: var(--transition);
}
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--clr-forest-dark);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--clr-cream);
  letter-spacing: .06em;
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--clr-gold); }
.nav__mobile-close {
  position: absolute;
  top: 28px; right: 5vw;
  font-size: 2rem;
  color: var(--clr-cream);
  cursor: pointer;
}

/* ── SECTION WRAPPER ── */
.section { padding: clamp(80px,12vw,140px) 5vw; }
.section--dark { background: var(--clr-forest-dark); color: var(--clr-cream); }
.section--forest { background: var(--clr-forest); color: var(--clr-cream); }
.section--cream { background: var(--clr-cream-light); }
.container { max-width: 1280px; margin: 0 auto; }

/* ── SECTION HEADER ── */
.sec-header { margin-bottom: clamp(50px,8vw,90px); }
.sec-header__eyebrow {
  color: var(--clr-gold);
  margin-bottom: 16px;
}
.sec-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem,5vw,4.5rem);
  font-weight: 300;
  line-height: 1.05;
  max-width: 700px;
}
.sec-header__title em { font-style: italic; color: var(--clr-gold); }
.sec-header__line {
  display: block;
  width: 60px; height: 1px;
  background: var(--clr-gold);
  margin-top: 28px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: var(--transition);
  cursor: pointer;
}
.btn--primary {
  background: var(--clr-gold);
  color: var(--clr-forest-dark);
}
.btn--primary:hover {
  background: var(--clr-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,169,110,.35);
}
.btn--outline {
  border: 1px solid rgba(255,255,255,.4);
  color: var(--clr-white);
}
.btn--outline:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
  transform: translateY(-2px);
}
.btn--outline-dark {
  border: 1px solid var(--clr-forest);
  color: var(--clr-forest);
}
.btn--outline-dark:hover {
  background: var(--clr-forest);
  color: var(--clr-white);
}
.btn svg { transition: transform var(--transition); }
.btn:hover svg { transform: translateX(4px); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── FOOTER ── */
.footer {
  background: var(--clr-forest-dark);
  color: var(--clr-cream);
  padding: 60px 5vw 30px;
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 40px;
  margin-bottom: 28px;
}
.footer__logo img { height: 35px; width: auto; opacity: .9; }
.footer__logo svg { height: 30px; width: auto; opacity: .85; }
.footer__tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--clr-cream);
  opacity: .7;
  margin-top: 12px;
  letter-spacing: .04em;
}
.footer__links { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.footer__links a {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-cream);
  opacity: .6;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}
.footer__links a:hover { opacity: 1; color: var(--clr-gold); }
.footer__copy {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(232,224,208,.35);
}

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 90;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
}
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,26,19,.9);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal__img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal__body { padding: 36px; }
.modal__cat {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 10px;
}
.modal__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--clr-forest-dark);
  margin-bottom: 16px;
}
.modal__desc {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--clr-text-muted);
}
.modal__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.modal__close:hover { background: rgba(255,255,255,.25); }

/* ── LOGO EN FONDOS OSCUROS (convertir a blanco) ── */
.nav__logo img,
.hero__logo-big,
.footer__logo img,
.footer__logo svg,
.contacto__card-logo {
  filter: brightness(0) invert(1);
}

/* ── LOADING PROGRESS BAR ── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-forest), var(--clr-gold));
  z-index: 9999;
  transition: width .3s;
  width: 0%;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav__logo img { height: 38px; }
  .nav__logo svg { height: 38px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  body { cursor: auto; }
  .cursor { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { align-items: flex-start; }
}
