/* Cotizador de Garantías Plugin Styles */
.cotizador-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    all: initial;
    font-family: inherit;
}

.cotizador-container * {
    box-sizing: border-box;
}

.cotizador-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.cotizador-title {
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    background: linear-gradient(to right, #312e81, #3730a3);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-transform: uppercase;
    border-bottom: 1px dashed #d1d5db;
    padding-bottom: 0.5rem;
    text-align: center;
    display: block;
}

.cotizador-subtitle {
    margin-top: 0.75rem;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    text-align: center;
    color: #6b7280;
}

.cotizador-form-wrapper {
    width: 100%;
    max-width: 36rem;
}

.cotizador-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 0;
}

.cotizador-form-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 56rem;
}

.cotizador-form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1rem;
}

.cotizador-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4338ca;
}

.cotizador-input,
.cotizador-select {
    padding: 0.5rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.cotizador-input:focus,
.cotizador-select:focus {
    outline: none;
    border-color: #4338ca;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.cotizador-button-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 56rem;
    margin-top: 1.5rem;
}

.cotizador-button {
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    outline: none;
    text-transform: uppercase;
    background-color: #4338ca;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 1rem;
    min-width: 120px;
}

.cotizador-button:hover {
    background-color: #3730a3;
}

.cotizador-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.cotizador-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    color: #dc2626;
    font-weight: 600;
    text-align: center;
}

.cotizador-loading {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    color: #4338ca;
    font-weight: 600;
}

.cotizador-results {
    margin-top: 2rem;
    width: 100%;
    max-width: 56rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.cotizador-result-card {
    background-color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 0.5rem;
    padding: 1rem;
    position: relative;
    min-width: 20rem;
}

.cotizador-result-card-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background: linear-gradient(to right, #6366f1, #4338ca);
    border-radius: 0.5rem 0.5rem 0 0;
}

.cotizador-result-logo {
    width: 6.5rem;
    height: 2rem;
    margin: 0.5rem auto 0;
    display: block;
    object-fit: contain;
}

.cotizador-result-price {
    text-align: center;
    padding: 1rem 0 0.75rem;
}

.cotizador-result-price-amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: #4b5563;
}

.cotizador-result-divider {
    width: 100%;
    margin: 0.75rem 0;
    border: none;
    border-top: 1px solid #c7d2fe;
}

.cotizador-result-includes-title {
    text-align: center;
    color: #6366f1;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cotizador-result-includes-list {
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
}

.cotizador-result-includes-item {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
}

.cotizador-result-check-icon {
    background-color: #059669;
    border-radius: 50%;
    padding: 0.25rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.cotizador-result-check-svg {
    height: 0.75rem;
    width: 0.75rem;
    color: white;
    fill: currentColor;
}

.cotizador-result-includes-text {
    color: #4b5563;
    text-transform: capitalize;
    font-weight: 600;
}

.cotizador-result-details-table {
    width: 100%;
    text-align: center;
    color: #6b7280;
    margin: 0.75rem 0;
}

.cotizador-result-details-row {
    border: none;
}

.cotizador-result-details-label {
    text-align: left;
    padding-right: 1rem;
    font-weight: 500;
}

.cotizador-result-details-value {
    text-align: right;
    padding-left: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.cotizador-result-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.cotizador-result-button {
    background-color: #1e40af;
    color: #e5e7eb;
    padding: 0.5rem 2rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    border-radius: 0.25rem;
    font-weight: 700;
    transition: background-color 0.15s ease;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
    border: none;
    cursor: pointer;
}

.cotizador-result-button:hover {
    background-color: #1d4ed8;
    color: #e5e7eb;
    text-decoration: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cotizador-title {
        background: linear-gradient(to right, #38bdf8, #0ea5e9);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        border-bottom-color: #374151;
    }
    
    .cotizador-subtitle {
        color: #d1d5db;
    }
    
    .cotizador-label {
        color: #d1d5db;
    }
    
    .cotizador-input,
    .cotizador-select {
        background-color: #374151;
        color: #d1d5db;
        border-color: #4b5563;
    }
    
    .cotizador-result-card {
        background-color: #312e81;
    }
    
    .cotizador-result-price-amount {
        color: white;
    }
    
    .cotizador-result-divider {
        border-top-color: #6366f1;
    }
    
    .cotizador-result-includes-title {
        color: #a5b4fc;
    }
    
    .cotizador-result-includes-text {
        color: #d1d5db;
    }
    
    .cotizador-result-details-table {
        color: #e5e7eb;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cotizador-wrapper {
        padding: 2rem 0.5rem;
    }
    
    .cotizador-title {
        font-size: 1.5rem;
    }
    
    .cotizador-subtitle {
        font-size: 1rem;
    }
    
    .cotizador-results {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cotizador-result-card {
        min-width: auto;
    }
    
    .cotizador-result-price-amount {
        font-size: 1.875rem;
    }
}

@media (max-width: 480px) {
    .cotizador-wrapper {
        padding: 1.5rem 0.25rem;
    }
    
    .cotizador-title {
        font-size: 1.375rem;
    }
    
    .cotizador-form {
        padding: 1.5rem 0;
    }
    
    .cotizador-input,
    .cotizador-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

.cotizador-wrapper {
    display: flex
;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 1rem;
    background: #fff;
    text-align: center;
    border-radius: 15px;
    border: 1px solid #e0e6ed;
    -webkit-box-shadow: 0 4px 6px 0 rgba(85, 85, 85, 0.09019607843137255), 0 1px 20px 0 rgba(0, 0, 0, 0.08), 0px 1px 11px 0px rgba(0, 0, 0, 0.06);
    -moz-box-shadow: 0 4px 6px 0 rgba(85, 85, 85, 0.09019607843137255), 0 1px 20px 0 rgba(0, 0, 0, 0.08), 0px 1px 11px 0px rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 6px 0 rgba(85, 85, 85, 0.09019607843137255), 0 1px 20px 0 rgba(0, 0, 0, 0.08), 0px 1px 11px 0px rgba(0, 0, 0, 0.06);
    padding-bottom: 0px;
}