/*
Theme Name: Banderita Pasión
Theme URI: https://banderitapasion.com
Description: Tema elegante oscuro para tienda de ropa y accesorios con WooCommerce.
Version: 1.0.0
Author: Banderita Pasión
Author URI: https://banderitapasion.com
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: banderita-pasion
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 9.0
Tags: woocommerce, dark, elegant, fashion, e-commerce, responsive
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --color-bg:       #0d0d0d;
    --color-surface:  #1a1a1a;
    --color-surface2: #222222;
    --color-accent:   #c9a96e;
    --color-accent-dark: #a8884f;
    --color-text:     #f0ece4;
    --color-muted:    #888888;
    --color-border:   #2e2e2e;
    --color-error:    #e05555;
    --color-success:  #5aaa6e;

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    --radius:    4px;
    --radius-lg: 8px;
    --transition: 0.3s ease;

    --container-max: 1280px;
    --container-px:  clamp(1rem, 4vw, 2rem);

    --header-h: 72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

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

ul, ol {
    list-style: none;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-px);
}

.section {
    padding-block: clamp(3rem, 6vw, 5rem);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--color-accent);
    background: transparent;
    color: var(--color-accent);
    cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}

.btn:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-solid {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-solid:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-bg);
}

.btn-ghost {
    border-color: var(--color-border);
    color: var(--color-text);
}

.btn-ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: transparent;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent);
}

label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 0.375rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
    width: 3rem;
    height: 1px;
    background: var(--color-accent);
    margin-bottom: 1.5rem;
}

/* ============================================================
   SKIP LINK (ACCESIBILIDAD)
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 0.5rem 1rem;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
}

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

/* ============================================================
   SITE STRUCTURE
   ============================================================ */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#primary {
    flex: 1;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb-wrap {
    padding: 1rem 0;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.breadcrumb-wrap a {
    color: var(--color-muted);
}

.breadcrumb-wrap a:hover {
    color: var(--color-accent);
}

.breadcrumb-wrap span + span::before {
    content: ' / ';
    padding-inline: 0.25rem;
}
