/*
Theme Name: La Puntada
Theme URI: https://lapuntada.cl/
Author: La Puntada
Description: Tema personalizado para La Puntada, optimizado para WooCommerce, conversión y experiencia móvil.
Version: 1.0.0
Text Domain: la-puntada
*/

/* =========================================================
   LA PUNTADA — DESIGN SYSTEM
   ========================================================= */

:root {
    --lp-bg: #f7f3ee;
    --lp-surface: #ffffff;
    --lp-surface-soft: #f2ece4;

    --lp-text: #211d1a;
    --lp-muted: #706963;

    --lp-accent: #a87d63;
    --lp-accent-dark: #835d48;
    --lp-green: #70806b;
    --lp-green-soft: #edf3e9;

    --lp-border: rgba(33, 29, 26, 0.12);

    --lp-radius-sm: 12px;
    --lp-radius-md: 18px;
    --lp-radius-lg: 28px;
    --lp-radius-xl: 38px;

    --lp-shadow-sm: 0 8px 30px rgba(38, 27, 21, 0.06);
    --lp-shadow: 0 22px 70px rgba(38, 27, 21, 0.10);

    --lp-container: 1240px;
    --lp-transition: 220ms cubic-bezier(.2,.7,.2,1);
}

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family: inherit;
}

img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    transition:
        color var(--lp-transition),
        background-color var(--lp-transition),
        border-color var(--lp-transition),
        transform var(--lp-transition),
        box-shadow var(--lp-transition);
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

::selection {
    background: var(--lp-text);
    color: #fff;
}

/* =========================================================
   GLOBAL LAYOUT
   ========================================================= */

.lp-container {
    width: min(calc(100% - 40px), var(--lp-container));
    margin-inline: auto;
}

.lp-section {
    padding: 88px 0;
}

.lp-section--tight {
    padding: 56px 0;
}

.lp-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    box-shadow: var(--lp-shadow-sm);
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    letter-spacing: -0.045em;
    line-height: 0.98;
}

h1 {
    font-size: clamp(48px, 7vw, 104px);
}

h2 {
    font-size: clamp(38px, 5vw, 72px);
}

h3 {
    font-size: clamp(26px, 3vw, 40px);
}

p {
    color: var(--lp-muted);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.lp-button {
    min-height: 58px;
    padding: 0 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border: 0;
    border-radius: 999px;

    background: var(--lp-text);
    color: #fff;

    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;

    box-shadow: 0 12px 30px rgba(33, 29, 26, 0.16);
}

.lp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(33, 29, 26, 0.22);
}

.lp-button:active {
    transform: translateY(0) scale(0.98);
}

.lp-button--light {
    background: #fff;
    color: var(--lp-text);
    border: 1px solid var(--lp-border);
    box-shadow: none;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid rgba(168, 125, 99, 0.42);
    outline-offset: 3px;
}

/* =========================================================
   WOOCOMMERCE BASE
   ========================================================= */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border: 0 !important;
    border-radius: var(--lp-radius-md);
    padding: 18px 22px !important;
    background: var(--lp-surface) !important;
    color: var(--lp-text) !important;
    box-shadow: var(--lp-shadow-sm);
}

.woocommerce-message {
    border-left: 4px solid var(--lp-green) !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    border-radius: 999px !important;
    min-height: 52px;
    padding: 0 24px !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    background: var(--lp-text) !important;
    color: #fff !important;

    font-weight: 700 !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    :root {
        --lp-radius-lg: 22px;
        --lp-radius-xl: 28px;
    }

    .lp-container {
        width: min(calc(100% - 28px), var(--lp-container));
    }

    .lp-section {
        padding: 54px 0;
    }

    .lp-section--tight {
        padding: 36px 0;
    }

    h1 {
        font-size: clamp(43px, 14vw, 64px);
    }

    h2 {
        font-size: clamp(36px, 11vw, 52px);
    }

    .lp-button {
        min-height: 56px;
        width: 100%;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}