/* =====================================================
   ESTILOS PARA EL COTIZADOR DINÁMICO - TEMA FESTIVO 🎉
   ===================================================== */

:root {
    --fuente-titulos: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
    --fuente-cuerpo: 'Nunito', 'Segoe UI', Tahoma, sans-serif;
    --transicion-rebote: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cotizador-form {
    max-width: 1610px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(20, 67, 136, 0.12);
    border: 3px solid transparent;
    transition: var(--transicion-rebote);
    position: relative;
    overflow: hidden;
}

.cotizador-form::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cotizador-titulo {
    font-family: var(--fuente-titulos);
    color: var(--azul-electrico);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    position: relative;
    text-align: center;
}

.cotizador-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--amarillo), #FF6B35);
    border-radius: 10px;
}

.cotizador-titulo::before {
    content: '🧮';
    margin-right: 0.5rem;
}

.cotizador-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.cotizador-categoria {
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
    border: 3px solid var(--azul-electrico);
    border-radius: 18px;
    padding: 1.4rem 1.4rem;
    transition: var(--transicion-rebote);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 280px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cotizador-categoria::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--azul-electrico), var(--amarillo));
}

.cotizador-categoria:hover {
    border-color: var(--amarillo);
    box-shadow: 0 12px 35px rgba(20, 67, 136, 0.2);
    transform: translateY(-6px);
}

.cotizador-categoria-titulo {
    font-family: var(--fuente-titulos);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--azul-electrico);
    margin-bottom: 0.4rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid rgba(20, 67, 136, 0.2);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cotizador-categoria-titulo::before {
    content: '📋';
    font-size: 1.3rem;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.cotizador-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
    gap: 0.75rem;
    background: white;
    padding: 0.95rem 1.05rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.cotizador-item:last-child {
    margin-bottom: 0;
}

.cotizador-item:hover {
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.cotizador-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cotizador-item-nombre {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    flex: 1;
}

.cotizador-item-precio {
    background: linear-gradient(135deg, var(--azul-electrico), #1976d2);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.45rem 1rem;
    border-radius: 16px;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.qty-input {
    width: 64px;
    text-align: center;
    border: 2px solid var(--azul-electrico);
    border-radius: 6px;
    padding: 0.55rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--azul-electrico);
    transition: all 0.3s ease;
}

.qty-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.qty-input:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
    border-color: #ccc;
    color: #999;
}

/* Estilos para el select de inflables */
.inflable-select {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid var(--azul-electrico);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.inflable-select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.btn-agregar-inflable {
    width: 100%;
    background: linear-gradient(135deg, var(--azul-electrico), #1976d2);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.btn-agregar-inflable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.inflables-agregados-lista {
    margin-top: 1rem;
}

.inflable-agregado-item {
    background: white;
    border: 2px solid var(--azul-electrico);
    border-radius: 8px;
    padding: 0.7rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.inflable-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.inflable-info strong {
    color: var(--azul-electrico);
    font-size: 0.9rem;
}

.inflable-info span {
    font-size: 0.85rem;
    color: #666;
}

.btn-quitar {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-quitar:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Sección de detalles del evento */
.cotizador-detalles {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
}

.cotizador-detalles .cotizador-categoria-titulo {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.cotizador-detalles .cotizador-categoria-titulo::before {
    content: '📝';
}

.detalle-field {
    margin-bottom: 1rem;
}

.detalle-field label {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.detalle-field input,
.detalle-field select,
.detalle-field textarea {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.detalle-field input:focus,
.detalle-field select:focus,
.detalle-field textarea:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.detalle-field textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

/* Botones de acción */
.cotizador-botones {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-calcular {
    background: linear-gradient(135deg, var(--amarillo), #FF6B35);
    color: #1a1a2e;
    border: none;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-family: var(--fuente-titulos);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transicion-rebote);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-calcular::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-calcular:hover::before {
    left: 100%;
}

.btn-calcular:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5);
}

.btn-limpiar {
    background: rgba(255, 255, 255, 0.9);
    color: #764ba2;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-limpiar:hover {
    background: white;
    transform: translateY(-2px);
}

/* Resumen de totales */
.cotizador-resumen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: none;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.resumen-linea {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.resumen-linea strong {
    color: var(--amarillo);
}

.resumen-linea.total-final {
    border-top: 3px solid rgba(255, 255, 255, 0.5);
    border-bottom: none;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.resumen-linea.total-final strong {
    color: var(--amarillo);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cotizador-nota {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-top: 1rem;
    text-align: center;
}

/* Botones finales */
.cotizador-acciones-final {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-carrito {
    background: linear-gradient(135deg, var(--azul-electrico), #1976d2);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-carrito:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
}

/* Responsive */
@media (max-width: 1200px) {
    .cotizador-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cotizador-grid {
        grid-template-columns: 1fr;
    }

    .cotizador-botones {
        flex-direction: column;
    }

    .cotizador-acciones-final {
        flex-direction: column;
    }

    .btn-whatsapp,
    .btn-carrito {
        width: 100%;
        justify-content: center;
    }
}
.cotizador-combos-resumen {
  margin: 0.75rem 0 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d8e2f4;
  border-radius: 10px;
  background: #f8fbff;
}
.cotizador-combos-resumen h4 {
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
  color: #0f2a4d;
}
.cotizador-combos-resumen ul {
  margin: 0;
  padding-left: 1rem;
  color: #1f3a5f;
}
.cotizador-combos-resumen li {
  margin: 0.15rem 0;
}
