/* =========================================================
   FONTS - Febrotesk4FUnicase-Bold
========================================================= */
@font-face {
    font-family: 'Febrotesk4FUnicaseBold';
    src: url('../fonts/febrotesk4funicase-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   FONTS - ROBOTO
========================================================= */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   VARIABLES (diseño base)
========================================================= */
:root {
    --container-width: 1200px;
    --container-padding: 1rem;

    --color-primary: #5C3D1F;
    --color-secondary: #EDE6D9;
    --color-black: #000000;
    --color-black-500: #4d4d4d;
    --color-white: #FFFFFF;
    --color-text: #000000;
    --color-bg-primary: var(--color-primary);
    --color-bg-secondary: var(--color-secondary);
    --color-bg-main: #FFFFFF;
    --color-border: #000000;
    --color-bg-card: #F5F5F5;

    --color-secondary-btn-hover: #161616;
    --color-primary-btn-hover: rgb(102, 70, 38);

    --font-base: "Roboto", sans-serif;
    --font-headings: "Febrotesk4FUnicaseBold", sans-serif;
}

/* =========================================================
   RESET MODERNO
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    padding-top: 120px;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg-main);
    line-height: 1.5;
}

body.nav-open {
    overflow: hidden;
}

.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

@media screen and (max-width: 782px) {
    #wpadminbar {
        position: fixed;
    }

    .admin-bar .site-header {
        top: 46px;
    }
}

/* =========================================================
   ELEMENTOS BASE
========================================================= */
img,
picture,
video,
canvas {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font: inherit;
}

/* =========================================================
   ENLACES (sin estilos feos por defecto)
========================================================= */
a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   LISTAS
========================================================= */
ul,
ol {
    list-style: none;
    padding: 0;
}

/* =========================================================
   TIPOGRAFÍA BASE
========================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

h2 {
    font-size: 3rem;
    text-transform: uppercase;
}

h3 {
    font-size: 2.25rem;
}

p {
    margin-bottom: 1rem;
}

.title {
    font-family: var(--font-headings);
}

.primary-title {
    color: var(--color-primary);
}

/* =========================================================
   BOTONES
========================================================= */
button {
    border: none;
    background: none;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 16px;
    text-decoration: none;
    background: white;
    color: black;
    transition: background 0.3s ease;
}

.btn.primary-btn {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn.primary-btn:hover {
    background: var(--color-primary-btn-hover);
}

.btn.secondary-btn {
    background: var(--color-black);
    color: var(--color-white);
}

.btn.secondary-btn:hover {
    background: var(--color-secondary-btn-hover);
}

/* =========================================================
   CONTENEDOR CENTRAL
========================================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--container-padding) !important;
    padding-right: var(--container-padding) !important;
}

/* =========================================================
   UTILIDADES
========================================================= */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mb-5 {
    margin-bottom: 5rem;
}

/* =========================================================
   GRID (para catálogo)
========================================================= */
.grid {
    display: grid;
    gap: 42px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* =========================================================
   SHARED ELEMENTS
========================================================= */
.line {
    flex: 1;
    height: 1px;
    transform: scaleY(0.5);
    background-color: var(--color-black);
}

.vertical-line {
    width: 1px;
    align-self: stretch;
    transform: scaleX(0.5);
    background-color: var(--color-black);
}

/* Skeleton animation */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}