.ce-quote-container {
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

:root {
    --ce-social: #e91e63;
    --ce-concierto: #f44336;
    --ce-feria: #4caf50;
    --ce-corporativo: #ffc107;
}

/* Modal Base Styles */
.ce-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    font-family: 'Inter', sans-serif;
}

.ce-modal-content {
    background-color: #fff;
    margin: 2% auto; /* Reducido un poco */
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow-x: hidden;
    overflow-y: auto; /* Scroll vertical */
    max-height: 95vh; /* Evita que se salga de la pantalla */
    position: relative;
    border: none;
}

.ce-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.ce-modal-header {
    background: #444;
    color: #fff;
    padding: 30px 40px;
    text-align: left;
}

.ce-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

.ce-modal-header p {
    margin: 5px 0 0;
    opacity: 0.8;
    font-size: 14px;
}

.ce-form-grid {
    padding: 30px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ce-field {
    display: flex;
    flex-direction: column;
}

.ce-field label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 8px;
}

.ce-field select, .ce-field input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.ce-field select:focus, .ce-field input:focus {
    border-color: #444;
}

/* Cotizador Button */
.ce-quote-btn {
    background: #008a8a;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.ce-quote-btn:hover {
    background: #006b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,138,138,0.3);
}

/* Result Box */
.ce-result-box {
    margin: 0 40px 30px;
    padding: 25px;
    background: #fdfdfd;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-left: 6px solid #444; /* Borde dinámico según tema */
}

.ce-result-header {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 20px;
    color: #333 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ce-result-header .dashicons {
    color: #444;
}

.ce-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
    color: #666;
}

.ce-result-row:last-of-type {
    border-bottom: none;
}

.ce-result-row .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    color: #999;
}

.ce-total-row {
    margin-top: 15px;
    padding: 20px 0 0 0;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ce-total-row span:first-child {
    font-weight: 700;
    font-size: 16px;
    color: #555;
}

.ce-total-row #ce-total-price {
    font-weight: 800;
    font-size: 24px;
    color: #222;
}

/* --- ADD BUTTON --- */
.ce-add-btn {
    width: 100%;
    background: #444;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.ce-add-btn:hover {
    background: #000;
}

/* --- QUOTE CARDS GRID --- */
.ce-quotes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 40px 30px;
}

.ce-quote-card {
    position: relative;
    padding: 25px !important; /* Aumentamos/equalizamos padding */
    background: #fff;
    border-radius: 16px;
    border: none !important;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: ceCardSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
    overflow: hidden;
}

.ce-quote-card::before, .ce-quote-card::after {
    display: none !important; /* Eliminamos cualquier barra lateral */
}

.ce-quote-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

@keyframes ceCardSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ce-quote-card .ce-card-badge {
    display: table;
    padding: 6px 12px;
    background: #000 !important;
    color: #fff !important;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    line-height: 1;
}

.ce-quote-card .ce-card-title {
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 8px;
    color: #111;
    padding-right: 30px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ce-quote-card .ce-card-dates {
    font-size: 11px;
    font-weight: 500;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ce-quote-card .ce-card-unit-prices {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 15px;
}

.ce-quote-card .ce-card-unit-prices span {
    font-weight: 700;
}

.ce-quote-card .ce-card-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin-bottom: 15px;
}

.ce-theme-corporativo .ce-quote-card .ce-card-divider {
    background: rgba(0,0,0,0.1);
}

.ce-quote-card .ce-card-info {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #888;
    margin-bottom: 12px;
}

.ce-quote-card .ce-card-info strong {
    color: #333;
}

.ce-quote-card .ce-card-price {
    font-weight: 900;
    font-size: 20px;
    color: #000;
    text-align: right;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 10px;
    margin-top: 5px;
}

.ce-remove-quote {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.05);
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    z-index: 2;
}

.ce-remove-quote:hover {
    background: #ff4757;
    color: #fff;
    transform: rotate(90deg);
}

/* --- NEW MULTI-SELECT DROPDOWN REFINED --- */
.ce-multi-select {
    position: relative;
    width: 100%;
}

.ce-multi-select-header {
    background: #fff;
    border: 2px solid #eee; /* Borde más suave */
    border-radius: 10px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.ce-multi-select-header:hover {
    border-color: #ddd;
    background: #fafafa;
}

.ce-multi-select.active .ce-multi-select-body {
    display: block;
    animation: ceFadeInUp 0.2s ease-out;
}

@keyframes ceFadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ce-multi-select-body {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    margin-top: 5px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
}

.ce-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ce-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.ce-checkbox-item:hover {
    background: #f8f9fa;
}

.ce-checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: #000;
    cursor: pointer;
}

.ce-checkbox-item span {
    font-size: 14px;
    font-weight: 500;
}

.ce-quotes-centered {
    display: flex;
    justify-content: center;
    padding: 0 40px 30px;
}

.ce-quotes-centered .ce-quote-card {
    width: 100%;
    max-width: 400px;
}

