/* ==================== RESET ==================== */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul, ol{
  list-style: none;
}

img{
  max-width: 100%;
  display: block;
}

button{
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* ==================== VARIABLES ==================== */
:root{
  /* Colores base */
  --bg: #ffffff;
  --bg-soft: #F5ECEB;
  --text: #0F172A;
  --muted: #64748B;
  --brand: #7A1020;
  --gold: #D8B56A;
  --gold-alpha-35: rgba(216, 181, 106, 0.35);
  --white: #ffffff;
  --dark-bg: #0f1a22;

  /* Colores con opacidad (para reutilizar) */
  --brand-alpha-06: rgba(122, 16, 32, 0.06);
  --brand-alpha-08: rgba(122, 16, 32, 0.08);
  --brand-alpha-12: rgba(122, 16, 32, 0.12);
  --brand-alpha-16: rgba(122, 16, 32, 0.16);
  --brand-alpha-18: rgba(122, 16, 32, 0.18);
  --brand-alpha-25: rgba(122, 16, 32, 0.25);
  --brand-alpha-35: rgba(122, 16, 32, 0.35);
  --brand-alpha-45: rgba(122, 16, 32, 0.45);
  --brand-alpha-70: rgba(122, 16, 32, 0.70);
  --brand-alpha-75: rgba(122, 16, 32, 0.75);

  --white-alpha-06: rgba(255, 255, 255, 0.06);
  --white-alpha-08: rgba(255, 255, 255, 0.08);
  --white-alpha-10: rgba(255, 255, 255, 0.10);
  --white-alpha-16: rgba(255, 255, 255, 0.16);
  --white-alpha-45: rgba(255, 255, 255, 0.45);
  --white-alpha-55: rgba(255, 255, 255, 0.55);
  --white-alpha-62: rgba(255, 255, 255, 0.62);
  --white-alpha-70: rgba(255, 255, 255, 0.70);
  --white-alpha-72: rgba(255, 255, 255, 0.72);
  --white-alpha-74: rgba(255, 255, 255, 0.74);
  --white-alpha-78: rgba(255, 255, 255, 0.78);
  --white-alpha-82: rgba(255, 255, 255, 0.82);
  --white-alpha-86: rgba(255, 255, 255, 0.86);
  --white-alpha-88: rgba(255, 255, 255, 0.88);
  --white-alpha-90: rgba(255, 255, 255, 0.90);
  --white-alpha-92: rgba(255, 255, 255, 0.92);

  --black-alpha-02: rgba(0, 0, 0, 0.02);
  --black-alpha-04: rgba(0, 0, 0, 0.04);
  --black-alpha-05: rgba(0, 0, 0, 0.05);
  --black-alpha-06: rgba(0, 0, 0, 0.06);
  --black-alpha-08: rgba(0, 0, 0, 0.08);
  --black-alpha-10: rgba(0, 0, 0, 0.10);
  --black-alpha-12: rgba(0, 0, 0, 0.12);
  --black-alpha-18: rgba(0, 0, 0, 0.18);
  --black-alpha-35: rgba(0, 0, 0, 0.35);
  --black-alpha-45: rgba(0, 0, 0, 0.45);
  --black-alpha-55: rgba(0, 0, 0, 0.55);
  --black-alpha-60: rgba(0, 0, 0, 0.60);

  /* Espaciado y dimensiones */
  --radius: 18px;

  /* Sombras */
  --shadow-soft: 0 6px 14px var(--brand-alpha-18);
}

/* ==================== BASE STYLES ==================== */
html, body{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a{
  color: var(--text);
  text-decoration: none;
}

h1, h2, h3{
  margin: 0;
  line-height: 1.2;
}

/* ==================== SECTION BACKGROUNDS ==================== */
/* 1) Fondo principal tipo LAMARQUE (crema) */
.section--soft{
  background: var(--bg-soft);
}

/* 2) Fondo blanco (para alternar y descansar) */
.section--white{
  background: var(--bg);
}

/* 3) Fondo oscuro (solo énfasis / cierre) */
.section--dark{
  background: var(--dark-bg);
  color: var(--white-alpha-86);
}

/* ==================== LAYOUT ==================== */
.container{
  margin: auto;
  max-width: 1100px;
  padding: 0 20px;
}

/* Encabezados de sección */
.section-head{
  text-align: center;
  margin-bottom: 26px;
}

.section-head__kicker{
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brand-alpha-75);
}

.section-head__title{
  margin: 0 0 8px;
  font-size: 40px;
}

.section-head__subtitle{
  margin: 0;
  color: var(--black-alpha-60);
}

/* Hero común para páginas internas */
.page-hero{
  height: 200px; 
  padding: 32px 0 22px;
  background: radial-gradient(1200px 320px at 50% 0%, var(--black-alpha-06), transparent);
}

.page-hero__kicker{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.page-hero__title{
  margin: 0 0 10px;
  font-size: 44px;
}

.page-hero__subtitle{
  margin: 0;
  max-width: 70ch;
  opacity: 0.8;
}

/* ==================== BOTONES ==================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  
  /* Espaciado */
  height: 40px;
  padding: 0 18px;
  
  /* Visual */
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  
  /* Tipografía */
  font: inherit;
  font-weight: 650;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;

  /* Interacción */
  cursor: pointer;
  user-select: none;

  transition: transform .15s ease, filter .15s ease, background-color .15s ease,
              border-color .15s ease, box-shadow .15s ease, color .15s ease;
            }

.btn:hover{
  transform: translateY(-1px);
  filter: none;
}

.btn:active{
  transform: translateY(1px);
  filter: brightness(0.98);
}

.btn:focus{
  outline: none;
}
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
/* Tamaños */
.btn--sm{
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  gap: 8px;
}

.btn--md{
  height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

/* 1) Primario: acción principal (1 por pantalla) */
.btn--primary{
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover{
  filter: brightness(1.06);
}

.btn--primary:active{
  box-shadow: none;
}

/* 2) Secundario: pill blanco con flecha (navegación) */
.btn--secondary{
  background: var(--white);
  color: var(--text);
  border-color: var(--black-alpha-08);
  box-shadow: 0 10px 22px var(--black-alpha-06);
}

.btn--secondary:hover{
  background: var(--brand-alpha-06);
  box-shadow: 0 14px 30px var(--black-alpha-10);

}

/* 3) Soft: para cards  */
.btn--soft{
  background: var(--white);
  color: var(--brand);
  border-color: var(--brand-alpha-25);
  box-shadow: 0 2px 8px var(--black-alpha-08);
}

.btn--soft:hover{
  background: var(--brand-alpha-06);
  border-color: var(--brand-alpha-35);
  box-shadow: 0 4px 12px var(--black-alpha-12);
  transform: none;
}

.btn--soft:active{
  background: var(--brand-alpha-08);
  transform: translateY(0);
  box-shadow: 0 2px 6px var(--black-alpha-08);
}


/* 4) Outline: SOLO para fondos oscuros (hero, secciones dark) */
.btn--outline{
  background: transparent;
  color: var(--white);
  border-color: var(--white-alpha-45);
  backdrop-filter: blur(8px);
}

.btn--outline:hover{
  background: var(--white-alpha-08);
  border-color: var(--white-alpha-70);
}

/* Deshabilitado (por si lo necesitas después) */
.btn:disabled,
.btn[aria-disabled="true"]{
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}
/* ==================== NAVBAR ==================== */
#navbar{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white-alpha-88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--black-alpha-08);
}

#navbar .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px; 
}

/* Logo del navbar */
#navbar .logo-text{
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 6px;
}

