/* Cotiza Arcade - Frontend Styles */

:root {
    --red: #c8102e;
    --dark: #2c3e50;
    --gray: #ecf0f1;
}

/* ===== MODALES ===== */
.cotiza-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    overflow-y: auto;
}

.cotiza-modal-overlay.active,
.cotiza-modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.cotiza-modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.cotiza-modal-header {
    padding: 2rem;
    border-bottom: 2px solid var(--gray);
    background: linear-gradient(135deg, var(--dark) 0%, #34495e 100%);
}

.cotiza-modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.8rem;
}

.cotiza-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
}

.cotiza-modal-close:hover {
    opacity: 0.8;
}

.cotiza-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.cotiza-modal-left {
    background: var(--gray);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.cotiza-modal-left img {
    width: 100%;
    max-width: 100%;
    border-radius: 6px;
}

.cotiza-modal-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===== FORMULARIO ===== */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.required {
    color: var(--red);
}

/* ===== PRODUCTOS GRID ===== */
.cotiza-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

.product-card {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.2);
}

.product-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.product-card h5 {
    margin: 0.75rem 0 0.5rem 0;
    font-size: 0.95rem;
}

.product-card .price {
    color: var(--red);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ===== BOTONES ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-danger {
    background-color: var(--red);
    color: white;
}

.btn-danger:hover {
    background-color: #a00825;
}

.btn-dark {
    background-color: var(--dark);
    color: white;
}

.btn-dark:hover {
    background-color: #1a2632;
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-outline-dark:hover {
    background-color: var(--dark);
    color: white;
}

.btn-outline-danger {
    background-color: transparent;
    color: var(--red);
    border: 2px solid var(--red);
}

.btn-outline-danger:hover {
    background-color: var(--red);
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ===== BOOTSTRAP CLASES ===== */
.ms-2 {
    margin-left: 0.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.d-none {
    display: none;
}

.d-md-block {
    display: block;
}

/* ===== SIDE BANNER ===== */
.side-banner {
    background: #f9f9f9;
    padding: 1.5rem;
    border: 2px solid var(--gray);
    border-radius: 8px;
    text-align: center;
}

.side-banner h6 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
}

.side-banner p {
    margin: 0 0 1rem 0;
    color: #666;
}

/* ===== SECCIÓN ARCADE ===== */
.full-feature {
    background: #f5f5f5;
    padding: 2rem 0;
    margin: 2rem 0;
}

.full-feature h3 {
    color: var(--dark);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.full-feature p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cotiza-modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cotiza-modal-left {
        min-height: 250px;
    }
    
    .d-md-block {
        display: none !important;
    }
    
    .ms-2 {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}
