/* Product Showcase Styles for Homepage */

/* Featured Products Section */
.featured-products,
.featured-hardware {
    padding: 80px 20px;
    background: var(--white);
}

.featured-hardware {
    background: #f8f9fa;
}

.featured-products h2,
.featured-hardware h2 {
    text-align: center;
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: 700;
}

/* Product Showcase Grid */
.products-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Product Showcase Card */
.product-showcase-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

/* Product Image Container */
.product-showcase-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

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

/* Product Badge */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.stock-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-badge i {
    font-size: 10px;
}

/* Product Content */
.product-showcase-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-brand {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-showcase-content h3 {
    font-size: 19px;
    color: var(--secondary);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
    min-height: 50px;
}

.product-showcase-price {
    font-size: 32px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
}

.product-showcase-price span {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

.product-showcase-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-shipping-info {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-shipping-info i {
    color: var(--primary);
}

/* Buttons */
.btn-cart {
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-heading);
}

.btn-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 107, 210, 0.4);
}

.btn-cart i {
    font-size: 16px;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    padding: 12px 20px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.product-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.product-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Hardware Specific Styles */
.hardware-card .product-showcase-image {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hardware-card .product-showcase-image img {
    object-fit: contain;
    max-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {

    .featured-products,
    .featured-hardware {
        padding: 60px 20px;
    }

    .featured-products h2,
    .featured-hardware h2 {
        font-size: 28px;
    }

    .products-showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-showcase-image {
        height: 200px;
    }

    .product-showcase-content {
        padding: 20px;
    }

    .product-showcase-content h3 {
        font-size: 17px;
        min-height: auto;
    }

    .product-showcase-price {
        font-size: 28px;
    }
}

@media (max-width: 480px) {

    .featured-products,
    .featured-hardware {
        padding: 40px 15px;
    }

    .featured-products h2,
    .featured-hardware h2 {
        font-size: 24px;
    }

    .product-showcase-image {
        height: 180px;
    }

    .product-showcase-content {
        padding: 18px;
    }

    .product-showcase-content h3 {
        font-size: 16px;
    }

    .product-showcase-price {
        font-size: 24px;
    }

    .btn-cart {
        padding: 12px 20px;
        font-size: 14px;
    }

    .btn-outline {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Compact Product Grid (para software.php) */
.product-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.product-card-compact {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    text-align: center;
}

.product-card-compact:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(4, 107, 210, 0.15);
    transform: translateY(-4px);
}

.product-icon-compact {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), #0056b3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.product-card-compact h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.product-card-compact p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-card-compact a {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-card-compact a:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
    margin: 48px 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
}

@media (max-width: 768px) {
    .product-grid-compact {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Fade-in Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================
   Comparison Table Section - Escritorio vs Nube
   ====================================== */
.comparison-table-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.comparison-table-section h2 {
    text-align: center;
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 16px;
    font-weight: 700;
}

.comparison-table-section > .container > p {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 700px;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary), #0056b3);
}

.comparison-table thead th {
    padding: 20px 24px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-align: left;
    border: none;
}

.comparison-table thead th:first-child {
    border-radius: 16px 0 0 0;
    width: 25%;
}

.comparison-table thead th:last-child {
    border-radius: 0 16px 0 0;
}

.comparison-table thead th i {
    margin-right: 10px;
    font-size: 18px;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
    background-color: #f8fafc;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody td {
    padding: 20px 24px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    vertical-align: top;
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    color: var(--secondary);
    background: #f8fafc;
    border-right: 2px solid #e2e8f0;
}

.comparison-table tbody td strong {
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .comparison-table-section {
        padding: 60px 15px;
    }

    .comparison-table-section h2 {
        font-size: 26px;
    }

    .comparison-table-section > .container > p {
        font-size: 16px;
    }

    .comparison-table thead th {
        padding: 16px 18px;
        font-size: 14px;
    }

    .comparison-table tbody td {
        padding: 16px 18px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .comparison-table-section h2 {
        font-size: 22px;
    }

    .comparison-table-wrapper {
        border-radius: 12px;
    }

    .comparison-table thead th:first-child {
        border-radius: 12px 0 0 0;
    }

    .comparison-table thead th:last-child {
        border-radius: 0 12px 0 0;
    }
}

/* ======================================
   Services Grid - Página de Servicios
   ====================================== */
.service-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.service-card-compact {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #0056b3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card-compact:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(4, 107, 210, 0.15);
    transform: translateY(-6px);
}

.service-card-compact:hover::before {
    transform: scaleX(1);
}

.service-icon-compact {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), #0056b3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 8px 20px rgba(4, 107, 210, 0.3);
    transition: all 0.3s ease;
}

.service-card-compact:hover .service-icon-compact {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(4, 107, 210, 0.4);
}

.service-card-compact h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 14px;
    line-height: 1.3;
}

.service-card-compact p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card-compact a {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 10px 24px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.service-card-compact a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(4, 107, 210, 0.4);
}

/* Page Hero - Para páginas internas */
.page-hero {
    padding: 100px 20px 60px;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.page-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: var(--white);
}

.services h2 {
    text-align: center;
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 16px;
    font-weight: 700;
}

.services > .container > p {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Services */
@media (max-width: 900px) {
    .page-hero {
        padding: 80px 20px 50px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .page-hero p {
        font-size: 18px;
    }

    .services {
        padding: 60px 20px;
    }

    .services h2 {
        font-size: 30px;
    }

    .service-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .page-hero {
        padding: 70px 15px 40px;
        margin-top: 70px;
    }

    .page-hero h1 {
        font-size: 26px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .services h2 {
        font-size: 26px;
    }

    .service-grid-compact {
        grid-template-columns: 1fr;
    }

    .service-card-compact {
        padding: 24px 20px;
    }

    .service-icon-compact {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }

    .service-card-compact h4 {
        font-size: 18px;
    }
}