/* ====================================
   AUTOCOTIZADOR PÚBLICO - STYLES
   ==================================== */

.cotizador-hero {
    position: relative;
    background: linear-gradient(135deg, #1e1e5f 0%, #2d2d7a 50%, #4141A1 100%);
    padding: 100px 0 60px;
    overflow: hidden;
}

.cotizador-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cotizador-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 28px;
}

.cotizador-hero .hero-title {
    font-size: 52px;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cotizador-hero .gradient-text {
    background: linear-gradient(135deg, #9B9BCD 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cotizador-hero .hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.cotizador-hero .hero-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    max-width: 560px;
    margin: 16px auto 0;
}

.cotizador-hero .hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.cotizador-hero .blob-1 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4141A1, #9B9BCD);
    top: -180px;
    left: -100px;
}

.cotizador-hero .blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #2d2d7a, #4141A1);
    bottom: -150px;
    right: -80px;
}

/* Section wrapper */
.cotizador-section {
    padding: 60px 0 100px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-radius: 24px;
}

.cotizador-empty {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 32px;
}

.cotizador-empty p {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 16px;
}

/* Grid layout */
.cotizador-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: start;
}

.cotizador-services-panel,
.cotizador-cart-panel {
    padding: 28px;
}

.cotizador-cart-panel {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(65, 65, 161, 0.1);
}

/* Filters */
.cotizador-filters {
    margin-bottom: 20px;
}

.cotizador-search {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 12px;
}

.cotizador-search:focus {
    outline: none;
    border-color: #4141A1;
}

.type-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.type-filter-btn {
    padding: 8px 14px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #374151;
    transition: all 0.2s;
}

.type-filter-btn:hover {
    border-color: #4141A1;
}

.type-filter-btn.active {
    background: #4141A1;
    border-color: #4141A1;
    color: white;
}

/* Services list */
.cotizador-category {
    margin-bottom: 24px;
}

.cotizador-category.hidden,
.cotizador-item.hidden {
    display: none;
}

.category-title {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.cotizador-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
    background: rgba(65, 65, 161, 0.02);
}

.cotizador-item:hover {
    background: rgba(65, 65, 161, 0.06);
    border-color: #4141A1;
}

.cotizador-item-info {
    flex: 1;
}

.cotizador-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.cotizador-item-price {
    font-size: 13px;
    color: #64748b;
}

.cotizador-item-price strong {
    color: #4141A1;
}

.btn-add-item {
    background: #4141A1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-add-item:hover {
    background: #34348a;
}

/* Cart */
.cart-empty {
    text-align: center;
    padding: 40px 16px;
    color: #94a3b8;
}

.cart-group {
    margin-bottom: 18px;
}

.cart-group-title {
    font-size: 12px;
    font-weight: 700;
    color: #4141A1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(65, 65, 161, 0.15);
}

.cart-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 13px;
    color: #64748b;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.qty-btn:hover {
    border-color: #4141A1;
    color: #4141A1;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px;
    font-size: 13px;
}

.btn-remove {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-remove:hover {
    background: #fecaca;
}

.cart-total {
    padding: 16px 0;
    margin-top: 12px;
    border-top: 2px solid #f1f5f9;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #374151;
}

.total-row.grand {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-row.grand.initial {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.total-row.grand.monthly {
    background: linear-gradient(135deg, rgba(65, 65, 161, 0.08) 0%, rgba(65, 65, 161, 0.02) 100%);
    border: 1px solid rgba(65, 65, 161, 0.2);
}

.cotizador-disclaimer {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin-top: 16px;
}

@media (max-width: 1024px) {
    .cotizador-grid {
        grid-template-columns: 1fr;
    }

    .cotizador-cart-panel {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .cotizador-hero {
        padding: 70px 0 40px;
    }

    .cotizador-hero .hero-title {
        font-size: 36px;
    }

    .cotizador-services-panel,
    .cotizador-cart-panel {
        padding: 20px;
    }
}
