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

:root {
  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Colors (Premium Dark theme inspired by Vic Firth) */
  --color-bg: #0a0a0a;
  --color-surface: #1a1a1a;
  --color-surface-hover: #262626;
  --color-text: #f5f5f5;
  --color-text-muted: #a3a3a3;
  --color-primary: #d4af37;
  /* Gold/Wood accent */
  --color-primary-hover: #b5952f;

  --color-product-bg: #f9f9f9;
  --color-product-text: #1a1a1a;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    scroll-snap-type: y mandatory;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* UI Components */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #000;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-product-text);
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--color-product-text);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 var(--spacing-md);
  position: relative;
}

.header__logo {
  transition: all 0.3s ease;
}

.header__logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.header__logo img,
.header__logo svg {
  height: 60px;
  width: auto;
}

.header__nav {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.header__nav.active {
  display: flex;
}

.header__nav a {
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header__nav a:hover {
  color: var(--color-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.btn-shop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.btn-shop:hover {
  background: var(--color-primary-hover);
}

.btn-shop svg {
  width: 18px;
  height: 18px;
}

.header__menu-btn {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  display: block;
}

/* Base Mobile Responsive */
@media (min-width: 768px) {
  .header__menu-btn {
    display: none;
  }

  .header__nav {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    background: none;
    backdrop-filter: none;
    padding: 0;
    flex-direction: row;
    gap: var(--spacing-md);
    border-bottom: none;
  }

  .header__nav a {
    font-size: 0.9rem;
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background-color: var(--color-surface);
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--spacing-sm);
  padding-top: 80px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-sm);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto var(--spacing-md);
  color: var(--color-text-muted);
}

/* Sections */
.snap-section {
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.productos-section {
  background-color: #111;
  /* dark gray */
}

.artistas-section {
  background-color: #050505;
  /* deep black */
}

.contact-footer-wrapper {
  background-color: var(--color-surface);
  justify-content: space-between;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-y: auto;
  /* Scroll interno en caso de pantalla muy pequeña */
}

@media (min-width: 768px) {
  .contact-footer-wrapper {
    height: 100vh;
    /* Fuerza el 100% de la pantalla PC */
    max-height: 100vh;
    /* Evita que crezca para que el snap no se atrape */
  }
}

section.contact-section {
  /* Aumenta especificidad para no ser sobrescrito por .section */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 2rem 0;
  /* Espacio para el header arriba, espacio con footer abajo */
  min-height: 0;
  /* Permite que la sección se achique si es necesario */
}

section.contact-section .section__title {
  margin-bottom: var(--spacing-md);
}

.section__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══ PRODUCTOS GRID ═══════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.section__empty {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  padding: 3rem 0;
}

.product-card {
  background: var(--color-product-bg);
  color: var(--color-product-text);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

/* Wrapper con aspect-ratio 3:4 — sube imagenes de 600x800 px */
.product-card__img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #e8e8e8;
  position: relative;
}

.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 1rem;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__img-wrap img {
  transform: scale(1.04);
}

/* Placeholder sin imagen */
.product-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
}

.product-card__body {
  padding: 1.25rem var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: space-between;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.product-card__badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.08);
  color: #555;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ═══ ARTISTAS GRID (≤ 3 artistas) ═══════════════════════════ */
.artists-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .artists-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .artists-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card de artista — ratio 2:3, sube imagenes de 600x900 px */
.artist-card {
  position: relative;
  aspect-ratio: 2 / 3;
  max-height: 480px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-md);
  margin: 0 auto;
}

.artist-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.artist-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Placeholder cuando no hay foto */
.artist-card__bg--placeholder {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

.artist-card:hover .artist-card__bg {
  transform: scale(1.05);
}

.artist-card__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.artist-card h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: #fff;
}

.artist-card p {
  color: #ccc;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══ CARRUSEL DE ARTISTAS (> 3 artistas) ════════════════════ */
.artists-carousel {
  position: relative;
  width: 100%;
}

.artists-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  gap: 0;
  padding-bottom: 1rem;
}

.artists-carousel__track::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari/Edge */
}

/* Cada slide ocupa 1/1, 1/2 o 1/3 del contenedor según breakpoint */
.artists-carousel__slide {
  flex: 0 0 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
  scroll-snap-align: center;
  user-select: none;
  -webkit-user-drag: none;
}

@media (min-width: 640px) {
  .artists-carousel__slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .artists-carousel__slide {
    flex: 0 0 33.333%;
  }
}


/* Contact Section Layout */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  text-align: center;
  /* Centrado en móviles */
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info .section__title {
  margin-bottom: 0.5rem;
  text-align: center;
}

.contact-info p {
  color: var(--color-text-muted);
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* Form a la derecha, texto a la izquierda */
    gap: var(--spacing-xl);
    text-align: left;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info p {
    margin: 0 auto;
  }

  .contact-info .section__title {
    font-size: clamp(3.5rem, 5vw, 5rem);
    /* Título grande */
    color: var(--color-primary);
    /* Color de la marca */
    text-align: center;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: 1px;
  }
}

.contact-container {
  flex: 1;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  /* Para que quede centrado en móvil */
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  border-radius: 4px;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.btn-submit {
  width: 100%;
  margin-top: var(--spacing-sm);
}

/* Footer */
.footer {
  background: var(--color-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  /* Reducido de spacing-md */
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  /* Reducido para compactar */
  margin-bottom: 1rem;
  /* Margen inferior reducido */
}

@media (min-width: 768px) {
  .footer__grid {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    /* Separación amplia para que no se peguen */
  }
}

.footer__col {
  flex: 1;
}

.footer__col:first-child {
  flex: 2;
  /* Aumentado para empujar el resto a la derecha */
}

.footer__col:nth-child(2) {
  flex: 1.2;
  /* Soporte más ajustado */
}

.footer__col--partners {
  display: flex;
  justify-content: center;
  /* Centrado en móviles */
  flex: 1.2;
  margin-top: 1rem;
  /* Espacio extra en móviles */
}

@media (min-width: 768px) {
  .footer__col--partners {
    justify-content: flex-end;
    /* A la derecha en desktop */
    margin-top: 0;
    padding-top: 1.2rem;
    /* Alinea con el contenido en desktop */
  }
}

.footer__col h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--color-primary);
}

.footer__col:first-child p {
  text-align: justify;
}

.footer__col p {
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: 0.85rem;
}

.footer__links {
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.35rem;
  /* Reducido de 0.75rem */
  font-size: 0.85rem;
}

.footer__links a {
  color: var(--color-text-muted);
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__social {
  margin-bottom: 1rem;
  /* Reducido de spacing-md */
}

/* Borrado footer__social p ya que ahora es h4 */

.social-icons {
  display: flex;
  gap: 0.75rem;
  /* Reducido */
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  /* Reducido de 40px */
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--color-primary);
  color: #000;
}

.footer__partners {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  /* Centrados entre sí */
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .footer__partners {
    align-items: center;
    /* Mantener centrados entre sí en desktop */
    margin-top: 0;
  }
}

.footer__contact i {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.footer__contact p:hover i {
  transform: scale(1.2);
}

.partner-logo {
  font-size: 0.85rem;
  /* Reducido de 1rem */
  /* Reducido */
  font-weight: 900;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  /* Fuerza a que 'Musical Gem' esté en una sola línea */
}

.partner-logo {
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.partner-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.partner-logo--musicalgem img {
  height: 46px;
  width: auto;
}

.partner-logo--sambys img {
  height: 60px;
  width: auto;
}

.partner-logo svg {
  height: 22px;
  width: auto;
}

.footer__bottom {
  text-align: center;
  padding: 1rem 0;
  /* Reducido de spacing-md */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

.footer__author {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #666;
}

.footer__author strong {
  color: var(--color-primary);
}