/* ══════════════════════════════════════════════════════
   CATALINA PELUQUERÍA — Styles
   Diseño: Premium Oscuro
   Paleta: Dorado #c9a84c sobre negro elegante #1c1c1c
   Fuentes: Cormorant Garamond / Montserrat
   ══════════════════════════════════════════════════════ */

/* ── 1. Variables CSS ─────────────────────────────── */
:root {
  --color-primary:      #c9a84c;
  --color-primary-dark: #a88635;
  --color-secondary:    #e8d5a3;
  --color-dark:         #1c1c1c;
  --color-text:         #333333;
  --color-text-light:   #666666;
  --color-bg:           #f5f5f5;
  --color-bg-alt:       #ececec;
  --color-white:        #ffffff;
  --color-whatsapp:     #25d366;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Montserrat', system-ui, sans-serif;

  --radius:    12px;
  --radius-lg: 24px;
  --shadow:    0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
}

/* ── 2. Reset y base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

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

ul { list-style: none; }

/* ── 3. Utilidades ────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

.section--alt { background: var(--color-bg-alt); }

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .75rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}

/* ── 4. Botones ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-dark);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  font-size: 1.1rem;
  padding: 1rem 2.4rem;
}
.btn--whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--small {
  font-size: .85rem;
  padding: .6rem 1.2rem;
}

/* ── 5. Animación fade-in ─────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 6. Header ────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: background .3s ease, box-shadow .3s ease;
}

.header.scrolled {
  background: var(--color-white);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

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

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  flex-shrink: 0;
  transition: color .3s;
}
.header.scrolled .header__logo { color: var(--color-dark); }

.header__nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.header__nav a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .2s;
}
.header__nav a:hover { color: var(--color-primary); }

.header.scrolled .header__nav a { color: var(--color-text); }
.header.scrolled .header__nav a:hover { color: var(--color-primary); }

/* ── 7. Hamburguesa mobile ────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all .3s;
}

.header.scrolled .hamburger span { background: var(--color-dark); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 8. Hero ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('images/peluqueria.jpg') center/cover no-repeat;
  background-color: var(--color-dark);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28,28,28,.85) 0%,
    rgba(28,28,28,.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero__badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.35);
  padding: .4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  max-width: 520px;
}

/* ── 9. Cards de beneficios ───────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border-top: 3px solid transparent;
  box-shadow: var(--shadow);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.card:hover {
  border-top-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: .5rem;
}

.card__text {
  font-size: .9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ── 10. Galería ──────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 280px;
  gap: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item img {
  transition: transform .4s ease;
}

.gallery__item:hover img { transform: scale(1.06); }

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,28,28,.5);
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.25rem;
  opacity: 0;
  transition: opacity .3s;
}

.gallery__item:hover .gallery__overlay { opacity: 1; }

.gallery__overlay span {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-white);
  background: rgba(201,168,76,.9);
  padding: .3rem .8rem;
  border-radius: 999px;
}

/* ── 11. Sección CTA ──────────────────────────────── */
.cta-section {
  background: var(--color-dark);
  padding: 5rem 0;
}

.cta-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.cta-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--color-white);
  margin-bottom: .75rem;
}

.cta-section__subtitle {
  color: rgba(255,255,255,.7);
  margin-bottom: 1.5rem;
}

.cta-section__list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.cta-section__list li {
  font-size: .95rem;
  color: var(--color-secondary);
  font-weight: 500;
}

.cta-section__action { flex-shrink: 0; }

/* ── 12. Footer ───────────────────────────────────── */
.footer {
  background: #111111;
  color: rgba(255,255,255,.7);
  padding-top: 3.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-white);
  margin-bottom: .75rem;
}

.footer__desc { font-size: .85rem; line-height: 1.6; }

.footer__heading {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.footer__links { display: flex; flex-direction: column; gap: .6rem; }

.footer__links a {
  font-size: .9rem;
  transition: color .2s;
}
.footer__links a:hover { color: var(--color-primary); }

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  transition: background .2s, border-color .2s;
}

.footer__social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-dark);
}

.footer__bottom {
  text-align: center;
  padding: 1.25rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ── 13. Botón flotante WhatsApp ──────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.wa-float__bubble {
  background: var(--color-white);
  color: var(--color-text);
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}

.wa-float:hover .wa-float__bubble {
  opacity: 1;
  transform: translateX(0);
}

.wa-float__btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: wa-pulse 2.5s infinite;
  flex-shrink: 0;
}

.wa-float__btn:hover { animation: none; transform: scale(1.08); }

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

/* ── 14. Media queries ────────────────────────────── */

/* Tablet (≤900px) */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }

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

  .cta-section__inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-section__list { align-items: center; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__col:first-child { grid-column: span 2; }

  /* Nav mobile */
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow);
    margin-left: 0;
  }
  .header__nav.open { display: flex; }
  .header__nav a { color: var(--color-text); font-size: 1rem; }

  .header .btn--small { display: none; }
  .hamburger { display: flex; }
}

/* Mobile (≤640px) */
@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }

  .cards { grid-template-columns: 1fr; }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery__item--wide { grid-column: span 1; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__col:first-child { grid-column: span 1; }

  .hero__title { font-size: 2.4rem; }

  .wa-float__bubble { display: none; }
}
