/* Page Header */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
}

.header-subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background: var(--gray-light);
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.product-card.product-featured {
    border: 2px solid var(--secondary);
}

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

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.product-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.product-features span {
    background: var(--gray-light);
    border-radius: 50px;
    padding: 0.2rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--secondary);
}

.btn-ver-mas {
    margin-top: 1rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-ver-mas:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Modal */
.modal-producto {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.modal-producto-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin: 40px auto;
    max-width: 900px;
    width: 90%;
    animation: modalFadeIn 0.2s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header-custom h2 {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 0;
}

.modal-header-custom h2 i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-body-custom {
    padding: 1.5rem;
}

.modal-descripcion {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}

.funcionalidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.funcionalidad-card {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 1rem;
    transition: all 0.2s ease;
}

.funcionalidad-card i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.funcionalidad-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.funcionalidad-card p {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin: 0;
}

.tech-specs {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.tech-specs h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.tech-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-specs li {
    padding: 0.25rem 0;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-demo, .btn-contacto {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.85rem;
}

.btn-demo {
    background: var(--secondary);
    color: white;
}

.btn-demo:hover {
    background: var(--primary);
}

.btn-contacto {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-contacto:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

@media (max-width: 768px) {
    .modal-buttons {
        flex-direction: column;
    }
    .btn-demo, .btn-contacto {
        width: 100%;
        text-align: center;
    }
}