/* ============================================================
   AMSGuitars — Landing page de artesanía premium
   Spec de diseño de autor — vanilla CSS
   ============================================================ */

/* ---------- 2. SISTEMA DE DISEÑO ---------- */
:root {
  /* Paleta */
  --black-void: #0A0A0A;
  --black-surface: #141414;
  --black-elevated: #1E1E1E;
  --gold-primary: #D4A843;
  --gold-light: #E8C872;
  --gold-dark: #B8922E;
  --gold-muted: #8B7335;
  --cream: #F5F0E6;
  --cream-dim: #C8C0B0;
  --blood-red: #8B1A1A;
  --cognac: #8B5A2B;
  --emerald: #2D6B4F;
  --sapphire: #1A3A5C;

  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Medidas */
  --navbar-h: 72px;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--cream);
  background-color: var(--black-void);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--gold-primary);
  color: #000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 2px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--gold-light);
}

/* ---------- Focus visible ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

/* ---------- Títulos y líneas ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--cream);
  text-align: center;
  text-transform: uppercase;
}

.section-subtitle {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--cream-dim);
  text-align: center;
}

.gold-line {
  height: 1px;
  width: 120px;
  margin: 32px auto;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
  background: var(--gold-primary);
  color: #000;
  box-shadow: 0 2px 12px rgba(212, 168, 67, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 2px 12px rgba(212, 168, 67, 0.3);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(212, 168, 67, 0.1);
  color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: #1FB959;
  transform: translateY(-2px);
}

.icon-whatsapp {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- 3.1 NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

.navbar-inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo img {
  height: 40px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.navbar-links a:hover,
.navbar-links a:focus-visible {
  color: var(--gold-primary);
}

.navbar-whatsapp {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.navbar-whatsapp .icon-whatsapp {
  width: 16px;
  height: 16px;
}

/* ---------- Burger ---------- */
.navbar-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.navbar-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.navbar-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Menú móvil ---------- */
.mobile-menu {
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.98);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-menu-links a {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus-visible {
  color: var(--gold-primary);
}

.mobile-menu-links .btn-whatsapp {
  margin-top: 8px;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- 3.2 HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -20%;
  left: 0;
  right: 0;
  bottom: -20%;
  background-image: url('/img/skyline.webp');
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: translateY(0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 24px;
}

.hero-logo {
  max-height: 200px;
  width: auto;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 30px rgba(212, 168, 67, 0.3));
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 4.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--gold-primary);
  max-width: 700px;
}

.hero-line {
  margin: 32px auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ---------- Scroll indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--gold-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 32px;
  height: 32px;
}

.scroll-indicator:hover,
.scroll-indicator:focus-visible {
  color: var(--gold-light);
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ---------- 3.3 SOBRE NOSOTROS ---------- */
.about {
  background: var(--black-void);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-figure {
  border: 1px solid rgba(212, 168, 67, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.about-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.about-text p {
  color: var(--cream);
}

/* ---------- 3.4 GUITARRAS ---------- */
.guitars {
  background: var(--black-surface);
}

.guitars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.guitar-card {
  background: var(--black-surface);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.guitar-card:hover,
.guitar-card:focus-within {
  transform: scale(1.03);
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow: 0 8px 40px rgba(212, 168, 67, 0.25);
}

.guitar-media {
  aspect-ratio: 1 / 3;
  overflow: hidden;
}

.guitar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

.guitar-card:hover .guitar-media img,
.guitar-card:focus-within .guitar-media img {
  transform: scale(1.08);
}

.guitar-info {
  padding: 24px 20px;
  text-align: center;
}

.guitar-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gold-primary);
  transition: text-shadow 0.4s ease;
}

.guitar-card:hover .guitar-name {
  text-shadow: 0 0 12px rgba(212, 168, 67, 0.6);
}

.guitar-swatch {
  display: block;
  width: 40px;
  height: 2px;
  margin: 16px auto 0;
}

/* ---------- 3.5 CONTACTO ---------- */
.contact {
  background: var(--black-void);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.contact-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1.2;
}

.contact-phone:hover,
.contact-phone:focus-visible {
  color: var(--gold-light);
}

.contact-phone-icon {
  font-size: 1.8rem;
}

.btn-whatsapp-big {
  margin-top: 8px;
  padding: 18px 48px;
  font-size: 1.1rem;
  background: #25D366;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-big:hover,
.btn-whatsapp-big:focus-visible {
  background: #128C7E;
  transform: translateY(-2px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.contact-text {
  color: var(--cream-dim);
}

/* ---------- 3.6 FOOTER ---------- */
.footer {
  background: var(--black-elevated);
  padding: 48px 0;
  text-align: center;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.7;
}

.footer-line {
  width: 200px;
  margin: 24px auto;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--cream-dim);
}

.footer-socials {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 67, 0.3);
  color: var(--gold-primary);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-social:hover,
.footer-social:focus-visible {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

/* ---------- 4. WHATSAPP FLOTANTE ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float .icon-whatsapp {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(212, 168, 67, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--black-elevated);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(212, 168, 67, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .navbar-links,
  .navbar-whatsapp {
    display: none;
  }

  .navbar-burger {
    display: flex;
  }

  .navbar-logo img {
    height: 32px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 1rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 16px;
  }

  .hero-content {
    padding: 80px 16px;
  }

  .hero-logo {
    max-height: 120px;
  }

  .hero-tagline {
    font-size: 2.4rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-figure img {
    max-height: 400px;
    object-fit: cover;
    object-position: top;
  }

  .guitars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
  }

  .guitar-media {
    aspect-ratio: 1 / 2.5;
  }

  .guitar-name {
    font-size: 1rem;
  }

  .guitar-info {
    padding: 16px 12px;
  }

  .guitar-swatch {
    margin-top: 12px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 32px;
  }

  .contact-phones {
    align-items: center;
  }

  .contact-phone {
    font-size: 1.8rem;
  }

  .btn-whatsapp-big {
    width: 100%;
    max-width: 340px;
    padding: 16px 32px;
  }

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

@media (min-width: 1025px) {
  .mobile-menu {
    display: none;
  }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