#navbar .logo-main{
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 1px;
}

#navbar .logo-sub{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  opacity: 0.75;
}

/* Menú de navegación */
#navbar ul{
  display: flex;
  gap: 18px;
}

#navbar ul li a{
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 500;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

#navbar ul li a:hover{
  opacity: 1;
  transform: translateY(-1px);
}

#navbar ul li a.current{
  opacity: 1;
  font-weight: 800;
}

/* ==================== FOOTER ==================== */
.footer{
  background: var(--dark-bg);
  color: var(--white-alpha-86);
  padding-top: 54px;
}

/* Grid principal del footer */
.footer__grid{
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
}

/* Sección de marca */
.footer__logo{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
}

.footer__logo span{
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--white-alpha-62);
}

.footer__desc{
  margin: 0 0 16px;
  max-width: 42ch;
  line-height: 1.6;
  color: var(--white-alpha-70);
}

/* Títulos de columnas */
.footer__title{
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-alpha-78);
}

/* Listas de enlaces */
.footer__list{
  display: grid;
  gap: 10px;
}

.footer__link{
  color: var(--white-alpha-74);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover{
  color: var(--white);
}

/* Lista de contacto con iconos */
.footer__list--contact li{
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__list--contact i{
  width: 18px;
  text-align: center;
  color: var(--white-alpha-74);
}

.footer__text{
  color: var(--white-alpha-74);
}

/* Redes sociales */
.footer__social{
  display: flex;
  gap: 10px;
}

.footer__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--white-alpha-06);
  border: 1px solid var(--white-alpha-10);
  color: var(--white-alpha-78);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer__icon:hover{
  background: var(--white-alpha-16);
}

.footer__icon:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(122, 16, 32, 0.22);
}

/* Barra inferior del footer */
.footer__bar{
  padding: 14px 0;
  border-top: 1px solid var(--white-alpha-10);
}

.footer__bar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer__copy{
  color: var(--white-alpha-55);
}

.footer__legal{
  display: flex;
  gap: 18px;
}

.footer__link--muted{
  color: var(--white-alpha-55);
}

.footer__link--muted:hover{
  color: var(--white-alpha-90);
}

/* ==================== PRODUCT CARDS (COMPONENTE GLOBAL) ==================== */
/* Estructura base del componente product-card */
.product-card{
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--black-alpha-08);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px var(--black-alpha-12);
}

.product-card--featured{
  border-color: var(--brand-alpha-25);
}

/* Media de producto */
.product-card__media{
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: 18px;
  border: none;
  width: 100%;
  padding: 0;
  cursor: pointer;
  transition: transform .35s ease;
}

.product-card__media img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .35s ease;
}

.product-card:hover .product-card__media img{
  transform: scale(1.06);
}

/* Badge "Más vendido" */
.product-card__badge--best{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--white-alpha-92);
  border: 1px solid var(--black-alpha-08);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px var(--black-alpha-08);
  backdrop-filter: blur(8px);
}

.product-card__badge--best i{
  font-size: 11px;
  color: var(--gold);
  filter: none;
}

/* Cuerpo de la card */
.product-card__body{
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 14px;
}

.product-card__name{
  margin: 2px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.product-card__name-btn{
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}

.product-card__name-btn:hover{
  color: var(--brand);
}

.product-card__category{
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--brand-alpha-06);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card__desc{
  margin: 0 0 14px;
  min-height: 42px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.product-card__footer{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-card__price{
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  text-align: left;
}

.product-card__footer .btn{
  height: 36px;
  padding: 0 18px;
}

