@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
  /* Paleta de Colores Elevada */
  --primary: #000000;
  --pink: #e91e63;
  --bg: #ffffff;
  --card-bg: #f8f9fa;
  --text: #1a1a1a;
  --text-muted: #6c757d;
  --border: #e9ecef;
  
  /* Escala Tipográfica - Website Style */
  --h1: 4rem;      /* Grande y audaz para el Hero */
  --h2: 2.8rem;    /* Títulos de sección claros */
  --h3: 1.8rem;    /* Títulos de tarjetas */
  --body: 1.15rem; /* 18.4px para lectura premium */
  --nav: 1rem;
}

.dark {
  --bg: #0f0f0f;
  --card-bg: #1a1a1a;
  --text: #f8f9fa;
  --text-muted: #adb5bd;
  --border: #2b2b2b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: var(--body);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* --- LAYOUT --- */
.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0; /* Más aire entre secciones */
}

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

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1.2rem 0;
  transition: transform 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: var(--nav);
  transition: color 0.3s;
}

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

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
}

/* --- HERO (Centrado y Escala) --- */
.hero {
  padding: 15rem 0 10rem;
  text-align: center;
  display: flex;
  justify-content: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centrado horizontal */
  max-width: 1000px;
}

.hero h1 {
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -1.5px;
}

.hero p {
  font-size: 1.4rem;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 3.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
}

/* --- BUTTONS --- */
.btn, .btn-outline {
  display: inline-block;
  padding: 1.2rem 2.8rem;
  border-radius: 100px; /* Más moderno */
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid var(--text);
}

.btn {
  background: var(--text);
  color: var(--bg);
}

.btn:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

/* --- CARDS & GRID --- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.card {
  background: var(--bg);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.card h3 {
  font-size: var(--h3);
  margin-bottom: 1.2rem;
}

.card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* --- FOOTER REDESIGN --- */
.footer {
  background-color: var(--bg);
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-brand p {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--pink);
  margin-bottom: 2rem;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
}

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

.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  :root {
    --h1: 2.8rem;
    --h2: 2.2rem;
    --h3: 1.5rem;
  }
  
  .hero { padding-top: 12rem; }
  
  .menu-btn { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 3rem;
    border-bottom: 1px solid var(--border);
    gap: 2rem;
  }

  .nav.open { display: flex; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .footer-brand p { margin: 1.5rem auto; }
}