/* ============================================
   MAIN.CSS — San Justo Hierros Theme
   Part 1: Reset, Base, Layout, Typography
   ============================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Container ── */
.container {
    width: 100%;
    max-width: min(1280px, 100vw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Icon Sizes ── */
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 22px; height: 22px; }
.icon-lg { width: 28px; height: 28px; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}
.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}
.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.whatsapp-btn-icon { width: 18px; height: 18px; }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-dark { background: var(--bg-dark); color: var(--text-white); }
.section-light { background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    background: rgba(var(--color-primary-rgb), 0.1);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-title-dark { color: var(--text-dark); }
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-white-muted);
    max-width: 600px;
    margin: 0 auto;
}
.section-subtitle-dark { color: var(--text-dark-secondary); }
.section-cta { text-align: center; margin-top: 2.5rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
