/* ==========================================================================
   ELTOP DARK – Global / Reset / Base
   ========================================================================== */

/* ── Reset ────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img,
video {
    display: block;
    max-width: 100%;
}

svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    text-transform: uppercase;
    color: var(--text);
}

strong,
b {
    font-weight: 600;
}

p + p {
    margin-top: 0.85em;
}

/* ── Layout helpers ───────────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.container--narrow {
    max-width: 860px;
}

section {
    padding-block: var(--section-py);
}

/* ── 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;
}

/* ── Skip link ────────────────────────────────────────────────────────────── */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    padding: 0.5rem 1rem;
    z-index: 999;
    transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
    top: 1rem;
}

/* ── Focus visible ────────────────────────────────────────────────────────── */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.8rem 1.75rem;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    border-radius: var(--radius);
    transition:
        background-color var(--dur-fast) var(--ease),
        color var(--dur-fast) var(--ease),
        border-color var(--dur-fast) var(--ease);
    white-space: nowrap;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--accent);
    color: #000;
    border: 2px solid var(--accent);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn--ghost {
    background-color: transparent;
    color: var(--text);
    border: 2px solid var(--border-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--outline-accent {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn--outline-accent:hover,
.btn--outline-accent:focus-visible {
    background-color: var(--accent);
    color: #000;
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ── Eyebrow (small label above headings) ─────────────────────────────────── */

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--sp-3);
}

/* ── Section title ────────────────────────────────────────────────────────── */

.section-title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    color: var(--text);
    margin-bottom: var(--sp-4);
}

.section-title--center {
    text-align: center;
}

.section-intro {
    max-width: 560px;
    color: var(--text-muted);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--sp-12);
}

.section-intro--center {
    margin-inline: auto;
    text-align: center;
}

.section-header {
    margin-bottom: var(--sp-12);
}

.section-header--center {
    text-align: center;
}

/* ── Stars ────────────────────────────────────────────────────────────────── */

.stars {
    display: inline-flex;
    gap: 2px;
    color: var(--accent);
}

.stars svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
}

/* ── Tag / Category pill ──────────────────────────────────────────────────── */

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    background-color: var(--accent);
    color: #000;
    border-radius: var(--radius);
}

/* ── Divider ──────────────────────────────────────────────────────────────── */

.divider {
    display: block;
    width: 48px;
    height: 3px;
    background-color: var(--accent);
    margin: var(--sp-4) 0 var(--sp-6);
}

.divider--center {
    margin-inline: auto;
}

/* ── Link with arrow ──────────────────────────────────────────────────────── */

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--accent);
    transition: gap var(--dur-fast) var(--ease);
}

.link-arrow:hover,
.link-arrow:focus-visible {
    gap: var(--sp-3);
    color: var(--accent-dark);
}

/* ── Review badge ─────────────────────────────────────────────────────────── */

.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    background-color: var(--surface-2);
    color: var(--text-muted);
}

.review-badge--google {
    color: #aaa;
}
.review-badge--oferteo {
    color: #c07840;
}

/* ── Grid utilities ───────────────────────────────────────────────────────── */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ── Utility ──────────────────────────────────────────────────────────────── */

.text-accent {
    color: var(--accent);
}
.text-muted {
    color: var(--text-muted);
}
.text-center {
    text-align: center;
}
.font-display {
    font-family: var(--font-display);
}
.uppercase {
    text-transform: uppercase;
}
.flex {
    display: flex;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gap-2 {
    gap: var(--sp-2);
}
.gap-4 {
    gap: var(--sp-4);
}
.mt-auto {
    margin-top: auto;
}
.hidden {
    display: none !important;
}
