:root {
    /*Colors*/
    /* Primarios */
    --bs-primary-dark: #1e1d1d;        /* Negro antracita */
    --bs-primary: #e5ac30;              /* Dorado */
    --bs-primary-light: #f5f0e6;        /* Marfil cálido */

    /* Secundarios */
    --bs-secondary: #8a8d91;            /* Acero vikingo */
    --bs-secondary-accent: #4a6d82;     /* Azul glacial */
    --bs-secondary-alt: #3e5f4a;        /* Verde pino */

    /* Terciarios */
    --bs-tertiary: #8c6239;              /* Cobre oscuro */
    --bs-tertiary-accent: #a43d3d;       /* Rojo escarlata */
    --bs-tertiary-alt: #3b3b3b;          /* Gris humo */

    /* Mapeo de variables originales a las nuevas */
    --bg: var(--bs-primary-light);
    --bg-header: var(--bs-primary-dark);
    --bg-wrap: white;
    --panel: white;
    --gold: var(--bs-primary);
    --gold-secondary: var(--bs-tertiary);
    --muted: var(--bs-secondary);
    --primary: var(--bs-tertiary-alt);
    --card-bg: white;

    /* Nuevos colores extraídos (remapeados) */
    --black-111: var(--bs-primary-dark);
    --black-151515: var(--bs-tertiary-alt);
    --black-0f0f0f: var(--bs-primary-dark);
    --black-1a1a1a: var(--bs-tertiary-alt);
    --gold-border: var(--bs-primary);
    --white-border: var(--bs-primary-light);
    --panel-bg-2: var(--bs-primary-light);
    --panel-bg-3: var(--bs-secondary);
    --text-muted: var(--bs-secondary);

    /*Espacios*/
    --radius: 12px;
    --max: 94vw;
}

* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    font-family: Montserrat, system-ui, Arial, sans-serif;
    color: var(--primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.4;
    /*background: var(--bs-primary-light);
    background-image: url('fondo.svg');
    background-repeat: repeat;
    background-size: 120px 120px;*/
    opacity: 1;
    display: grid;
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto; /* Header, contenido, footer */
}

/* contenedor central */
.wrap {
    background: var(--bg-wrap);
    max-width: var(--max);
    width: 100%;
    margin: 0 auto;
}

/* header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 8px 10px 8px 10px;
    background-color: var(--bg-header);
}
.contact{
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    color: var(--bs-primary-light);
    border-bottom: 1px solid var(--muted);
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 0 10px 0;
}

/* circulo + logo svg */
.logo-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--white-border);
}
.logo-circle svg {
    width: 46px;
    height: 46px;
    display: block;
}

nav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav a {
    color: var(--bs-primary-light);
    text-decoration: none;
    font-weight: 500;
}
nav a.active {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: center;
    margin-top: 8px;
}
.hero-left {
    padding: 28px 18px;
}
.eyebrow {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
}
h1 {
    font-family: Playfair Display, serif;
    font-size: 68px;
    margin: 8px 0 14px;
    color: var(--gold);
    line-height: 0.95;
}
p.lead {
    max-width: 58ch;
}
.cta {
    display: inline-block;
    margin-top: 18px;
    background: var(--gold);
    color: var(--bg);
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}


/* sección productos */
.section {
    margin-top: 36px;
    background: var(--panel);
    color: var(--black-0f0f0f);
    padding: 26px;
    border-radius: 16px;
}
.section h2 {
    margin: 0 0 8px;
    font-size: 26px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

main{
    padding: 10px 0;
}
footer {
    background: var(--bg-wrap);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.font-primary{
    color: var(--bs-primary);
    text-shadow: 0 0 1px #7d6413;
    font-family:Montserrat, serif;
}

.button-primary{
    -webkit-box-shadow: 0 0 1px 0 #e5ac30;
    box-shadow: 0 0 1px 0 #e5ac30;
}

/* responsive */
@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 44px;
    }
    .wrap {
        
        max-width: 100vh;
    }
    .toolbox {
      display: flex;
      flex-direction: column !important;
  }  
    .contact{
      display: flex;
      flex-direction: column !important;
      padding: 0 0 10px 0;
      gap: 10px;
    }
}

/** Toolbar */
.toolbox {
  background-color: #eee;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 5px;
  gap: 10px; /* Espaciado entre secciones */
}

.toolbox-section {
  background-color: white;
  border: 1px solid #ddd;
  padding: 5px;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
}

.btn-nav {
  border-radius: 20px !important;
  line-height: normal !important;
  padding: 5px 10px;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination-info {
  line-height: 31px;
  margin: 0;
  white-space: nowrap;
}

.toolbox-input {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/*Customs*/
.custom-row{
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
}