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

:root {
  --bg: #f7f2ec;
  --paper: #fffaf4;
  --ink: #171412;
  --muted: #5a4d45;
  --soft: #cfc2b4;
  --line: rgba(106, 87, 73, 0.24);
  --accent: #7b5a3d;
  --shadow: 0 24px 48px rgba(73, 51, 36, 0.08);
  --shadow-soft: 0 14px 32px rgba(73, 51, 36, 0.06);
  --radius: 18px;
  --radius-lg: 22px;
  --transition: 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--muted);
  background: var(--bg);
  overflow-x: hidden;
}

#main-header, main, footer {
  animation: pageEntrance 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageEntrance {
  0% {
    opacity: 0;
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    filter: none;
  }
}

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

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

h1,
h2,
h3,
.logo,
.footer-brand h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink);
  font-weight: 500;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 82px;
  padding: 0 18px;
  background: rgba(247, 242, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(128, 108, 92, 0.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  justify-self: start;
  font-size: 2rem;
  font-style: italic;
  color: #7d5d43;
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  color: #2d2722;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: #7d5d43;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-links a:hover::after,
.nav-links .is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  justify-self: end;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fffdfb;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--transition), background var(--transition);
}

.nav-cta:hover,
.hero-button:hover {
  transform: translateY(-2px);
  background: #694d34;
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(rgba(35, 33, 32, 0.1), rgba(35, 33, 32, 0.1)),
    url('https://images.unsplash.com/photo-1515377905703-c4788e51af15?q=80&w=1800&auto=format&fit=crop') center 22%/cover;
  transform: scale(1.02) translateY(calc(var(--hero-shift, 0px) * 0.18));
  filter: saturate(0.72) brightness(0.94);
  animation: heroZoomIn 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroZoomIn {
  0% {
    transform: scale(1.1) translateY(0);
    filter: saturate(0.4) brightness(0.8);
  }
  100% {
    transform: scale(1.02) translateY(calc(var(--hero-shift, 0px) * 0.18));
    filter: saturate(0.72) brightness(0.94);
  }
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(248, 243, 237, 0.08) 0%, rgba(248, 243, 237, 0.24) 54%, rgba(247, 242, 236, 0.86) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(92%, 760px);
  margin-top: -90px;
}

.hero-eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-size: clamp(4.4rem, 8vw, 6.2rem);
  line-height: 0.94;
  margin-bottom: 1.2rem;
}

.hero-copy {
  width: min(92%, 520px);
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
  color: #fffdfb;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 54px;
  padding: 0 1.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fffdfb;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform var(--transition), background var(--transition);
}

.hero-signature {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(7rem, 16vw, 12rem);
  color: rgba(255, 251, 245, 0.85);
  text-shadow: 0 4px 24px rgba(45, 39, 34, 0.15);
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.services-section {
  padding: 4.2rem 16px 5.2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.8rem;
}

.section-header h2 {
  font-size: clamp(3rem, 6vw, 4.2rem);
  margin-bottom: 0.8rem;
}

.section-line {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--soft);
}

.services-grid {
  width: min(100%, 1220px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (min-width: 981px) {
  .service-card:nth-child(1) { grid-column: span 2; grid-row: span 2; } /* Facial */
  .service-card:nth-child(2) { grid-column: span 1; grid-row: span 2; } /* Masajes */
  .service-card:nth-child(3) { grid-column: span 1; } /* Pilates */
  .service-card:nth-child(4) { grid-column: span 2; } /* Laser */
  .service-card:nth-child(5) { grid-column: span 1; } /* Maquillaje */
  .service-card:nth-child(6) { grid-column: span 2; } /* Bronceado */
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ede6dd;
  min-height: 380px;
  box-shadow: var(--shadow-soft);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 249, 242, 0.04), rgba(255, 249, 242, 0.22));
  pointer-events: none;
}

.service-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), filter var(--transition);
  filter: saturate(0.84) brightness(1.02);
}

.service-card:hover .service-image {
  transform: scale(1.04);
  filter: saturate(0.92) brightness(1.04);
}

.service-panel {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 310px;
  padding: 1rem 1.15rem;
  background: rgba(255, 249, 243, 0.92);
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(52, 38, 29, 0.07);
}

.service-panel h3,
.service-caption h3,
.service-list-box h3 {
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  line-height: 1.08;
  margin-bottom: 0.35rem;
}

.service-panel p {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7f6e63;
}

.service-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  color: #201a17;
}

.service-caption h3 {
  margin-bottom: 0;
  font-size: 1.95rem;
}

.caption-icon {
  font-size: 1.1rem;
  color: #7b5a3d;
}

.service-list-box {
  height: 100%;
  padding: 2.3rem 1.5rem;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.service-list-box h3 {
  margin-bottom: 1.8rem;
}

.service-list-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.05rem;
  color: #332b26;
}

.list-icon {
  width: 1rem;
  color: #c79a76;
  font-size: 1rem;
  text-align: center;
}

.service-divider {
  height: 1px;
  margin: 1.2rem 0;
  background: rgba(132, 110, 92, 0.18);
}

footer {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: 3rem 16px 3.4rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 2rem;
  align-items: end;
}

.footer-brand h3 {
  font-size: 2.25rem;
  margin-bottom: 0.9rem;
  font-style: italic;
}

.footer-brand p {
  max-width: 320px;
  margin-bottom: 1.6rem;
  line-height: 1.55;
}

.footer-brand span,
.footer-title,
.footer-copy p {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-contact {
  display: grid;
  gap: 0.8rem;
}

.footer-title {
  color: #7d6a5d;
}

.footer-copy {
  text-align: right;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 900ms ease, transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  animation: floatPulse 3s infinite ease-in-out;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0px 12px 28px rgba(37, 211, 102, 0.45);
}

@keyframes floatPulse {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@media (max-width: 980px) {
  header {
    grid-template-columns: 1fr auto;
    gap: 1rem;
    height: auto;
    padding: 1rem 16px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    min-height: 280px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .footer-copy {
    text-align: left;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 640px) {
  .logo {
    font-size: 1.7rem;
  }

  .nav-cta {
    padding: 0.85rem 1.15rem;
    font-size: 0.74rem;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 2rem;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-signature {
    bottom: 52px;
    font-size: 6rem;
  }

  .service-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .service-list-box {
    padding: 1.8rem 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
