/* Estilos generales */
:root {
    --primary-color: #e60012;
    --secondary-color: #0076ce;
    --accent-color: #00a2ff;
    --dark-color: #1d252c;
    --light-color: #f5f7fa;
    --gray-color: #e1e5e9;
    --text-color: #333333;
    --discount-color: #e74c3c;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    text-align: center;
    background-color: white;
    border-bottom: 1px solid var(--gray-color);
}

.logo {
    max-width: 180px;
    margin-bottom: 1rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Intro section */
.intro {
    text-align: center;
    padding: 3rem 0;
}

.intro h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.intro p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--dark-color);
}

/* Category section */
.category-section {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-color);
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: var(--primary-color);
}

.category-description {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    max-width: 800px;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0 4rem;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    max-height: 180px;
    object-fit: contain;
}

.brand-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.product-info h4 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Estilos para los precios */
.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.price-original {
    color: #888;
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 0.9rem;
}

.price-current {
    color: var(--discount-color);
    font-size: 1.2rem;
}

.kit-digital-tag {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
    background-color: rgba(0, 118, 206, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
    width: fit-content;
}

.kit-digital-tag svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #c4000f;
}

/* Product detail page */
.product-detail {
    padding: 3rem 0;
}

.product-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.back-button:hover {
    color: var(--primary-color);
}

.back-button svg {
    margin-right: 0.5rem;
}

.product-title {
    margin-bottom: 1rem;
}

.product-title h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.product-title h3 {
    font-size: 2.2rem;
    color: var(--dark-color);
}

.product-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-image-large {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.product-image-large img {
    max-height: 300px;
    object-fit: contain;
}

.kit-digital-detail {
    display: flex;
    align-items: flex-start;
    background-color: rgba(0, 118, 206, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.kit-digital-detail svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.kit-digital-detail p {
    font-size: 0.9rem;
    color: var(--dark-color);
    margin: 0;
}

.product-highlights {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.highlight-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.highlight-text h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.highlight-text p {
    color: #666;
}

.specs-section {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.specs-section h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-color);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.spec-group h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.spec-item {
    margin-bottom: 0.8rem;
}

.spec-name {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.2rem;
}

.spec-value {
    color: #666;
}

footer {
    text-align: center;
    padding: 2rem 0;
    background-color: white;
    border-top: 1px solid var(--gray-color);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .product-showcase {
        flex-direction: column;
    }
    .product-image-large {
        margin-bottom: 2rem;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .intro h2 {
        font-size: 1.5rem;
    }
    
    .product-title h2 {
        font-size: 1.2rem;
    }
    
    .product-title h3 {
        font-size: 1.8rem;
    }
}

.datasheet-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.datasheet-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.datasheet-link svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* Estilos para el enlace al datasheet en la página de detalle */
.datasheet-link-detail {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--light-color);
    border: 1px solid var(--gray-color);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.datasheet-link-detail:hover {
    background-color: var(--gray-color);
    color: var(--dark-color);
}

.datasheet-link-detail svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
} 