/**
 * Main CSS Variables and Base Styles
 */

:root {
    /* Brand Colors */
    --xtech-primary: #FF8C00;
    --xtech-primary-light: #ffa640;
    --xtech-primary-dark: #cc7000;
    --xtech-secondary: #FF4500;
    --xtech-gradient: linear-gradient(135deg, #FFA640 0%, #FF8C00 45%, #FF4500 100%);
    --xtech-gradient-soft: linear-gradient(135deg, rgba(255,166,64,0.18), rgba(255,69,0,0.05));

    /* Surfaces */
    --xtech-bg-base: #080808;
    --xtech-bg-elevated: #141414;
    --xtech-bg-card: #181818;
    --xtech-bg-glass: rgba(18, 18, 18, 0.7);

    /* Text */
    --xtech-text-main: #f5f5f5;
    --xtech-text-secondary: #e0e0e0;
    --xtech-text-muted: #9a9a9a;
    --xtech-text-dim: #6b6b6b;

    /* Borders */
    --xtech-border: #2a2a2a;
    --xtech-border-soft: rgba(255, 255, 255, 0.06);

    /* Status Colors */
    --xtech-success: #10b981;
    --xtech-warning: #f59e0b;
    --xtech-error: #ef4444;

    /* Typography */
    --xtech-font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --xtech-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing & Layout */
    --xtech-container-width: 1320px;
    --xtech-radius-sm: 0.375rem;
    --xtech-radius-md: 0.625rem;
    --xtech-radius: 0.75rem;
    --xtech-radius-lg: 1rem;
    --xtech-radius-xl: 1.25rem;

    /* Shadows */
    --xtech-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.55);
    --xtech-shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 4px 8px -2px rgba(0, 0, 0, 0.4);
    --xtech-shadow-glow: 0 0 40px rgba(255, 140, 0, 0.35);
    --xtech-shadow-glow-soft: 0 0 26px rgba(255, 140, 0, 0.18);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--xtech-bg-base);
    color: var(--xtech-text-main);
    font-family: var(--xtech-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--xtech-font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--xtech-text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

a {
    color: var(--xtech-primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--xtech-primary-light);
}

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

::selection {
    background: var(--xtech-primary);
    color: #fff;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--xtech-container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .container { padding: 0 2rem; }
}

.xtech-main {
    min-height: calc(100vh - 400px);
    padding-top: 5rem;
}

.xtech-section {
    padding: 5rem 0;
}

.xtech-section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.xtech-section-heading__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.xtech-section-heading__line {
    width: 60px;
    height: 4px;
    background: var(--xtech-gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Buttons */
.xtech-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-family: var(--xtech-font-heading);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    border: none;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.xtech-btn--primary {
    background: var(--xtech-gradient);
    color: #fff !important;
    box-shadow: 0 10px 24px -8px rgba(255, 140, 0, 0.55);
}

.xtech-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(255, 140, 0, 0.7);
}

.xtech-btn--outline {
    background: transparent;
    color: var(--xtech-text-main) !important;
    border: 1px solid var(--xtech-border);
}

.xtech-btn--outline:hover {
    border-color: var(--xtech-primary);
    color: var(--xtech-primary) !important;
}

.xtech-btn--lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

/* Badges */
.xtech-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.xtech-badge--nuevo { background-color: var(--xtech-success); }
.xtech-badge--usado { background-color: var(--xtech-warning); color: #111; }

/* Premium Category Cards */
.xtech-categories-premium {
    padding: 2rem 0 5rem;
}

.xtech-categories-premium__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.xtech-catcard {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, rgba(22, 22, 22, 0.8), rgba(14, 14, 14, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--xtech-radius-lg);
    padding: 1.25rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.xtech-catcard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255, 140, 0, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.xtech-catcard:hover {
    border-color: rgba(255, 140, 0, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 18px 30px -10px rgba(0, 0, 0, 0.6);
}

.xtech-catcard:hover::before { opacity: 1; }

.xtech-catcard__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: var(--xtech-radius-md);
    margin-right: 1.25rem;
    color: var(--xtech-primary);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.xtech-catcard__icon svg {
    width: 26px;
    height: 26px;
}

.xtech-catcard__text { position: relative; z-index: 1; }

.xtech-catcard__text h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    letter-spacing: -0.01em;
}

.xtech-catcard__text p {
    color: var(--xtech-text-muted);
    font-size: 0.85rem;
    margin: 0;
}
