/* ═══════════════════════════════════════════════════════════════
   NahumItto.com — Premium Dark Redesign
   ═══════════════════════════════════════════════════════════════ */

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

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-strong: #1a1a1a;
  --text: #ffffff;
  --muted: #888888;
  --primary: #ffffff;
  --accent: #c0c0c0;
  --border: rgba(255, 255, 255, 0.06);
  --glow: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 600;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}

/* ── Brand / Logo ──────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand .logo {
  width: 56px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
  transition: filter 0.4s ease;
}

.brand .logo:hover,
.brand a:hover .logo {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.55));
}

.brand .brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
}

/* ── Navigation ────────────────────────────────────────────── */
.main-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: color 0.3s ease, background 0.3s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a.active {
  color: var(--text);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* ── Mobile Menu Toggle ────────────────────────────────────── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 60vh;
  display: grid;
  align-items: center;
  padding: 5rem 2rem;
  position: relative;
}

.hero-home {
  min-height: 70vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 40%),
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.02), transparent 60%);
}

.hero-eventos {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.03), transparent 50%);
}

.hero-barber {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 38%),
    radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.025), transparent 55%);
}

.hero-candy {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.045), transparent 42%),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.02), transparent 50%);
}

.hero-bar {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), transparent 40%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.03), transparent 55%);
}

.hero-content {
  max-width: 720px;
}

.hero-content h1 {
  text-shadow: 0 2px 40px rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 560px;
}

/* ── Eyebrow ───────────────────────────────────────────────── */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
  padding: 5rem 2rem;
}

.section-intro {
  max-width: 780px;
  margin-bottom: 2.5rem;
}

.section-highlight {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Cards & Grids ─────────────────────────────────────────── */
.cards-grid,
.product-grid,
.grid-home {
  display: grid;
  gap: 1.5rem;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.card,
.product-card,
.home-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.card:hover,
.product-card:hover,
.home-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.home-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* All home cards use the same glass effect — no distinct colors */
.home-card-eventos,
.home-card-barber,
.home-card-candy,
.home-card-bar {
  background: rgba(255, 255, 255, 0.03);
}

/* ── Buttons ───────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  background: #ffffff;
  color: #0a0a0a;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.button.small {
  padding: 0.75rem 1.4rem;
  font-size: 0.85rem;
}

.button.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.button.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
}

.button.outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Subscription Section ──────────────────────────────────── */
.subscription-section {
  width: 100%;
  padding: 6rem 2rem;
}

.subscription-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.subscription-header p {
  margin-top: 1rem;
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.subscription-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.subscription-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
}

.subscription-card.featured {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

.subscription-card.featured:hover {
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.08);
}

.subscription-card .plan-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.subscription-card .plan-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.subscription-card .plan-period {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.subscription-card .plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 1.2rem;
  background: #ffffff;
  color: #0a0a0a;
  font-size: 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.benefit-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 0;
}

.benefit-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.benefit-list li:last-child {
  border-bottom: none;
}

.benefit-list li::before {
  content: '✦';
  margin-right: 0.75rem;
  color: white;
}

.subscription-card .button {
  margin-top: 2rem;
  width: 100%;
}

/* ── Feature List ──────────────────────────────────────────── */
.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.1rem 1.4rem;
  border-radius: 16px;
  color: var(--muted);
  transition: border-color 0.3s ease;
}

.feature-list li:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* ── Booking Form ──────────────────────────────────────────── */
.booking-form {
  display: grid;
  gap: 1.2rem;
  max-width: 600px;
}

.booking-form label {
  display: grid;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.booking-form input,
.booking-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.95rem 1.1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.04);
}

/* ── Contact Section ───────────────────────────────────────── */
.contact-section {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 2.5rem;
  margin: 2rem auto;
  max-width: 1200px;
}

/* ── Scroll Animations ─────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Modal ─────────────────────────────────────────────────── */
dialog {
  border: none;
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-content h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Header */
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 1.5rem;
  }

  .brand {
    margin-bottom: 0.5rem;
  }

  /* Menu toggle visible */
  .menu-toggle {
    display: flex;
    position: absolute;
    right: 1.5rem;
    top: 1.2rem;
  }

  /* Nav hidden by default on mobile */
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.8rem 1rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .main-nav a.active::after {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 3rem 1.5rem;
  }

  .hero-home {
    min-height: 50vh;
  }

  /* Sections */
  .section {
    padding: 3rem 1.5rem;
  }

  /* Grids */
  .grid-home {
    grid-template-columns: 1fr;
  }

  /* Subscription */
  .subscription-section {
    padding: 3rem 1.5rem;
  }

  .subscription-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Contact */
  .contact-section {
    padding: 2rem 1.5rem;
    margin: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .brand .logo {
    width: 44px;
  }

  .brand .brand-text {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
  }

  .card,
  .product-card,
  .home-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .subscription-card {
    padding: 2rem;
  }

  .button {
    padding: 0.85rem 1.6rem;
    font-size: 0.85rem;
  }
}