/* --- THEMES FOR CARDS (Intensidad 100% Sin Bordes) --- */
.ce-quote-card.ce-theme-social { 
    background: var(--ce-social) !important; 
}
.ce-quote-card.ce-theme-social * { color: #fff !important; }
.ce-quote-card.ce-theme-social .ce-card-badge { background: #fff !important; color: var(--ce-social) !important; }

.ce-quote-card.ce-theme-concierto { 
    background: var(--ce-concierto) !important; 
}
.ce-quote-card.ce-theme-concierto * { color: #fff !important; }
.ce-quote-card.ce-theme-concierto .ce-card-badge { background: #fff !important; color: var(--ce-concierto) !important; }

.ce-quote-card.ce-theme-feria { 
    background: var(--ce-feria) !important; 
}
.ce-quote-card.ce-theme-feria * { color: #fff !important; }
.ce-quote-card.ce-theme-feria .ce-card-badge { background: #fff !important; color: var(--ce-feria) !important; }

.ce-quote-card.ce-theme-corporativo { 
    background: var(--ce-corporativo) !important; 
}
.ce-quote-card.ce-theme-corporativo * { color: #000 !important; }
.ce-quote-card.ce-theme-corporativo .ce-card-badge { background: #000 !important; color: #fff !important; }

.ce-grand-total {
    background: #111;
    color: #fff !important;
    padding: 25px 30px !important;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ce-grand-total span:first-child {
    color: #aaa !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.ce-grand-total #ce-grand-total-price {
    color: #fff !important;
    font-size: 42px !important;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(255,255,255,0.1);
}

/* --- CONTACT FORM SECTION --- */
.ce-contact-section {
    padding: 20px 40px 40px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.ce-section-divider {
    text-align: center;
    position: relative;
    margin-bottom: 25px;
}

.ce-section-divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

.ce-section-divider span {
    position: relative;
    z-index: 2;
    background: #fafafa;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
}

.ce-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.ce-full-width {
    grid-column: span 2;
}

.ce-contact-grid textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    resize: vertical;
    outline: none;
    font-family: inherit;
}

.ce-whatsapp-btn {
    width: 100%;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.ce-whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.ce-whatsapp-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* --- THEMES BY CATEGORY ---#d81b60 */

/* SOCIAL (Pink/Fuchsia) */
.ce-theme-social .ce-modal-header { background: #d81b60; }
.ce-theme-social .ce-result-box { border-left-color: #d81b60; }
.ce-theme-social .ce-result-header { color: #d81b60 !important; }
.ce-theme-social .ce-result-header .dashicons { color: #d81b60; }
.ce-theme-social #ce-total-price { color: #d81b60; }

/* CONCIERTO (Red/Orange) */
.ce-theme-concierto .ce-modal-header { background: #e53935; }
.ce-theme-concierto .ce-result-box { border-left-color: #e53935; }
.ce-theme-concierto .ce-result-header { color: #e53935 !important; }
.ce-theme-concierto .ce-result-header .dashicons { color: #e53935; }
.ce-theme-concierto #ce-total-price { color: #e53935; }

/* FERIA (Green) */
.ce-theme-feria .ce-modal-header { background: #43a047; }
.ce-theme-feria .ce-result-box { border-left-color: #43a047; }
.ce-theme-feria .ce-result-header { color: #43a047 !important; }
.ce-theme-feria .ce-result-header .dashicons { color: #43a047; }
.ce-theme-feria #ce-total-price { color: #43a047; }

/* CORPORATIVO (Yellow/Gold) */
.ce-theme-corporativo .ce-modal-header { background: #fbc02d; }
.ce-theme-corporativo .ce-result-box { border-left-color: #fbc02d; }
.ce-theme-corporativo .ce-result-header { color: #fbc02d !important; }
.ce-theme-corporativo .ce-result-header .dashicons { color: #fbc02d; }
.ce-theme-corporativo #ce-total-price { color: #fbc02d; }

@media (max-width: 600px) {
    .ce-form-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .ce-modal-content {
        margin: 10% 5%;
        width: 90%;
    }
}

/* --- FLATPICKR CUSTOM STYLES --- */
.flatpickr-innerContainer + .flatpickr-innerContainer {
    display: none !important; /* Evitar duplicados si Flatpickr se vuelve loco */
}

.dayContainer {
    gap: 0 !important;
}

.flatpickr-day.ce-booked-day {
    background: #e57373 !important;
    border: none !important;
    color: #fff !important;
    border-radius: 0 !important;
    margin: 1px -0.5px !important; /* Solapamiento horizontal forzado */
    width: calc(14.2857143% + 1px) !important; /* Ligeramente más ancho para solapar */
    flex-basis: calc(14.2857143% + 1px) !important;
    max-width: none !important;
    z-index: 1;
    box-shadow: 1px 0 0 0 #e57373, -1px 0 0 0 #e57373 !important; /* Sombra para reforzar el solapamiento */
}

.flatpickr-day.ce-booked-day:hover {
    background: #ef5350 !important;
    box-shadow: 0.5px 0 0 0 #ef5350, -0.5px 0 0 0 #ef5350 !important;
}

.flatpickr-day.ce-booked-day.flatpickr-disabled {
    cursor: default !important;
    opacity: 1 !important;
}





