/* ============================================
   DivaLuxe — Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --gold: #C4956A;
  --gold-light: #EDD9C3;
  --gold-dark: #9A6B3F;
  --rose: #D4899E;
  --rose-light: #F5D5E0;
  --cream: #FDF4F7;
  --cream-dark: #F5E6EC;
  --charcoal: #1E1E1E;
  --text: #2A2A2A;
  --text-muted: #7A7A7A;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: .3s ease;
  --header-h: 72px;
  --container: 1200px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;
}

/* --- Reset --- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p + p { margin-top: 1em; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--cream-dark);
}

.section__title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--rose);
  margin: .75rem auto 0;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .025em;
  text-transform: uppercase;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--rose);
  color: var(--white);
}
.btn--primary:hover {
  background: #b8607a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  border: 2px solid var(--rose);
  color: #b8607a;
  background: transparent;
}
.btn--outline:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--charcoal);
}
.btn--white:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--sm {
  padding: .6rem 1.4rem;
  font-size: .8rem;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: var(--white);
  z-index: 1010;
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header__logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.header__logo img {
  height: 40px;
  width: auto;
}

/* Desktop Nav */
.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  position: relative;
  padding: .25rem 0;
  transition: color var(--transition);
}
.nav__link:hover,
.nav__link--active {
  color: var(--rose);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: width var(--transition);
}
.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Dropdown */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 180px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: .6rem 1.25rem;
  font-size: .85rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav__dropdown a:hover {
  background: var(--rose-light);
  color: #b8607a;
}

/* Header actions (CTA + lang switcher) */
.header__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.header__actions .btn {
  display: none;
}

/* Language switcher (flag) */
.header__lang {
  display: flex;
  align-items: center;
  line-height: 0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  transition: opacity var(--transition);
}
.header__lang:hover { opacity: .7; }
.header__lang svg {
  display: block;
  width: 26px;
  height: 19px;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  z-index: 1010;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  padding: .5rem 0;
  transition: color var(--transition);
}
.mobile-nav__link:hover {
  color: var(--rose);
}

.mobile-nav__sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.mobile-nav__sub a {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}
.mobile-nav__sub a:hover {
  color: var(--rose);
}

