/* =============================================================
   MYSTIC NAILS & BEAUTY — Stylesheet
   Estética: elegante, minimalista, blanco y negro
============================================================= */

:root{
  --black: #111111;
  --ink: #1a1a1a;
  --white: #ffffff;
  --cream: #faf8f5;
  --grey: #6f6a63;
  --grey-light: #a8a29a;
  --line: #dcd6cc;
  --line-soft: #ece7dd;
  --forest: #445c40;
  --forest-light: #7c9473;
  --forest-pale: #cbc7a0;
  --earth-glow: #b99a5c;

  --font-display: 'Playfair Display', serif;
  --font-script: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  --container: 1180px;
  --radius: 2px;
  --transition: 0.4s cubic-bezier(.25,.8,.25,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--black);
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

em{ font-style: italic; font-family: var(--font-script); font-weight: 500; }

p{ line-height: 1.75; color: var(--grey); margin: 0 0 1em; }

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

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

ul{ list-style: none; margin: 0; padding: 0; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* subtle grain overlay for texture */
.grain{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   PRELOADER
============================================================= */
#preloader{
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hidden{ opacity: 0; visibility: hidden; }
.preloader-logo{
  width: min(45vw, 260px);
  height: min(45vw, 260px);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100%{ transform: scale(1); opacity: .7; }
  50%{ transform: scale(1.08); opacity: 1; }
}

/* =============================================================
   BUTTONS
============================================================= */
.btn{
  display: inline-block;
  padding: 15px 34px;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-solid{ background: var(--black); color: var(--white); }
.btn-solid:hover{ background: transparent; color: var(--black); }
.btn-outline{ background: transparent; color: var(--black); }
.btn-outline:hover{ background: var(--black); color: var(--white); }
.btn-ghost{ border-color: transparent; color: var(--black); position: relative; }
.btn-ghost::after{
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 8px;
  height: 1px;
  background: var(--black);
  transition: right var(--transition);
}
.btn-ghost:hover::after{ right: 0; }

/* =============================================================
   HEADER
============================================================= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.0);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 22px 0;
}
.site-header.scrolled{
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: transform var(--transition);
}
.brand:hover .brand-logo{ transform: rotate(12deg); }
.brand-text{
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--black);
}
.brand-text em{ font-size: 1.05em; }
.amp{
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25em;
  color: var(--grey);
  padding: 0 .06em;
}

.main-nav{ display: flex; align-items: center; gap: 40px; }
.main-nav ul{ display: flex; gap: 34px; }
.nav-link{
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after{ width: 100%; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block;
  height: 1px;
  background: var(--black);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* =============================================================
   HERO
============================================================= */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 60px;
}
.overline{
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
}
.hero-text h1{
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.12;
  margin-bottom: .4em;
}
.hero-lead{
  max-width: 480px;
  font-size: 1.02rem;
}
.hero-actions{
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 34px 0 46px;
}
.hero-meta{
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-meta span{ letter-spacing: .1em; color: var(--black); }
.hero-meta p{ margin: 0; font-size: .85rem; }

.hero-visual{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-forest{
  position: relative;
  width: min(88%, 460px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-forest::before{
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(185, 154, 92, .2), transparent 68%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

.leaf-layer{
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.layer-back{ z-index: 1; filter: blur(2.5px); opacity: .5; }
.layer-mid{ z-index: 2; filter: blur(1px); opacity: .78; }
.layer-front{ z-index: 4; }

.hero-photo-frame{
  position: relative;
  z-index: 3;
  width: min(70%, 340px);
}
.hero-photo-frame::before{
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.hero-photo{
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  mask-image: radial-gradient(circle, black 60%, transparent 94%);
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 94%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.2);
  animation: float 6s ease-in-out infinite;
}
@keyframes float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}

.hero-leaf{
  position: absolute;
  width: 30px;
  transform-origin: top center;
  transform: rotate(var(--sway));
  animation: leafSway var(--dur, 4.5s) ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}
@keyframes leafSway{
  0%{ transform: rotate(calc(var(--sway) - 5deg)); }
  50%{ transform: rotate(calc(var(--sway) + 5deg)); }
  100%{ transform: rotate(calc(var(--sway) - 5deg)); }
}
.hero-leaf.dark{ color: var(--forest); }
.hero-leaf.sage{ color: var(--forest-light); }
.hero-leaf.pale{ color: var(--forest-pale); }

/* back layer — wide reach, largest */
.leaf-b1{ top: -6%; left: -8%; width: 56px; }
.leaf-b2{ top: -10%; right: 4%; width: 48px; }
.leaf-b3{ bottom: -8%; left: 2%; width: 52px; }
.leaf-b4{ bottom: -6%; right: -6%; width: 50px; }
.leaf-b5{ top: 40%; left: -14%; width: 44px; }
.leaf-b6{ top: 58%; right: -12%; width: 42px; }
.leaf-b7{ top: -14%; left: 44%; width: 50px; }
.leaf-b8{ bottom: -12%; left: 40%; width: 46px; }
.leaf-b9{ top: -2%; right: -12%; width: 44px; }
.leaf-b10{ bottom: -2%; left: -12%; width: 44px; }

/* mid layer */
.leaf-m1{ top: -2%; left: 14%; width: 40px; }
.leaf-m2{ top: -4%; right: 26%; width: 36px; }
.leaf-m3{ bottom: -2%; left: 30%; width: 38px; }
.leaf-m4{ bottom: -1%; right: 12%; width: 34px; }
.leaf-m5{ top: 22%; left: -6%; width: 32px; }
.leaf-m6{ top: 72%; right: -4%; width: 30px; }
.leaf-m7{ top: 8%; left: -2%; width: 34px; }
.leaf-m8{ top: 6%; right: 0%; width: 32px; }
.leaf-m9{ bottom: 4%; left: 6%; width: 30px; }
.leaf-m10{ bottom: 2%; right: 8%; width: 32px; }

/* front layer — closest, sharpest */
.leaf-f1{ top: 4%; left: 34%; width: 30px; }
.leaf-f2{ top: 2%; right: 40%; width: 26px; }
.leaf-f3{ bottom: 4%; left: 44%; width: 28px; }
.leaf-f4{ bottom: 6%; right: 30%; width: 24px; }
.leaf-f5{ top: 46%; left: 2%; width: 24px; }
.leaf-f6{ top: 32%; right: 2%; width: 26px; }
.leaf-f7{ top: 16%; left: 18%; width: 22px; }
.leaf-f8{ top: 14%; right: 18%; width: 22px; }
.leaf-f9{ bottom: 16%; left: 22%; width: 22px; }
.leaf-f10{ bottom: 14%; right: 22%; width: 24px; }

@media (prefers-reduced-motion: reduce){
  .hero-photo, .hero-leaf{ animation: none; }
}

.hero-sparkle{
  position: absolute;
  font-size: 1.4rem;
  color: var(--grey-light);
  animation: twinkle 3.2s ease-in-out infinite;
}
.hero-sparkle-1{ top: 18%; left: 6%; animation-delay: 0s; }
.hero-sparkle-2{ top: 65%; left: 3%; font-size: 1rem; animation-delay: 1s; }
.hero-sparkle-3{ top: 30%; right: 4%; animation-delay: 2s; }
@keyframes twinkle{
  0%, 100%{ opacity: .25; transform: scale(.85); }
  50%{ opacity: 1; transform: scale(1.15); }
}

.scroll-cue{
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: var(--line);
}
.scroll-cue span{
  position: absolute;
  top: 0; left: -2px;
  width: 5px; height: 5px;
  background: var(--black);
  border-radius: 50%;
  animation: dropDown 2.4s ease-in-out infinite;
}
@keyframes dropDown{
  0%{ top: 0; opacity: 1; }
  100%{ top: 55px; opacity: 0; }
}

/* =============================================================
   MARQUEE
============================================================= */
.marquee{
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--black);
  padding: 18px 0;
}
.marquee::before,
.marquee::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(48px, 10%, 180px);
  z-index: 2;
  pointer-events: none;
}
.marquee::before{
  left: 0;
  background: linear-gradient(to right, var(--black) 30%, transparent);
}
.marquee::after{
  right: 0;
  background: linear-gradient(to left, var(--black) 30%, transparent);
}
.marquee-track{
  display: flex;
  width: max-content;
  animation: scrollLeft 32s linear infinite;
}
.marquee-track span{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--white);
  white-space: nowrap;
  padding-right: 40px;
}
@keyframes scrollLeft{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* =============================================================
   SECTION HEAD (shared)
============================================================= */
.section-head{
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
}
.section-head h2{ font-size: clamp(2rem, 3.5vw, 2.8rem); }
.section-sub{ margin-top: 6px; }
.section-head.light .overline,
.section-head.light h2{ color: var(--white); }

section{ padding: 120px 0; }

/* =============================================================
   ABOUT
============================================================= */
.about-inner{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about-visual{ position: relative; }
.about-img{
  width: 100%;
  height: auto;
  aspect-ratio: 528 / 654;
  border-radius: 16px;
  object-fit: cover;
}

.about-content h2{ font-size: clamp(2rem, 3.5vw, 2.7rem); }
.about-list{ margin: 28px 0; }
.about-list li{
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: .95rem;
}
.about-list li span{
  font-family: var(--font-display);
  color: var(--grey-light);
  font-size: 1rem;
}
.about-stats{
  display: flex;
  gap: 48px;
  margin-top: 36px;
}
.stat strong{
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--black);
}
.stat span{ font-size: .8rem; color: var(--grey); letter-spacing: .04em; }

/* =============================================================
   SERVICES
============================================================= */
.services{ background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card{
  background: var(--white);
  padding: 38px 22px;
  text-align: center;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-card:hover{ background: var(--cream); }
.service-icon{
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  color: var(--black);
}
.service-card h3{ font-size: 1.05rem; margin-bottom: 8px; line-height: 1.3; }
.service-card p{ font-size: .82rem; }

/* =============================================================
   GALLERY
============================================================= */
.gallery-grid{
  column-count: 3;
  column-gap: 20px;
}
.gallery-item{
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--white);
  break-inside: avoid;
  margin-bottom: 20px;
}
.gallery-item img{
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform .6s ease;
}
.gallery-item:hover img{ transform: scale(1.08); }
.gallery-note{
  text-align: center;
  margin-top: 34px;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--grey);
}

/* =============================================================
   TESTIMONIALS
============================================================= */
.testimonials{ background: var(--black); }
.testi-slider{
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.testi-track{ position: relative; min-height: 140px; }
.testi-stars{
  color: var(--white);
  letter-spacing: .3em;
  font-size: .85rem;
  margin-bottom: 18px;
  opacity: .9;
}
.testi-card{
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.testi-card.active{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.testi-card p{
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--white);
}
.testi-card cite{
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-light);
}
.testi-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.testi-dots button{
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--grey-light);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}
.testi-dots button.active{ background: var(--white); border-color: var(--white); }

/* =============================================================
   CONTACT
============================================================= */
.contact-inner{
  max-width: 560px;
  margin: 0 auto;
}
.contact-info h2{ font-size: clamp(2rem, 3.5vw, 2.7rem); }
.contact-list{ margin: 30px 0; }
.contact-list li{
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-list strong{
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--black);
}
.contact-list span{ color: var(--grey); }
.contact-list span a{ color: var(--grey); border-bottom: 1px solid var(--line); transition: color var(--transition), border-color var(--transition); }
.contact-list span a:hover{ color: var(--black); border-color: var(--black); }
.social-links{ display: flex; gap: 26px; }
.social-links a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 3px;
}
.social-icon{
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

/* =============================================================
   FOOTER
============================================================= */
.site-footer{
  background: var(--black);
  color: var(--grey-light);
  padding: 80px 0 0;
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
  background: var(--white);
}
.footer-brand p{
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.footer-brand .amp{ color: var(--grey-light); }
.footer-brand span{ font-size: .85rem; }
.footer-links h4{
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 500;
}
.footer-links a, .footer-links p{
  display: block;
  margin-bottom: 12px;
  font-size: .9rem;
  color: var(--grey-light);
}
.footer-links a:hover{ color: var(--white); }
.footer-bottom{
  text-align: center;
  padding: 26px 0;
  font-size: .8rem;
}

/* =============================================================
   FLOATING CTA (mobile)
============================================================= */
.floating-cta{
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--black);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 40px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 900;
  display: none;
}

/* =============================================================
   REVEAL ANIMATION
============================================================= */
[data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
[data-reveal].in-view{
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 980px){
  .hero-inner, .about-inner{
    grid-template-columns: 1fr;
  }
  .hero-visual{ order: -1; margin-bottom: 20px; }
  .hero-forest{ width: min(72vw, 340px); }
  .hero-photo-frame{ width: min(55vw, 260px); }
  .services-grid{ grid-template-columns: repeat(3, 1fr); }
  .gallery-grid{ column-count: 2; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }

  .main-nav{
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 40px;
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,.1);
  }
  .main-nav.open{ right: 0; }
  .main-nav ul{ flex-direction: column; gap: 22px; }
  .nav-toggle{ display: flex; }
  .floating-cta{ display: block; }
}

@media (max-width: 620px){
  section{ padding: 80px 0; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-grid{ column-count: 1; }
  .about-stats{ gap: 28px; flex-wrap: wrap; }
  .hero-actions{ flex-wrap: wrap; gap: 18px; }
}
