/* ============================================
   MYSTIC SUNLIGHT — Global Styles
   Palette: Rose palo · Violeta oscuro · Dorado
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;600&family=Lato:ital,wght@0,300;0,400;1,300&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
  --rose:        #C9929A;
  --rose-light:  #DDB8BC;
  --rose-pale:   #EDD5D8;
  --violet:      #3D1454;
  --violet-mid:  #5C2278;
  --violet-soft: #7A3D96;
  --gold:        #C8981E;
  --gold-light:  #E4B84A;
  --cream:       #F5EDE8;
  --text-dark:   #2A0D3A;
  --text-mid:    #5A3060;

  --font-display: 'Cinzel Decorative', serif;
  --font-title:   'Cinzel', serif;
  --font-body:    'Lato', sans-serif;

  --shadow-soft: 0 4px 24px rgba(61, 20, 84, 0.15);
  --shadow-card: 0 8px 32px rgba(61, 20, 84, 0.2);
  --radius:      12px;
  --radius-lg:   20px;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;

  /* Fondo: gradiente en capas + textura de ruido SVG */
  background-color: var(--rose-pale);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.045'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(201,146,154,0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(92,34,120,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 50%, #EDD5D8 0%, #DDB8BC 60%, #C9929A 100%);
  background-attachment: fixed;
}

/* ── Tipografía base ────────────────────────── */
h1, h2, h3 { font-family: var(--font-title); color: var(--violet); line-height: 1.2; }
h1 { font-family: var(--font-display); }
p  { line-height: 1.75; color: var(--text-mid); }
a  { text-decoration: none; color: inherit; }

/* ── Navbar ─────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 213, 216, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200, 152, 30, 0.25);
  box-shadow: 0 2px 20px rgba(61, 20, 84, 0.1);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--violet);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .sun-icon { font-size: 1.3rem; color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a,
.nav-links button {
  font-family: var(--font-title);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--violet);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links button:hover {
  background: rgba(61, 20, 84, 0.08);
  color: var(--violet);
}

.nav-links a.active {
  background: var(--violet);
  color: var(--cream);
}

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

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown-btn .arrow {
  font-size: 0.65rem;
  transition: transform 0.25s;
  display: inline-block;
}

.nav-dropdown.open .arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(245, 237, 232, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 152, 30, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0.5rem;
  min-width: 190px;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--violet);
  transition: background 0.15s;
}

.nav-dropdown-menu li a:hover {
  background: rgba(61, 20, 84, 0.08);
}

.nav-dropdown-menu li + li {
  border-top: 1px solid rgba(200, 152, 30, 0.12);
}

/* Hamburger mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--violet);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Carrito flotante ────────────────────────── */
#cart-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: var(--violet);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(61, 20, 84, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

#cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(61, 20, 84, 0.45);
}

#cart-count {
  background: var(--gold);
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  min-width: 20px;
  text-align: center;
}

/* Panel del carrito */
#cart-panel {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 199;
  width: min(340px, calc(100vw - 3rem));
  background: rgba(245, 237, 232, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 152, 30, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
}

#cart-panel.open { display: flex; }

#cart-panel h3 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--violet);
  border-bottom: 1px solid rgba(200, 152, 30, 0.2);
  padding-bottom: 0.75rem;
}

#cart-items { display: flex; flex-direction: column; gap: 0.5rem; max-height: 260px; overflow-y: auto; }

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  padding: 0.4rem 0;
}

.cart-item-name { color: var(--text-dark); font-family: var(--font-title); }
.cart-item-price { color: var(--violet-mid); font-weight: 600; }

.cart-item-remove {
  background: none;
  border: none;
  color: var(--rose);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 0.3rem;
  line-height: 1;
}

#cart-total {
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: var(--violet);
  border-top: 1px solid rgba(200, 152, 30, 0.2);
  padding-top: 0.75rem;
}

#cart-clear {
  background: none;
  border: 1px solid rgba(61, 20, 84, 0.2);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.2s;
}

#cart-clear:hover { background: rgba(61, 20, 84, 0.06); }

#cart-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-title);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: filter 0.2s;
}

#cart-whatsapp:hover { filter: brightness(1.08); }

/* ── Footer ─────────────────────────────────── */
#footer {
  margin-top: 5rem;
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-mid) 100%);
  color: var(--rose-pale);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

.footer-sun { font-size: 1.8rem; color: var(--gold-light); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--rose-pale);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; }

.footer-copy {
  font-size: 0.72rem;
  opacity: 0.5;
  letter-spacing: 0.04em;
}

.footer-ig a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-title);
  font-size: 0.82rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
}

.footer-ig a:hover { opacity: 0.8; }

/* ── Componentes reutilizables ───────────────── */

/* Sección genérica */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--violet);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.75rem auto 2rem;
  border: none;
}

/* Cards de productos/servicios */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(245, 237, 232, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 152, 30, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-icon {
  font-size: 2rem;
  line-height: 1;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--violet);
}

.card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-mid);
  flex: 1;
}

.card-price {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--violet-mid);
  font-weight: 600;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: none;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}

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

.btn-primary {
  background: var(--violet);
  color: var(--cream);
  box-shadow: 0 3px 12px rgba(61, 20, 84, 0.3);
}

.btn-primary:hover { box-shadow: 0 5px 18px rgba(61, 20, 84, 0.4); }

.btn-secondary {
  background: transparent;
  color: var(--violet);
  border: 1.5px solid var(--violet);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--violet);
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(200, 152, 30, 0.35);
}

.btn-gold:hover { filter: brightness(1.05); }

.btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
}

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative;
}

.hero-sun {
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  filter: drop-shadow(0 4px 16px rgba(200, 152, 30, 0.4));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--violet);
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.04em;
}

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-mid);
  font-style: italic;
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
}

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

/* Decorative corners */
.corner-sun {
  position: absolute;
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.4;
}
.corner-sun.tl { top: 1rem; left: 1rem; }
.corner-sun.tr { top: 1rem; right: 1rem; }
.corner-sun.bl { bottom: 1rem; left: 1rem; }
.corner-sun.br { bottom: 1rem; right: 1rem; }

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(237, 213, 216, 0.97); backdrop-filter: blur(14px); padding: 1rem; gap: 0.25rem; border-bottom: 1px solid rgba(200,152,30,0.2); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }

  .nav-dropdown-menu { position: static; transform: none; box-shadow: none; background: rgba(0,0,0,0.04); border: none; padding: 0 0 0 1rem; opacity: 1; pointer-events: all; display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }

  .nav-links a, .nav-links button { width: 100%; text-align: left; border-radius: 8px; }

  #cart-btn { bottom: 1rem; right: 1rem; padding: 0.65rem 1rem; }
  #cart-panel { right: 1rem; left: 1rem; width: auto; bottom: 4.5rem; }
}

/* ── Logo imagen ────────────────────────────── */
.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(200, 152, 30, 0.4);
}

.footer-logo-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(200, 152, 30, 0.4);
  margin-bottom: 0.25rem;
}

.hero-logo-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(200, 152, 30, 0.5);
  box-shadow: 0 8px 32px rgba(61, 20, 84, 0.25);
  animation: float 4s ease-in-out infinite;
}
