/* ══════════════════════════════════════════════════════
   KOKETTE PERFUMERÍAS — styles.css
══════════════════════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
  --violet:      #7B2D8B;
  --violet-dark: #4A1060;
  --violet-mid:  #6B2080;
  --violet-pale: #ead5f0;
  --white:       #FFFFFF;
  --light:       #F5F0F7;
  --text:        #2d2034;
  --text-muted:  #6b6070;
  --gold:        #C9A96E;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Raleway', system-ui, sans-serif;

  --header-h: 80px;
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius:   12px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

img, figure {
  max-width: 100%;
  display: block;
  margin: 0;
}

ul  { list-style: none; }
a   { text-decoration: none; color: inherit; }

/* ─── Layout helpers ─── */
.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}

.section {
  padding-block: 112px;
}

/* ─── Section header ─── */
.section-header {
  text-align: center;
  margin-bottom: 68px;
}

.section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--violet-dark);
  line-height: 1.15;
}

.divider {
  width: 54px;
  height: 2px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet) 0%, var(--gold) 100%);
}


/* ══════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════ */
#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--header-h);
  background: var(--violet-dark);
  transition: box-shadow 0.4s var(--ease);
}

#header.scrolled {
  box-shadow: 0 4px 40px rgba(74, 16, 96, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link { display: flex; align-items: center; }

.logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* Nav links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav-link {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding-bottom: 3px;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.active           { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after    { width: 100%; }

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: -50% 0;
  background: url('/assets/images/hero/hero.jpg') center top / cover no-repeat;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(5, 0, 15, 0.55) 0%,
    rgba(74, 16, 96, 0.30) 50%,
    rgba(5, 0, 15, 0.55) 100%
  );
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding-inline: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pretitle {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 22px;
  animation: heroUp 1.1s var(--ease) 0.25s both;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 9.5vw, 7.5rem);
  font-weight: 700;
  line-height: 1.06;
  animation: heroUp 1.1s var(--ease) 0.5s both;
}

.hero-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
}

.hero-scroll-cta {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
  animation: heroUp 1.1s var(--ease) 0.85s both;
}

.hero-scroll-cta:hover { color: rgba(255, 255, 255, 0.95); }

.scroll-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-arrow {
  font-size: 1.05rem;
  animation: bounce 2.4s ease-in-out 2s infinite;
}


/* ══════════════════════════════════════════════════════
   QUIÉNES SOMOS
══════════════════════════════════════════════════════ */
.nosotros {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Decorative large quote mark */
.nosotros::before {
  content: '\201C';
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 220px;
  line-height: 1;
  color: var(--violet-pale);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.45;
}

.nosotros .container {
  position: relative;
  z-index: 1;
}

.nosotros-text {
  max-width: 780px;
  margin-inline: auto;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.95;
  text-align: center;
  color: var(--text-muted);
  font-weight: 300;
}


/* ══════════════════════════════════════════════════════
   CATEGORÍAS
══════════════════════════════════════════════════════ */
.categorias {
  background: var(--light);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

/* Card */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 22px rgba(123, 45, 139, 0.07);
  opacity: 1;
  transition:
    transform  0.65s var(--ease),
    box-shadow 0.45s var(--ease);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 52px rgba(123, 45, 139, 0.2);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--violet-pale) 0%, var(--light) 100%);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.card:hover .card-img-wrap img {
  transform: scale(1.07);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--violet-dark);
  padding: 18px 16px 22px;
  letter-spacing: 0.025em;
}


/* ══════════════════════════════════════════════════════
   LOCALES
══════════════════════════════════════════════════════ */
.locales {
  background: var(--white);
}

.locales-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 68px;
  align-items: start;
}

.local-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 60px rgba(74, 16, 96, 0.14);
  line-height: 0;
}

.local-photo img {
  width: 100%;
  height: 530px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--violet-pale) 0%, var(--light) 100%);
  transition: transform 0.9s var(--ease);
}

.local-photo:hover img {
  transform: scale(1.03);
}

.local-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 6px;
}

.local-city h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--violet-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  position: relative;
}

.local-city h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 34px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  border-radius: 2px;
}

.local-city ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.local-city li {
  font-size: 0.91rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.local-city li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.45;
}

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 6px;
  transition:
    background 0.35s var(--ease),
    transform  0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 4px 24px rgba(123, 45, 139, 0.3);
}

.btn-primary:hover {
  background: var(--violet-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(123, 45, 139, 0.45);
}

.btn-primary:active {
  transform: translateY(-1px);
}


/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.footer {
  background: var(--violet-dark);
  padding-block: 68px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.footer-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.3s;
}

.footer-logo-link:hover .footer-logo { opacity: 1; }

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  transition:
    border-color 0.3s,
    color        0.3s,
    background   0.3s,
    transform    0.35s var(--ease);
}

.instagram-link:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.14);
}

.instagram-icon {
  width: 21px;
  height: 21px;
}

.footer-copy {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.07em;
}


/* ══════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════ */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(9px); }
}

/* Fade-in — siempre visible por defecto */
.fade-in {
  opacity: 1;
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
}


/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */

/* ── Large tablet ── */
@media (max-width: 1080px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .locales-layout { gap: 44px; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  :root { --header-h: 68px; }

  .section         { padding-block: 76px; }
  .section-header  { margin-bottom: 52px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: 899;
    background: var(--violet-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    transition: max-height 0.42s var(--ease);
  }

  .main-nav.is-open { max-height: 260px; }

  .nav-link {
    padding: 15px 28px;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link::after { display: none; }

  /* Hero */
  .hero-title { font-size: clamp(2.7rem, 12vw, 4.2rem); }

  /* Quote decoration */
  .nosotros::before { font-size: 150px; top: 32px; }

  /* Cards: 2 columns */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* 5th card centred on its own row */
  .cards-grid .card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 260px;
    margin-inline: auto;
  }

  /* Locales: stack */
  .locales-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .local-photo img { height: 300px; }
  .local-info      { gap: 28px; }
}

/* ── Small mobile ── */
@media (max-width: 480px) {
  .cards-grid                         { gap: 14px; }
  .cards-grid .card:nth-child(5)      { max-width: 100%; }
  .btn                                { padding: 14px 32px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
