/*
Theme Name: LP Tienda
Theme URI: https://ejemplo.com
Author: Tu nombre
Author URI: https://ejemplo.com
Description: Tema minimalista para tienda de LPs, CDs y cassettes. Lienzo simple y personalizable: colores de fondo, colores de texto y tipografía configurables desde el Customizer. Incluye logo, menú principal, menú de redes sociales y páginas base.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lp-tienda
*/

/* -------------------------------------------------
   RESET BÁSICO
------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--lp-bg-color, #ffffff);
  color: var(--lp-text-color, #111111);
  font-family: var(--lp-body-font, "Inter", -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--lp-accent-color, #111111);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover,
a:focus {
  opacity: 0.65;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lp-accent-color, #111111);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--lp-heading-font, "Inter", -apple-system, BlinkMacSystemFont, sans-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.2em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

/* -------------------------------------------------
   LAYOUT / CONTENEDOR
------------------------------------------------- */
.lp-container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  flex: 1 0 auto;
  padding: 56px 0 80px;
}

/* -------------------------------------------------
   HEADER
------------------------------------------------- */
.site-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 28px 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.custom-logo-link img {
  max-height: 48px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 1.35rem;
}

.site-title a {
  color: var(--lp-text-color, #111111);
}

.site-description {
  margin: 2px 0 0;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* -------------------------------------------------
   MENÚ PRINCIPAL
------------------------------------------------- */
.primary-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.primary-menu a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--lp-text-color, #111111);
}

/* -------------------------------------------------
   CONTENIDO
------------------------------------------------- */
.page-title {
  font-size: 2rem;
  margin-bottom: 0.8em;
}

.entry-content {
  font-size: 1rem;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------
   FOOTER
------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 32px 0;
  margin-top: auto;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.social-menu {
  display: flex;
  gap: 18px;
}

.social-menu a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer-copy {
  font-size: 0.8rem;
  opacity: 0.6;
  margin: 0;
}

/* -------------------------------------------------
   RESPONSIVE
------------------------------------------------- */
@media (max-width: 640px) {
  .menu-toggle {
    display: inline-block;
  }

  .primary-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
  }

  .primary-menu.is-open {
    display: flex;
  }

  .site-header-inner {
    align-items: flex-start;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Respeta preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
