/* =========================================================
   VARIABLES GLOBALES
========================================================= */
:root {
    --primary: #510674;
    --secondary: #ffffff;
    --accent: #693881;
    --gray-100: #f7f7f7;
    --gray-300: #dcdcdc;
    --gray-500: #8c8c8c;
    --gray-800: #1c1c1c;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.15);

    --transition: all 0.3s ease;
    --max-width: 1280px;
}

/* =========================================================
   RESET BÁSICO
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--primary);
    background: var(--secondary);
    line-height: 1.6;
}

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

/* =========================================================
   HERO
========================================================= */
.axtech-hero {
    position: relative;
    min-height: 90vh;
    background: linear-gradient(120deg, #ad2f2f, #1c1c1c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,255,255,0.05), transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-logo {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: 4px;
}

.hero-tagline {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--gray-300);
}

.hero-description {
    margin: 25px 0;
    font-size: 1.1rem;
    color: var(--gray-300);
}

.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Scroll hint */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--gray-300);
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: var(--gray-300);
    margin: 8px auto 0;
    animation: scrollPulse 1.8s infinite;
}

@keyframes scrollPulse {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* =========================================================
   FEATURES
========================================================= */
.axtech-features {
    max-width: var(--max-width);
    margin: -60px auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 3;
}

.feature-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.feature-card p {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* =========================================================
   SECCIÓN PRODUCTOS
========================================================= */
.axtech-products-section {
    padding: 100px 20px;
    background: var(--gray-100);
}

.section-header {
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--gray-500);
}

/* =========================================================
   CARRUSEL
========================================================= */
.products-carousel-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.products-carousel {
    display: flex;
    flex-wrap: wrap;              /* 👈 clave */
    gap: 30px;
    justify-content: center;      /* centra si sobran espacios */
    overflow: visible;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}
.prev-btn { left: -24px; }
.next-btn { right: -24px; }

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

/* =========================================================
   PRODUCT CARD
========================================================= */
.product-card {
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;  

    flex: 1 1 260px;              
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    overflow: hidden;

}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    color: #fff;
}

.product-badge.sale { background: var(--accent); }
.product-badge.out-stock { background: #777; }

.product-image {
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(187, 90, 252, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view {
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
}

/* =========================================================
   INFO PRODUCTO
========================================================= */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.product-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    min-height: 44px;
}

.product-price {
    color: #ca79ea;
    font-size: 1.1rem;
    font-weight: 700;
}

.product-rating {
    font-size: 0.85rem;
}

/* =========================================================
   BOTÓN ADD TO CART
========================================================= */
.add-to-cart-btn {
    margin-top: auto;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--accent);
}

.add-to-cart-btn.disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* =========================================================
   VER TODOS
========================================================= */
.view-all-container {
    margin-top: 60px;
    text-align: center;
}

.view-all-btn {
    padding: 14px 40px;
    border: 2px solid var(--primary);
    border-radius: 40px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.view-all-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* =========================================================
   CTA FINAL
========================================================= */
.axtech-cta {
    background: linear-gradient(120deg, #0a0a0a, #1f1f1f);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.axtech-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.axtech-cta p {
    color: var(--gray-300);
    margin-bottom: 30px;
}

.cta-btn {
    background: var(--accent);
    padding: 16px 42px;
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }

    .axtech-features {
        margin-top: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    .axtech-cta h2 {
        font-size: 2rem;
    }
}