.mobile-nav .btn {
  margin-top: 1rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.25rem 3rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  color: var(--text-muted);
  letter-spacing: .05em;
}
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(30,30,30,.65) 0%, rgba(30,30,30,.3) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__title {
  color: var(--white);
  margin-bottom: .75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero__subtitle {
  color: rgba(255,255,255,.9);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Hero variante para páginas internas */
.hero--sm {
  min-height: 40vh;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 2rem;
}

/* --- Service Cards (Home) --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card__img {
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  overflow: hidden;
}
.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .service-card__img img {
  transform: scale(1.05);
}

.service-card__body {
  padding: 1.5rem;
  text-align: center;
}

.service-card__title {
  margin-bottom: 1rem;
}

/* --- Claim / Quote --- */
.claim {
  text-align: center;
  padding: 5rem 1.25rem;
  background: linear-gradient(135deg, #8B3A52 0%, #A85070 100%);
}

.claim__text {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  color: #FFE8EF;
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.claim__author {
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  font-weight: 300;
  letter-spacing: .05em;
}

/* --- Promotions --- */
.promos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.promo-card {
  background: var(--white);
  border: 2px solid var(--rose-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.promo-card__badge {
  display: inline-block;
  background: var(--rose);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.promo-card__title {
  margin-bottom: .75rem;
}

.promo-card__text {
  color: var(--text-muted);
  font-size: .95rem;
}

/* --- Brands --- */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.brand-logo {
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo img {
  filter: grayscale(1) sepia(.2) opacity(.6);
  transition: filter var(--transition);
}
.brand-logo:hover img {
  filter: grayscale(0) sepia(0) opacity(1);
}

/* --- Location --- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-info h3 {
  margin-bottom: 1.25rem;
}

.location-info__item {
  display: flex;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .95rem;
  line-height: 1.6;
}

.location-info__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--rose);
}

/* --- About page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-intro__photo {
  aspect-ratio: 3/4;
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-intro__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-intro__text blockquote {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.about-intro__text blockquote p + p {
  margin-top: 1.25em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Treatments (service pages) --- */
.treatments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.treatment-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.treatment-card:hover {
  box-shadow: var(--shadow-md);
}

.treatment-card summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: color var(--transition);
}
.treatment-card summary::-webkit-details-marker { display: none; }
.treatment-card summary::after {
  content: '';
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.treatment-card[open] summary::after {
  transform: rotate(-135deg);
}
.treatment-card summary:hover {
  color: var(--gold-dark);
}

.treatment-card__duration {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--cream-dark);
  padding: .2rem .65rem;
  border-radius: 50px;
}

.treatment-card__badge {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  color: var(--gold-dark);
  background: var(--gold-light);
  padding: .2rem .65rem;
  border-radius: 50px;
  letter-spacing: .02em;
}

.treatment-card__body {
  padding: 0 1.5rem 1.5rem;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Depilación zones grid */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.zone-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  transition: transform var(--transition), box-shadow var(--transition);
}
.zone-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 4rem 1.25rem;
  background: linear-gradient(135deg, #8B3A52 0%, #A85070 100%);
}

.cta-section h2 {
  color: #FFE8EF;
  margin-bottom: .75rem;
}
.cta-section p {
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.cta-section .btn {
  background: var(--white);
  color: #8B3A52;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.cta-section .btn:hover {
  background: var(--rose-light);
  color: #8B3A52;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

/* --- Legal Pages --- */
.legal.container {
  padding-top: calc(var(--header-h) + 50px);
  padding-bottom: 50px;
}

.legal h1 {
  margin-bottom: 2rem;
}
.legal h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: .75rem;
  border-radius: 2px;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 1rem;
}

.legal p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.9;
}

.legal ul {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.9;
  padding-left: 1.5rem;
  list-style: disc;
}
.legal ul li + li {
  margin-top: .35rem;
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--rose-light);
  margin-bottom: 1.25rem;
}

.footer__item {
  display: flex;
  gap: .6rem;
  margin-bottom: .75rem;
  font-size: .9rem;
  line-height: 1.6;
}
.footer__item a {
  transition: color var(--transition);
}
.footer__item a:hover {
  color: var(--gold-light);
}

.footer__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--rose);
}

.footer__hours {
  font-size: .9rem;
  line-height: 1.8;
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.footer__social a:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}
.footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__legal-links {
  display: flex;
  gap: 1.5rem;
}
.footer__legal-links a {
  font-size: .9rem;
  transition: color var(--transition);
}
.footer__legal-links a:hover {
  color: var(--gold-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* --- WhatsApp Button --- */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37,211,102,.4);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-pulse 2s infinite;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,.5);
}
.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 4px 14px rgba(37,211,102,.4); }
  50%  { box-shadow: 0 4px 24px rgba(37,211,102,.6); }
  100% { box-shadow: 0 4px 14px rgba(37,211,102,.4); }
}

/* --- Placeholder img utility --- */
.placeholder-img {
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  overflow: hidden;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (min-width: 550px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .promos-grid   { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(3, 1fr); }
  .zones-grid    { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  .section   { padding: 5rem 0; }

  .about-intro {
    grid-template-columns: 1fr 1fr;
  }

  .location-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nav { display: flex; }
  .hamburger { display: none; }
  .header__actions .btn { display: inline-flex; }

  .services-grid { grid-template-columns: repeat(4, 1fr); }

  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .hero { min-height: 90vh; }
  .hero--sm { min-height: 45vh; }
}

@media (min-width: 1280px) {
  .container { padding: 0 2.5rem; }
  .section   { padding: 6rem 0; }
}
