/* ===== Variables – Galería Digital ===== */
:root {
  --bg: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #1f3460;
  --text: #eaeaea;
  --text-muted: #a0a0a0;
  --accent: #e94560;
  --accent-hover: #ff6b6b;
  --border: #2d2d44;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ===== Reset y base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Contenedor ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header ===== */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.tagline {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== Hero ===== */
.hero {
  padding: 3rem 0;
  text-align: center;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.hero p {
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== Grid de componentes ===== */
.components {
  padding: 0 0 3rem;
  flex: 1;
}
.components .container {
  display: grid;
  gap: 2rem;
}
@media (min-width: 700px) {
  .components .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-content h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.card-content p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

/* ===== Botón Amazon ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
  max-width: 220px;
}
.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

/* ===== Disclaimer ===== */
.disclaimer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}
.disclaimer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
