/* ==========================================================================
   Pizzas Watson — Variables globales
   ========================================================================== */

:root {
    /* Colores de marca */
    --pw-red: #c5161d;
    --pw-red-dark: #8f0f15;
    --pw-yellow: #ffc93c;
    --pw-cream: #fff4dc;

    /* Colores de interfaz */
    --pw-dark: #1d1210;
    --pw-text: #3a2925;
    --pw-muted: #7c6860;
    --pw-white: #ffffff;

    /* Bordes y sombras */
    --pw-border: rgba(29, 18, 16, 0.12);
    --pw-shadow:
        0 24px 70px
        rgba(58, 20, 15, 0.16);

    /* Radios */
    --pw-radius-xl: 34px;
    --pw-radius-lg: 24px;
    --pw-radius-md: 16px;

    /* Ancho máximo */
    --pw-container: 1180px;

    /* Tipografía de encabezados */
    --pw-font-heading:
    "Poppins",
    "Arial Black",
    sans-serif;

    /* Tipografía de interfaz y lectura */
    --pw-font-body:
        "Manrope",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* ==========================================================================
   Normalización
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--pw-text);
    background:
        radial-gradient(
            circle at top left,
            rgba(255, 201, 60, 0.32),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #fffaf0 0%,
            #fff4dc 46%,
            #ffffff 100%
        );
    font-family: var(--pw-font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    display: block;
}

figure {
    margin: 0;
}

/* ==========================================================================
   Sistema tipográfico
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--pw-font-heading);
    font-optical-sizing: auto;
    text-wrap: balance;
}

h1,
h2 {
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-weight: 800;
}

h2 {
    font-weight: 700;
}

h3,
h4,
h5,
h6 {
    font-weight: 600;
}

p {
    text-wrap: pretty;
}

strong,
b {
    font-weight: 800;
}

/* ==========================================================================
   Contenedor global
   ========================================================================== */

.pw-container {
    width: min(
        100% - 32px,
        var(--pw-container)
    );
    margin-inline: auto;
}

/* ==========================================================================
   Encabezados compartidos de secciones
   ========================================================================== */

.pw-section-heading {
    max-width: 680px;
    margin-bottom: 34px;
}

.pw-section-heading h2 {
    margin: 0;
    color: var(--pw-dark);
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.pw-section-heading p {
    margin: 16px 0 0;
    color: var(--pw-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Selección de texto
   ========================================================================== */

::selection {
    color: var(--pw-white);
    background: var(--pw-red);
}

/* ==========================================================================
   Barra de desplazamiento
   ========================================================================== */

@supports selector(::-webkit-scrollbar) {
    ::-webkit-scrollbar {
        width: 11px;
        height: 11px;
    }

    ::-webkit-scrollbar-track {
        background: var(--pw-cream);
    }

    ::-webkit-scrollbar-thumb {
        border: 3px solid var(--pw-cream);
        border-radius: 999px;
        background: var(--pw-red);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--pw-red-dark);
    }
}