/* ============================================
   BASE — WordPress overrides + Reset + Tipografía
   ============================================ */

/* ===================================================
   WORDPRESS / WOOCOMMERCE NUCLEAR RESET
   Forces our landing page to render exactly like the
   standalone HTML reference, overriding ALL WP defaults
   =================================================== */

/* Kill ALL WordPress layout constraints */
body,
body.single-product,
body.woocommerce-page,
body.is-landing-page {
    margin: 0 !important;
    padding: 0 !important;
}

body .wp-site-blocks,
body .is-layout-constrained,
body .is-layout-flow,
body .has-global-padding,
body .wp-block-post-content,
body .wp-block-group,
body .entry-content,
body .site-main,
body main.site-main,
body main,
body .woocommerce,
body div.woocommerce,
body .woocommerce-page div.product,
body .woocommerce div.product {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
}

body .wp-site-blocks>*,
body .is-layout-constrained>*,
body .has-global-padding>* {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove WP admin bar margin */
body.admin-bar {
    margin-top: 0 !important;
}

/* Hide default WP header/footer/breadcrumb on landing pages */
body.is-landing-page .wp-block-template-part,
body.is-landing-page .site-header,
body.is-landing-page .site-footer,
body.is-landing-page header.wp-block-template-part,
body.is-landing-page footer.wp-block-template-part,
.woocommerce .woocommerce-breadcrumb,
.woocommerce-notices-wrapper:empty {
    display: none !important;
}

.woocommerce-notices-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

/* === STANDARD RESET (identical to reference) === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--teal-deep);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--sage-green);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
    color: var(--sage-dark);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

/* === TIPOGRAFÍA === */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--teal-deep);
    line-height: var(--leading-tight);
    font-weight: 700;
}

h1 {
    font-size: var(--text-3xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-2xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-xl);
}

h4 {
    font-size: var(--text-lg);
    font-family: var(--font-accent);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-4);
    color: var(--teal-mid);
    line-height: var(--leading-relaxed);
}

strong {
    color: var(--teal-deep);
    font-weight: 600;
}

em {
    font-style: italic;
    color: var(--sage-dark);
}

/* === SELECTION === */
::selection {
    background: rgba(60, 179, 113, 0.2);
    color: var(--teal-deep);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--teal-light);
}

/* === FOCUS VISIBLE === */
:focus-visible {
    outline: 2px solid var(--sage-green);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* === UTILIDADES === */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.text-sage {
    color: var(--sage-green);
}

.text-gray {
    color: var(--gray-soft);
}

/* Desktop overrides */
@media (min-width: 768px) {
    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-2xl);
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: var(--text-5xl);
    }
}